How to reset a portlet parameter on a button click?

Posted by aditibhat on Stack Overflow See other posts from Stack Overflow or by aditibhat
Published on 2010-03-10T06:17:25Z Indexed on 2010/06/01 18:03 UTC
Read the original article Hit count: 136

Filed under:
|
|

I have a Liferay portlet param "cmd" in my JSP page, which is initialized to a value "update". I need this value to be get changed to "delete", when a user clicks on the delete button of the form. How I can go about it?

<liferay-portlet:actionURL varImpl="edit_survey_form_action">   
<portlet:param name="cmd" value="update" />

<input class="optsurvey-submit" type="submit" name="submitButton" value="Delete" onclick="??????"/>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jsp