Message Boards
Reload part of a portlet
Juan Pereyra, modified 3 Years ago.
Reload part of a portlet
New Member Posts: 8 Join Date: 7/13/20 Recent Posts
Hi everyone.I'm triying to do a portlet with 2 parts.First one have buttons, this represent status of users. The second one list the filter results from the first button.I'm working with ActionRenderCommands. This is the call in the JSP:
So, I need a form for any one button, to active the correct ActionCommand. Or can I add the correct param in any way?Thanks in advance!
<[b]portlet[/b][b]:actionURL [/b]name="/user/filter" var="reloadUsers">
<[b]liferay-portlet[/b][b]:param [/b]name="filter" value="active"/>
<!--[b]portlet[/b][b]:actionURL[/b]-->
That allway send 'active'. I have all my buttons inside a form like this:<[b]aui[/b][b]:form [/b]action="${reloadUsers}" method="post">
And the buttons looks like this:<div>
<[b]aui[/b][b]:input [/b]name="Inactive" type="submit" cssClass="box active">
<[b]liferay-portlet[/b][b]:param [/b]name="driveToInactive" value="inactive"/>
<!--[b]aui[/b][b]:input[/b]-->
</div>
But this give me an error. So, I need a form for any one button, to active the correct ActionCommand. Or can I add the correct param in any way?Thanks in advance!