Results 1 to 7 of 7

Thread: Form not update when stay in the same view-state

Threaded View

  1. #1

    Question Form not update when stay in the same view-state

    Hi all,

    I have a bean named "cmd" with a field "name".
    Code:
     public class MyCommand
       {
          private String name;
    
          public String getName()
          {
             return name;
          }
    
          public void setName( final String name )
          {
             this.name = name;
          }
       }
    when start the name is 'oldname'.


    My flow is :
    Code:
     <view-state id="state1" model="cmd" view="views/cmd">
          <transition on="setNameEvent" to="state1">
             <evaluate expression="cmd.setName('newname')"/>
          </transition>
       </view-state>
    The form input text is never update with the value 'newname' but the old one 'oldname'

    I ve only this case when a transition leave enter in the same View-State with tags <form:input

    It makes me crazy.
    --

    Julien
    Last edited by jujuz; Mar 13th, 2009 at 04:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •