- This topic has 1 reply, 2 voices, and was last updated 15 years, 7 months ago by Loyal Water.
-
AuthorPosts
-
bingqiu2008MemberI am a newbie of iceface. I know this should be a easy problem, but somehow I can’t find the solution. I am trying to display a two-row table using ice:dataTable. (Originally I tried to show something dynamic, but finally I gave up.) , but the result of the codes only displays the header of the table.
Please see the codes as below:
___________________________
<?xml version=”1.0″ encoding=”ISO-8859-1″ ?>
<jsp:root version=”1.2″
xmlns:jsp=”http://java.sun.com/JSP/Page”
xmlns:f=”http://java.sun.com/jsf/core”
xmlns:h=”http://java.sun.com/jsf/html”
xmlns:ice=”http://www.icesoft.com/icefaces/component”>
<jsp:directive.page contentType=”text/html;charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″ />
<f:view>
<ice:outputDeclaration
doctypeRoot=”html”
doctypePublic=”-//W3C//DTD HTML 4.01 Transitional//EN”
doctypeSystem=”http://www.w3.org/TR/html4/loose.dtd” />
<html>
<head>
<title>ICEfaces, Ajax for Java EE</title>
<link rel=”stylesheet” type=”text/css” href=”./xmlhttp/css/xp/xp.css”/>
</head>
<body><ice:outputText value=”Thank you for using ICEfaces.” />
<ice:form>
<ice:dataTable id=”strange” border=”1″ value=”#{sessionBean.productlineList}” var=”productline” rows=”2″>
<ice:column>
<f:facet name=”header”>
<ice:outputText id=”col1header” value=”productline”></ice:outputText>
</f:facet>
<ice:outputText id=”name” value=”row1″></ice:outputText>
</ice:column><ice:column>
<f:facet name=”header”>
<ice:outputText id=”col2header” value=”textdescription”></ice:outputText>
</f:facet>
<ice:outputText id=”text” value=”row1″></ice:outputText>
</ice:column></ice:dataTable>
</ice:form>
</body>
</html>
</f:view>
</jsp:root>
___________________________Please help me with it. It really drives me crazy. I would really really appreciate any suggestions or advices.
Loyal WaterMemberbingqiu2008,
I would suggest you cross post this query on the ICEFaces forum as well. -
AuthorPosts