0

I have the following in my code:

<f:viewParam name="from_name" value="#{bean.fromName}" />

And this parameter doesn't work. I'm absolutely convinced that the getters and setters behind bean.fromName are correct. Yet this parameter doesn't work, while all the other similar parameters in the same file do. If I rename bean.fromName to bean.xfromName and adjust the getters and setters it works. Is fromName a special JSF viewParam value?

Note:

xmlns:f="http://xmlns.jcp.org/jsf/core"
Lavandysh
  • 531
  • 1
  • 7
  • 15
  • 2
    You need to specify your JSF implementation and version. Also have you tried launching your project from outside eclipse or whatever IDE you're using? It might be messing up everything. – Aritz Jun 26 '18 at 10:14
  • _"Is fromName a special JSF viewParam value?"_ No it is not. [mcve] please. And try running your application in development mode – Kukeltje Jun 27 '18 at 08:20

1 Answers1

0

Is your <f:viewParam> tag inside some <f:metadata> tags ?

<f:metadata>
    <f:viewParam name="from_name" value="#{bean.fromName}" />
</f:metadata> 
robinvrd
  • 1,760
  • 12
  • 28