JSF form with action url?

Is there a way to invoke a URL action in <h:commandButton> or, for that matter, <h:form> ? I am trying to bypass my email login page from my own site, so I use JSF beans to store my login information in the <h:inputSecret> tags, just to click Go To Email, and because I'm logged in system on my own website, I could go directly to my inbox without registering again

+4
source share
1 answer

Just use plain HTML <form> instead of JSF <h:form> .

 <form action="http://example.com/mail" method="post"> <input type="text" name="username" value="#{bean.username}" /> <input type="password" name="password" value="#{bean.password}" /> <input type="submit" value="Go to Email" /> </form> 
+2
source

All Articles