inmethod-grid bugs?

2011-07-06 Thread Duy Do

Hi all,

I'm working on inmethod-grid to add a filter on top of it. Everything 
works fine if I don't navigate through other pages of the grid. Once I 
go to other page and filter the results, I get exception:


java.lang.ClassCastException: 
com.inmethod.grid.common.AbstractPageableView$Query cannot be cast to 
com.inmethod.grid.datagrid.DataGrid$IGridQuery
 at 
com.chesscom.web.common.dataprovider.DataProviderAdapter.query(DataProviderAdapter.java:82)
 at 
com.inmethod.grid.common.AbstractPageableView.initialize(AbstractPageableView.java:222)
 at 
com.inmethod.grid.common.AbstractPageableView.getItemModels(AbstractPageableView.java:411)

 In DataProviderAdapter.java, I found line: DataGrid grid = 
((DataGrid.IGridQuery) query).getDataGrid();


The current query can not be cast to IGridQuery. Is it a bug?

Thanks,
Duy


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



Re: inmethod-grid bugs?

2011-07-06 Thread Martin Grigorov
Which version do you use ?

On Wed, Jul 6, 2011 at 9:02 AM, Duy Do doquoc...@gmail.com wrote:
 Hi all,

 I'm working on inmethod-grid to add a filter on top of it. Everything works
 fine if I don't navigate through other pages of the grid. Once I go to other
 page and filter the results, I get exception:

 java.lang.ClassCastException:
 com.inmethod.grid.common.AbstractPageableView$Query cannot be cast to
 com.inmethod.grid.datagrid.DataGrid$IGridQuery
     at
 com.chesscom.web.common.dataprovider.DataProviderAdapter.query(DataProviderAdapter.java:82)
     at
 com.inmethod.grid.common.AbstractPageableView.initialize(AbstractPageableView.java:222)
     at
 com.inmethod.grid.common.AbstractPageableView.getItemModels(AbstractPageableView.java:411)

  In DataProviderAdapter.java, I found line: DataGrid grid =
 ((DataGrid.IGridQuery) query).getDataGrid();

 The current query can not be cast to IGridQuery. Is it a bug?

 Thanks,
 Duy


 -
 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: inmethod-grid bugs?

2011-07-06 Thread Duy Do

Hi Martin,

I use version 1.4.17.

It's same in version 1.5-SNAPSHOT on wicketstuff.

Thank you for your quick response.


On 7/6/2011 2:07 PM, Martin Grigorov wrote:

Which version do you use ?

On Wed, Jul 6, 2011 at 9:02 AM, Duy Dodoquoc...@gmail.com  wrote:

Hi all,

I'm working on inmethod-grid to add a filter on top of it. Everything works
fine if I don't navigate through other pages of the grid. Once I go to other
page and filter the results, I get exception:

java.lang.ClassCastException:
com.inmethod.grid.common.AbstractPageableView$Query cannot be cast to
com.inmethod.grid.datagrid.DataGrid$IGridQuery
 at
com.chesscom.web.common.dataprovider.DataProviderAdapter.query(DataProviderAdapter.java:82)
 at
com.inmethod.grid.common.AbstractPageableView.initialize(AbstractPageableView.java:222)
 at
com.inmethod.grid.common.AbstractPageableView.getItemModels(AbstractPageableView.java:411)

  In DataProviderAdapter.java, I found line: DataGrid grid =
((DataGrid.IGridQuery) query).getDataGrid();

The current query can not be cast to IGridQuery. Is it a bug?

Thanks,
Duy


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








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



Re: inmethod-grid bugs?

2011-07-06 Thread Attila Király
Please open an issue in wicketstuff issuetracker at github for this. Thanks.

On Jul 6, 2011 9:16 AM, Duy Do doquoc...@gmail.com wrote:

Hi Martin,

I use version 1.4.17.

It's same in version 1.5-SNAPSHOT on wicketstuff.

Thank you for your quick response.




On 7/6/2011 2:07 PM, Martin Grigorov wrote:

 Which version do you use ?

 On Wed, Jul 6, 201...


Re: inmethod-grid bugs?

2011-07-06 Thread Attila Király
My guess is that you are using a custom DataProviderAdapter with a custom
AbstractPageableView. If this is the case, the workaround is to override
AbstractPageableView.wrapQuery() to wrap the IQuery into an IGridQuery
similar to DataGridBody.Data.wrapQuery().

I am working on a solution to solve this on the 1.5 branch.

Attila

2011/7/6 Duy Do doquoc...@gmail.com

 Hi all,

 I'm working on inmethod-grid to add a filter on top of it. Everything works
 fine if I don't navigate through other pages of the grid. Once I go to other
 page and filter the results, I get exception:

 java.lang.ClassCastException: 
 com.inmethod.grid.common.**AbstractPageableView$Query
 cannot be cast to com.inmethod.grid.datagrid.**DataGrid$IGridQuery
 at com.chesscom.web.common.**dataprovider.**DataProviderAdapter.query(
 **DataProviderAdapter.java:82)
 at com.inmethod.grid.common.**AbstractPageableView.**initialize(**
 AbstractPageableView.java:222)
 at com.inmethod.grid.common.**AbstractPageableView.**getItemModels(**
 AbstractPageableView.java:411)

  In DataProviderAdapter.java, I found line: DataGrid grid =
 ((DataGrid.IGridQuery) query).getDataGrid();

 The current query can not be cast to IGridQuery. Is it a bug?

 Thanks,
 Duy


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




Re: inmethod-grid bugs?

2011-07-06 Thread Duy Do
I just used DataProviderAdapter to wrap a custom SortableDataProvider 
with PagingToolbar.


As your suggestion, I will try to override 
AbstractPageableView.wrapQuery() to wrap the current IQuery into IGridQuery.


Thanks,
Duy


On 7/7/2011 5:00 AM, Attila Király wrote:

My guess is that you are using a custom DataProviderAdapter with a custom
AbstractPageableView. If this is the case, the workaround is to override
AbstractPageableView.wrapQuery() to wrap the IQuery into an IGridQuery
similar to DataGridBody.Data.wrapQuery().

I am working on a solution to solve this on the 1.5 branch.

Attila

2011/7/6 Duy Dodoquoc...@gmail.com


Hi all,

I'm working on inmethod-grid to add a filter on top of it. Everything works
fine if I don't navigate through other pages of the grid. Once I go to other
page and filter the results, I get exception:

java.lang.ClassCastException: 
com.inmethod.grid.common.**AbstractPageableView$Query
cannot be cast to com.inmethod.grid.datagrid.**DataGrid$IGridQuery
 at com.chesscom.web.common.**dataprovider.**DataProviderAdapter.query(
**DataProviderAdapter.java:82)
 at com.inmethod.grid.common.**AbstractPageableView.**initialize(**
AbstractPageableView.java:222)
 at com.inmethod.grid.common.**AbstractPageableView.**getItemModels(**
AbstractPageableView.java:411)

  In DataProviderAdapter.java, I found line: DataGrid grid =
((DataGrid.IGridQuery) query).getDataGrid();

The current query can not be cast to IGridQuery. Is it a bug?

Thanks,
Duy


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





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