Multiple Data Providers for DataTable

2011-09-28 Thread codix
Is it possible to implement one table with different providers? My problem is
that there are some entries in my table with values coming from different
POJOs. I don't have any idea how to mix different POJOs in one data
provider.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Data-Providers-for-DataTable-tp3849652p3849652.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multiple Data Providers for DataTable

2011-09-28 Thread Martin Grigorov
Can you use a compound provider which delegates the logic to N other
providers and collects their responses into one ?

On Wed, Sep 28, 2011 at 2:44 AM, codix jackeblag...@yahoo.com wrote:
 Is it possible to implement one table with different providers? My problem is
 that there are some entries in my table with values coming from different
 POJOs. I don't have any idea how to mix different POJOs in one data
 provider.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Multiple-Data-Providers-for-DataTable-tp3849652p3849652.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multiple Data Providers for DataTable

2011-09-28 Thread codix
I'm sorry but I don't get your statement. Currently, I have one data provider
and a data table. To populate the rows, I call another panel where a Label
is added. Currently I am using a POJO with a particular type. Unfortunately,
other data calls for other POJOs with different types. Trying to cast them
in a getDefaultModel() method returns an error that it cannot be casted.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Data-Providers-for-DataTable-tp3849652p3850446.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org