Solved

JSF h:dataTable

Posted on 2007-11-27
8
1,530 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
jboss wildfly 10.1 10 436
Convert from a json string array to a Java object 3 64
Java: The Public Class Main 4 45
junit example issue 2 27
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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

733 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