cancel
Showing results for 
Search instead for 
Did you mean: 

modifying jsp files

tiofelix
Champ in-the-making
Champ in-the-making
I am trying to learn how alfresco works(jsf pages) and then i want to add some new classes. At the moment i have a problem because i can find a class, but i can not find the method.. i.e:
<f:selectItems value="#{WizardManager.bean.objectTypes}" />
I found the class WizardManager but i don't know what means bean.objectTypes, because there isn't no method with this name. Someone to give me some light?? Thanks.
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Hello,

I suggest you read up on some JSF tutorials on the web (or books) as Alfresco web-client makes heavy use of the JSF framework and techniques.

The "#{WizardManager.bean.objectTypes}" statement can be deconstructed as follows:

#{ - specifies the start of a JSF statement
WizardManager - the name of a JSF Managed Bean, which can generally be found in the faces-config-beans.xml config file.
bean - resolves to getBean() on the WizardManager bean instance
objectTypes - resolves to getObjectTypes() on the 'bean' object instance
} - specifies the end of the JSF statement

Basically JSF uses standard Bean notation to infer get() and set() calls to properties on a POJO bean class.

Thanks,

Kevin