• 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

Query string in view id got ignored

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am currently using JSF 1.2 (MyFaces Impl). I have been trying to specify a query string after the view id as follows:



And the main.jsp just dynamically and simply includes a page called "about.jsp". However, I find that MyFaces keeps ignoring everything after ".jsp" so I can never get the query parameter from the main.jsp page. I find that even I specify "/main.ok?page=about", it will still redirect to the main.jsp without any trailing parameters. It seems that it truncates everything after the last index of the dot. I have also tried to create a custom view handler and printed out the view id, the query string always got truncated.

The MyFaces wiki has an example which has a query string after the page url, and it is even a dynamic binding. So I thought it might support query string in the view id: http://wiki.apache.org/myfaces/Custom_Navigation_Handler. However, I tried to specify for example



And MyFaces redirects to a page like /main.jsp?page=#{mybean.jsp

Does anyone know what's wrong with my code? or is it a bug or spec thing? Any help and suggestion will be highly appreciated! I have been stuck in this thing for quite a while.

Thanks a lot!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Hugo",
Please check your private messages.
-Ben
 
Hugo Lam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry I am new. Just changed the display name and will be reflected on the next post. Thanks for the note.
 
reply
    Bookmark Topic Watch Topic
  • New Topic