cancel
Showing results for 
Search instead for 
Did you mean: 

Form POST to template?

systec
Champ in-the-making
Champ in-the-making
Hi

Does anyone know if it's possible to post a form in such a way that the results are displayed using a 'page' template? I'm currently posting a form to a webscript, which in turns call a repository script and processes the results. The results are displayed in the webscripts freemarker template. I'd like to make use of the 'page' templating framework instead.

In other words i'd like to have one page post a form and another page display the results; simple old style MVC with no AJAX. I'd like both pages to benefit from the existing freemarker page templating framework in Share. Is this possible within the webscript framework?

Thanks
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
You could, but it's not the recommended pattern. What you have done already is generally the pattern we use. I believe there is examples of doing this within the Alfresco Mobile project - it might be worth taking a look at the source for that if you are still keen.

Cheers,

Kev

systec
Champ in-the-making
Champ in-the-making
Thanks Kev.

The users would like the ability to click the browser back button so as not to complete the entire form again; simply tweak one or two parameters and re-execute. I will look at other alternatives using dhtml instead.