cancel
Showing results for 
Search instead for 
Did you mean: 

How to join action in .xml and an actionLink in .jsp

asianirish
Champ in-the-making
Champ in-the-making
Could you please describe how to directly join <action>s in web-client-config*.xml with a certain id and a link generated by actionLink?
1 REPLY 1

rliu
Champ in-the-making
Champ in-the-making
If what you're looking to add a link to trigger an action, here's an example:

<a:actionLink id="abc-123" value="<link text>" actionListener="#{BrowseBean.setupSpaceAction}" action="dialog:showSpaceDetails">
   <f:param name="id" value="#{r.id}"/>
</a:actionLink>

This block of code refers to the action entry in web-client-config-actions.xml.

<!– View space details –>
<action id="details_space">
   <label-id>view_details</label-id>
   <image>/images/icons/View_details.gif</image>
   <action-listener>#{BrowseBean.setupSpaceAction}</action-listener>
   <action>dialog:showSpaceDetails</action>
   <params>
      <param name="id">#{actionContext.id}</param>
   </params>
</action>

Hope this helps. –Rich