-
1. Re: Using a4j:commandLink in rich:dataTable (richfaces 4.2.2)
iabughosh Jul 7, 2012 2:38 AM (in response to sabarinathsss)1 of 1 people found this helpfulHello Selvaraj,
try showing/hiding popup using oncomplete event instead of onclick and onbeforedomupdate.
regards.
-
2. Re: Using a4j:commandLink in rich:dataTable (richfaces 4.2.2)
sabarinathsss Jul 9, 2012 12:23 AM (in response to iabughosh)Hi Ibrahim Abu Ghosh,
Thanks for reply.
Regards.
-
3. Re: Using a4j:commandLink in rich:dataTable (richfaces 4.2.2)
sabarinathsss Jul 9, 2012 6:20 AM (in response to sabarinathsss)Hi
Now I m trying to use oncomplete event instead of onclick and onbeforedomupdate.
I m used a4j:commandLink in two columns of rich:dataTable.Now also the link(a4j:commandLink) in the first row only show the popup.when i m clicking the second row link its not show the popup.After that other links and pagination also not worked.
Page :
<rich:dataTable value="#{SampleBean.dataDetail.dataList}"var="result" rows="15" reRender="SampletableScroller">
<rich:column>
<f:facet name="header">
<h:outputText value="Name" styleClass="columnhead" />
</f:facet>
<a4j:commandLink value="#{result.get('Name')}" onclick="getDetails(#{result.get('Object::Id')},14)">
</a4j:commandLink>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Passed Success Imports" styleClass="columnhead" />
</f:facet>
<a4j:commandLink value="View" oncomplete="#{rich:component('SuccessFileListPanel')}.show()" action="#{ManagedBean.getAgencyImportFileList}" render="Grid">
<a4j:param value="#{result.get('Object::Id')}" assignTo="#{ManagedBean.Id}" />
<a4j:param value="14" assignTo="#{ManagedBean.ownerId}" />
<a4j:param value="Success" assignTo="#{ManagedBean.Status}" />
</a4j:commandLink>
</rich:column>
<f:facet name="footer">
<rich:dataScroller boundaryControls="auto" fastControls="auto" stepControls="auto" id="SampletableScroller"></rich:dataScroller>
</f:facet>
</rich:dataTable>
<a4j:jsFunction id="agencyDetails" name="getDetails" oncomplete="#{rich:component('DetailsPanel')}.show()" action="#{SampleBean.getDetails}" render="DetailsGrid">
<a4j:param name="param1" assignTo="#{SampleBean.Id}"/>
<a4j:param name="param2" assignTo="#{SampleBean.ownerId}"/>
</a4j:jsFunction>
Thanks in Advance.
-
4. Re: Using a4j:commandLink in rich:dataTable (richfaces 4.2.2)
iabughosh Jul 9, 2012 9:37 AM (in response to sabarinathsss)i think you need to put your popup panel inside your rich:column.
-
5. Re: Using a4j:commandLink in rich:dataTable (richfaces 4.2.2)
sivaprasad9394 Jul 11, 2012 12:52 AM (in response to sabarinathsss)<a4j:commandLink value="#{result.get('Name')}" execute="@this" onbeforedomupdate="#{rich:component('richPanel')}.show()"
action="#{sampleManagedBean.getDetails}" render="modelPanelID,datatable id,datascroller id">
Try adding modelpanel out side the form tag and add h:form inside the model panel.
-
6. Re: Using a4j:commandLink in rich:dataTable (richfaces 4.2.2)
sabarinathsss Jul 11, 2012 5:11 AM (in response to sivaprasad9394)Hi
Thanks for reply
Regards
Sabarinath S