i had problem to show the tree in all the rows of a datatable

asked 2009-01-16 12:57:06 +0800

kondaluavula gravatar image kondaluavula

i am using jsf 1.2 version

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@ taglib uri="http://www.zkoss.org/jsf/zul" prefix="z"%>
<h:dataTable id="searchResult" rows="#{searchCatalogue.currentPageVal}" width="100%"
border="1" binding="#{searchCatalogue.searchResultTable}" rowClasses="NGLRowStyle"
value="#{searchCatalogue.resultList}" var="result" columnClasses="firstColumn,secondColumn,thirdColumn" >
<h:outputText value="#{result.serialNo}" />
<h:selectBooleanCheckbox value="#" style="text-align:top;" binding="#{searchCatalogue.htmlSelectBooleanCheckbox}" >
<a4j:support event="onclick" action="#{searchCatalogue.selectedCatalogRecs}"/>

<f:facet name="header">
<h:outputLabel value="#{rb.Title}" />
<h:outputText value="Title: #{result.title}"/>
<h:outputText value="Author: #{result.author}" />
<z:tree apply="org.verus.ngl.web.beans.technicalprocessing.SearchCatalogue" id="holdingsTree" >
<z:treecol label=""/>
<z:treecell label="#{rb.holdings}" forward="onTreeOpen"> </z:treecell>
<a4j:commandLink id="modify" value="#{rb.modify}" />  
<a4j:commandLink id="delete" value="#{rb.delete}" />  
<a4j:commandLink id="copy" value="#{rb.copy}" />  
<a4j:commandLink id="relatedRecords" value="#{rb.relatedRecords}" />



if i print 10 rows in tale can i get each row with tree ?
now i am getting only one row with tree, remaing rows does not get the tree, plz guide me

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-01-20 01:47:13 +0800

robbiecheng gravatar image robbiecheng
1144 2

You shall use TreeModel to render the result.
please refer to http://zkoss.org/smalltalks/zkTreeModel/


link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2009-01-16 12:57:06 +0800

Seen: 189 times

Last updated: Jan 20 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More