facebook

Having problem with ice:dataTable

  1. MyEclipse Archived
  2.  > 
  3. ICEfaces Integration
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #298382 Reply

    bingqiu2008
    Member

    I 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&#8221;
    xmlns:f=”http://java.sun.com/jsf/core&#8221;
    xmlns:h=”http://java.sun.com/jsf/html&#8221;
    xmlns:ice=”http://www.icesoft.com/icefaces/component”&gt;
    <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&#8221; />
    <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.

    #298421 Reply

    Loyal Water
    Member

    bingqiu2008,
    I would suggest you cross post this query on the ICEFaces forum as well.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Having problem with ice:dataTable

You must be logged in to post in the forum log in