This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: Diference between h:commandButton and s:button?nickarls Oct 8, 2009 9:48 AM (in response to sachin.parnami)s:button doesn't submit. Tried using a commandlink with params? 
- 
        2. Re: Diference between h:commandButton and s:button?sachin.parnami Oct 8, 2009 9:58 AM (in response to sachin.parnami)Thanks for responding Nicklas, It helps. 
- 
        3. Re: Diference between h:commandButton and s:button?faffinito Dec 9, 2009 3:43 PM (in response to sachin.parnami)Hi, 
 if I use a h:commandLink with parameters it seems like no parameters are passed to the page.This is my personEdit.xhtml <h:commandButton id="save" value="Salva" action="#{personHome.persist}" styleClass="green left" > <f:param name="comeBack" value="#{personHome.comeBack}"/> </h:commandButton>In personHome.java i put @RequestParameter("comeBack") private String comeBack;with getters and setters; In pages.xml <page view-id="/personEdit.xhtml" conversation-required="true" no-conversation-view-id="/errorConversationExpired.xhtml"> <navigation from-action="#{personHome.persist}"> <rule if-outcome="success"> <end-conversation if="#{conversation.nested}" before-redirect="true"/> <redirect view-id="/visitEdit.xhtml" /> </rule> </navigation> ... </page>If I use the s:button the redirection is working fine, but I got validation errors since the form is not correctly submitted. 
 Anyone can help giving some hint?
- 
        4. Re: Diference between h:commandButton and s:button?daxxy Jan 11, 2010 4:31 PM (in response to sachin.parnami)You didn't use h:commandLink you used h:commandButton. f:param does not work with h:commandButton, but don't ask me about passing parameter using h:commandButton because I'm still trying to figure it out! I read somewhere that h:commandButton can use f:param in JSF 2.0. 
 
     
    