This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm developing simple web project using jsf.
Under this activity I created a search form. The shema of jsf pages is next:
index.xhtmls contains <ui:include> and <h:form> tags. main.xhtml is included by default. <h:form> tag contains <h:commandButton> with parameter <f:param> which switch inclusion on index.xhtml to search.xhtml.
'action' atribute of <h:commandButton> sets to "#searchBean.search" which returns String "toSearch".
There is navigation rule added to faces-config:
When I'm using ip URI, search will work fine, but when I am using DNS URI, search's form 'action' attribute will be set into 'http://<application_name>.<customer_site>/<application_name>/light/index.jsf' in created HTML. (MUST be 'http://<application_name>.<customer_site>/light/index.jsf').
Please, help, what am I do wrong? Why does search form redirect to wrong location?
Joined: Aug 24, 2011
Solution were found:
Change navigation rule description to associate commandButton with fake page and redirects from fake page to correct address.