Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Can't get working viewParam

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic