• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

from-view-id with params

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! I'm new in this forum. I came here looking for the solution to my problem. I've been looking for google and I can't find what I'm looking for.

I have a little homework to do, and I'm right now in the part of the register an user. I'm including the register form with <ui:include />.

Now the problem. I'm trying to do a little modular webpage. So, when I go to the register form, my url looks like this : /projectName/index.xhtml?a=registro, when I get there I include the register form that I have in a file named registro.xhtml


Then, in the index.xhtml I include it like this

and the ReadURLMBean looks like this :

That just return the path to the file I want to include. When I'm in index.xhtml?a=registro, it returns the path to the file registro.xhtml.

When I click the commandButton, when I'm in index.xhtml?a=registro, it sends me again to index.xhtml, so it never validates anything. What I want is stay in index.xhtml?a=registro.

I've been trying something with the faces-config.xml, but only works if I include directly the register form and if I'm in index.xhtml. This is my faces-config.xml

and this is the class RegistroUsuario

For testing the method just returns that string.

I want to specify, if it is possible in faces-config.xml file that if I'm in index.xhtml?a=registro, the navigation-rule keeps redirecting me to index.xhtml?a=registro.

I've tried something like this, but obviously it didn't work :

I hope you can help me. Thanks in advance.
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic