Solved

JSF h:dataTable

Posted on 2007-11-27
8
1,528 Views
Last Modified: 2013-11-24
The code attached will generate my results in..

A
B
C
D

how can i display it in

A   B    C   D?
<t:dataTable id="data" var="artistCategoryInfo" value="#{searchArtistBean.artistCategoryList}"
preserveDataModel="false" align="center"
width="98%" border="0" cellpadding="2" 
cellspacing="1" rowIndexVar="tableRowIndex" >
 
<h:column>
       <h:commandLink action="#{searchArtistBean.listArtistAction}" 
        actionListener="#{searchArtistBean.listArtistListen}">
       <h:outputText value="#{artistCategoryInfo.name}" />
       </h:commandLink>
       <f:param id="artistCategory" value="#{artistCategoryInfo.name}"/>
</h:column>
                            
</t:dataTable>

Open in new window

0
Comment
Question by:amateur83
  • 3
  • 3
8 Comments
 
LVL 11

Expert Comment

by:Manish
ID: 20365178
0
 
LVL 2

Author Comment

by:amateur83
ID: 20365797
thanx, but I've already read that before....
0
 
LVL 11

Expert Comment

by:Manish
ID: 20371553
So there is example, are you not able do like that?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 2

Author Comment

by:amateur83
ID: 20371716
karanw, if i was able to do so, then i won't be posting the question here....
I am able to display in

A
B
C
D
 
but i need to display it in A B C D..
i tried doing so by adding panel grid but it didnt work.
0
 
LVL 11

Expert Comment

by:Manish
ID: 20371721
store the 4 string values in list. And then display these four values like list[0]  list[1].....
0
 
LVL 2

Author Comment

by:amateur83
ID: 20372585
Thanx karanw, i found the solution.
I used t:dataList instead of t:dataTable. This way, it displays my items jsut the way i want.
Thanx anyway...
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 23058401
PAQed with points refunded (50)

Computer101
EE Admin
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse apache tomcat admin console 52 121
eclipse console opening separately 2 29
SequenceInputStream example 3 19
java imports not found 4 25
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question