• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: html5 input in a form "required"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html5 input in a form "required"


  • Subject: Re: html5 input in a form "required"
  • From: Kieran Kelleher <email@hidden>
  • Date: Thu, 18 Apr 2013 13:55:39 -0400

Try this:

HTML:
-------
	<wo name = "TextField"></wo>

WOD:
-------
TextField : WOTextField {
	value = aValue;
	otherTagString = "required";
}


otherTagString binding is just a string value that is appended to the opening tag attributes as is.



On Apr 18, 2013, at 1:42 PM, John Pollard <email@hidden> wrote:

> I am certainly in debt to the community, but I suspect I would hinder more than help.
> I can see er.extensions.components._private.ERXWOTextField which I understand automatically replaces the webobjects WOTextField class... is this what would need updating? I can't say I would be confident to do so. All components I have worked with have an html file and wod etc.
>
> I have also noticed that Wonder also has ERXWOInput derived from WOInput. Then ERXWOTelField and friends hang off WOInput. I might have expected these to derive from ERXWOTextField...but that may just illustrate my lack of understanding.
>
> On 18 Apr 2013, at 16:46, Pascal Robert <email@hidden> wrote:
>
>> And contribute the subclass to the community.
>>
>>> 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@hidden> 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@hidden)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>> --
>>> 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@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: html5 input in a form "required"
      • From: Kieran Kelleher <email@hidden>
    • Re: html5 input in a form "required"
      • From: John Pollard <email@hidden>
References: 
 >html5 input in a form "required" (From: John Pollard <email@hidden>)
 >Re: html5 input in a form "required" (From: John Pollard <email@hidden>)
 >Re: html5 input in a form "required" (From: Chuck Hill <email@hidden>)
 >Re: html5 input in a form "required" (From: Pascal Robert <email@hidden>)
 >Re: html5 input in a form "required" (From: John Pollard <email@hidden>)

  • Prev by Date: Re: html5 input in a form "required"
  • Next by Date: Re: html5 input in a form "required"
  • Previous by thread: Re: html5 input in a form "required"
  • Next by thread: Re: html5 input in a form "required"
  • Index(es):
    • Date
    • Thread