This content has been marked as final.
Show 1 reply
-
1. Re: Object Required? COnversation related?
allforjava.allforjava.aol.in Jan 14, 2010 4:05 PM (in response to allforjava.allforjava.aol.in)Ahhaaa! Missed h:form tag. For following snippet the ActionListener is invoked. However, how can I fetch the entity which is responsible for ActionEvent. Can I get it value/object/entity than need to be updated from ActionEvent object 'event'? How to do it?
<h:form> <rich:dataTable id="worksList" var="_works" value="#{worksList.resultList}" rendered="#{not empty worksList.resultList}"> <rich:column> <f:facet name="header"> <ui:include src="/layout/sort.xhtml"> <ui:param name="entityList" value="#{worksList}"/> <ui:param name="propertyLabel" value="Checklists"/> <ui:param name="propertyPath" value="works.checklists.id"/> </ui:include> </f:facet> <h:selectManyCheckbox id="idMC_sheets"> <s:selectItems value="#{_works.checklists.sheets}" var="sheet" itemValue="#{sheet}" label="#{sheet.id}"/> <s:convertEntity/> </h:selectManyCheckbox> <a4j:support event="onclick" attachTo="idMC_sheets" actionListener="#{sheetsHome.toggleSheets}"/> </rich:column> </rich:dataTable> </h:form>