Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Weird change of URL address string on a POST request
On a Liferay-Faces based portlet, I want to navigate from a .xhtml page to another .xhtml page passing a parameter on the basis of a POST request, that is, don't giving any clue about the parameter I’m passing. In other words, I want to do a page navigation without the URL on the browser address input field changes. To do so I'm using a JSF <h:commandLink> feature, and the page navigation is working as expected. The problem is that the URL address changes when I clic the <h:commandLink> link this way:
http://localhost:8080/web/guest/landing-page --> http://localhost:8080/web/guest/landing-page? p_auth=62vuZpCB&p_p_id=inventory_WAR_inventory&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_inventory_WAR_inventory__facesViewIdRender=%2FWEB-INF%2Fviews%2Fview.xhtml
The page 'WEB-INF/views/view.xhtml' is the one that has to be rendered, but I expected the following behaviour:
http://localhost:8080/web/guest/landing-page --> http://localhost:8080/web/guest/landing-page (that is, without any changes) or
http://localhost:8080/web/guest/landing-page --> http://localhost:8080/web/guest/landing-page/view.xhtml (in the worst case).
I'd really appreciate if someone could explain to me what is causing the URL modifies that way, and how can I procceed to make the URL doesn´t modify.
Thanks in advance.
Context: Liferay 7.4 GA1, JSF 2.2, Liferay Faces 4.2, Liferay Faces Bridge 6.1.
So weird is the question I've posted? Come on! Any comment will be appreciated. Thanks.
Powered by Liferay™