Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

solve URL in jsf

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: https://coderanch.com/t/523651/JSF/java/URLs-always-one-step-behind

 
Minh Phuc
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: https://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: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Let's go to the waterfront with this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic