You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Schröder <Pe...@freenet-ag.de> on 2006/11/28 17:06:54 UTC

required checkbox

hi,

this is my first post to the list, so welcome you all.

i have a tiny problem with a checkbox, that i dont understand.

i have a checkbox for terms of use, which i want the user to except:

<span jwcid="@FieldLabel" field="component:AGB">fehlermeldung</span>
<input jwcid="AGB@Checkbox" value="ognl:agb" displayName="Ich akzeptiere die" validators="validators:required"/>

this one works.

if i switch the label and the checkbox, it never gets a success:

<input jwcid="AGB@Checkbox" value="ognl:agb" displayName="Ich akzeptiere die" validators="validators:required"/>		
<span jwcid="@FieldLabel" field="component:AGB">fehlermeldung</span>

this doesnt work.

i am working with 4.0.2

kind regards
peter					

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: required checkbox

Posted by D&J Gredler <dj...@gmail.com>.
I think you need to set prerender=false on the FieldLabel

See the FieldLabel docs at

http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/FieldLabel.html


On 11/28/06, Peter Schröder <Pe...@freenet-ag.de> wrote:
>
> hi,
>
> this is my first post to the list, so welcome you all.
>
> i have a tiny problem with a checkbox, that i dont understand.
>
> i have a checkbox for terms of use, which i want the user to except:
>
> <span jwcid="@FieldLabel" field="component:AGB">fehlermeldung</span>
> <input jwcid="AGB@Checkbox" value="ognl:agb" displayName="Ich akzeptiere
> die" validators="validators:required"/>
>
> this one works.
>
> if i switch the label and the checkbox, it never gets a success:
>
> <input jwcid="AGB@Checkbox" value="ognl:agb" displayName="Ich akzeptiere
> die" validators="validators:required"/>
> <span jwcid="@FieldLabel" field="component:AGB">fehlermeldung</span>
>
> this doesnt work.
>
> i am working with 4.0.2
>
> kind regards
> peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>