Jsf not updating url

10 Aug

The actual Listener component is a JAR file containing two classes: Once this is done and a proper configuration is available, the component can be tested by just adding one of the configured parameters at the end of the URL: Assuming that the configuration is correct this should invoke the specified method on the backing bean.

This is something the component doesn’t deal with at the moment which means it has to be done by hand. we are using it only for navigation purposes (according to requirement no. Everything else is still being done by JSF because it’s just not interesting to see other things within the URL.

Those values that can be passed for such that property listed as follow: Although the HTML form tag has method and action attribute, h:form does not, because you can save state in the client – an option that’s implemented as a hidden field – and posting forms with the GET is disallowed.

The contents of that hidden field can be quite large and may overrun the buffer for request parameters, so all JSF form submissions are implemented with the POST method.

In this article I will introduce my solution that is working well as a pragmatical real-world solution. As a matter of fact, in the Java Server Faces (JSF) framework communication between client and server is always “automatically” done via HTTP POST, the so-called “post-back” mechanism.

Although for some reasons this is obviously the right decision on how to implement post-backs, this solution has one major downside, although not really a technical one: As parameters are not being passed within the URL, usage of the URL– for bookmarking, posting deeplinks to other pages and the like– is impossible.