rich:listShuttle is throwing an error
shivaji.byrapaneni May 21, 2009 1:05 AMHi all,
I just tried out rich:listShuttle component
and here is my JSP
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<html>
<head>
<title>RichFaces selector demo</title>
<style>
.pic {
margin-bottom: -4px;
margin-right: 2px;
}
</style>
</head>
<body>
<f:view>
<a4j:form>
<rich:toolBar id="toolBar" itemSeparator="line" height="28px">
<c:forEach items="#{toolBar.items}" var="item">
<h:panelGroup>
<h:graphicImage value="#item.iconURI}" styleClass="pic" />
<h:outputLink value="#"
style="color:#{a4jSkin.generalTextColor}; text-decoration:none;">
<h:outputText value="#{item.label}" />
</h:outputLink>
</h:panelGroup>
</c:forEach>
</rich:toolBar>
<rich:spacer height="20" />
<rich:listShuttle sourceValue="#{toolBar.freeItems}"
targetValue="#{toolBar.items}" var="items" listHeight="300"
listWidth="300" sourceCaptionLabel="Available Items"
targetCaptionLabel="Currently Active Items"
converter="listShuttleconverter">
<rich:column width="18">
<h:graphicImage value="#{items.iconURI}"></h:graphicImage>
</rich:column>
<rich:column>
<h:outputText value="#{items.label}"></h:outputText>
</rich:column>
<a4j:support event="onlistchanged" reRender="toolBar" />
<a4j:support event="onorderchanged" reRender="toolBar" />
</rich:listShuttle>
</a4j:form>
</f:view>
</body>
</html>
when i tried to run teh page im gett8iing this error
org.apache.jasper.JasperException: /approver.jsp(34,2) Attribute listHeight invalid for tag listShuttle according to TLD org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2415) org.apache.jasper.compiler.Node$Root.accept(Node.java:495) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359) org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1736) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184) org.apache.jasper.compiler.Compiler.compile(Compiler.java:333) org.apache.jasper.compiler.Compiler.compile(Compiler.java:313) org.apache.jasper.compiler.Compiler.compile(Compiler.java:300) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140) org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517) filters.test.TestFilter.doFilter(TestFilter.java:23) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
pleas help me