Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Popuppanel+datatable in richface(JSF)

 
Deepa.K Rao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic