Link to home
Start Free TrialLog in
Avatar of amateur83
amateur83

asked on

JSF h:dataTable

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

Avatar of Manish
Manish
Flag of India image

Avatar of amateur83
amateur83

ASKER

thanx, but I've already read that before....
So there is example, are you not able do like that?
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.
store the 4 string values in list. And then display these four values like list[0]  list[1].....
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...
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial