0

I'm working with Netbeans 8.0 and Glassfish 4. I'm using this piece of code in a JSF page:

<f:metadata>
    <f:viewParam id="id" name="id" value="#{profileMB.idProfile}"  />
    <f:viewAction action="#{profileMB.loadProfile()}"/>
</f:metadata>

It's working When I declare with the old namespace:

xmlns:f="http://java.sun.com/jsf/core"

but it's not working with the new one:

xmlns:f="http://xmlns.jcp.org/jsf/core"

Any idea why?

Antoine Fontaine
  • 792
  • 7
  • 16

1 Answers1

0

I've just found the answer...
It's a bug in the version of Mojarra used in Glassfish 4

f:viewParam doesn't pass required parameter when new xmlns.jcp.org namespace is used

Community
  • 1
  • 1
Antoine Fontaine
  • 792
  • 7
  • 16