Uploaded image for project: 'Shale'
  1. Shale
  2. SHALE-315

Token Improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.0.3
    • TBD
    • Core
    • None
    • Any
    • Important

    Description

      <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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jialing jialing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: