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