Have you tried putting your columns using a panelGroup? I've found that
things are a bit more stable that way. May not help, but worth a shot...

Frank Russo
Senior Developer
FX Alliance, LLC


-----Original Message-----
From: _dani [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 7:36 AM
To: [email protected]
Subject: dataTable column problem


Hello guys

I see a strange behaviour of the dataTable component in my application.
I use myfaces 1.1.1 with tiles.

The users sees kind of a shoppingcart on the left side in every page.
This shoppingcart is realised with a dataTable in a tile an binded to a
request
bean:

<t:dataTable id="changeTracker_table"
value="#{changeTrackerBean.changes}" 
                                var="c" 
                                styleClass="table-background"
                    rowClasses="table-odd-row,table-even-row"
                    cellpadding="1"
                    binding="#{changeTrackerBean.changeTable}"
                    >
                    
    <h:column>
        <h:outputText value="#{c.type}" id="changeTracker_type_title"/>
    </h:column>
            
   <h:column>
               <h:outputText value="#{c.title}"
id="changeTracker_popup_title"/>
   </h:column>

   <h:column>
     <h:commandLink action="#{changeTrackerBean.gotoElement}"
immediate="true" id="changeTracker_goto" >
                <h:outputText value="#{bundle.show}"
id="changeTracker_goto_title"/>
                        </h:commandLink>
                </h:column>
                
                <h:column>
                 <h:commandLink
action="#{changeTrackerBean.undoElement}" immediate="true"
id="changeTracker_undo">
                <h:outputText value="#{bundle.undo}"
id="changeTracker_undo_title"/>
                        </h:commandLink>
                </h:column>
</t:dataTable>

I addition the user can click on a commandlink which jumps to a page
with further details. So far everything works fine, exept that when I
navigate through the application, the columns of the dataTable disapear
or change places after every request. Sometimes I see only halfe of the
columns or the columns are duplicated!

What could be the problem?

I also removed the binding attribute in the datatable component an then
I couldn't see the described problems. But I need the binding to detect
which commandlink in the table was clicked.

thx
--
View this message in context:
http://www.nabble.com/dataTable-column-problem-t1485991.html#a4024678
Sent from the MyFaces - Users forum at Nabble.com.




Reply via email to