I need a way to have a URL that will cause a JSF action to take place. Anyone know of a way? (For an example, lets say I need to put the link in an email.)

All I find are "hackerish" javascript solutions to this issue.

Would it be possible to create a version of the commandLink that didn't need a form around it and didn't use javascript? Obviously it couldn't include any information from form fields but that is okay with me.

Or would it be possible to create a servelet filter that converts a normal request to a request JSF wants? Eg. We have a form with a field called 'name' and a button called 'sayHi'. With the filter I could send a person to a url like http://test.com/page-form-is-on.html?link=sayHi&name=David The filter would take the request and convert convert the params into what JSF wants. I don't know how to do this... except maybe make a fake request in the fitler to the JSF for the form to get jsf_state_64 and jsf_tree_64 values and then send the request on with the request parameters rewritten.

Suggestions? Anyone know of a good solution? (...other than mine that would take me 3 weeks, 4 days, and 7382 Red Bulls...)

Reply via email to