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


      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


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

      Please guide.