W3C home > Mailing lists > Public > www-forms@w3.org > October 2005

Re: Fw: Disabling a button based on validity

From: Erik Bruchez <erik@bruchez.org>
Date: Fri, 28 Oct 2005 01:16:24 +0200
Message-ID: <43615FC8.20503@bruchez.org>
To: www-forms@w3.org

Erik Bruchez wrote:
> andyh@collegenet.com wrote:
>> The code I presented below is not that cumbersome. Once you have the
>> instance and the three binds, you need a single instance data element per
>> field and two simple event handlers per control.
> You are kidding, right? It is EXTREMELY cumbersome. Again, this is 
> functionality that you want in pretty much every XForms page. It should 
> be achievable with an attribute or two.

I realize my comment above may sound a little harsh. I should 
reformulate a bit by saying that in my opinion, since this is a feature 
you want in your typical form, it is not satisfying to have to:

o write for each control 6 additional lines to set / unset a value

o create an additional XForms instance

o add an xforms:bind

This is a lot of overhead. Sure, once you get it, as an expert XForms 
programmer, you deal with it. But I think that XForms should remain 
reasonably simple for beginners, and that common tasks should be easy to 
code. Show beginners a trick like this and they will leave and never 
turn back.

Now the point of this thread is to see if some better solutions can be 
found, and help make it so that they see the day of light in the next 
iteration of the XForms specification.

Received on Thursday, 27 October 2005 23:16:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:16 UTC