You could set actionURL on your component in the .vm file using JavaSrcipt.
Eg:
1<a href="" onclick="submitURL()" id="id">Search</a>
Here, the portlet containing the definition of submitURL() must be loaded before this statement as shown below:
1
2 $velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
3 #set($locRenderedPortletContent = $theme.runtime("yourSearch_WAR_portlet", "", $velocityPortletPreferences.toString()))
4 $locRenderedPortletContent
5 $velocityPortletPreferences.reset()
6 #end
The code in the portlet to set the URL could be as mentioned below:
1
2<portlet:renderURL name="searchURL" var="searchURL" >
3 <portlet:param name="action" value="xyz" />
4</portlet:renderURL>
5
6
7<script type="text/javascript">
8function submitURL(){
9 document.getElementById("id").href='<%=searchURL%>';
10 }
11</script>
Hope this helps.
BR
Please sign in to flag this as inappropriate.