• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic