-
1. Re: reRender in <ui:include How To Do
lvdberg Sep 16, 2010 8:27 AM (in response to leod38)Hi,
Maybe I am missing something, but I think it is really possible to do what you want.
First of all you should hide the second page if there is no result and secondly it should be made visible when there is a result.
Try the following:
<a4j:outputPanel id="secondPanel"> <s:div rendered="#{not empty ProductSelectionBean.productSelectionCollection}"> <rich:dataTable styleClass="newProductProductSelection" value="#{ProductSelectionBean.productSelectionCollection}" id="productsearch" var="productsearch" rows="15"> <rich:column id="select" styleClass="w20"> <f:facet name="header"> <h:outputText value="SELECT" /> ... </s:div> </a4j:outputPanel>
and change the reRender attribute of the button to
reRender="secondPanel"
This should work.
Leo
P.S. This is not really a Seam question, but can be better asked on the RichFaces forum.
-
2. Re: reRender in <ui:include How To Do
leod38 Sep 17, 2010 2:29 AM (in response to leod38)Thanks , I understand what to you say
But i really want to include page because if i do that , the xhtml page make 2000 line
I want to create module panel and include for each page the good panel i want . -
3. Re: reRender in <ui:include How To Do
amitev Sep 17, 2010 3:17 AM (in response to leod38)Use a4j:include for this.
-
4. Re: reRender in <ui:include How To Do
lvdberg Sep 17, 2010 5:48 AM (in response to leod38)Hi,
The s:div tag also ha a rendered attribute, so content will not be included if the condition you put in the rendered attribute is not met.
Leo
-
5. Re: reRender in <ui:include How To Do
leod38 Sep 17, 2010 6:09 AM (in response to leod38)I speak about reRender and not about rendered
I want to reload a form from include1 into include2
-
6. Re: reRender in <ui:include How To Do
lvdberg Sep 17, 2010 6:24 AM (in response to leod38)Hi,
The thing I understand is that you want to dynamically reRender a part of your page which is in the included panel productselection.xhtml. If you expect a huge result, you should paginate your response and in this way limit the result to a maximum number of rows, or use a dynamic (paged) scrolling table. Both components are in the Rich-libraries. To create a scrollable resultset Seam has a great Query component which you should extend and feed with the Criteria you enter in your search panel.
Leo
-
7. Re: reRender in <ui:include How To Do
leod38 Sep 17, 2010 8:52 AM (in response to leod38)I'm sorry , my English is so bad !
I try to explain better
I have a main page with
include1 : productsearch
and include2 : productselectionwhen user complete search the commandbutton reRender productselection tab
(that is what i want)actually productsearch and productselection are in the same page .
now i want to cut in three par : main , productselection and productsearch -
8. Re: reRender in <ui:include How To Do
lvdberg Sep 17, 2010 8:56 AM (in response to leod38)Hi,
The solutions provided by Adrian and myself should be sufficient to solve your problem.
Leo