Posts

Showing posts from July, 2011

ComponentSystemEvent in JSF 2

ComponentSystemEvent is very useful.

example:

<h:commandButton value="Generate Reports" 
action="#{customValuesSrv.generateWithSelectedLists}">
<f:event type="preRenderComponent" 
listener="#{customValuesSrv.beforeRenderGenerateReportsButton}" />
</h:commandButton>

public void beforeRenderGenerateReportsButton(ComponentSystemEvent event) {
customeValues=customFacade.findCustomValue(getSelectedLists());
}
ComponentSystemEvent