[jboss-user] [JBoss Seam] - Trinidad Table Model Refresh?

quilian do-not-reply at jboss.com
Tue Sep 4 10:36:30 EDT 2007


This is a Trinidad question, but im using Trinidad inside a seam app, so i think you guys could be able to help me...
im using a tr:table to show my data.

The Problem:

It seams (lol), that the table model is only generated once, at the first attempt to render the table and doesnt change afterwards. Is this correct? I suppose it could be desired behavior, but that leads me into trouble..

The Situation:

I have a selectionList on the left side and a tr:table at the right. I want the tables underlying list to be one of left side's members. So the selectItems value is #{tableInstance.selectedMaster}, while the tables value attribute is #{tableInstance.selectedMaster.getSlaves()}" the selectManyList has partialSubmit=true and is a trigger for the table, so that works. I can select a master on the left and see all its slaves in the table. However the tables model is not changing. Thats why the table's getSelectedRowKeys() gives me wrong indices.
the table has a binding into an event-scoped component, from where i get it to acces its selection Map. No idea if this adds any meaning to the problem :-)

is their a way to tell the tr:table to refresh its underlying model? How else could i accomplish this?

Many thanks,
Tobias Kilian

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080922#4080922

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080922

More information about the jboss-user mailing list