2 Replies Latest reply on Feb 25, 2010 3:00 AM by 0vermind

    extendedDataTable and wrap text

    0vermind

      Greetings, Community!

      I've tried the different tables in richfaces and would like to use the extendedDataTable. But i miss the wrap text feature there, with long lines i just get my text and some dots at the end. I've looked at the tag description, but no attribute there. Is it even possible to add this feature to the table?

      Thanks in advance

        • 1. Re: extendedDataTable and wrap text
          ilya_shaikovsky
          get my text and some dots at the end

          no such feature not exist.

           

          You could only adjust wrapping in cells via css.

          • 2. Re: extendedDataTable and wrap text
            0vermind

            thanks for pointing me in the right direction. i've tried it with <style="word-wrap:break-word;"> but wasn't successful. Here's the table with the relevant column.

                                <rich:extendedDataTable
                                        value="#{SPDBC.productList}" var="list" id="table"
                                        width="580px" height="400px" >


                                        <rich:column style="word-wrap:break-word" width="100px">
                                            <f:facet name="header">
                                                <h:outputText value="State Name" id="state_name"/>
                                            </f:facet>
                                            <h:outputText style="word-wrap:break-word" value="#{list.longName}" id="cap_state"/>
                                        </rich:column>
                                       
                                    </rich:extendedDataTable>

             

            Some help where to set the style would be much appreciated.