aspose file tools*
The moose likes JSF and the fly likes from-view-id with params Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "from-view-id with params" Watch "from-view-id with params" New topic
Author

from-view-id with params

Eric F. Martinez R.
Greenhorn

Joined: Nov 13, 2011
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: from-view-id with params