• Post Reply Bookmark Topic Watch Topic
  • New Topic

solve URL in jsf  RSS feed

 
Minh Phuc
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two page: index.xhtml in root directory and other page named dot_list.xhtml in f_dot folder. I run project, i see URL as http://localhost:8080/MyApp/ and the home page is index.xhtml. I redirect to dot_list.xhtml by using commandlink <h:commandLink action="dot_list">Next page</h:commandLink>. I recive URL is http://localhost:8080/MyApp/faces/index.xhtml. In my project have do filter on folder f_dot, so i can not do filter with URL as http://localhost:8080/MyApp/faces/index.xhtml. A part in my faces-config:

<navigation-rule>
<navigation-case>
<from-outcome>dot_list</from-outcome>
<to-view-id>/f_dot/dot_list.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
Please help me do filter on this folder.
 
Greg Charles
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi anh Phúc,

I think you're asking the same question I asked awhile back. Check it out here: http://www.coderanch.com/t/523651/JSF/java/URLs-always-one-step-behind

 
Minh Phuc
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg Charles wrote:Hi anh Phúc,

I think you're asking the same question I asked awhile back. Check it out here: http://www.coderanch.com/t/523651/JSF/java/URLs-always-one-step-behind


Bạn biết tiếng Việt hả? Rất vui khi được bạn giúp. Rất cảm ơn, mình đã giải quyết được vấn đề.
 
Greg Charles
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I do speak Vietnamese, but we keep it to English on this forum. I'm glad that link answered your question. I believe that using Seam as the backend to JSF eliminates the problem of the lagging URL, but it's been a couple of years since I used Seam.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!