onclickevent on the JSF component. The dynamic link in JSF is more difficult to accomplish since binding the
A SolutionI have created a project that has three examples that demonstrate the different types of JSF links including the dynamic link. The last example includes
<f:param />elements that are appended to the dynamic URL that is generated.
The dynamic example still uses the
onclickevent, but the JSF action performs a redirect of the newly opened window. Additionally, and of the parameters that are added to the JSF component are converted to query parameters and appended to the redirect URL.
The Apache Maven project created with NetBeans is located on BitBucket here: jsf-link-examples
The project was tested on GlassFish 4 using Mojarra JSF 2.2, but the technique should work on other application servers and JSF 2.x versions.