nesting HTML in h:dataTable JSF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ran

    #1

    nesting HTML in h:dataTable JSF

    hi all,
    I have been trying to use HTML table inside a h:dataTable (JSF component)
    and without any luck.
    anyone could give some hints on nesting standard HTML with JSF component ?

    OR

    How to make a horizontal dataTable without customizing JSF component ?
    (column names on the left, associated values on the right)

    Thanks
    ran


  • Igor Kolomiyets

    #2
    Re: nesting HTML in h:dataTable JSF

    Did you try to wrap your html code in dataTable column into <f:verbatim>?

    Ran ÐÉÛÅÔ:[color=blue]
    > hi all,
    > I have been trying to use HTML table inside a h:dataTable (JSF component)
    > and without any luck.
    > anyone could give some hints on nesting standard HTML with JSF component ?
    >
    > OR
    >
    > How to make a horizontal dataTable without customizing JSF component ?
    > (column names on the left, associated values on the right)
    >
    > Thanks
    > ran
    >
    >[/color]

    Comment

    • Ran

      #3
      Re: nesting HTML in h:dataTable JSF

      Yes, it works* that way, however, the <h:outputText /> inside the
      <f:verbatim /> gets kicked out of
      <f:verbatim />, so my plan still not working out :(

      here is the codes
      =============== =============== =============== ==============
      <h:column binding="#{user _details.column 3}" id="column3">
      <h:outputText
      binding="#{user _details.output Text5}" id="outputText5 "
      value="#{curren tRow['DisplayName']}"/>
      <f:verbatim>
      <table border="1">
      <tr>
      <td>this is html table</td>
      <td><h:outputTe xt
      value="#{curren tRow['DisplayName']}" /></td>
      </tr>
      </table>
      </f:verbatim>
      <f:facet name="header">
      <h:outputText
      binding="#{user _details.output Text6}" id="outputText6 " value="DisplayN ame"/>
      </f:facet>
      <h:panelGroup
      binding="#{user _details.groupP anel1}" id="groupPanel1 "/>
      </h:column>

      end codes========== =============== =============== =============== =========

      the value of "#{currentR ow['DisplayName']}" will be displayed outside the
      <table>, right after "outputText 5"

      Can I nest <h:dataTable /> with <h:panelGroup /> ? I am trying this out now
      ....

      Thanks Igor.
      ran

      "Igor Kolomiyets" <list@inksystem s.net> wrote in message
      news:0Lr0f.1663 1$R5.1188@news. indigo.ie...[color=blue]
      > Did you try to wrap your html code in dataTable column into <f:verbatim>?
      >
      > Ran ÐÉÛÅÔ:[color=green]
      >> hi all,
      >> I have been trying to use HTML table inside a h:dataTable (JSF component)
      >> and without any luck.
      >> anyone could give some hints on nesting standard HTML with JSF component
      >> ?
      >>
      >> OR
      >>
      >> How to make a horizontal dataTable without customizing JSF component ?
      >> (column names on the left, associated values on the right)
      >>
      >> Thanks
      >> ran[/color][/color]


      Comment

      Working...