Hi,
First thing is you have to take currentnode NodeRef on click of that action, that you can pass as a parameter form action that you have configured in web-client-config-custom.xml .
<action id="template-form">
<label>Extract Properties</label>
<show-link>true</show-link>
<image>/images/icons/invite.gif</image>
<action-listener>
#{ExtractPropBean.setupTemplateFormAction}
</action-listener>
<action>#{ExtractPropBean.setupTemplateFormAction}</action>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
Here ExtractPropBean is a Bean in which you have to defined setupTemplateFormAction method.
public void setupTemplateFormAction (ActionEvent event)
{
UIActionLink link = (UIActionLink) event.getComponent();
Map<String, String> params = link.getParameterMap();
String id = params.get("id");
NodeRef nodeRef = new NodeRef(Repository.getStoreRef(), id);
}
Once you get that NodeRef , using nodeService you can get all properties of that node , that you can set in java bean properties and populate it on jsp.
Best Regards,
Hetal Patel