And this parameter doesn't work. I'm absolutely convinced t" /> And this parameter doesn't work. I'm absolutely convinced t" /> And this parameter doesn't work. I'm absolutely convinced t"/>

viewParam with parametername fromName doesn't work

46 Views Asked by At

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"
1

There are 1 best solutions below

1
robinvrd On BEST ANSWER

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

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