Message Boards

Reload part of a portlet

Juan Pereyra, modified 4 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:
<[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:
&lt;[b]aui[/b][b]:form [/b]action="${reloadUsers}" method="post"&gt;
And the buttons looks like this:
<div>
   &lt;[b]aui[/b][b]:input [/b]name="Inactive" type="submit" cssClass="box active"&gt;
      &lt;[b]liferay-portlet[/b][b]:param [/b]name="driveToInactive" value="inactive"/&gt;
   <!--[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!