This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

from-view-id with params  RSS feed

Eric F. Martinez R.
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!