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!