4 Replies Latest reply on Jan 11, 2010 4:31 PM by Tanya Ruttenberg

    Diference between h:commandButton and s:button?

    Sachin Parnami Newbie

      Hi All,


      Would like to know in detail about the functionality, how h:commandButton and s:button works?


      have seen the details here


      http://docs.jboss.com/seam/2.0.1.GA/reference/en/html_single/#d0e4817



      but i am facing some problem while persisting and merging JPA data while using s:button where as if i change s: button to h: commandButton everything works fine.


      i get below mentioned error when i use s: button



      javax.ejb.EJBTransactionRolledbackException: org.hibernate.PropertyValueException: not-null property references a null or transient value:



      where as i tried passing same values which i had passed with h:commandButton


      i want to pass some value from my form to action class which i am getting from another form2 by using



      #{param.myValue}



      now i read h:commandbutton doesn't sopports f:param value so is there any other work around to pass such value



      Please guide.