tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Schulte (JIRA)" <...@tapestry.apache.org>
Subject [jira] Reopened: (TAPESTRY-1663) @RadioGroup client-side validation does not work
Date Mon, 05 Nov 2007 19:46:51 GMT

     [ https://issues.apache.org/jira/browse/TAPESTRY-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcus Schulte reopened TAPESTRY-1663:
--------------------------------------

      Assignee: Marcus Schulte  (was: Jesse Kuhnert)

broken by fix for TAPESTRY-1753

> @RadioGroup client-side validation does not work
> ------------------------------------------------
>
>                 Key: TAPESTRY-1663
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1663
>             Project: Tapestry
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 4.1.2
>         Environment: Firefox 2.0.0.5 and InternetExplorer 7.0.5730
>            Reporter: Cyrille
>            Assignee: Marcus Schulte
>             Fix For: 4.1.3
>
>
> The @RadioGroup client-side validation does not work: nothing append at form submit.
Notive that it works fine on server-side.
> The Template part :
> <div jwcid="radioGroup01@RadioGroup" selected="ognl:radioGroup01Selected" displayName="RadioGroup
01" validators="validators:required" >
>  choix 1<input type="text" jwcid="radio01@Radio" value="literal:R01" /> <br/>
>  choix 2<input type="radio" jwcid="radio02@Radio" value="literal:R02" />
> </div>
> The generated html :
> ...
> <div>
>  choix 1<input type="radio" name="radioGroup01" id="radioGroup010" value="0" /><br/>

> choix 2<input type="radio" name="radioGroup01" id="radioGroup011" value="1" />
> </div>
> ...
> <script type="text/javascript"><!--
> dojo.addOnLoad(function(e) {
> dojo.require("tapestry.form");tapestry.form.registerForm("theForm");
> tapestry.form.focusField('text01');
> tapestry.form.clearProfiles('theForm'); tapestry.form.registerProfile('theForm',{"required":["text01","radioGroup01"],"text01":{"required":["Vous
devez entrer une valeur pour Le Text 01."]},"radioGroup01":{"required":["Vous devez entrer
une valeur pour RadioGroup 01."]}});});
> // --></script></body>
> </html>
> I had a try with a "required" @TextField on the same page, and the client-side works
fine for the field, there is only the RadioGroup client-side validation which does not works.
> I think about that, but I a beginner, so it's juste a idea : the javascript validation
probably works only with element id, but in case of radios in a radiogroup only the name attribute
is the same for all radios.
> Ask me for more detail if needed.
> Cheers
> Cyrille

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message