This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

dataTable with dynamic number of rows and columns

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to create a dataTable with variable number of columns, and it would also have variable number of rows.

-----------------------------------
| Yields |
-----------------------------------
TrancID | 14 | 15 | 16 | 17 | 18 |
-----------------------------------
T1 | P1 | P2 | P3 | P4 | P5 |
-----------------------------------
T2 | p1 | p2 | p3 | p4 | p5 |
-----------------------------------

I have TrancID in a list and i iterate it using the datatable iterator. I iterate yields using seam:repeat iterator.

dataTable code in xhtml file:
<rich:dataTable id="TranchvsYield" var="deal" value="#{pricingResultTab1.tranches}">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Tranche"></h:outputText>
<ui:repeat value="#{pricingResultTab1.yields}" var="fan">
<rich:column style="text-align:center">
<h:outputText value="#{fan}" />
</rich:column>
</ui:repeat>
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:columnGroup>
<rich:column >
<h:outputText value="#{deal}" id="trancheId1"></h:outputText>
<ui:repeat value="#{pricingResultTab1.prices}" var="task">
<rich:column style="text-align:center">
<h:outputText value="#{task}" />
</rich:column>
</ui:repeat>
</rich:column>
</rich:columnGroup>
</rich:dataTable>

Here PricingResultTab1 is the bcking entity beans. tranches and yields are lists having T1, T2... and 14, 15, 16... respectively.
The number of rows and columns works fine , but i don't know who to get the prices right, ..p1, p2, p3..

As from the code prices in each row would be same as in first row..

Help needed..

Thanks in advance.
 
Tejram Meena
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone help me..

Thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tejram,

Did you find a way to do this? I have a way that might work for you.

Earnie!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Earnest ,
I have the same problem and what I'm doing now is to use the html TABLE and a4j repeat



What about your solution?

Thanks for your help.

 
Paterne Gaye-Guingnido
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have this problem

With open office 2.4

when i store a generate odt file with this command
i have this bug :

com.sun.star.task.ErrorCodeIOException:
at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:275)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:141)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:377)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:346)
at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:106)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:860)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:809)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:159)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:141)
at $Proxy116.storeAsURL(Unknown Source)


Some one can help me
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic