-
1. Basic question about rich:dataGrid
boy18nj Mar 18, 2011 9:35 AM (in response to balteo)Sure you can do it if you are using multiple rich:panel's inside rich:dataGrid, then you can add a one panel with hard coded values instead of using var.
Let me know if it makes sense.
-
2. Basic question about rich:dataGrid
balteo Mar 18, 2011 9:42 AM (in response to boy18nj)Hello Aman,
Thanks. Unfortunately it does not work.
Here is the code:
<rich:dataGrid value="#{galerieView.sculptures}" var="sculpture" columns="3" styleClass="datagrid-galerie">
<div>
<p>
<pretty:link mappingId="sculptureAction" styleClass="miniature-link">
<f:param value="#{view.locale.language}"/>
<f:param value="#{jbm:normaliserURL(sculpture.sculpturei18nMap[view.locale.language].titre)}" />
<f:param value="#{sculpture.sculptureID}" />
<h:graphicImage value="#{initParam['com.jeanbaptistemartin.static.url']}/#{sculpture.photoMiniature}" styleClass="miniature-image" alt="#{sculpture.sculpturei18nMap[view.locale.language].titre}, #{sculpture.sculpturei18nMap[view.locale.language].matiere}, #{jbm:renvoyerAnnee(sculpture.annee)}."/>
</pretty:link>
</p>
<p>
<pretty:link mappingId="sculptureAction" styleClass="miniature-link-text">
<f:param value="#{view.locale.language}"/>
<f:param value="#{jbm:normaliserURL(sculpture.sculpturei18nMap[view.locale.language].titre)}" />
<f:param value="#{sculpture.sculptureID}" />
<h:outputText value="#{sculpture.sculpturei18nMap[view.locale.language].titre}, " />
<h:outputText value="#{sculpture.sculpturei18nMap[view.locale.language].matiere}" />
</pretty:link>
</p>
</div>
<rich:panel>
toto
</rich:panel>
</rich:dataGrid>
The <rich:panel> is outputted as many times as the number of elements in the "value" attribute...
Any other idea?
J.
-
3. Basic question about rich:dataGrid
ilya_shaikovsky Mar 18, 2011 9:43 AM (in response to balteo)Just craete new list which will be used as your grid value which will consist of your original list and one additional item. It will be transparet for your other code related to that original list and in the same time will allow you to draw one more fake panel.
if need to use different markup at all for that last cell use conditional rendering and use iterationVar attribute for condition definition. e.g. checking that it's last cell is:
...
iterationVar="iter"
...
rendered="#{iter.last}"
-
4. Basic question about rich:dataGrid
boy18nj Mar 18, 2011 9:45 AM (in response to ilya_shaikovsky)that's right...
-
5. Basic question about rich:dataGrid
balteo Mar 18, 2011 10:32 AM (in response to boy18nj)Thanks a lot Ilya. It works!!
Thanks to you too Aman.
J.