aspose file tools*
The moose likes JSF and the fly likes IceFaces 1.8 dataTable-sort example gives error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "IceFaces 1.8 dataTable-sort example gives error " Watch "IceFaces 1.8 dataTable-sort example gives error " New topic
Author

IceFaces 1.8 dataTable-sort example gives error

John Smith
Ranch Hand

Joined: Aug 21, 2004
Posts: 48
Hi All:

I need help, please!! Any help or hint is greatly appreciated it!!

In the tutorial from IceFaces 1.8
Data Table Component Tutorials

I am using weblogic 10.3.2, IceFaces 1.8 and Jsf 1.2.
I am using the jars that comes with the IceFaces 1.8 download.

index.jsp:
<html>
<head>
<title>ICEfaces Component Showcase</title>
</head>
<body>
<jsp:forward page="sortableTable.iface" />
</body>
</html>

sortableTable.jspx:
<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component">

<iceutputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>

<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"></meta>
<title>DataTable Component Tutorial</title>
<link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<h2>Sortable dataTable Component</h2>

In this example commandSortHeader components have been added to the
table headers. Clicking on the headers will sort the table data.


<ice:form>
<!--
This is a very basic table comprising four columns. Each
row represents an inventory item. Each column represents a
inventory item property. commandSortHeader components have been
added ot the table headers.

The sortAscending and sortColumn attributes are set when a command
sortColumnName header is activated. The sortColumn and sortAscending
data can then be sortColumnName by a sortColumnName algorithm if a
change is detected.
-->

<ice:dataTable
id="dataSortData"
sortColumn="#{inventoryList.sortColumnName}"
sortAscending="#{inventoryList.ascending}"
value="#{inventoryList.carInventory}"
var="item">

<!-- Stock number -->
<ice:column>
<f:facet name="header">
<ice:commandSortHeader
columnName="#{inventoryList.stockColumnName}"
arrow="true" >
<iceutputText value="#{inventoryList.stockColumnName}"/>
</ice:commandSortHeader>
</f:facet>
<iceutputText value="#{item.stock}"/>
</ice:column>

<!-- Model number -->
<ice:column>
<f:facet name="header">
<ice:commandSortHeader
columnName="#{inventoryList.modelColumnName}"
arrow="true" >
<iceutputText value="#{inventoryList.modelColumnName}"/>
</ice:commandSortHeader>
</f:facet>
<iceutputText value="#{item.model}"/>
</ice:column>

<!-- Description -->
<ice:column>
<f:facet name="header">
<ice:commandSortHeader
columnName="#{inventoryList.descriptionColumnName} "
arrow="true" >
<iceutputText value="#{inventoryList.descriptionColumnName}"/>
</ice:commandSortHeader>
</f:facet>
<iceutputText value="#{item.description}"/>
</ice:column>

<!-- Odometer reading -->
<ice:column>
<f:facet name="header">
<ice:commandSortHeader
columnName="#{inventoryList.odometerColumnName}"
arrow="true" >
<iceutputText value="#{inventoryList.odometerColumnName}"/>
</ice:commandSortHeader>
</f:facet>
<iceutputText value="#{item.odometer}"/>
</ice:column>

<!-- Price number -->
<ice:column>
<f:facet name="header">
<ice:commandSortHeader
columnName="#{inventoryList.priceColumnName}"
arrow="true" >
<iceutputText value="#{inventoryList.priceColumnName}"/>
</ice:commandSortHeader>
</f:facet>
<iceutputText value="#{item.price}"/>
</ice:column>

</ice:dataTable>

</ice:form>
</body>
</html>
</f:view>


Error 500--Internal Server Error
java.lang.Exception: javax.faces.FacesException: Can't parse stream for /index.jsp The prefix "jsp" for element "jsp:forward" is not bound.
at com.icesoft.faces.context.View.servePage(View.java :152)
at com.icesoft.faces.webapp.http.core.MultiViewServer .service(MultiViewServer.java:67)
at com.icesoft.faces.webapp.http.common.ServerProxy.s ervice(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionB oundServlet$4.service(MainSessionBoundServlet.java :149)
at com.icesoft.faces.webapp.http.common.standard.Path DispatcherServer.service(PathDispatcherServer.java :24)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptin gServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.SessionDispa tcher.service(SessionDispatcher.java:53)
at com.icesoft.faces.webapp.http.servlet.PathDispatch er.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet. service(MainServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFi lter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3592)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread. java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java :173)
Caused by: javax.faces.FacesException: Can't parse stream for /index.jsp The prefix "jsp" for element "jsp:forward" is not bound.
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:445)
at com.icesoft.faces.application.D2DViewHandler.rende rView(D2DViewHandler.java:159)
at com.sun.faces.lifecycle.RenderResponsePhase.execut e(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 00)
at com.sun.faces.lifecycle.LifecycleImpl.render(Lifec ycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExe cutor.apply(JsfLifecycleExecutor.java:19)
at com.icesoft.faces.context.View$2$1.respond(View.ja va:48)
at com.icesoft.faces.webapp.http.servlet.ServletReque stResponse.respondWith(ServletRequestResponse.java :201)
at com.icesoft.faces.context.View$2.serve(View.java:7 7)
at com.icesoft.faces.context.View.servePage(View.java :149)
... 25 more
Caused by: org.xml.sax.SAXParseException: The prefix "jsp" for element "jsp:forward" is not bound.
at com.sun.org.apache.xerces.internal.parsers.Abstrac tSAXParser.parse(AbstractSAXParser.java:1231)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserI mpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogic XMLReader.java:133)
at weblogic.xml.jaxp.RegistryXMLReader.parse(Registry XMLReader.java:173)
at org.apache.commons.digester.Digester.parse(Digeste r.java:1785)
at com.icesoft.faces.webapp.parser.Parser.parse(Parse r.java:130)
at com.icesoft.faces.application.D2DViewHandler.rende rResponse(D2DViewHandler.java:439)
... 34 more
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IceFaces 1.8 dataTable-sort example gives error