[ 
http://issues.apache.org/struts/browse/SHALE-216?page=comments#action_37711 ] 

Craig McClanahan commented on SHALE-216:
----------------------------------------

It sounds like you might be suffering the effects of a previously reported bug:

http://issues.apache.org/struts/browse/SHALE-182

This bug made it impossible to resubmit a page after it was redisplayed with 
*any* validation error messages.  This was fixed as of nightly build 20060627 
... could you make sure you're using a version more recent than that, and see 
if you still have this issue?



> possibility to "skip" token validation when necessary
> -----------------------------------------------------
>
>          Key: SHALE-216
>          URL: http://issues.apache.org/struts/browse/SHALE-216
>      Project: Shale
>         Type: Improvement

>   Components: Core
>     Versions: Nightly
>  Environment: Myfaces 1.1.2
>     Reporter: Veit Guna

>
> I'm using the shale token tag to avoid duplicate form submits. It works so 
> far.
> Now I have this usecase:
> - An input form is generated with fields for an address (street, areacode, 
> city etc.)
> - The token tag is placed in the bottom of the form to avoid re-submit
> - There are some validators in the form, that validate areacode in 
> combination with city
> - Is the city not unique when submitting, a warning msg is added to the 
> facescontext and the possible cities are presented in a selectbox to choose 
> from (javascript auto-submit)
> - After choosing the right city (the form is submitted automatically by JS), 
> another check looks for multiple areacodes for that city and displays them in 
> another selectbox with an additional msg in the facescontext that the user 
> has to select one.
> - When the user selects the areacode (JS auto-submit), the form is 
> re-displayed without any msg (because, everything is fine now)
> - Here is the problem: re-displaying the page without an queued error msg in 
> the facescontext will mark the form "as-sent".
> - So finally when the user wants to submit the form (after correcting his 
> input), the tag doesn't allow sending the form again.
> It would be nice, if it would be possible to "skip" a validation for the 
> token for re-displaying a page or to generate a new token when re-displaying 
> without
> validation errors.
> One "solution" would be to add an additional msg to the facescontext, when 
> validation of areacode+city is finally ok. But perhaps the component could 
> offer a solution to this?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to