0

i'm trying to pass a value of an id from my jsf page to my bean var called id, wich will be used in another jsf page . Please help ! i tried

<f:metadata>
<f:viewParam name="id" value="#{newsBean.idd}" />
</f:metadata>

and

<f:setPropertyActionListener value="#{s.id}" target="#{newsBean.id}"></f:setPropertyActionListener>

it doesn't work

  • What the issue to pass this ? You can take help from http://www.mkyong.com/jsf2/4-ways-to-pass-parameter-from-jsf-page-to-backing-bean/ – Subodh Joshi Apr 18 '16 at 04:46
  • You're mixing GET/POST approaches. The abovelinked duplicate answers how to use `` approach (POST). This duplicate answers how to use `` approach (GET): http://stackoverflow.com/q/8459903 Take your pick. – BalusC Apr 18 '16 at 06:51

0 Answers0