Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JSF h:dataTable

Posted on 2007-11-27
8
Medium Priority
?
1,535 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
Independent Software Vendors: 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.
Suggested Courses

604 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