• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't get working viewParam

 
Denis Sysoev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to create bookmarkable URLs on my project with JSF 2.2. I have read documentation about viewParam`s, and at this point i just trying to get params passed to page by url (viewarticle.xhml?id=123123). I have create simple JSF page like this:

And backing bean:


After calling url server/viewarticle.xhtml?id=123 I got just blank page, I have googling all the morning about working examples and descriptions but still can't get it working, seems like i didn't understand something. What I am doing wrong?
Glassfish 4
NetBeans
Thanks in advance.
 
Denis Sysoev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found where problem was. When I adding <f:metadata> to the page, NetBeans automatically including xmlns:f="http://xmlns.jcp.org/jsf/core" into namespaces, with this namespace its not working. If i change it to the xmlns:f="http://java.sun.com/jsf/core" all working like supposed to be.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!