File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Popuppanel+datatable in richface(JSF) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Popuppanel+datatable in richface(JSF)" Watch "Popuppanel+datatable in richface(JSF)" New topic
Author

Popuppanel+datatable in richface(JSF)

Deepa.K Rao
Greenhorn

Joined: Nov 13, 2011
Posts: 1
Hi All

I am using richfaces(JSf) and spring.
I have one parent page in that I have datatable.One of the column in the data table contains a4j:CommandaLink.By clicking, the that Popuppanel will open and in that popuppanel contains datatable with information. Here everything works fine.But,The datatable's rows and column inside popuppanel(i,e only rows and column not the information inside the datatable) will display/remains in the parent page like a ladder.I tried many ways to resolve this.

I am in a critical situation,Anyone helps me out in this would be greate helpful for me.
Any extra information needed,Please let me know.

My code is below:
column of the datatable which is in the parent page through this commandlink the popuppanel will gets cal.
<rich:column style="white-space:nowrap">
<f:facet name="header">
<hutputText value="#{msg.codelist}" />
</f:facet>
<a4j:commandLink styleClass="no-decor" render="codetable"
value="#{cdashItr.codeList.codeName}" immediate="true"
action="#{cdiscService.retrieveCodeList}" execute="@this"
oncomplete="#{rich:component('popup')}.show()">
<f:param name="codeListId"
value="#{cdashItr.codeList.idCodeList}" />
</a4j:commandLink>
</rich:column>


PopupPanel-------------->
<rich:popupPanel overlapEmbedObjects="true"
rendered="#{fn:length(cdiscService.codeListOptionList)>0}"
onmaskclick="#{rich:component('popup')}.hide();" id="popup"
modal="true" autosized="true" resizeable="false">
<f:facet name="header">
<hutputText value="#{msg.codevalue}" />
</f:facet>
<f:facet name="controls">
<hutputLink value="#"
onclick="#{rich:component('popup')}.hide(); return false;">
X
</hutputLink>
</f:facet>

<rich:dataTable id="codetable" var="code"
rendered="#{fn:length(cdiscService.codeListOptionList)>0}"
rowClasses="even-row,odd-row" styleClass="smallDataTable"
value="#{cdiscService.codeListOptionList}" rows="10" width="100%">
<rich:column>
<f:facet name="header">
<hutputText value="#{msg.code}" />
</f:facet>
<hutputText value="#{code.code}" />
</rich:column>

</rich:dataTable>
</rich:popupPanel>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

If you are expecting to pop open a new window (please don't!), this isn't going to work. You'd have to use a traditional commandLink with a "target" window definition.

There are at least 2 ways to expand a detail view in RichFaces on the same page. One is the expanding panel, the other is a dialog.

In both cases, there's a trick involved, however. The actual formatting and value realization is done when the View is initially rendered, even though the details are invisible at that time. So if you update data, you have to reRender the panel or dialog in order to get the current values.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Popuppanel+datatable in richface(JSF)