Generate Url through form

0

I have the following url:

www.teste.com/username=xxxx

I have to type the user's name in xxxx, I'm creating a form in html with the username field, I want it when the user types his name in this form he manages the automatic link for example: if he type in the field the name fernando so you have to go to a page that the link is and the following www.teste.com/username=fernando I'm using JSF.

    
asked by anonymous 17.03.2016 / 15:46

1 answer

0

You need to use the jsf viewParam tag.

<f:metadata>
    <f:viewParam name="username"/>
</f:metadata>   

There are many ways you can work with this value, apply converters, validators, load attributes of your bean, and so on. This will depend on your need, but a search on google viewParam will give you the stone path regardless of your desire.

    
21.03.2016 / 18:02