You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "jialing (JIRA)" <ji...@apache.org> on 2006/10/18 15:29:25 UTC

[jira] Created: (SHALE-315) Token Improvement

Token Improvement
-----------------

                 Key: SHALE-315
                 URL: http://issues.apache.org/struts/browse/SHALE-315
             Project: Shale
          Issue Type: Improvement
          Components: Core
    Affects Versions: 1.0.3
         Environment: Any
            Reporter: jialing
            Priority: Critical


<h:form id="form1">
   <h:inputText value="#{bean.date}" id="selectedDate"/>
   <h:commandButton actionListener="#{bean.query}" id="Button1" value="Query"/>
</h:form>

<h:form id="form2">
   <h:dataTable var="item" value="#{bean.rows}"/>
   <h:commandButton actionListener="#{bean.create}"  id="Button2" value="Create"/>
   <s:token/>
<h:form>

Button1 do query, get a result(10 rows max), then user can select rows in the dataTable, then click "create " to submit.
 
form2 contains token component, the first time it works OK, but  the Next time it will get failed(because the token value has not changed).

Can I reset token value in a view controller in a action listener(or submit ) method?

my solution:
 wirte a backing bean contains token component, and remove its token value attribute to let it generate new token value






-- 
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