I have a method called listen() in a ManagedBean. In this method I run a JPA 
query and load the result in a collection of myPojo ... 

I would like to show this result in a jsp table 

Everything is going fine until I try to navigate trouhg the table, it's 
clearing the content of my model ...

I'm using Tomahawk DataScroller and I am posting my message in this list 
because no one bodered to respond in MyFaces List ...

Another reason is that I don't think the problem is in the component but in my 
Bean implementation

In my jsp I have : 

<t:dataTable value="#{myBean.model}" binding="#{myBean.table}" title="Test"
    var="m" id="tbl" preserveDataModel="true" ...

In my Managend Bean I have the model as DataModel and table as HtmlDataTable

In voi listen() method implementation :

List<PojoTeste> res = (List<PojoTeste>) query.getResultList();
 model.setWrappedData(res ); 

When I debug my app I can see that my model is set to null ...

I'm trying to solve this for a few days and had no success on this thread...

Could anyone give me a hand ?




       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

Reply via email to