Re: inmethod grid - Ajaxically update child grid from Master grid

2014-07-17 Thread Martin Grigorov
Hi,



On Wed, Jul 16, 2014 at 11:12 PM, Mihir Chhaya mihir.chh...@gmail.com
wrote:

 Hello,

 I am using inMethod data grid with Wicket 1.5.

 I have a page to show master grid (MasterPanel). MasterPanel has child grid
 (ChildPanel) to display child records. ChildPanel accepts MasterBean as one
 of the arguments of the Constructor to retrieve child records using Master
 PK id.

 Now, on selection of row in Master grid, I want to ajaxically refresh child
 panel.
 I don't want to use Modal Window.

 Following is code snippet:

 public class MasterPanel extends Panel{

 public MasterPanel(String id, IModelSomeBean) {
  MasterBean masterBean = get Master Bean from service method;
  //form
 FormMasterBean form = new FormMasterBean (form, new
 CompoundPropertyModelMasterBean(masterBean));
 form.setOutputMarkupId(true);
  //Child Panel added into MasterPanel
 ChildPanel childPanel = new ChildPanel(child, form.getModel());


Here you a new reference to the form's model.
One way to solve the issue is to use a wrapped/delegating model:
new IModelMasterBean() {
  public MasterBean getObject() { return form.getModel().getObject();}
  public void setObject(MasterBean mb) { return
form.getModel().setObject(mb);}
  public void detach() { return form.getModel().detach();}
}


 childPanel.setOutputMarkupId(true);

 form.add(childPanel);
  DataGridGridListMasterBean, MasterBean grid = masterGrid(grid,
 childPanel);
 grid.setOutputMarkupId(true);
 form.add(grid);
 }

 private DataGridGridListMasterBean, MasterBean masterGrid(String
 property, final ChildPanel childPanel) {
 
 
 
 //OnRowClicked in Databgrid
 @Override
 protected void onRowClicked(AjaxRequestTarget target, IModelMasterBean
 rowModel) {
 getForm().setDefaultModel(rowModel);


Another way to solve it is to do: childPanel.setModel(rowModel);


 target.add(childPanel);
 }
 }
 }


 Above code is not refreshing the child as the ChildPanel is already created
 at the time of adding into MasterPanel. I want ChildPanel to be re-rendered
 using selected MasterBean from Master grid.

 Any help/suggestions?

 Thanks,
 -Mihir.



Re: Inmethod Grid on IE9

2013-07-23 Thread Jesse Long

Hi Jose,

I too had the same issue, and I also dont know how to fix it. Please let 
us know what you did to get it to work.


My work around is to set this for IE 9 only:

overflow-y: hidden;
overflow-x: scroll;

If there is a better solution, please let us know.

Thanks,
Jesse


On 18/07/2013 17:10, Dan Simko wrote:

Hi, my IE has the same problem. But unfortunately I do not have any idea
how to fix (except to remove horizontal scrollbar).


On Thu, Jul 18, 2013 at 5:02 PM, Jose Mauricio Meraz Mercado 
jmm...@gmail.com wrote:


It seems there was something wrong with my IE, now it is working fine

Thanks


2013/7/12 Jose Mauricio Meraz Mercado jmm...@gmail.com


Hi,

Currently on the application we are developing we are using InMethod
grids, when those grids have a horizontal scroll bar there is a strange
behavior that makes the div that has the contents grow when you select

text

or when you select a record on the grid.

This behavior can be reproduced on
http://www.wicket-library.com/inmethod-grid/data-grid/simple (the
horizontal scroll bar has to be present, just passing the mouse on the

rows

will cause the navigation bar to be pushed below). IE8, Firefox and

Chrome

this works fine

We found this on the wicketstuff project with something similar to what

we

have, but the solution provided doesn't work:
https://github.com/wicketstuff/core/issues/44

Has anyone experienced and resolved this?

Thanks for any help

We are using Wicket 1.4.19 and Inmethod-grid 1.4.9.1




--
El conocimiento es poder




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



Re: Inmethod Grid on IE9

2013-07-18 Thread Jose Mauricio Meraz Mercado
It seems there was something wrong with my IE, now it is working fine

Thanks


2013/7/12 Jose Mauricio Meraz Mercado jmm...@gmail.com

 Hi,

 Currently on the application we are developing we are using InMethod
 grids, when those grids have a horizontal scroll bar there is a strange
 behavior that makes the div that has the contents grow when you select text
 or when you select a record on the grid.

 This behavior can be reproduced on
 http://www.wicket-library.com/inmethod-grid/data-grid/simple (the
 horizontal scroll bar has to be present, just passing the mouse on the rows
 will cause the navigation bar to be pushed below). IE8, Firefox and Chrome
 this works fine

 We found this on the wicketstuff project with something similar to what we
 have, but the solution provided doesn't work:
 https://github.com/wicketstuff/core/issues/44

 Has anyone experienced and resolved this?

 Thanks for any help

 We are using Wicket 1.4.19 and Inmethod-grid 1.4.9.1




-- 
El conocimiento es poder


Re: Inmethod Grid on IE9

2013-07-18 Thread Dan Simko
Hi, my IE has the same problem. But unfortunately I do not have any idea
how to fix (except to remove horizontal scrollbar).


On Thu, Jul 18, 2013 at 5:02 PM, Jose Mauricio Meraz Mercado 
jmm...@gmail.com wrote:

 It seems there was something wrong with my IE, now it is working fine

 Thanks


 2013/7/12 Jose Mauricio Meraz Mercado jmm...@gmail.com

  Hi,
 
  Currently on the application we are developing we are using InMethod
  grids, when those grids have a horizontal scroll bar there is a strange
  behavior that makes the div that has the contents grow when you select
 text
  or when you select a record on the grid.
 
  This behavior can be reproduced on
  http://www.wicket-library.com/inmethod-grid/data-grid/simple (the
  horizontal scroll bar has to be present, just passing the mouse on the
 rows
  will cause the navigation bar to be pushed below). IE8, Firefox and
 Chrome
  this works fine
 
  We found this on the wicketstuff project with something similar to what
 we
  have, but the solution provided doesn't work:
  https://github.com/wicketstuff/core/issues/44
 
  Has anyone experienced and resolved this?
 
  Thanks for any help
 
  We are using Wicket 1.4.19 and Inmethod-grid 1.4.9.1
 
 


 --
 El conocimiento es poder



Re: InMethod Grid DropDownChoiceColumn DropDownChoicePanel

2013-05-17 Thread Martin Grigorov
Hi,

Better use some Pastebin service instead of using images because we cannot
modify your code to make it working.

The problem is that you use : new Model(selectedValue) as a main model for
the DropDownChoice. You should use something like : new PropertyModel(this,
selectedValue), assuming selectedValue is a member of 'this'.


On Fri, May 17, 2013 at 2:47 PM, shashikant.kulkarn...@gmail.co 
shashikant.kulkarn...@gmail.com wrote:

 Hi,I am trying to use the wicketstuff-inmethod-grid component version
 6.5.0.
 I want to use the refDropDownChoiceColumn  DropDownChoicePanel and want to
 get the new value from drop down after selection. How to get this value. I
 am not able to get it. For your I am posting the code here
 http://apache-wicket.1842946.n4.nabble.com/file/n4658891/Wicket_dd.gif
 Please help. I am stuck now.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/InMethod-Grid-DropDownChoiceColumn-DropDownChoicePanel-tp4658891.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
Wicket Training  Consulting
http://jWeekend.com http://jweekend.com/


Re: InMethod Grid DropDownChoiceColumn DropDownChoicePanel

2013-05-17 Thread shashikant.kulkarn...@gmail.co
Sorry for the image. I will try your solution. Here is the entire method
which creates columns. I have 3 drop down choices in a row. If I select all
the 3 at the same time I need to get the changed value of all of them.
Please suggest. 

private ListIGridColumnlt;IDataSourcelt;Estimationmetadata,
Estimationmetadata, String getEstimationColumns() {
ListIGridColumnlt;IDataSourcelt;Estimationmetadata, 
Estimationmetadata,
String columns = 
new 
ArrayListIGridColumnlt;IDataSourcelt;Estimationmetadata,
Estimationmetadata, String();
columns.add(new SubmitCancelColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, String(esd, Model.of(Edit)));
columns.add(new PropertyColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, Long, String(
new ModelString(Application Name),
applicationsList.applicationName));

//Get the list of parameters now
SalescaseParameterService scParamService = 
(SalescaseParameterService)ServiceFactory.getService(salescaseparameterservice);
ListSalescaseParameter parametersOfSalescase = 

scParamService.getSelectedParameters(((SignInSession)getSession()).getSelectedSalesCase());

final ParameterValueService paramValueService =
(ParameterValueService)ServiceFactory.getService(paramvalueservice);
int counter = 0;
for (final SalescaseParameter parameter : parametersOfSalescase) {  

ParameterService parameterService =
(ParameterService)ServiceFactory.getService(parameterservice);
final Parameter param =
parameterService.getParameter(parameter.getParameterId());

columns.add(new 
DropDownChoiceColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, String, String
(new 
ModelString(+param.getParameterName()), 

estimationdetailses.+counter+.ParameterValues.parameterValue)
{
private static final long 
serialVersionUID = 1L;

@SuppressWarnings({ unchecked, 
rawtypes })
protected 
com.inmethod.grid.column.editable.EditableCellPanel

com.inmethod.grid.IDataSourcelt;Estimationmetadata,Estimationmetadata,String,String
 
newCellPanel(String 
componentId, final
org.apache.wicket.model.IModelEstimationmetadata 
rowModel, 
org.apache.wicket.model.IModelString cellModel) {
//Now get the parameter value 
as list
ArrayListParameterValues 
paramValuesList =
paramValueService.getParamValues(param);

paramValuesWeightageMap.put(+param.getParameterId(),
paramValuesList);
return new DropDownChoicePanel

com.inmethod.grid.IDataSourcelt;Estimationmetadata,Estimationmetadata,String,String
(
componentId, 
new 
Model(selectedValue), rowModel, 
this,new 
Model(paramValuesList), 
new 
PropertyChoiceRenderer( parameterValueId, parameterValue )
);
};  

}
);

columns.add(new 
PropertyColumnIDataSourcelt;Estimationmetadata,
Estimationmetadata, Long, String
(new ModelString(Weightage),
estimationdetailses.+counter+.ParameterValues.parameterWeightage)
.setInitialSize(65).setResizable(false));
counter++;
}

return columns;
}




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/InMethod-Grid-DropDownChoiceColumn-DropDownChoicePanel-tp4658891p4658896.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: inmethod grid column resize error alert

2013-04-09 Thread saty
This is being caused by inmethod grid being set to disabled, the error looks
unnecessary though. Not sure if there is way to suppress it.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-column-resize-error-alert-tp4657852p4657858.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: inmethod grid column resize error alert

2013-04-09 Thread Ernesto Reinaldo Barreiro
can you create a quick-start? and attach it to an issue in github?


On Tue, Apr 9, 2013 at 9:44 PM, saty satya...@gmail.com wrote:

 This is being caused by inmethod grid being set to disabled, the error
 looks
 unnecessary though. Not sure if there is way to suppress it.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-column-resize-error-alert-tp4657852p4657858.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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: inmethod grid column resize error alert

2013-04-09 Thread saty
ok, will do.





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-column-resize-error-alert-tp4657852p4657860.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: inmethod grid cachedPageCount

2013-03-04 Thread Ciocoiu Elvis
Thank you Paul,

But in my case I'm using IDataSource from immethod grid to retrieve the
current page. In client code after inserting the new record in the database
I'm obtaining the corresponding page number (greater than the one cached by
inmethod grid) and let the grid display itself (internally calls get page
from IDataSource). What I need is the easiest way to update the inmethod
grid to know that there is one more page). The most appropiate idea was to
set the current grid page to the last one but even if the grid let me do
that through its api (used also by the navigator) crashes because of this
internally cached page count. All the logic to retrieve the page based on
the current sort and filter is implemented. I don't want to change the
widget for the moment (inmethod grid is ok except this usecase) so I must
stick to IDataSource and it's usage.
On Feb 28, 2013 3:50 AM, Paul Bors p...@bors.ws wrote:

 Well, reading your post a second time around...

 If you really want to add a record and then paginate to the page that
 contains it, you'd have to re-run your SQL right?

 I think it would make more sence to KISS it. Change your DataProvider by
 re-running the SQL and provide the record ID (primary key, hash or
 something
 unique to your new saved record) then add a new constructor for your table
 or DataProvider to handle the pagination by looking through your collection
 for the element with that unique ID page by page or by implementing the
 pagination in SQL (search with the record ID given your fileters and sort
 order and forward your cursor to the page that contains your record).

 Mersi mult, si chiar am nevoie mare :)



 -
 ~ Thank you,
 p...@bors.ws
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-cachedPageCount-tp4656739p4656875.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: inmethod-grid refresh issue

2013-03-04 Thread saty
Any thoughts on this please?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656936.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
Hello Saty

You should check methods markItemDirty(IModel model),
markAllItemsDirty() and update(). This are the methods you are supposed
to be calling when refreshing the grid's content.

You should also make sure that the equals() method of your model objects
return false when both objects aren't equal...

Cheers
--
Marc Nuri
www.marcnuri.com


On Mon, Mar 4, 2013 at 4:20 PM, saty satya...@gmail.com wrote:

 Any thoughts on this please?



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656936.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: inmethod-grid refresh issue

2013-03-04 Thread saty
Thanks Marc, i will take a look at these methods if they can help, however my
equals method can not help here as i said previously some columns are
derived in the sense they dont return an attribute of the object but a value
which is derived from the context (and object state) in which the method is
called.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656938.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
Ok, I see.
Either way if it is a DataGrid, calling markAllItemsDirty() and update()
from your ajax request should do the job.
--
Marc Nuri
www.marcnuri.com


On Mon, Mar 4, 2013 at 4:35 PM, saty satya...@gmail.com wrote:

 Thanks Marc, i will take a look at these methods if they can help, however
 my
 equals method can not help here as i said previously some columns are
 derived in the sense they dont return an attribute of the object but a
 value
 which is derived from the context (and object state) in which the method is
 called.




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656938.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: inmethod-grid refresh issue

2013-03-04 Thread saty
grid.markAllItemsDirty();
grid.update();
This does not help, for some reason grid is smart not to regenerate a row
for a model it already did. 
I can see my getXXX method is called by grid only first time and than its
never get called again so the column shows what was calculated for the first
call.

To be more specific, if the grid shows 20 rows and than i filter to show 10
out of those 20 rows, it does not call the getXXX methods on my model
object.

However If i change filter setting so it has to now show 30 rows (20
previous and say 10 other rows) , it does call the getXXX methods again.

Not really sure what controls this behaviors and how to override it.
Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656940.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
The problem must be in your row models.
What does your IDataSource implementation look like?
--
Marc Nuri
www.marcnuri.com


On Mon, Mar 4, 2013 at 4:55 PM, saty satya...@gmail.com wrote:

 grid.markAllItemsDirty();
 grid.update();
 This does not help, for some reason grid is smart not to regenerate a row
 for a model it already did.
 I can see my getXXX method is called by grid only first time and than its
 never get called again so the column shows what was calculated for the
 first
 call.

 To be more specific, if the grid shows 20 rows and than i filter to show 10
 out of those 20 rows, it does not call the getXXX methods on my model
 object.

 However If i change filter setting so it has to now show 30 rows (20
 previous and say 10 other rows) , it does call the getXXX methods again.

 Not really sure what controls this behaviors and how to override it.
 Thanks



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656940.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: inmethod-grid refresh issue

2013-03-04 Thread saty
public class DataSource implements IDataSourceMyModel {
private FilterMyModel myModelFilterChain; 
public DataSource(FilterChainMyModel myModelFilterChain) 
{
this.myModelFilterChain= myModelFilterChain;

}

@Override
public void detach() {//.

}

@Override
public void query(com.inmethod.grid.IDataSource.IQuery query,
com.inmethod.grid.IDataSource.IQueryResultMyModel 
result) {

 //all rows are already cached..use myModelFilterChain above to 
filter  
List MyModels...
result.setTotalCount(MyModels.size());
int from = MyModels.size()  query.getFrom() ? query.getFrom() :
MyModels.size();
int to = MyModels.size()  from + query.getCount() ? from +
query.getCount() : MyModels.size(); 
ListMyModel resultList = MyModels.subList((int)from, 
(int)to);
result.setItems(resultList.iterator()); 
stopWatch.stop();   
}   

}


copied relevant potion above, i can see query method is called every time,
no issues there.

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656942.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
What's the code for MyModel?
--
Marc Nuri
www.marcnuri.com


On Mon, Mar 4, 2013 at 5:14 PM, saty satya...@gmail.com wrote:

 public class DataSource implements IDataSourceMyModel {
 private FilterMyModel myModelFilterChain;
 public DataSource(FilterChainMyModel myModelFilterChain)
 {
 this.myModelFilterChain= myModelFilterChain;

 }

 @Override
 public void detach() {//.

 }

 @Override
 public void query(com.inmethod.grid.IDataSource.IQuery query,

 com.inmethod.grid.IDataSource.IQueryResultMyModel result) {

  //all rows are already cached..use myModelFilterChain
 above to filter
 List MyModels...
 result.setTotalCount(MyModels.size());
 int from = MyModels.size()  query.getFrom() ?
 query.getFrom() :
 MyModels.size();
 int to = MyModels.size()  from + query.getCount() ? from +
 query.getCount() : MyModels.size();
 ListMyModel resultList = MyModels.subList((int)from,
 (int)to);
 result.setItems(resultList.iterator());
 stopWatch.stop();
 }

 }


 copied relevant potion above, i can see query method is called every time,
 no issues there.

 Thanks



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656942.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: inmethod-grid refresh issue

2013-03-04 Thread saty
Its a regular java bean with properties and setter and getter methods.
Grid uses the expression to map a column to a particular property on row
model (MyModel).

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656945.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: inmethod-grid refresh issue

2013-03-04 Thread saty
Just managed to get a workaround to fix the problem.
I have to add a dummy property to the model object and calculate that
property within my data source and than use that property to map to the
calculated column.
However since i can not change the state of original shared model object, so
i have to clone it first (for every user, not a good idea ) and it
introduces whole set of new problems.

Does that ring a bell, how the problem can be solver without all this?

When the model expose a getCalculatedValue method, why would not the grid
call that method to render the row every time on a column that is mapped to
an expression 'calculatedValue' ?

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656947.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
In your IDataSource code, you left out the implementation public
IModelMyModel model(MyModel object);, I'm quite suspicious that your
models are the source of the problem.
I'm assuming that you are using PropertyColumns in your grid, with these
columns, your getter method should be getting called every time.
You also say ...that may return different value if the context changes...
what does context stand for?
--
Marc Nuri
www.marcnuri.com


On Mon, Mar 4, 2013 at 5:39 PM, saty satya...@gmail.com wrote:

 Its a regular java bean with properties and setter and getter methods.
 Grid uses the expression to map a column to a particular property on row
 model (MyModel).

 Thanks



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656945.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: inmethod-grid refresh issue

2013-03-04 Thread saty
yes i am using property columns in grid to map columns to properties of
model.

Data Source is a very simple implementation just filter model objects in a
cache into a list of filtered model objects.

Context is user and also his filter settings.

If a user can not see value from source x so his calculated value would be
total value minus what he can not see, there are several other parameter to
this context but this is what it is for all parameters. Also if he has
filtered the view on XYZ, the calculated value will exclude everything that
comes from XYZ (including rows).

Its like total sales coming from multiple accounts but user may be seeing
only one or few accounts (not all) so sales should show what is the sale
from those selected accounts (in view).

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656949.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: inmethod-grid refresh issue

2013-03-04 Thread saty
Also i put a print on every getter but it only prints on first call on a set
of rows, if you filter among those rows its never get called, i suspect the
grid has rows cached and its assuming nothing changed so using those rows
again as a subset of previously created rows.

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656950.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
You should start debugging your project instead of using print to see
what is really happening (call stack, variable values...).

PropertyColumn always calls the get method of your model object:
code
@Override
public IRenderableI newCell(IModelI rowModel)
{
return new IRenderableI()
{
public void render(IModelI rowModel, Response response)
{
CharSequence value = getValue(rowModel);
if (value != null)
{
response.write(value);
}
}
};
}

private CharSequence getValue(IModelI rowModel)
{
I rowObject = getModelObject(rowModel);
P property = null;
if (rowObject != null)
{
try
{
property = getProperty(rowObject, getPropertyExpression());
}
catch (NullPointerException e)
{

}
}
CharSequence string = convertToString(property);
if (isEscapeMarkup()  string != null)
{
string = Strings.escapeMarkup(string.toString());
}
return string;
}
/code




On Mon, Mar 4, 2013 at 6:11 PM, saty satya...@gmail.com wrote:

 Also i put a print on every getter but it only prints on first call on a
 set
 of rows, if you filter among those rows its never get called, i suspect the
 grid has rows cached and its assuming nothing changed so using those rows
 again as a subset of previously created rows.

 Thanks








Re: inmethod-grid refresh issue

2013-03-04 Thread saty
Actually i have overridden 
public Component newCell(WebMarkupContainer parent, String componentId,
IModel rowModel) 
{
...
}

to use a separate panel for cell content, due to other functions, will not
make any difference?

Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656952.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: inmethod-grid refresh issue

2013-03-04 Thread Marc Nuri San Félix
I bet we are getting to the source of the problem.

Non light-weight columns like yours, create the components just once when
the grid is first rendered. So the model instances you pass when you create
the Component will remain the same even if you update the grid.

I believe non-lightweight columns where designed as a means to create
editable rows and shouldn't be used otherwise.

I don't think you really need to use a component for what you are trying to
accomplish.
Maybe you should override public IRenderableI newCell(IModelI
rowModel) instead and write whatever markup you need directly to the
response.

Hope it helps
--
Marc Nuri
www.marcnuri.com


On Mon, Mar 4, 2013 at 7:13 PM, saty satya...@gmail.com wrote:

 Actually i have overridden
 public Component newCell(WebMarkupContainer parent, String componentId,
 IModel rowModel)
 {
 ...
 }

 to use a separate panel for cell content, due to other functions, will not
 make any difference?

 Thanks



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656952.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: inmethod-grid refresh issue

2013-03-04 Thread saty
Thanks Marc, This is indeed the issue, i am going to make it light weight for
now and provide an alternate mechanism to launch the other features that are
stuffed in here at present.

Thank for helping me out.







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910p4656957.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: inmethod grid cachedPageCount

2013-02-27 Thread Paul Bors
Well, reading your post a second time around...

If you really want to add a record and then paginate to the page that
contains it, you'd have to re-run your SQL right?

I think it would make more sence to KISS it. Change your DataProvider by
re-running the SQL and provide the record ID (primary key, hash or something
unique to your new saved record) then add a new constructor for your table
or DataProvider to handle the pagination by looking through your collection
for the element with that unique ID page by page or by implementing the
pagination in SQL (search with the record ID given your fileters and sort
order and forward your cursor to the page that contains your record).

Mersi mult, si chiar am nevoie mare :)



-
~ Thank you,
p...@bors.ws
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-cachedPageCount-tp4656739p4656875.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: inmethod grid cachedPageCount

2013-02-25 Thread Paul Bors
I once implemented something similar where I had to add records to a
DataTable.
What I ended up doing is twickying the DataProvider to allow adding rows to
the current page.

ie: I would add new rows to the current page and flush them to the DB on
Save.
I did not have to care about the page number nor the sort order as the rows
were always added to the current page, top row and the table would grow in
size with each additonal record. Once pagination happen, the rows would be
sorted anyhow and displayed in the proper place.

Below are the changes to my parent DataTable that I had to implement to
make this possible (feel free to use as you see fit):
/**
 * Obtain the index of the first row on the given page number.
 *
 * @param pageNum The page number for which to retrieve the index
within the List model.
 * @return The first row index on the given page number if that page
were to be rendered.
 */
public int getIndexOfFirstRowOnPage(int pageNum) {
return (pageNum  0) ? pageNum * getItemsPerPage() : 0;
}

/**
 * Obtain the index of the last row on the given page number.
 *
 * @param pageNum The page number for which to retrieve the index
within the List model.
 * @return The last row index on the given page number if that page
were to be rendered.
 */
public int getIndexOfLastRowOnPage(int pageNum) {
int rowsPerPage = getItemsPerPage();
int totalRows   = getRowCount();
int lastRow= (pageNum  0) ? (pageNum * rowsPerPage) +
rowsPerPage -1 : rowsPerPage - 1;
if(lastRow = totalRows) {
lastRow = totalRows - 1;
}
return lastRow;
}

/**
 * Retrieve collection of the row models for the given page
number.brbr
 * ibNOTE:/b Is more efficient to build your own collection of
elements on
 * a page by adding them during one of your columns populateItem()
call./i
 *
 * @param pageNum The page number for which to retrieve the collection
of rows.
 * @return  A list of models found on the given page number, null if
the page
 *  number is invalid.
 */
@SuppressWarnings(unchecked)
public ListT getRowsOnPage(int pageNum) {
int rowsPerPage = getItemsPerPage();
int totalRows   = getRowCount();
int firstRow= (pageNum  0) ? pageNum * rowsPerPage : 0;
int count   = (rowsPerPage  totalRows) ? totalRows :
rowsPerPage;
int lastRow = firstRow + count;
if( lastRow  totalRows) {
count = rowsPerPage - (lastRow - totalRows);
}

if((pageNum  totalRows/rowsPerPage) || (pageNum  0) ) {
return null;
}

ListT elements = new ArrayListT();
IteratorT iter = (IteratorT) provider.iterator(firstRow, count);
while(iter.hasNext()) {
elements.add(iter.next());
}
return elements;
}

Noroc si bafta la treaba!

~ Thank you,
   Paul Bors

On Sun, Feb 24, 2013 at 9:02 AM, Ciocoiu Elvis
elvis.cioc...@synthesys.rowrote:

 Hi,

 I'm trying to select a item of inmethod grid after adding it in an ajax
 call. Based on the current sort properties and filters, after I effectively
 add the element in the database but in the same ajax call I'm determining
 the element's page number and try to set it as current page in the grid. My
 code works except in the case when the created element is in the last page
 (the current grid page page count is cached internally in
 AbstractPageableView.cachedPageCount). In this case the cachedPageCount is
 equal to the create element page and when calling
 grid.setCurrentPage(newPage) { ... if (page  0 || page = pageCount 
 pageCount  0) ... } throws IndexOutOfBounds exception. I want to clear the
 cachedPageCount somehow ... or maybe there is another solution? I want to
 select the new page in the same ajax call. For the moment if I encounter
 this situation I select the previous page ... but the my newly created
 element is on the next one :(

 Can somebody help me with some hints?

 Thank you

 --
 _
 Elvis Ciocoiu
 Senior Consultant

 Synthesys Consulting ROMANIA

 address: http://www.synthesys.ro
 e-mail: elvis.cioc...@synthesys.ro
 mobile : (40) 0745 13 75 85

 This message and any attachments contain information, which may be
 confidential or privileged.
 If you are not the intended recipient, please refrain from any
 disclosure, copying, distribution or use of this information.
 Please be aware that such actions are prohibited. If you have received
 this transmission in error, kindly notify us by email to
 off...@synthesys.ro. We appreciate your cooperation.



Re: inmethod grid 6.0-SNAPSHOT doesn't work in IE8

2013-01-17 Thread Dan Simko
Hi,

I finally found out where problem is. IE8 doesn't support 'bind' function.
I just committed fix from:
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind

Best regards,
Dan


On Wed, Sep 5, 2012 at 10:36 PM, Dan Simko wicke...@gmail.com wrote:

 sorry, attachment is here http://wickeria.com/screenshot.png


 On Wed, Sep 5, 2012 at 10:27 PM, Dan Simko wicke...@gmail.com wrote:

 Hi,

 online example (http://www.wicket-library.com/inmethod-grid) is working
 great in my IE8, but when I run latest version from
 https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/inmethod-grid-parentgrid
  is not initialized correctly in IE8 (see attachment). The problem is
 probably in script.js on line 1545:

 window.setInterval(this.update.bind(this), interval);

 Unfortunately I do not have so strong JS knowledge in order to fix it.
 In FF and Chrome grid works great.


 Thanks in advance!





Re: inmethod grid 6.0-SNAPSHOT doesn't work in IE8

2012-09-05 Thread Dan Simko
sorry, attachment is here http://wickeria.com/screenshot.png

On Wed, Sep 5, 2012 at 10:27 PM, Dan Simko wicke...@gmail.com wrote:

 Hi,

 online example (http://www.wicket-library.com/inmethod-grid) is working
 great in my IE8, but when I run latest version from
 https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/inmethod-grid-parentgrid
  is not initialized correctly in IE8 (see attachment). The problem is
 probably in script.js on line 1545:

 window.setInterval(this.update.bind(this), interval);

 Unfortunately I do not have so strong JS knowledge in order to fix it.
 In FF and Chrome grid works great.


 Thanks in advance!




RE: InMethod grid, Hidden Field in column does not get updated

2011-11-18 Thread Warren Bell
Any takers, this one has me stumped. Is there anything special with how a 
HiddenField gets updated after an Ajax call. The HiddenField is in the same 
panel as a TextField. The TextField gets updated but the HiddenField does not. 
I have checked and the values have changed on the model object for both fields. 
I thought that when you add a component to the target that the component and 
all its children would get updated. I see the HiddenField coming back in the 
Ajax response, it just has the old value.

Thanks,

Warren

-Original Message-
From: Warren Bell 
Sent: Wednesday, November 16, 2011 11:04 AM
To: 'users@wicket.apache.org'
Subject: InMethod grid, Hidden Field in column does not get updated

I have an Inmethod grid with a HiddenField in a panel in a column. This 
HiddenField does not get updated after a SubmitCancelColumn is clicked. All the 
other fields get updated correctly except for the HiddenField. There is also a 
TextField in the same panel as the HiddenField, the TextField gets updated 
correctly. Here is the column code, newPriceTextField gets updated correctly 
and oldNewPriceHiddenField does not get updated:

WicketColumnAdapter newPriceColumn = new 
WicketColumnAdapter(newPriceColumnAdapter, new 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumnString(new
 ModelString(New Price), newPrice)) {


 @Override
 public Component newCell(WebMarkupContainer parent, String componentId, IModel 
rowModel)  {
  final PriceChange priceChange = (PriceChange)rowModel.getObject();

  final TextFieldDouble newPriceTextField = new TextFieldDouble(newPrice, 
new PropertyModelDouble(priceChange, newPrice), Double.class)
  final HiddenFieldDouble oldNewPriceHiddenField = new 
HiddenFieldDouble(oldNewPrice, new PropertyModelDouble(priceChange, 
oldNewPrice), Double.class);

  CostNewPricePanel panel = new CostNewPricePanel(newPriceTextField, 
oldNewPriceHiddenField);
  return panel;
 }

};



Also, the oldNewPrice property of the oldNewPriceHiddenField does change 
after SubmitCancelColumn gets clicked.

What do I need to do to get the HiddenField to update correctly?

Thanks,

Warren Bell



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



Re: inmethod grid problem in IE8

2011-11-10 Thread Duy Do
After upgrade the app to version 1.5.2, the problem has gone.

Cheers,
Duy


On Mon, Sep 19, 2011 at 3:27 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Also try with IE9/10. They may give you better error description.

 On Sun, Sep 18, 2011 at 1:18 PM, Duy Do doquoc...@gmail.com wrote:
  Hi Attila,
 
  I'm using version 1.4.18 of Wicket, inmethod-grid.
 
  I will try to test the example of inmethod grid and let you know the
 result.
 
  Thank you for your help.
 
  Regards,
  Duy
 
  On 9/18/2011 4:06 PM, Attila Király wrote:
 
  Repeating my previous answer to you: give more details. For example:
 which
  wicket, inmethod-grid versions are you using? Is the problem
 reproducable
  with the wicketstuff inmethod grid examples web app too?
 
  Attila
 
  2011/9/18 Duy Dodoquoc...@gmail.com
 
  Any suggestion?
 
 
  On 9/17/2011 10:59 AM, Duy Do wrote:
 
  Hi Wicketers,
 
  I have  a problem with inmethod-grid in IE8 as below error. This issue
  cause the grid display incorrectly. Is it a bug? And how to fix it?
 
  Webpage error details
 
  User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
  Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR
  3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2;
  .NET4.0C)
  Timestamp: Sat, 17 Sep 2011 03:56:56 UTC
 
 
  Message: 'undefined' is null or not an object
  Line: 464
  Char: 4
  Code: 0
  URI: http://localhost:8080/**chesscom-web/resources/com.**
 
  inmethod.grid.common.**AbstractGrid/res/script.js
 http://localhost:8080/chesscom-web/resources/com.inmethod.grid.common.AbstractGrid/res/script.js
 
 
 
  Thanks,
  Duy
 
 
 
 --**--**-
  To unsubscribe, e-mail:
  users-unsubscribe@wicket.**apache.org
 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
 
 



 --
 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 - Is is possible to have column with AJAX link to perform some action?

2011-10-24 Thread Martin Grigorov
Hi,

You can create a column that renders a Panel and this panel can
contain anything you need.

On Mon, Oct 24, 2011 at 6:03 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 Is it possible in inmethod grid to create a column where each row
 contains a link (nice to have an icon even instead of text) that a user
 can click on to initiate an AJAX event such as opening a modal dialog?
 If so is there a dedicated column property class for this already or do
 we need to create a custom one?

 Chris




-- 
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 - Is is possible to have column with AJAX link to perform some action?

2011-10-24 Thread Chris Colman
Ah, I was thinking too hard about it again. Once again the Wicket
solution is so simple I looked right past it :)

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: Monday, 24 October 2011 6:28 PM
To: users@wicket.apache.org
Subject: Re: inmethod grid - Is is possible to have column with AJAX
link
to perform some action?

Hi,

You can create a column that renders a Panel and this panel can
contain anything you need.

On Mon, Oct 24, 2011 at 6:03 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 Is it possible in inmethod grid to create a column where each row
 contains a link (nice to have an icon even instead of text) that a
user
 can click on to initiate an AJAX event such as opening a modal
dialog?
 If so is there a dedicated column property class for this already or
do
 we need to create a custom one?

 Chris




--
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


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



Re: inmethod grid problem in IE8

2011-09-19 Thread Martin Grigorov
Also try with IE9/10. They may give you better error description.

On Sun, Sep 18, 2011 at 1:18 PM, Duy Do doquoc...@gmail.com wrote:
 Hi Attila,

 I'm using version 1.4.18 of Wicket, inmethod-grid.

 I will try to test the example of inmethod grid and let you know the result.

 Thank you for your help.

 Regards,
 Duy

 On 9/18/2011 4:06 PM, Attila Király wrote:

 Repeating my previous answer to you: give more details. For example: which
 wicket, inmethod-grid versions are you using? Is the problem reproducable
 with the wicketstuff inmethod grid examples web app too?

 Attila

 2011/9/18 Duy Dodoquoc...@gmail.com

 Any suggestion?


 On 9/17/2011 10:59 AM, Duy Do wrote:

 Hi Wicketers,

 I have  a problem with inmethod-grid in IE8 as below error. This issue
 cause the grid display incorrectly. Is it a bug? And how to fix it?

 Webpage error details

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR
 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2;
 .NET4.0C)
 Timestamp: Sat, 17 Sep 2011 03:56:56 UTC


 Message: 'undefined' is null or not an object
 Line: 464
 Char: 4
 Code: 0
 URI: http://localhost:8080/**chesscom-web/resources/com.**

 inmethod.grid.common.**AbstractGrid/res/script.jshttp://localhost:8080/chesscom-web/resources/com.inmethod.grid.common.AbstractGrid/res/script.js


 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





-- 
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 problem in IE8

2011-09-18 Thread Duy Do

Any suggestion?

On 9/17/2011 10:59 AM, Duy Do wrote:

Hi Wicketers,

I have  a problem with inmethod-grid in IE8 as below error. This issue 
cause the grid display incorrectly. Is it a bug? And how to fix it?


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; 
Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 
3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)

Timestamp: Sat, 17 Sep 2011 03:56:56 UTC


Message: 'undefined' is null or not an object
Line: 464
Char: 4
Code: 0
URI: 
http://localhost:8080/chesscom-web/resources/com.inmethod.grid.common.AbstractGrid/res/script.js



Thanks,
Duy



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



Re: inmethod grid problem in IE8

2011-09-18 Thread Attila Király
Repeating my previous answer to you: give more details. For example: which
wicket, inmethod-grid versions are you using? Is the problem reproducable
with the wicketstuff inmethod grid examples web app too?

Attila

2011/9/18 Duy Do doquoc...@gmail.com

 Any suggestion?


 On 9/17/2011 10:59 AM, Duy Do wrote:

 Hi Wicketers,

 I have  a problem with inmethod-grid in IE8 as below error. This issue
 cause the grid display incorrectly. Is it a bug? And how to fix it?

 Webpage error details

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR
 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
 Timestamp: Sat, 17 Sep 2011 03:56:56 UTC


 Message: 'undefined' is null or not an object
 Line: 464
 Char: 4
 Code: 0
 URI: http://localhost:8080/**chesscom-web/resources/com.**
 inmethod.grid.common.**AbstractGrid/res/script.jshttp://localhost:8080/chesscom-web/resources/com.inmethod.grid.common.AbstractGrid/res/script.js


 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 problem in IE8

2011-09-18 Thread Duy Do

Hi Attila,

I'm using version 1.4.18 of Wicket, inmethod-grid.

I will try to test the example of inmethod grid and let you know the result.

Thank you for your help.

Regards,
Duy

On 9/18/2011 4:06 PM, Attila Király wrote:

Repeating my previous answer to you: give more details. For example: which
wicket, inmethod-grid versions are you using? Is the problem reproducable
with the wicketstuff inmethod grid examples web app too?

Attila

2011/9/18 Duy Dodoquoc...@gmail.com


Any suggestion?


On 9/17/2011 10:59 AM, Duy Do wrote:


Hi Wicketers,

I have  a problem with inmethod-grid in IE8 as below error. This issue
cause the grid display incorrectly. Is it a bug? And how to fix it?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR
3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Sat, 17 Sep 2011 03:56:56 UTC


Message: 'undefined' is null or not an object
Line: 464
Char: 4
Code: 0
URI: http://localhost:8080/**chesscom-web/resources/com.**
inmethod.grid.common.**AbstractGrid/res/script.jshttp://localhost:8080/chesscom-web/resources/com.inmethod.grid.common.AbstractGrid/res/script.js


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



Re: inmethod grid problem in IE8

2011-09-17 Thread Attila Király
Hi Duy,

which wicket, inmethod-grid versions are you using?

Regards,
Attila

2011/9/17 Duy Do doquoc...@gmail.com

 Hi Wicketers,

 I have  a problem with inmethod-grid in IE8 as below error. This issue
 cause the grid display incorrectly. Is it a bug? And how to fix it?

 Webpage error details

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR
 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
 Timestamp: Sat, 17 Sep 2011 03:56:56 UTC


 Message: 'undefined' is null or not an object
 Line: 464
 Char: 4
 Code: 0
 URI: http://localhost:8080/**chesscom-web/resources/com.**
 inmethod.grid.common.**AbstractGrid/res/script.jshttp://localhost:8080/chesscom-web/resources/com.inmethod.grid.common.AbstractGrid/res/script.js


 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 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



Re: inmethod-grid generics

2011-07-03 Thread Duy Do

Attila, thank you for your information.


On 7/3/11 1:37 AM, Attila Király wrote:

Hi Duy,

Generics were added only to the 1.5 branch of inmethod-grid. There is no
plan to backport this to the 1.4 branch.

Attila

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


Hi wicketers,

I found inmethod-gric generics for wicket 1.5 on wicketstuff but can not
find one for wicket 1.4.x. Is there any maven repo for 1.4.x?

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



Re: inmethod-grid generics

2011-07-02 Thread Attila Király
Hi Duy,

Generics were added only to the 1.5 branch of inmethod-grid. There is no
plan to backport this to the 1.4 branch.

Attila

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


 Hi wicketers,

 I found inmethod-gric generics for wicket 1.5 on wicketstuff but can not
 find one for wicket 1.4.x. Is there any maven repo for 1.4.x?

 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 Select All or Reload Grid

2011-04-20 Thread Chris Colman
I tried this exact thing today and had the same results.. no update

grid.markAllItemsDirty();
grid.update();

I have a feeling that the equals method has to return false when objects are 
updated to force a redisplay. For this reason I'm guessing that the equality 
should not be solely based on the object's database id because that doesn't 
change when the object is updated. 

Perhaps we could include the object's version number in the equality test as 
well, which will change when the object is updated (version is automatically 
managed by our ORM but probably same across most ORMs).

In our case we use JDO so I'm guessing if we add an extra comparison to the 
equals method we might get the update working as expected eg.,


boolean 
equals(Object obj)
{
   

   if ( !JDOHelper.getVersion(this).equals(JDOHelper.getVersion(obj) )
 return false;

   
}


Hmmm, I'll try that first thing tomorrow morning when I hit the office.

-Original Message-
From: Attila Király [mailto:kiralyattila...@gmail.com]
Sent: Tuesday, 19 April 2011 3:26 AM
To: users@wicket.apache.org
Subject: Re: Inmethod Grid Select All or Reload Grid

Can you provide a minimal example webapp showing the problem?

Attila

2011/4/18 GJT taulant.gju...@helvetic.com

 After debugging, I found out the with the hashCode method, the columns
 don't
 load. If I take out the hashCode method, the columns loads the data
again.
 But as I said, the selection doesn't work anymore.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-
Reload-Grid-tp3456685p3457355.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



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



Re: Inmethod Grid Select All or Reload Grid

2011-04-20 Thread Marc Nuri San Félix
Hello.
Of course, objects updated in the database shouldn't be equal to those
previously displayed in the table (they aren't equal). If you don't comply
to this you'll have problems not only with inmehtod grid.
The equals method of my beans always include at least this:

if (this.id != other.id  (this.id == null || !this.id.equals(
other.id))) {
return false;
}
if (this.version!= other.version (this.version== null ||
!this.version.
equals(other.version))) {
return false;
}
+++
The above may also be the problem when dealing with the selection, because
an object previously selected that has been updated in the database, won't
be selected again (it won't equals the previous version). That is why you
should implement your own selection methods in the DataGrid if you're
dealing with objects from a database.
Regards
On Wed, Apr 20, 2011 at 15:42, Chris Colman chr...@stepaheadsoftware.comwrote:

 I tried this exact thing today and had the same results.. no update

 grid.markAllItemsDirty();
 grid.update();

 I have a feeling that the equals method has to return false when objects
 are updated to force a redisplay. For this reason I'm guessing that the
 equality should not be solely based on the object's database id because that
 doesn't change when the object is updated.

 Perhaps we could include the object's version number in the equality test
 as well, which will change when the object is updated (version is
 automatically managed by our ORM but probably same across most ORMs).

 In our case we use JDO so I'm guessing if we add an extra comparison to the
 equals method we might get the update working as expected eg.,


 boolean
 equals(Object obj)
 {
   

   if ( !JDOHelper.getVersion(this).equals(JDOHelper.getVersion(obj) )
 return false;

   
 }


 Hmmm, I'll try that first thing tomorrow morning when I hit the office.




Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Attila Király
2011/4/18 GJT taulant.gju...@helvetic.com

 Hi there

 I started using the Inmethod DataGrid because I need resizable tables and I
 need to be able to select multi entries.

 First, I had the problem that I couldn't select all entries and the multi
 select didin't work properly. In this forum I found out that I have to
 implement hashCode in the model. After that it worked, but the grid didn't
 refresh anymore after I had changed the model.

 To sum up, if I use the hashCode, I the table doesn't refresh after I
 change
 the model. If I don't use hashCode, the selection doesn't work properly.

 The code for hashCode() and equals I'm using:

  public int hashCode() {
 return new Long(id).hashCode();
  }

  public boolean equals(final Object obj) {
 if (obj == this) {
return true;
 } else if (obj == null) {
return false;
 } else if (obj instanceof DetachableModel) {
DetachableModel other = (DetachableModel) obj;
return other.id == this.id;
 }
 return false;
  }

 Thanks for your help.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456685.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


Hi

Which version are you using (1.4 or 1.5)? What do you mean the grid does not
refresh?

I suggest
examining inmethod-grid-examples (com.inmethod.grid.examples.pages.datagrid
package) which seems to work fine.

Attila


Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread GJT
I am using wicket 1.4.16 and inmethod-grid 1.4.17

For example, I have a list of flights. I select every flight I want to
change. So I press a button which opens a modal window. There I change the
times of the selected flights. After saving, the table should load the new
data (target.addComponent(grid)). That's what I mean with refresh. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456877.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: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Marc Nuri San Félix
Try this:
+++
grid.markAllItemsDirty();
grid.update(); // - This adds the grid to AjaxRequestTarget,
so target.addComponent(grid) is not necessary
+++
Regards
--
Marc Nuri

On Mon, Apr 18, 2011 at 10:15, GJT taulant.gju...@helvetic.com wrote:

 I am using wicket 1.4.16 and inmethod-grid 1.4.17

 For example, I have a list of flights. I select every flight I want to
 change. So I press a button which opens a modal window. There I change the
 times of the selected flights. After saving, the table should load the new
 data (target.addComponent(grid)). That's what I mean with refresh.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456877.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: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread GJT
I tried that before and I tried it again, but it doesn't work. I think the
problem is somewhere with my LoadableDetachableModel which contains a
constructor, equals(Object), hashCode() and load()


Marc Nuri wrote:
 
 Try this:
 +++
 grid.markAllItemsDirty();
 grid.update(); // - This adds the grid to AjaxRequestTarget,
 so target.addComponent(grid) is not necessary
 +++
 Regards
 --
 Marc Nuri
 
 On Mon, Apr 18, 2011 at 10:15, GJT lt;taulant.gju...@helvetic.comgt;
 wrote:
 
 I am using wicket 1.4.16 and inmethod-grid 1.4.17

 For example, I have a list of flights. I select every flight I want to
 change. So I press a button which opens a modal window. There I change
 the
 times of the selected flights. After saving, the table should load the
 new
 data (target.addComponent(grid)). That's what I mean with refresh.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456877.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


 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3457237.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: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Marc Nuri San Félix
Have you debugged your project to see if the IDatasource is queried when you
perform the Ajax reload??
If you reload the page does the data update??
--
Marc Nuri

On Mon, Apr 18, 2011 at 13:19, GJT taulant.gju...@helvetic.com wrote:

 I tried that before and I tried it again, but it doesn't work. I think the
 problem is somewhere with my LoadableDetachableModel which contains a
 constructor, equals(Object), hashCode() and load()


 Marc Nuri wrote:
 
  Try this:
  +++
  grid.markAllItemsDirty();
  grid.update(); // - This adds the grid to AjaxRequestTarget,
  so target.addComponent(grid) is not necessary
  +++
  Regards
  --
  Marc Nuri
 
  On Mon, Apr 18, 2011 at 10:15, GJT lt;taulant.gju...@helvetic.comgt;
  wrote:
 
  I am using wicket 1.4.16 and inmethod-grid 1.4.17
 
  For example, I have a list of flights. I select every flight I want to
  change. So I press a button which opens a modal window. There I change
  the
  times of the selected flights. After saving, the table should load the
  new
  data (target.addComponent(grid)). That's what I mean with refresh.
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456877.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
 
 
 


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3457237.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: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread GJT
After debugging, I found out the with the hashCode method, the columns don't
load. If I take out the hashCode method, the columns loads the data again.
But as I said, the selection doesn't work anymore. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3457355.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: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Marc Nuri San Félix
For what you're saying, I believe you've got something messed up in your
Bean's hashCode and equals method.
Inmethod's Datagrid keeps a Set (HashSet) of IModel objects to keep track of
which items are selected. If you've implemented correctly the equals method
in your bean and believe that there's something wrong in the way the
Datagrid keeps track of selected items, you can implement your
own isItemSelected, resetSelectedItems, selectAllVisibleItems methods in a
custom implementation of Datagrid or Abstractdatagrid.
--
Marc Nuri

On Mon, Apr 18, 2011 at 14:19, GJT taulant.gju...@helvetic.com wrote:

 After debugging, I found out the with the hashCode method, the columns
 don't
 load. If I take out the hashCode method, the columns loads the data again.
 But as I said, the selection doesn't work anymore.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3457355.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: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Attila Király
Can you provide a minimal example webapp showing the problem?

Attila

2011/4/18 GJT taulant.gju...@helvetic.com

 After debugging, I found out the with the hashCode method, the columns
 don't
 load. If I take out the hashCode method, the columns loads the data again.
 But as I said, the selection doesn't work anymore.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3457355.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: inmethod grid

2010-07-02 Thread nino martinez wael
Ok i'll put in my stuff when I get time, hopefully during next week..

2010/7/2 Charles Deal chuckdea...@gmail.com

 Some of my changes alter the inmethod core to facilitate inheritance too.
 If the change is in the name of a more extensible component, than I say go
 for it.

 On Thu, Jul 1, 2010 at 1:16 PM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

  Heh, I guess he don't mind the additions me and Charles have made then.
 
  Only thing about my code are that my delete button are using a workaround
  to
  be functional, otherwise i'd have to change Matejs core code so it
 supports
  inheritance better..
 
  Nice that his site are running brix, and also shows it..
 
 
  regards Nino
 
  2010/7/1 Martijn Dashorst martijn.dasho...@gmail.com
 
   Matej is busy getting rich from his iPhone application called Air
   Video (http://inmethod.com). Note that the website is running brix
   cms.
  
   Martijn
  
   On Thu, Jul 1, 2010 at 2:49 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
I'd say we give Matej til tomorrow, and then we put in our changes?
   
I tried to get a hold of Matej on facebook, but no answer.. And I
 know
  at
least one who would like to use my changes..
   
2010/7/1 Charles Deal chuckdea...@gmail.com
   
I believe Matej is the only developer. I also have code to
 contribute
  to
the
project.  Considering it is a WicketStuff project, I suppose that we
   could
make the changes ourselves.  I posted my changes as patches in order
  to
   get
some feedback, but I received no comments for or against my proposed
changes.
   
On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:
   
 Wondering if there are any active developers on inmethod? A while
  ago
   I
 wrote that I had 2 components that I wanted to contribute, so
 should
  I
just
 add them or? I guess if no one answers it's a silent yes ?

 -nino

   
   
  
  
  
   --
   Become a Wicket expert, learn from the best: http://wicketinaction.com
   Apache Wicket 1.4 increases type safety for web applications
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



Re: inmethod grid

2010-07-01 Thread Charles Deal
I believe Matej is the only developer. I also have code to contribute to the
project.  Considering it is a WicketStuff project, I suppose that we could
make the changes ourselves.  I posted my changes as patches in order to get
some feedback, but I received no comments for or against my proposed
changes.

On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Wondering if there are any active developers on inmethod? A while ago I
 wrote that I had 2 components that I wanted to contribute, so should I just
 add them or? I guess if no one answers it's a silent yes ?

 -nino



Re: inmethod grid

2010-07-01 Thread nino martinez wael
I'd say we give Matej til tomorrow, and then we put in our changes?

I tried to get a hold of Matej on facebook, but no answer.. And I know at
least one who would like to use my changes..

2010/7/1 Charles Deal chuckdea...@gmail.com

 I believe Matej is the only developer. I also have code to contribute to
 the
 project.  Considering it is a WicketStuff project, I suppose that we could
 make the changes ourselves.  I posted my changes as patches in order to get
 some feedback, but I received no comments for or against my proposed
 changes.

 On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

  Wondering if there are any active developers on inmethod? A while ago I
  wrote that I had 2 components that I wanted to contribute, so should I
 just
  add them or? I guess if no one answers it's a silent yes ?
 
  -nino
 



Re: inmethod grid

2010-07-01 Thread Martijn Dashorst
Matej is busy getting rich from his iPhone application called Air
Video (http://inmethod.com). Note that the website is running brix
cms.

Martijn

On Thu, Jul 1, 2010 at 2:49 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 I'd say we give Matej til tomorrow, and then we put in our changes?

 I tried to get a hold of Matej on facebook, but no answer.. And I know at
 least one who would like to use my changes..

 2010/7/1 Charles Deal chuckdea...@gmail.com

 I believe Matej is the only developer. I also have code to contribute to
 the
 project.  Considering it is a WicketStuff project, I suppose that we could
 make the changes ourselves.  I posted my changes as patches in order to get
 some feedback, but I received no comments for or against my proposed
 changes.

 On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

  Wondering if there are any active developers on inmethod? A while ago I
  wrote that I had 2 components that I wanted to contribute, so should I
 just
  add them or? I guess if no one answers it's a silent yes ?
 
  -nino
 





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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



Re: inmethod grid

2010-07-01 Thread nino martinez wael
Heh, I guess he don't mind the additions me and Charles have made then.

Only thing about my code are that my delete button are using a workaround to
be functional, otherwise i'd have to change Matejs core code so it supports
inheritance better..

Nice that his site are running brix, and also shows it..


regards Nino

2010/7/1 Martijn Dashorst martijn.dasho...@gmail.com

 Matej is busy getting rich from his iPhone application called Air
 Video (http://inmethod.com). Note that the website is running brix
 cms.

 Martijn

 On Thu, Jul 1, 2010 at 2:49 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  I'd say we give Matej til tomorrow, and then we put in our changes?
 
  I tried to get a hold of Matej on facebook, but no answer.. And I know at
  least one who would like to use my changes..
 
  2010/7/1 Charles Deal chuckdea...@gmail.com
 
  I believe Matej is the only developer. I also have code to contribute to
  the
  project.  Considering it is a WicketStuff project, I suppose that we
 could
  make the changes ourselves.  I posted my changes as patches in order to
 get
  some feedback, but I received no comments for or against my proposed
  changes.
 
  On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
   Wondering if there are any active developers on inmethod? A while ago
 I
   wrote that I had 2 components that I wanted to contribute, so should I
  just
   add them or? I guess if no one answers it's a silent yes ?
  
   -nino
  
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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




Re: inmethod grid

2010-07-01 Thread Charles Deal
Some of my changes alter the inmethod core to facilitate inheritance too.
If the change is in the name of a more extensible component, than I say go
for it.

On Thu, Jul 1, 2010 at 1:16 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Heh, I guess he don't mind the additions me and Charles have made then.

 Only thing about my code are that my delete button are using a workaround
 to
 be functional, otherwise i'd have to change Matejs core code so it supports
 inheritance better..

 Nice that his site are running brix, and also shows it..


 regards Nino

 2010/7/1 Martijn Dashorst martijn.dasho...@gmail.com

  Matej is busy getting rich from his iPhone application called Air
  Video (http://inmethod.com). Note that the website is running brix
  cms.
 
  Martijn
 
  On Thu, Jul 1, 2010 at 2:49 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   I'd say we give Matej til tomorrow, and then we put in our changes?
  
   I tried to get a hold of Matej on facebook, but no answer.. And I know
 at
   least one who would like to use my changes..
  
   2010/7/1 Charles Deal chuckdea...@gmail.com
  
   I believe Matej is the only developer. I also have code to contribute
 to
   the
   project.  Considering it is a WicketStuff project, I suppose that we
  could
   make the changes ourselves.  I posted my changes as patches in order
 to
  get
   some feedback, but I received no comments for or against my proposed
   changes.
  
   On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael 
   nino.martinez.w...@gmail.com wrote:
  
Wondering if there are any active developers on inmethod? A while
 ago
  I
wrote that I had 2 components that I wanted to contribute, so should
 I
   just
add them or? I guess if no one answers it's a silent yes ?
   
-nino
   
  
  
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.4 increases type safety for web applications
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: InMethod Grid

2010-06-20 Thread Douglas Ferguson
Looks like it is Apache 2.0, which I'd be willing to guess would be required 
for something to show up on wicketstuff.

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent/pom.xml


D/

On Jun 20, 2010, at 8:41 AM, Avraham Rosenzweig wrote:

 Hello All,
 
   I've been looking at the InMethod Grid (from wicketstuff) for use in one
 of my projects, but I can't find out under what license it is distributed.
   Does someone know something about it? A URL for the license info/text
 would be nice.
 
   And if we are already talking about it, I would be happy if anyone have a
 suggestion about a Wicket Library that provides a Data Table with support
 for column resizing, sort, pagination, and scrolling inside the table like
 InMethod We are open for suggestions, either open source or commercial.
 
 Thanks,
Avraham
 
 
 -- 
 []'s
 Avraham Rosenzweig
 avrah...@gmail.com


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



Re: InMethod Grid

2010-06-20 Thread Jeremy Thomerson
It is ASL 2, but the Apache license is *not* required for WicketStuff.

Jeremy Thomerson
-- sent from my smartphone - please excuse formatting and spelling errors

On Jun 20, 2010 12:10 PM, Douglas Ferguson doug...@douglasferguson.us
wrote:

Looks like it is Apache 2.0, which I'd be willing to guess would be required
for something to show up on wicketstuff.

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent/pom.xml


D/


On Jun 20, 2010, at 8:41 AM, Avraham Rosenzweig wrote:

 Hello All,

 I've been looking at th...
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


Re: inmethod-grid filtering

2010-06-08 Thread nino martinez wael
well sort of.. I've made a query model (cant remember the inmethod
term rigth now) that can do searches, it's not a top or bottom bar for
inmethod grid, but it does do somesort of filtering..

What had you in mind?



2010/6/8 Josh Chappelle jchappe...@4redi.com:
 Hi,



 Has anyone added filtering capabilities to the inmethod-grid component?



 Thanks,



 Josh



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



RE: inmethod-grid filtering

2010-06-08 Thread Josh Chappelle
I guess I was hoping that there was a Toolbar that someone had developed
that would be added to the DataGrid and work similar to the way it works
with the DataTable component. 

I like the DataGrid and would love to start switching our DataTables over to
DataGrids but I can't unless I can have the filtering functionality. 

Thanks,

Josh

-Original Message-
From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
Sent: Tuesday, June 08, 2010 12:51 PM
To: users@wicket.apache.org
Subject: Re: inmethod-grid filtering

well sort of.. I've made a query model (cant remember the inmethod
term rigth now) that can do searches, it's not a top or bottom bar for
inmethod grid, but it does do somesort of filtering..

What had you in mind?



2010/6/8 Josh Chappelle jchappe...@4redi.com:
 Hi,



 Has anyone added filtering capabilities to the inmethod-grid component?



 Thanks,



 Josh



-
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 / Delete/add a row?

2010-04-28 Thread Swanthe Lindgren
The row model is probably easily accessible from your proposed delete 
column, but I don't know how to rerender a single row.


//Swanthe

On 2010-04-27 17:48, nino martinez wael wrote:

True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgrenswanthe.lindg...@megasol.se:
   

That is a part of the inmethod grid I find very hard, as its based solely on
a list of models. I haven't even found a way to know which row is selected,
even less which row is next to the selected row, which can be very useful
information when you wish to insert a row or select the row before/after the
row you just removed.

//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:
 

Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
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


 

-
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 / Delete/add a row?

2010-04-28 Thread Thierry Peng

Hello

I solved this problem some months ago and created a 
SubmitCancelDeleteColumn. A custom Grid Class provides the possibility 
to add a row.

I had to fork the inmethod-grid because some changes were necessary.
Drop me an email if you want the source code of this fork and the client 
code.


greetings


Swanthe Lindgren schrieb:
The row model is probably easily accessible from your proposed delete 
column, but I don't know how to rerender a single row.


//Swanthe

On 2010-04-27 17:48, nino martinez wael wrote:

True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgrenswanthe.lindg...@megasol.se:
  
That is a part of the inmethod grid I find very hard, as its based 
solely on
a list of models. I haven't even found a way to know which row is 
selected,
even less which row is next to the selected row, which can be very 
useful
information when you wish to insert a row or select the row 
before/after the

row you just removed.

//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:


Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
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


 

-
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



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



Re: inmethod grid / Delete/add a row?

2010-04-27 Thread Swanthe Lindgren
That is a part of the inmethod grid I find very hard, as its based 
solely on a list of models. I haven't even found a way to know which row 
is selected, even less which row is next to the selected row, which can 
be very useful information when you wish to insert a row or select the 
row before/after the row you just removed.


//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:

Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
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 / Delete/add a row?

2010-04-27 Thread nino martinez wael
True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgren swanthe.lindg...@megasol.se:
 That is a part of the inmethod grid I find very hard, as its based solely on
 a list of models. I haven't even found a way to know which row is selected,
 even less which row is next to the selected row, which can be very useful
 information when you wish to insert a row or select the row before/after the
 row you just removed.

 //Swanthe

 On 2010-04-26 16:00, nino martinez wael wrote:

 Hi

 Are there any built in functionality to delete or add rows with
 inmethod grid? Or should I just roll my own?

 regards Nino

 -
 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



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



Re: InMethod Grid: resizing rowcount

2010-03-16 Thread Pointbreak
On Mon, 15 Mar 2010 16:06 +0100, Thierry Peng p...@glue.ch wrote:
 Pointbreak schrieb:
  On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote:

  Pointbreak schrieb:
  
  The public interface of the inmethod DataGrid/DefaultDataGrid does not
  seem to provide functionality to expand the number of rows after an
  ajax-call that e.g. adds data to the underlying datasource. Is there a
  way to tell the DataGrid that the underlying datasource may have
  changed, to the effect that the existing row count is not valid anymore?
  I.e. like markAllItemsDirty(), but then telling the grid to reload the
  entire underlying model, including rowcount, instead of only the
  individual rows?
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 


  I tackled a similar problem (an add button for an editable datagrid) 
  the following way:
 
  - create a new object with reflection
  - insert it in the backing list (model)
  - call update on the grid
  - add the grid to the requesttarget
 
  public class MyDataGrid extends DecoratedDataGrid
  {
   protected List rawList;
 
   protected final Class modelAsClass;
 
  public MyDataGrid(String id, String title, String buttonTitle, List?
  list,
ListIGridColumn columns, final Class? modelAsClass)
{
  super(id, title, buttonTitle, new MyDataProviderAdapter(new 
  ListDataProvider(list)),
  columns, modelAsClass);
  log.debug(creating grid for type  + modelAsClass.getSimpleName()
  +  no of columns:  + columns.size() +  size of datalist:  + 
  list.size());
  this.rawList = list;
}
 
   @Override
   protected void onAddRow(AjaxRequestTarget target, Form? form)
{
  Object obj = modelAsClass.newInstance();
 
  rawList.add(obj);
  log.debug(object of class  + modelAsClass.getName() +  
  successfully inserted);
  update();
  target.addComponent(getGrid());
}
  }
 
  This takes place in a custom subclass of the defaultdatagrid. The 
  onAddRow method is called from an ajaxbutton (onsubmit)
  I hope this helps
 
  -- 
  Thierry Peng
  
 
  You must be doing something else in addition to that (or I am missing
  something). As far as I can see, the DefaultDataGrid class will not ask
  its model/datasource for a new rowcount when you call update(). Hence
  the call to update() will not result in the addition of a row to the
  grid, even though you added the row to your model. Are you sure you are
  not replacing the entire dataGrid in e.g. your getGrid() call?
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 

 nope, there is no magic in the getGrid() method. it only returns the 
 grid. If I read the update() method
 correctly I may even omit that call. So, the target.addComponent(grid) 
 is sufficient
 I'm using the inmethod-grid-1.4-rc7 with some extensions. wicket version 
 is 1.4.6

Ok thanks for your help. The problem is that inmethod 's call to
IDataSource.query() asks for the rows upto the last known total row
count. In your case that probably does not matter, since you just return
an iterator over the entire datasource, and update the rowcount
accordingly. I work with very large datasources, and unknown rowcounts.
I can workaround this issue by providing the page-size to my datasource,
so that I can fix the IQuery.getCount() asked by inmethod. Not a nice
solution, but will work for now.


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



Re: InMethod Grid: resizing rowcount

2010-03-16 Thread Erik van Oosten

I can confirm this. It took me a few days of debugging before I found out :(

Another solution is to just replace the inmethod grid with a freshly 
created instance after data changes. You can share the DataSource, and 
you may have to copy over the set of selected items.


Regards,
   Erik.


Pointbreak wrote:

...
Ok thanks for your help. The problem is that inmethod 's call to
IDataSource.query() asks for the rows upto the last known total row
count. In your case that probably does not matter, since you just return
an iterator over the entire datasource, and update the rowcount
accordingly. I work with very large datasources, and unknown rowcounts.
I can workaround this issue by providing the page-size to my datasource,
so that I can fix the IQuery.getCount() asked by inmethod. Not a nice
solution, but will work for now.
  


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: InMethod Grid: resizing rowcount

2010-03-15 Thread Thierry Peng

Pointbreak schrieb:

The public interface of the inmethod DataGrid/DefaultDataGrid does not
seem to provide functionality to expand the number of rows after an
ajax-call that e.g. adds data to the underlying datasource. Is there a
way to tell the DataGrid that the underlying datasource may have
changed, to the effect that the existing row count is not valid anymore?
I.e. like markAllItemsDirty(), but then telling the grid to reload the
entire underlying model, including rowcount, instead of only the
individual rows?

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

  
I tackled a similar problem (an add button for an editable datagrid) 
the following way:


- create a new object with reflection
- insert it in the backing list (model)
- call update on the grid
- add the grid to the requesttarget

public class MyDataGrid extends DecoratedDataGrid
{
protected List rawList;

protected final Class modelAsClass;

public MyDataGrid(String id, String title, String buttonTitle, List? list,
 ListIGridColumn columns, final Class? modelAsClass)
 {
   super(id, title, buttonTitle, new MyDataProviderAdapter(new 
ListDataProvider(list)),

   columns, modelAsClass);
   log.debug(creating grid for type  + modelAsClass.getSimpleName()
   +  no of columns:  + columns.size() +  size of datalist:  + 
list.size());

   this.rawList = list;
 }

@Override
protected void onAddRow(AjaxRequestTarget target, Form? form)
 {
   Object obj = modelAsClass.newInstance();

   rawList.add(obj);
   log.debug(object of class  + modelAsClass.getName() +  
successfully inserted);

   update();
   target.addComponent(getGrid());
 }
}

This takes place in a custom subclass of the defaultdatagrid. The 
onAddRow method is called from an ajaxbutton (onsubmit)

I hope this helps

--
Thierry Peng
  __  _
 / / /   / / / / /   GLUE Software Engineering AG
/ / __/ /   / / / / __/ Zieglerstr. 34, 3007 Bern,  Switzerland
/ /_/ / /___/ /_/ / /___Phone: +41-(0)31/385 30 34Fax: 30 18
\/_/\/_/___mailto: p...@glue.ch


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



Re: InMethod Grid: resizing rowcount

2010-03-15 Thread Pointbreak
On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote:
 Pointbreak schrieb:
  The public interface of the inmethod DataGrid/DefaultDataGrid does not
  seem to provide functionality to expand the number of rows after an
  ajax-call that e.g. adds data to the underlying datasource. Is there a
  way to tell the DataGrid that the underlying datasource may have
  changed, to the effect that the existing row count is not valid anymore?
  I.e. like markAllItemsDirty(), but then telling the grid to reload the
  entire underlying model, including rowcount, instead of only the
  individual rows?
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 

 I tackled a similar problem (an add button for an editable datagrid) 
 the following way:
 
 - create a new object with reflection
 - insert it in the backing list (model)
 - call update on the grid
 - add the grid to the requesttarget
 
 public class MyDataGrid extends DecoratedDataGrid
 {
  protected List rawList;
 
  protected final Class modelAsClass;
 
 public MyDataGrid(String id, String title, String buttonTitle, List?
 list,
   ListIGridColumn columns, final Class? modelAsClass)
   {
 super(id, title, buttonTitle, new MyDataProviderAdapter(new 
 ListDataProvider(list)),
 columns, modelAsClass);
 log.debug(creating grid for type  + modelAsClass.getSimpleName()
 +  no of columns:  + columns.size() +  size of datalist:  + 
 list.size());
 this.rawList = list;
   }
 
  @Override
  protected void onAddRow(AjaxRequestTarget target, Form? form)
   {
 Object obj = modelAsClass.newInstance();
 
 rawList.add(obj);
 log.debug(object of class  + modelAsClass.getName() +  
 successfully inserted);
 update();
 target.addComponent(getGrid());
   }
 }
 
 This takes place in a custom subclass of the defaultdatagrid. The 
 onAddRow method is called from an ajaxbutton (onsubmit)
 I hope this helps
 
 -- 
 Thierry Peng

You must be doing something else in addition to that (or I am missing
something). As far as I can see, the DefaultDataGrid class will not ask
its model/datasource for a new rowcount when you call update(). Hence
the call to update() will not result in the addition of a row to the
grid, even though you added the row to your model. Are you sure you are
not replacing the entire dataGrid in e.g. your getGrid() call?

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



Re: InMethod Grid: resizing rowcount

2010-03-15 Thread Thierry Peng

Pointbreak schrieb:

On Mon, 15 Mar 2010 15:06 +0100, Thierry Peng p...@glue.ch wrote:
  

Pointbreak schrieb:


The public interface of the inmethod DataGrid/DefaultDataGrid does not
seem to provide functionality to expand the number of rows after an
ajax-call that e.g. adds data to the underlying datasource. Is there a
way to tell the DataGrid that the underlying datasource may have
changed, to the effect that the existing row count is not valid anymore?
I.e. like markAllItemsDirty(), but then telling the grid to reload the
entire underlying model, including rowcount, instead of only the
individual rows?

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

  
  
I tackled a similar problem (an add button for an editable datagrid) 
the following way:


- create a new object with reflection
- insert it in the backing list (model)
- call update on the grid
- add the grid to the requesttarget

public class MyDataGrid extends DecoratedDataGrid
{
 protected List rawList;

 protected final Class modelAsClass;

public MyDataGrid(String id, String title, String buttonTitle, List?
list,
  ListIGridColumn columns, final Class? modelAsClass)
  {
super(id, title, buttonTitle, new MyDataProviderAdapter(new 
ListDataProvider(list)),

columns, modelAsClass);
log.debug(creating grid for type  + modelAsClass.getSimpleName()
+  no of columns:  + columns.size() +  size of datalist:  + 
list.size());

this.rawList = list;
  }

 @Override
 protected void onAddRow(AjaxRequestTarget target, Form? form)
  {
Object obj = modelAsClass.newInstance();

rawList.add(obj);
log.debug(object of class  + modelAsClass.getName() +  
successfully inserted);

update();
target.addComponent(getGrid());
  }
}

This takes place in a custom subclass of the defaultdatagrid. The 
onAddRow method is called from an ajaxbutton (onsubmit)

I hope this helps

--
Thierry Peng



You must be doing something else in addition to that (or I am missing
something). As far as I can see, the DefaultDataGrid class will not ask
its model/datasource for a new rowcount when you call update(). Hence
the call to update() will not result in the addition of a row to the
grid, even though you added the row to your model. Are you sure you are
not replacing the entire dataGrid in e.g. your getGrid() call?

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

  
nope, there is no magic in the getGrid() method. it only returns the 
grid. If I read the update() method
correctly I may even omit that call. So, the target.addComponent(grid) 
is sufficient
I'm using the inmethod-grid-1.4-rc7 with some extensions. wicket version 
is 1.4.6


--
Thierry Peng
  __  _
 / / /   / / / / /   GLUE Software Engineering AG
/ / __/ /   / / / / __/ Zieglerstr. 34, 3007 Bern,  Switzerland
/ /_/ / /___/ /_/ / /___Phone: +41-(0)31/385 30 34Fax: 30 18
\/_/\/_/___mailto: p...@glue.ch


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



Re: InMethod grid AbstractColumn#getHeaderCssClass() problem.

2010-02-01 Thread Matej Knopp
But the css class is in the output. Can't it be a styling problem?
I.e. the css being by more specific rule?

Can you try something like

th.centerAlign *  {
  text-align: center !important;
}

Or even more specific clas

th.centerAlign div.imxt-a {
text-align:center !important;
}

If that doesn't work, this should

div.imxt-vista table.imxt-head th.centerAlign div.imxt-a {
text-align:center !important;
}

You should use firebug (or something similar) to inspect the elements
to see which CSS ruels get applied and how to override them.

-Matej

On Mon, Feb 1, 2010 at 4:45 PM, Warren Bell warrenbe...@gmail.com wrote:
 I am having a problem with AbstractColumn#getHeaderCssClass() in an inmethod
 datagrid. It is writing my css class to the th tag but my css class is not
 working. I think it is something to do with IE8. Unfortunately the company
 that uses this app uses IE8 and the app is written for IE8. Digging threw
 the code, I can see were the css class name is added, but there does not
 seem to be any way to modify it or implementing my own ColumnHeader panel
 without copying a whole lot of classes. I think it would probably be better
 if the users css class was added to its own div tag.

 Anyway, does anyone know of a simple way of getting my css class to work in
 an InMethod grid header? All I want to do is center the header text.
 Customers can get real nit picky.

 The same class works for an individual cell:

           @Override
           public String getCellCssClass(IModel rowModel, int rowNum)
           {
               return centerAlign;
           }
          but, this does not work for the header:

           @Override
           public String getHeaderCssClass()
           {
               return centerAlign;
           }

 The th tag that is getting created is:

 th style=width:125px class=imxt-want-prelight centerAligndiv
 class=imxt-adiv class=imxt-ba id=id20 href=#
 class=imxt-sort-header imxt-sort-header-none onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:body:grid:header:header:getOrderCostFromItems::IBehaviorListener:0:',null,null,
 function() {return Wicket.$('id20') != null;}.bind(this));return !wcall;
 div class=imxt-sort-header1divTotal/div/div
 /a/diva class=imxt-handle href=# onclick=return
 false/a/div/th

 My css class:

 .centerAlign {
   text-align: center;
 }

 --
 Thanks,

 Warren


 -
 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 AbstractColumn#getHeaderCssClass() problem.

2010-02-01 Thread Warren Bell

Your first suggestion worked:

th.centerAlign *  {
 text-align: center !important;
}

Sorry about that, I just don't know my css very well. Just a suggestion, but 
maybe the JavaDocs should mention something about that?

Also, what is the future of InMethod?

Warren 




Matej Knopp wrote:

But the css class is in the output. Can't it be a styling problem?
I.e. the css being by more specific rule?

Can you try something like

th.centerAlign *  {
  text-align: center !important;
}

Or even more specific clas

th.centerAlign div.imxt-a {
text-align:center !important;
}

If that doesn't work, this should

div.imxt-vista table.imxt-head th.centerAlign div.imxt-a {
text-align:center !important;
}

You should use firebug (or something similar) to inspect the elements
to see which CSS ruels get applied and how to override them.

-Matej

On Mon, Feb 1, 2010 at 4:45 PM, Warren Bell warrenbe...@gmail.com wrote:
  

I am having a problem with AbstractColumn#getHeaderCssClass() in an inmethod
datagrid. It is writing my css class to the th tag but my css class is not
working. I think it is something to do with IE8. Unfortunately the company
that uses this app uses IE8 and the app is written for IE8. Digging threw
the code, I can see were the css class name is added, but there does not
seem to be any way to modify it or implementing my own ColumnHeader panel
without copying a whole lot of classes. I think it would probably be better
if the users css class was added to its own div tag.

Anyway, does anyone know of a simple way of getting my css class to work in
an InMethod grid header? All I want to do is center the header text.
Customers can get real nit picky.

The same class works for an individual cell:

  @Override
  public String getCellCssClass(IModel rowModel, int rowNum)
  {
  return centerAlign;
  }
 but, this does not work for the header:

  @Override
  public String getHeaderCssClass()
  {
  return centerAlign;
  }

The th tag that is getting created is:

th style=width:125px class=imxt-want-prelight centerAligndiv
class=imxt-adiv class=imxt-ba id=id20 href=#
class=imxt-sort-header imxt-sort-header-none onclick=var
wcall=wicketAjaxGet('?wicket:interface=:4:body:grid:header:header:getOrderCostFromItems::IBehaviorListener:0:',null,null,
function() {return Wicket.$('id20') != null;}.bind(this));return !wcall;
div class=imxt-sort-header1divTotal/div/div
/a/diva class=imxt-handle href=# onclick=return
false/a/div/th

My css class:

.centerAlign {
  text-align: center;
}

--
Thanks,

Warren


-
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

  



--
Thanks,

Warren Bell


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



Re: inmethod grid sorting on FireFox

2009-12-07 Thread Matej Knopp
I just tried the sorting with grid examples in Firefox 3.5.5 and it
works just fine.

-Matej

On Mon, Dec 7, 2009 at 10:20 PM, Charles Deal chuckdea...@gmail.com wrote:
 I'm using Wicket 1.4.1 with inmethod grid 1.4.1.

 We have successfully used the inmethod grid in a few different scenarios but
 have focused mostly on supporting IE6.  When a grid column is sortable, you
 can click the header for the column to initiate the sort.  In IE6 this works
 as expected, however we are now testing our app in FF3.5.5 and when the
 header is clicked we receive
 Ajax POST stopped because of precondition check,
 url:../../../../?wicket:interface=:10:contentPanel:dataForm:romEvents:2:collapsibleBody:sections:1:nonemptyLanguage:subsections:slocWrapper:romSlocData:collapsibleBody:sections:1:slocData:datagrid:form:header:header:csu::IActivePageBehaviorListener:0:4wicket:ignoreIfNotActive=true
 in the Wicket Ajax Debug window.

 Upon investigation with FireBug, the Wicket.$$ is returning false.  It is at
 this point that I am at a loss.  The Wicket.$$ method is able to
 getElementById and return an instance of the object but for some reason it
 is a different instance of the same element.  In my example, the
 getElementById returns an instance that has children (correct) while the
 element that was passed to the Wicket.$$ method does not have children
 (incorrect).  How could the 'this' object (which is what is passed to the
 Wicket.$$ method as element) not match what getElementById() returns?
 *
 *
 As a sanity check has anyone else implemented a sorting column with inmethod
 DataGrid and used FireFox 3.5.5 to test it?  Can anyone shed some light on
 this problem for me?


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



Re: inmethod grid sorting on FireFox

2009-12-07 Thread Charles Deal
Yeah, I figured as much.  I thought I was using a stock Header row/event,
but I'll double check that in the morning.  I'll also be upgrading to 1.4.3
and 1.4-SNAPSHOT in the morning to make sure there is not some patch that I
am missing.


On Mon, Dec 7, 2009 at 4:51 PM, Matej Knopp matej.kn...@gmail.com wrote:

 I just tried the sorting with grid examples in Firefox 3.5.5 and it
 works just fine.

 -Matej

 On Mon, Dec 7, 2009 at 10:20 PM, Charles Deal chuckdea...@gmail.com
 wrote:
  I'm using Wicket 1.4.1 with inmethod grid 1.4.1.
 
  We have successfully used the inmethod grid in a few different scenarios
 but
  have focused mostly on supporting IE6.  When a grid column is sortable,
 you
  can click the header for the column to initiate the sort.  In IE6 this
 works
  as expected, however we are now testing our app in FF3.5.5 and when the
  header is clicked we receive
  Ajax POST stopped because of precondition check,
 
 url:../../../../?wicket:interface=:10:contentPanel:dataForm:romEvents:2:collapsibleBody:sections:1:nonemptyLanguage:subsections:slocWrapper:romSlocData:collapsibleBody:sections:1:slocData:datagrid:form:header:header:csu::IActivePageBehaviorListener:0:4wicket:ignoreIfNotActive=true
  in the Wicket Ajax Debug window.
 
  Upon investigation with FireBug, the Wicket.$$ is returning false.  It is
 at
  this point that I am at a loss.  The Wicket.$$ method is able to
  getElementById and return an instance of the object but for some reason
 it
  is a different instance of the same element.  In my example, the
  getElementById returns an instance that has children (correct) while the
  element that was passed to the Wicket.$$ method does not have children
  (incorrect).  How could the 'this' object (which is what is passed to the
  Wicket.$$ method as element) not match what getElementById() returns?
  *
  *
  As a sanity check has anyone else implemented a sorting column with
 inmethod
  DataGrid and used FireFox 3.5.5 to test it?  Can anyone shed some light
 on
  this problem for me?
 

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




Re: inmethod grid generics patch

2009-05-08 Thread Matej Knopp
Hi,

it's not abandoned. There's a project created for it in wicketstuff
jira that can be used to submit patches.

-Matej

On Fri, May 8, 2009 at 11:49 PM, Brill Pappin br...@pappin.ca wrote:
 according to this post;

 http://tinyurl.com/qlghyf

 the inmethod grid it he wicketstuff modules was to get generics.

 I'm finding the missing generics a real pain in the behind but I also have a
 recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does not yet have
 generics.

 Does anyone know if this component has been abandoned or not?
 If I have to I'll go an add the generics myself, but if there is a copy out
 there that already has them I'd rather use that version.

 - Brill Pappin

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



Re: inmethod grid generics patch

2009-05-08 Thread Matej Knopp
Found the patch, will assign it to jira issue. And possibly apply after review.

-Matej

On Fri, May 8, 2009 at 11:54 PM, Matej Knopp matej.kn...@gmail.com wrote:
 Hi,

 it's not abandoned. There's a project created for it in wicketstuff
 jira that can be used to submit patches.

 -Matej

 On Fri, May 8, 2009 at 11:49 PM, Brill Pappin br...@pappin.ca wrote:
 according to this post;

 http://tinyurl.com/qlghyf

 the inmethod grid it he wicketstuff modules was to get generics.

 I'm finding the missing generics a real pain in the behind but I also have a
 recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does not yet have
 generics.

 Does anyone know if this component has been abandoned or not?
 If I have to I'll go an add the generics myself, but if there is a copy out
 there that already has them I'd rather use that version.

 - Brill Pappin


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



Re: inmethod grid generics patch

2009-05-08 Thread Brill Pappin

That would be great!

If you need an area to focus on, it's the generics that type things  
like getSelectedItems() etc. and some of the other common overrides.


- Brill Pappin


On 8-May-09, at 5:57 PM, Matej Knopp wrote:

Found the patch, will assign it to jira issue. And possibly apply  
after review.


-Matej

On Fri, May 8, 2009 at 11:54 PM, Matej Knopp matej.kn...@gmail.com  
wrote:

Hi,

it's not abandoned. There's a project created for it in wicketstuff
jira that can be used to submit patches.

-Matej

On Fri, May 8, 2009 at 11:49 PM, Brill Pappin br...@pappin.ca  
wrote:

according to this post;

http://tinyurl.com/qlghyf

the inmethod grid it he wicketstuff modules was to get generics.

I'm finding the missing generics a real pain in the behind but I  
also have a
recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does  
not yet have

generics.

Does anyone know if this component has been abandoned or not?
If I have to I'll go an add the generics myself, but if there is a  
copy out

there that already has them I'd rather use that version.

- Brill Pappin




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





smime.p7s
Description: S/MIME cryptographic signature


Re: inmethod grid converter/formatter?

2009-05-07 Thread Ryan McKinley

what about just implementing AbstractLightWeightColumn#newCell?

this lets you write text directly to the output...


On May 7, 2009, at 4:15 PM, Brill Pappin wrote:

I'm spiking on the inmethod grid components from wicketstuff (1.4- 
SNAPSHOT)


I need to be able to format the data in columns and or modify it for  
view only columns.


the specific case is a description field that sometime needs and  
ellipsis.


I can't see any way to add converters or formatters to the column  
models.. have anyone else tried this or come up with a solution?


So far the only solution i have is to wrap my Pojo's in another pojo  
and provide read-only access to one of the fields.


- Brill Pappin




Re: inmethod grid converter/formatter?

2009-05-07 Thread Brill Pappin

that would certainly work, but I'd lose the editor column I'm using ;)
All i really need is to be able to add a display formatter so i can  
truncate the content with an ellipsis. Even a method i could override  
when its outputting the label content would work. If there is such a  
method, I'm unsure where it is.


I constantly need to reformat some content into something the user can  
see. but with a inmethod grid, you actually need a display formatter  
and an editor formatter.


- Brill Pappin

On 7-May-09, at 4:21 PM, Ryan McKinley wrote:


what about just implementing AbstractLightWeightColumn#newCell?

this lets you write text directly to the output...


On May 7, 2009, at 4:15 PM, Brill Pappin wrote:

I'm spiking on the inmethod grid components from wicketstuff (1.4- 
SNAPSHOT)


I need to be able to format the data in columns and or modify it  
for view only columns.


the specific case is a description field that sometime needs and  
ellipsis.


I can't see any way to add converters or formatters to the column  
models.. have anyone else tried this or come up with a solution?


So far the only solution i have is to wrap my Pojo's in another  
pojo and provide read-only access to one of the fields.


- Brill Pappin






smime.p7s
Description: S/MIME cryptographic signature


Re: inmethod grid and add/delete examples

2009-02-12 Thread Will Jaynes
On Wed, Feb 11, 2009 at 9:58 AM, Will Jaynes wjay...@gmail.com wrote:

 I have just started to look at the inmethod datagrid in wicketstuff. The
 one thing that the examples don't show are how to add and delete items. Are
 there such examples somewhere?

 Will


I'm really missing a lot with regard to the datagrid examples. Perhaps it's
because I'm still relatively new to Wicket and very new to the Ajax stuff in
Wicket. As I've said, I don't see how to add or delete rows to the
datagrid.  But also I don't see in the examples how to actually update the
database with any edited values. Nor do I see, once a row is selected, how
to get that selected row and do something with it.

So, I'm pretty clueless, which makes it hard to help me, but I'd appreciate
any info or pointers.

Will


Re: inmethod grid and add/delete examples

2009-02-12 Thread Warren Bell
The books Wicket in Action and Enjoying Web Development with Wicket 
helped me a lot when I first started using Wicket.


Warren

On Wed, Feb 11, 2009 at 9:58 AM, Will Jaynes wjay...@gmail.com wrote:

  

I have just started to look at the inmethod datagrid in wicketstuff. The
one thing that the examples don't show are how to add and delete items. Are
there such examples somewhere?

Will




I'm really missing a lot with regard to the datagrid examples. Perhaps it's
because I'm still relatively new to Wicket and very new to the Ajax stuff in
Wicket. As I've said, I don't see how to add or delete rows to the
datagrid.  But also I don't see in the examples how to actually update the
database with any edited values. Nor do I see, once a row is selected, how
to get that selected row and do something with it.

So, I'm pretty clueless, which makes it hard to help me, but I'd appreciate
any info or pointers.

Will

  



--
Thanks,

Warren Bell
909-645-8864
warrenbe...@gmail.com


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



Re: inmethod grid question

2008-11-14 Thread ulrik

Hi,

Thank you! I will give it a try.
I'll get back with the result


Matej Knopp-2 wrote:
 
 Hi,
 
 something like this should work:
 
 grid.markItemDirty(itemThatHasChanged);
 grid.update();
 
 -Matej
 
 On Fri, Nov 14, 2008 at 6:18 PM, ulrik [EMAIL PROTECTED] wrote:

 Hello

 I have the editable TreeGrid from Inmethod, on my page.
 Lets say that I update a value (programatically) in the model of a row in
 the grid..how do I update the grid with ajax? I do not wan't to reload
 the
 page, or repaint the whole grid. I just wan't to update that specific
 row.
 --
 View this message in context:
 http://www.nabble.com/inmethod-grid-question-tp20504817p20504817.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/inmethod-grid-question-tp20504817p20506542.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-30 Thread Nino Saturnino Martinez Vazquez Wael
It would be great if you could write a bit about it on wicketstuff 
wiki.. And which license are it under? It looks really cool btw.


Matej Knopp wrote:

There is branch for Wicket 1.3 in Wicketstuff SVN.

-Matej

On Wed, Oct 29, 2008 at 10:41 PM, Edvin Syse [EMAIL PROTECTED] wrote:

  

What version of Wicket is this compiled against? I tried using it with
1.3.5 and it seems AbstractGrid is trying to call a method called init in
org.apache.wicket.MetaDataKey, which doesn't exist.

-- Edvin

Martin Grigorov skrev:

 Jars: http://wicketstuff.org/maven/repository/com/inmethod/


Demo: http://wicketstuff.org/grid-examples/

Update your bookmarks.


On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote:


  

Hi,

this may be the wrong place to ask, but anyways. What happened to the
inmethod/ grid web site?

http://www.inmethod.com/

is showing the tomcat welcome page for some time now. Did it move?

Regards,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-30 Thread Edvin Syse
Thanks, that worked great. I'm really impressed by this component, and I 
think it would be very good for Wicket in general that this gets more 
available to people, including some examples. I'd be happy to write 
examples and wiki-pages once I understand a bit more of it, btw.


-- Edvin

Matej Knopp skrev:

There is branch for Wicket 1.3 in Wicketstuff SVN.

-Matej

On Wed, Oct 29, 2008 at 10:41 PM, Edvin Syse [EMAIL PROTECTED] wrote:

  

What version of Wicket is this compiled against? I tried using it with
1.3.5 and it seems AbstractGrid is trying to call a method called init in
org.apache.wicket.MetaDataKey, which doesn't exist.

-- Edvin

Martin Grigorov skrev:

 Jars: http://wicketstuff.org/maven/repository/com/inmethod/


Demo: http://wicketstuff.org/grid-examples/

Update your bookmarks.


On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote:


  

Hi,

this may be the wrong place to ask, but anyways. What happened to the
inmethod/ grid web site?

http://www.inmethod.com/

is showing the tomcat welcome page for some time now. Did it move?

Regards,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  


--
Med vennlig hilsen

Edvin Syse
Programutvikler

www.sysedata.no / [EMAIL PROTECTED]
Tlf: 333 49700  / Faks: 333 49701
Adresse: Møllegaten 12, 3111 Tønsberg

Syse Data AS -Profesjonelle IT-tjenester 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-30 Thread Matej Knopp
The license is ASL2. As for wiki, I wouldn't mind if someone put a brief
info to wicketstuff wiki. I can't do that, I can't get to wicketstuff. Some
firewall issue.

-Matej

On Thu, Oct 30, 2008 at 7:29 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 It would be great if you could write a bit about it on wicketstuff wiki..
 And which license are it under? It looks really cool btw.


 Matej Knopp wrote:

 There is branch for Wicket 1.3 in Wicketstuff SVN.

 -Matej

 On Wed, Oct 29, 2008 at 10:41 PM, Edvin Syse [EMAIL PROTECTED] wrote:



 What version of Wicket is this compiled against? I tried using it with
 1.3.5 and it seems AbstractGrid is trying to call a method called init in
 org.apache.wicket.MetaDataKey, which doesn't exist.

 -- Edvin

 Martin Grigorov skrev:

  Jars: http://wicketstuff.org/maven/repository/com/inmethod/


 Demo: http://wicketstuff.org/grid-examples/

 Update your bookmarks.


 On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote:




 Hi,

 this may be the wrong place to ask, but anyways. What happened to the
 inmethod/ grid web site?

 http://www.inmethod.com/

 is showing the tomcat welcome page for some time now. Did it move?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]








 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: inmethod / grid website?

2008-10-29 Thread Edvin Syse
What version of Wicket is this compiled against? I tried using it with 
1.3.5 and it seems AbstractGrid is trying to call a method called init 
in org.apache.wicket.MetaDataKey, which doesn't exist.


-- Edvin

Martin Grigorov skrev:

Jars: http://wicketstuff.org/maven/repository/com/inmethod/
Demo: http://wicketstuff.org/grid-examples/

Update your bookmarks.


On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote:
  

Hi,

this may be the wrong place to ask, but anyways. What happened to the
inmethod/ grid web site?

http://www.inmethod.com/

is showing the tomcat welcome page for some time now. Did it move?

Regards,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-29 Thread Matej Knopp
There is branch for Wicket 1.3 in Wicketstuff SVN.

-Matej

On Wed, Oct 29, 2008 at 10:41 PM, Edvin Syse [EMAIL PROTECTED] wrote:

 What version of Wicket is this compiled against? I tried using it with
 1.3.5 and it seems AbstractGrid is trying to call a method called init in
 org.apache.wicket.MetaDataKey, which doesn't exist.

 -- Edvin

 Martin Grigorov skrev:

  Jars: http://wicketstuff.org/maven/repository/com/inmethod/
 Demo: http://wicketstuff.org/grid-examples/

 Update your bookmarks.


 On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote:


 Hi,

 this may be the wrong place to ask, but anyways. What happened to the
 inmethod/ grid web site?

 http://www.inmethod.com/

 is showing the tomcat welcome page for some time now. Did it move?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: inmethod / grid website?

2008-10-21 Thread Robby O'Connor
They may have screwed up their context descriptor or perhaps just didn't 
deploy it?


Best bet would be email their tech contect (see domain name whois for 
info.)

--rob


Martin Voigt wrote:

Hi,

this may be the wrong place to ask, but anyways. What happened to the
inmethod/ grid web site?

http://www.inmethod.com/

is showing the tomcat welcome page for some time now. Did it move?

Regards,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-21 Thread Martin Voigt
Yea, was just that it's Matej who did the grid stuff (at least to my
knowledge), so I thought it would make sense to ask it here, as I'm
sure I'm not the only one using grid ;)

Regards,
Martin

2008/10/21 Robby O'Connor [EMAIL PROTECTED]:
 They may have screwed up their context descriptor or perhaps just didn't
 deploy it?

 Best bet would be email their tech contect (see domain name whois for info.)
 --rob


 Martin Voigt wrote:

 Hi,

 this may be the wrong place to ask, but anyways. What happened to the
 inmethod/ grid web site?

 http://www.inmethod.com/

 is showing the tomcat welcome page for some time now. Did it move?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-21 Thread Jörn Zaefferer
I second that, please get the site fixed!

Jörn

On Tue, Oct 21, 2008 at 12:27 PM, Martin Voigt [EMAIL PROTECTED] wrote:
 Yea, was just that it's Matej who did the grid stuff (at least to my
 knowledge), so I thought it would make sense to ask it here, as I'm
 sure I'm not the only one using grid ;)

 Regards,
 Martin

 2008/10/21 Robby O'Connor [EMAIL PROTECTED]:
 They may have screwed up their context descriptor or perhaps just didn't
 deploy it?

 Best bet would be email their tech contect (see domain name whois for info.)
 --rob


 Martin Voigt wrote:

 Hi,

 this may be the wrong place to ask, but anyways. What happened to the
 inmethod/ grid web site?

 http://www.inmethod.com/

 is showing the tomcat welcome page for some time now. Did it move?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: inmethod / grid website?

2008-10-21 Thread Erik van Oosten

We should really have a FAQ here.

Anyways: you can find the inmethod stuff in wicket-stuff now. There is 
no official release so you'll have to compile the sources yourself or 
grab a recent jar from wicket-stuff's bamboo server.


Regards,
   Erik.


Martin Voigt wrote:

Hi,

this may be the wrong place to ask, but anyways. What happened to the
inmethod/ grid web site?

http://www.inmethod.com/

is showing the tomcat welcome page for some time now. Did it move?

Regards,
Martin


  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-21 Thread Matej Knopp
Hi,

I'm sorry about it, been a bit busy lately. The grid is in Wicket
Stuff SVN. It's likely that it will get to Wicket 1.5 extension. I
wanted to put info on wicketstuff wiki (where it imho belongs) but
Wicket stuff firewall is blocking me. If anyone could do  that for me
it would be nice.

-Matej

On Tue, Oct 21, 2008 at 1:33 PM, Erik van Oosten [EMAIL PROTECTED] wrote:
 We should really have a FAQ here.

 Anyways: you can find the inmethod stuff in wicket-stuff now. There is no
 official release so you'll have to compile the sources yourself or grab a
 recent jar from wicket-stuff's bamboo server.

 Regards,
   Erik.


 Martin Voigt wrote:

 Hi,

 this may be the wrong place to ask, but anyways. What happened to the
 inmethod/ grid web site?

 http://www.inmethod.com/

 is showing the tomcat welcome page for some time now. Did it move?

 Regards,
 Martin





 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: inmethod / grid website?

2008-10-21 Thread Martin Grigorov
Jars: http://wicketstuff.org/maven/repository/com/inmethod/
Demo: http://wicketstuff.org/grid-examples/

Update your bookmarks.


On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote:
 Hi,
 
 this may be the wrong place to ask, but anyways. What happened to the
 inmethod/ grid web site?
 
 http://www.inmethod.com/
 
 is showing the tomcat welcome page for some time now. Did it move?
 
 Regards,
 Martin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Inmethod Grid with wicket 1.3

2008-10-02 Thread lesterburlap


Jim Pinkham wrote:
 
 I'm getting this error at runtime I don't understand:
 
 NoSuchMethodError: org.apache.wicket.MetaDataKey: method init()V not
 found
 at
 com.inmethod.grid.common.AbstractGrid$4.init(AbstractGrid.java:908)
 at
 com.inmethod.grid.common.AbstractGrid.clinit(AbstractGrid.java:907)
 at org.firstuucolumbus.CatalogPage.init(CatalogPage.java:43)
 

I think you're using the head release of the inmethod grid for Wicket 1.4,
rather than the grid-BETA2.jar that is compatible with Wicket 1.3.  However,
the grid-BETA2.jar has some minor problems in FireFox 3 (column widths
sometime don't adjust themselves on resize).  I'm trying to figure out how
to upgrade my application to Wicket 1.4 specifically for this (excellent)
library.

LBB


-- 
View this message in context: 
http://www.nabble.com/Inmethod-Grid-with-wicket-1.3-tp19731013p19779992.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >