On 7/26/06, mjovanov <[EMAIL PROTECTED]> wrote:
Is there
some kind of preserveDataModel="true" attribute for t:columns just as for
t:dataTable?
Probably as I suspect the preserveDataModel attribute is set on the
Myfaces internal UIData subclass rather than on the MyFaces internal
HtmlDataTable subclass. For instance, preserveRowStates is available
for all tomahawk UIData classes (like t:dataList in addition to
t:dataTable).
However, if you're using JSP, you might need to provide JSP tag
handler support (java Tag file as well as the TLD file). If you're
using facelets, it should "just work".
I tried using t:savestate, but since DataModel is not
Serializable it throws an exception.
If you're using JSP, this is probably easier. Serialize the backing
list instead of the DataModel. Looks like #{workbenchForm.columns}
in your example. I think there's also a getter on DataModel to get
at the backing collection (getWrappedData), but I don't know how well
this works as t:saveState target.