commandButton « Data « JSF Q&A





1. JSF commandButton URL parameters    stackoverflow.com

I would like to make a button which navigates to a different URL and pass some request parameters through in the URL. The outputLink works but I would like a button, ...

2. Passing a parameter with h:commandButton    stackoverflow.com

I have a a4j:commandButton which is supposed to redirect me to an appropriate "Edit" page based on an Id, which I wanted to pass as a parameter, something like this:

<h:commandButton action="/details.jsf?faces-redirect=true" ...

3. JSF2 CommandButton Action request params    stackoverflow.com

<h:commandButton value="Add Order"  action="#{orderBasket.addItems(param['orderItemId'])}"/>
I can't get the above to work...when you click on the button the param seems to get set to null. Is there a way around this? Is ...

4. Passing parameters with h:commandButton -- or the equivalent    stackoverflow.com

I read on other threads that this does not work:

<h:commandButton value="Create New Account" 
                action="#{acctBean.doCreate}" >
 ...

6. could onclick be an attribute for     coderanch.com





10. Issue: commandButton's onsucess attribute not working as expected    coderanch.com

Hi, I'm new to JSF and I'm having the following issue: I'm writing a page to add a new user to the database. This is what it is supposed to do: let the user fill in the fields, validate entered values and if no errors (by errors I understand wrong values in fields, i.e. a number in a name field, or ...