• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 3063
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: 3063
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic