You would need to extend it in Wonder, ERXWOTextField.  Add an isRequired 
binding and then append the required in appendToResponse.  Should be trivial.

Chuck


On 2013-04-18, at 8:31 AM, John Pollard wrote:

> I should have said, when I do this:
> 
> 
>      <wo:WOTextField value="$organisation.telephone" id="telephoneField" 
> data-theme="e" required/>
> 
> the generated HTML comes out as required="e", apparently picking up the last 
> parameter that did have a value.
> 
> On 18 Apr 2013, at 16:23, John Pollard <[email protected]> wrote:
> 
>> Can WOTextField or something similar handle the "required" in:
>> 
>> <input type="text" name="usrname" required>
>> 
>> i.e. telling the browser that a field is required, it has not value assigned 
>> to it
>> 
>> I couldn't see a Wonder way for this.
>> Many thanks
>> John
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
Companies in B.C! 
Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!












 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to