send post data in jsf

Posted by milostrivun on Stack Overflow See other posts from Stack Overflow or by milostrivun
Published on 2010-04-13T22:34:39Z Indexed on 2010/04/14 5:03 UTC
Read the original article Hit count: 242

Filed under:
|
|

I just cannot figure this out, it looks really simple but I'm relatively new at jsf.

Here is the old stuff: Plain old html form tag like this:

<form name="someForm" action="somewhere" method="post">
   <input name="param1"/>
   <input name="param2" />
</form

That is sending data by post to a location specified in the action attribute of the form.

The new stuff:

<h:form id="paymentForm">
<h:panelGroup> 
    <h:inputText id="param1" value="#{facesView.param1}" ></h:inputText>
    <h:inputText id="param1" value="#{facesView.param2}" ></h:inputText>
    <h:panelGroup>
    <h:commandLink>Submit</h:commandLink>
</h:panelGroup>
</h:form>

This other new stuff doesn't work.

1.How do I specify to this h:form where to go(like setting action in old html) because I need it to go to a totally new url.

2.how to pass params with POST?

Any help is appreciated. Milos

© Stack Overflow or respective owner

Related posts about jsf

Related posts about post