cancel
Showing results for 
Search instead for 
Did you mean: 

JSP pages for alfresco

mannou
Champ in-the-making
Champ in-the-making
hello,

I can't see how the alfresco's process to execute the following lines :



:arrow:
<h:selectOneMenu value="#{NewActionWizard.action}"
onchange="javascript:itemSelected(this);">
<f:selectItems value="#{NewActionWizard.actions}" />
</h:selectOneMenu>


How alfresco generate this list from the class NewActionWizard.java :
protected List<SelectItem> actions ?


Thanks.
1 REPLY 1

kevinr
Star Contributor
Star Contributor
The Alfresco web-client UI uses a technology called Java Server Faces - it is a standard on building rich component based web UI in Java. I suggest you do some reading up on JSF and look through some examples on how the components work. In the code you mention for example, the "NewActionWizard.actions" is converted to a Java method call of getActions() on the NewActionWizard bean - the bean class is looked up by the JSF framework in faces-config-beans.xml and managed by the JSF lifecycle.

Hope this helps,

Kevin