?
Solved

JSF h:dataTable

Posted on 2007-11-27
8
Medium Priority
?
1,533 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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