It's not a secret anymore!
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Popuppanel+datatable in richface(JSF)" Watch "Popuppanel+datatable in richface(JSF)" New topic

Popuppanel+datatable in richface(JSF)

Deepa.K Rao

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}" />
<a4j:commandLink styleClass="no-decor" render="codetable"
value="#{cdashItr.codeList.codeName}" immediate="true"
action="#{cdiscService.retrieveCodeList}" execute="@this"
<f:param name="codeListId"
value="#{cdashItr.codeList.idCodeList}" />

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

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

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Popuppanel+datatable in richface(JSF)
jQuery in Action, 3rd edition