-1

I have tried this link to solve my issue but it's not showing the parameter value in url just like http://www.example.com/jsfApp.jsf?param1=value1&param2=value'

my issue is when i post the value just like

<h:outputLink value="jsfApp.jsf">
    <f:param name="param1" value="value1" />
    <f:param name="param2" value="value2" />
</h:outputLink>

then it will be show in url just like this

http://www.example.com/jsfApp.jsf?param1=value1&param2=value2
Community
  • 1
  • 1
Himanshu
  • 378
  • 8
  • 27

1 Answers1

2

Being your outcome jsfApp, you only need to specify it like that:

<h:link value="Go with params" outcome="jsfApp">
    <f:param name="param1" value="value1" />
    <f:param name="param2" value="value2" />
</h:link>

Have a look at 1.2 point.

Aritz
  • 30,971
  • 16
  • 136
  • 217
  • when i click in link which method will call in bean class. – Himanshu Aug 21 '13 at 09:49
  • it's working good. but i'm unable to get this value in bean class – Himanshu Aug 21 '13 at 09:50
  • It is not a method in your bean class. It is an `outcome`, it only specifies where you want to go and which parameters to include. Google 'JSF implicit navigation' for more details. – Aritz Aug 21 '13 at 10:04