• 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
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

from-view-id with params

 
Greenhorn
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

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic