Solved

JSF h:dataTable

Posted on 2007-11-27
8
1,521 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
Comment Utility
0
 
LVL 2

Author Comment

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

Expert Comment

by:Manish
Comment Utility
So there is example, are you not able do like that?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 2

Author Comment

by:amateur83
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (50)

Computer101
EE Admin
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now