Inmethod Grid: put all rows to edit mode

2018-01-11 Thread Christos Stieglitz
Hi list,

is there a way to programmatically (un)set the edit mode in an inmethod grid?
The issue here is to (un)set the edit mode for _all_ rows of the grid at once.

Currently i use a SubmitCancelColumn which works like a charm.
Overriding SubmitCancelColumn#onSubmitted saves my objects as needed.

But SubmitCancelColumn requires my users to click / save 25 rows one by one.
This is considered tedious. So i try to offer a new button to my users.
Once this button is clicked, all rows in the grid go to edit mode automatically.
Clicked again, all rows save their models automatically. Ideally by calling the
onSubmitted method.
(there is also a cancel-all button).

My code so far is
add(new AjaxLink("quickedit") {
  @Override
  public void onClick(AjaxRequestTarget target) {
WebMarkupContainer rows =
(WebMarkupContainer)getPage().get("form:grid:form:bodyContainer:body:row");
if(rows != null)
  for(Component row : rows) {
IModel rowModel = (IModel)row.getDefaultModel();
            grid.setItemEdit(rowModel, true);
  }
datagrid.update();
target.add(datagrid); // should not be needed
  }
});

The line with setItemEdit(rowModel, true); gets called for all rows in the grid.
But nothing changes. Display remains the same. Could you please tell me what i'm
doing wrong?

Many thanks for your suggestions

C. Stieglitz

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



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 
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, IModel) {
>  MasterBean masterBean = <>;
>  //form
> Form form = new Form ("form", new
> CompoundPropertyModel(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 IModel() {
  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);
>  DataGrid, MasterBean> grid = masterGrid("grid",
> childPanel);
> grid.setOutputMarkupId(true);
> form.add(grid);
> }
>
> private DataGrid, MasterBean> masterGrid(String
> property, final ChildPanel childPanel) {
> 
> 
> 
> //OnRowClicked in Databgrid
> @Override
> protected void onRowClicked(AjaxRequestTarget target, IModel
> 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.
>


inmethod grid - Ajaxically update child grid from Master grid

2014-07-16 Thread Mihir Chhaya
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, IModel) {
 MasterBean masterBean = <>;
 //form
Form form = new Form ("form", new
CompoundPropertyModel(masterBean));
form.setOutputMarkupId(true);
 //Child Panel added into MasterPanel
ChildPanel childPanel = new ChildPanel("child", form.getModel());
childPanel.setOutputMarkupId(true);

form.add(childPanel);
 DataGrid, MasterBean> grid = masterGrid("grid",
childPanel);
grid.setOutputMarkupId(true);
form.add(grid);
}

private DataGrid, MasterBean> masterGrid(String
property, final ChildPanel childPanel) {



//OnRowClicked in Databgrid
@Override
protected void onRowClicked(AjaxRequestTarget target, IModel
rowModel) {
getForm().setDefaultModel(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: Problem with inmethod grid if double quotes are in strings

2014-01-02 Thread Ernesto Reinaldo Barreiro
You can also make a wicket wrapper around a FlexiGrid that uses an
AjaxBehavior as context to serve/consume JSON or handle server side
versions of client events. There are examples of such components out there:

https://code.google.com/p/wiquery-plugins/source/browse/#svn%2Ftrunk%2Fwiquery-plugins%2Fjqgrid


On Thu, Jan 2, 2014 at 9:15 AM, Martin Grigorov wrote:

> Hi,
>
> WicketStuff provides another grid implementation -
>
> https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/editable-grid-parent
> If you want to use something like FlexiGrid then you can use Wicket
> IResource as a REST endpoint that produces (and consumes) the JSON.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Tue, Dec 31, 2013 at 12:33 PM, PDiefent  wrote:
>
> > Hi Martin,
> > is there any alternative choice to inmethod grid. I'm searching for a
> more
> > flexible grid component like FlexiGrid with more options to control
> paging
> > and resizing the grid (perhaps jquery ...)
> > Thanks for your support and a Happy and Successful New Year.
> > Peter
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4663348.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: Problem with inmethod grid if double quotes are in strings

2014-01-02 Thread Martin Grigorov
Hi,

WicketStuff provides another grid implementation -
https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/editable-grid-parent
If you want to use something like FlexiGrid then you can use Wicket
IResource as a REST endpoint that produces (and consumes) the JSON.

Martin Grigorov
Wicket Training and Consulting


On Tue, Dec 31, 2013 at 12:33 PM, PDiefent  wrote:

> Hi Martin,
> is there any alternative choice to inmethod grid. I'm searching for a more
> flexible grid component like FlexiGrid with more options to control paging
> and resizing the grid (perhaps jquery ...)
> Thanks for your support and a Happy and Successful New Year.
> Peter
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4663348.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: Problem with inmethod grid if double quotes are in strings

2013-12-31 Thread PDiefent
Hi Martin,
is there any alternative choice to inmethod grid. I'm searching for a more
flexible grid component like FlexiGrid with more options to control paging
and resizing the grid (perhaps jquery ...)
Thanks for your support and a Happy and Successful New Year.
Peter



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4663348.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: Problem with inmethod grid if double quotes are in strings

2013-11-27 Thread Martin Grigorov
Hi Peter,

WicketStuff is community based effort.
Everyone improves the code he cares about.
At different time different people care about different projects :-)

At the moment I don't use InMethod Grid in any project so I have no time to
help you.
I will gladly review and merge any Pull Request though.

Also it will help if you provide a test case or a quickstart application
that shows the problem.


On Wed, Nov 27, 2013 at 2:41 PM, PDiefent  wrote:

> Hi Martin,
> while the WicketStuff team seems to be too busy to look at this issue I
> recognized that also AjaxFallBackLinks won't work if the model contains an
> attribute of the type String with a value containing double quotes. I guess
> that there are some more errors in the wicket code handling such strings.
> Is it possible for you to have a look at this problem.
> Thanks, Peter
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4662691.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: Problem with inmethod grid if double quotes are in strings

2013-11-27 Thread PDiefent
Hi Martin,
while the WicketStuff team seems to be too busy to look at this issue I
recognized that also AjaxFallBackLinks won't work if the model contains an
attribute of the type String with a value containing double quotes. I guess
that there are some more errors in the wicket code handling such strings.
Is it possible for you to have a look at this problem.
Thanks, Peter



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141p4662691.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 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 


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

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


Inmethod Grid on IE9

2013-07-12 Thread Jose Mauricio Meraz Mercado
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


Re: Problem with inmethod grid if double quotes are in strings

2013-07-08 Thread Martin Grigorov
Hi,

Please create a ticket at
WicketStuff<https://github.com/wicketstuff/core/issues?direction=desc&sort=created&state=open>
 project.
Someone may fix it for you.


On Mon, Jul 8, 2013 at 10:25 AM, PDiefent  wrote:

> Hallo,
> I'm using the inmethod grid component in my web application. For the first
> time a double quote (") appeares in my table data and now the grid is
> extended by an additional column containing the .toString() value of the
> column with the double quote characters in it.
> Now I can't change size and order of the table columns. If I replace the
> double quote with a single quote (') character everything works fine again.
>
> Peter
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141.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
>
>


Problem with inmethod grid if double quotes are in strings

2013-07-08 Thread PDiefent
Hallo,
I'm using the inmethod grid component in my web application. For the first
time a double quote (") appeares in my table data and now the grid is
extended by an additional column containing the .toString() value of the
column with the double quote characters in it.
Now I can't change size and order of the table columns. If I replace the
double quote with a single quote (') character everything works fine again.

Peter

 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-with-inmethod-grid-if-double-quotes-are-in-strings-tp4660141.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: Has any one used the InMethod Grid DropDownChoiceColumn & DropDownChoicePanel

2013-05-20 Thread Paul Bors
Take your pick:
http://www.wicket-library.com/wicket-examples-6.0.x/index.html

More specifically the Ajax EditableTree:
http://www.wicket-library.com/wicket-examples/ajax/tree/table/editable

Just replace the EditablePanel with the form components you want.

~ Thank you,
   Paul Bors



On Fri, May 17, 2013 at 3:27 PM, shashikant.kulkarn...@gmail.co <
shashikant.kulkarn...@gmail.com> wrote:

> Hi All,
>
> Has anyone used InMethod Grid DropDownChoiceColumn & DropDownChoicePanel?
> My
> requirement is I have 3 or more  dropdown choices in a row. Now when I make
> selection changes in the dropdown and click on the submit icon, I am not
> able to get the changed values in the dropdown. Can someone put and example
> to do this. I tried but it is not working.
>
> Best regards,
> Shashikant
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Has-any-one-used-the-InMethod-Grid-DropDownChoiceColumn-DropDownChoicePanel-tp4658910.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 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 List,
Estimationmetadata, String>> getEstimationColumns() {
List, 
Estimationmetadata,
String>> columns = 
new 
ArrayList,
Estimationmetadata, String>>();
columns.add(new SubmitCancelColumn,
Estimationmetadata, String>("esd", Model.of("Edit")));
columns.add(new PropertyColumn,
Estimationmetadata, Long, String>(
new Model("Application Name"),
"applicationsList.applicationName"));

//Get the list of parameters now
SalescaseParameterService scParamService = 
(SalescaseParameterService)ServiceFactory.getService("salescaseparameterservice");
List 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 
DropDownChoiceColumn,
Estimationmetadata, String, String>
(new 
Model(""+param.getParameterName()), 

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

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

,Estimationmetadata,String,String>
 
newCellPanel(String 
componentId, final
org.apache.wicket.model.IModel 
rowModel, 
org.apache.wicket.model.IModel cellModel) {
//Now get the parameter value 
as list
ArrayList 
paramValuesList =
paramValueService.getParamValues(param);

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

,Estimationmetadata,String,String>
(
componentId, 
new 
Model(selectedValue), rowModel, 
this,new 
Model(paramValuesList), 
new 
PropertyChoiceRenderer( "parameterValueId", "parameterValue" )
);
};  

}
);

columns.add(new 
PropertyColumn,
Estimationmetadata, Long, String>
(new Model("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 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 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 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  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
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



inmethod grid column resize error alert

2013-04-09 Thread saty
I am using this grid in numerous places in my current application and dont
have this problem anywhere else except in one of the panel.

When resizing the column it prints below line on server console:

1:41:13.410 [qtp1683589725-44] WARN  o.a.wicket.RequestListenerInterface -
behavior not enabled; ignore call. Behavior
com.inmethod.grid.common.AbstractGrid$SubmitColumnStateBehavior@54a16dfe at
component [DefaultDataGrid [Component id = priceSourceGrid]]

and on browser it opens a annoying alert stating

'Are you sure?"
This page is asking you to confirm that you want to leave - data you have
entered may not be saved


There is no difference in my usage of inmethod grid on this panel compared
to other places where it works fine, and i have not found why this is
happening.
Strangely when resize it calls onColumnStateChanged() method in all other
panels but not on this panel.

Any thoughts, help would be appreciated.

Thanks





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

@Override
public IRenderable newCell(IModel rowModel)
{
return new IRenderable()
{
public void render(IModel rowModel, Response response)
{
CharSequence value = getValue(rowModel);
if (value != null)
{
response.write(value);
}
}
};
}

private CharSequence getValue(IModel 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;
}





On Mon, Mar 4, 2013 at 6:11 PM, saty  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
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 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 Marc Nuri San Félix
In your IDataSource code, you left out the implementation "public
IModel 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  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
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 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 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  wrote:

> public class DataSource implements IDataSource {
> private Filter myModelFilterChain;
> public DataSource(FilterChain myModelFilterChain)
> {
> this.myModelFilterChain= myModelFilterChain;
>
> }
>
> @Override
> public void detach() {//.
>
> }
>
> @Override
> public void query(com.inmethod.grid.IDataSource.IQuery query,
>
> com.inmethod.grid.IDataSource.IQueryResult 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();
> List 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
public class DataSource implements IDataSource {
private Filter myModelFilterChain; 
public DataSource(FilterChain myModelFilterChain) 
{
this.myModelFilterChain= myModelFilterChain;

}

@Override
public void detach() {//.

}

@Override
public void query(com.inmethod.grid.IDataSource.IQuery query,
com.inmethod.grid.IDataSource.IQueryResult 
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(); 
List 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
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  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
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
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  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
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
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  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
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 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"  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
>
>


inmethod-grid refresh issue

2013-03-01 Thread saty
I have this strange case where when i do ajax target.add(grid), it does call
my grid datasource to request the rows that the grid need to populate but
when it finds that rows to be displayed are same what grid already has it
does not recreate the grid (i can say that as i notice my get methods on
model are not called).

My guess is when it need to display same rows (model) it will not run
through the list of model objects again that it need to show, however in my
case there are few derived columns (hence corresponding get methods) that
may return different value if the context changes (controlled by several
filters on grid).

How can i force the grid to run through the model list every time to refresh
the grid, regardless?

Not sure if above explains the problem clearly, please do let me know if
more details are required.

Thanks





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/inmethod-grid-refresh-issue-tp4656910.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.
 * NOTE: Is more efficient to build your own collection of
elements on
 * a page by adding them during one of your columns populateItem()
call.
 *
 * @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 List 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;
}

List elements = new ArrayList();
Iterator iter = (Iterator) 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
wrote:

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


inmethod grid cachedPageCount

2013-02-24 Thread Ciocoiu Elvis
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  wrote:

> sorry, attachment is here http://wickeria.com/screenshot.png
>
>
> On Wed, Sep 5, 2012 at 10:27 PM, Dan Simko  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  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!
>
>


inmethod grid 6.0-SNAPSHOT doesn't work in IE8

2012-09-05 Thread Dan Simko
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!

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

changing the page in inmethod grid

2012-05-30 Thread elvis.ciocoiu
Hello,

I'm trying set the current page number in a DataGrid to the last one but
don't know how to clear the cachedPageCount in AbstractPageableView. In my
scenario after creating a new entity I want to select it and change the page
of the grid to the page where this element exists. It works the page of this
new element is not a new one (the grid caches the number of pages in
cachedPageCount and clears this variable only in onBeforeRender() ). I need
to force a reload in the same request and after that to set the current page
to the last one ... how can I do it? 
Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/changing-the-page-in-inmethod-grid-tp4649581.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, 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.PropertyColumn(new
 Model("New Price"), "newPrice")) {


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

  final TextField newPriceTextField = new TextField("newPrice", 
new PropertyModel(priceChange, "newPrice"), Double.class)
  final HiddenField oldNewPriceHiddenField = new 
HiddenField("oldNewPrice", new PropertyModel(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



InMethod grid, Hidden Field in column does not get updated

2011-11-16 Thread Warren Bell
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.PropertyColumn(new
 Model("New Price"), "newPrice"))
{


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

  final TextField newPriceTextField = new TextField("newPrice", 
new PropertyModel(priceChange, "newPrice"), Double.class)
  final HiddenField oldNewPriceHiddenField = new 
HiddenField("oldNewPrice", new PropertyModel(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


-- 
This email was Virus checked by Clark's Nutrition's Astaro Security Gateway. 

The information contained in this e-mail is intended only for use of
the individual or entity named above. This e-mail, and any documents,
files, previous e-mails or other information attached to it, may contain
confidential information that is legally privileged. If you are not the
intended recipient of this e-mail, or the employee or agent responsible
for delivering it to the intended recipient, you are hereby notified
that any disclosure, dissemination, distribution, copying or other use
of this e-mail or any of the information contained in or attached to it
is strictly prohibited. If you have received this e-mail in error,
please immediately notify us by return e-mail or by telephone at
(951)321-1960, and destroy the original e-mail and its attachments
without reading or saving it in any manner. Thank you.



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

> Also try with IE9/10. They may give you better error description.
>
> On Sun, Sep 18, 2011 at 1:18 PM, Duy Do  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 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<
> 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 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
> 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 - 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
 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



inmethod grid - Is is possible to have column with AJAX link to perform some action?

2011-10-23 Thread Chris Colman
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


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

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

> 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
> 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-17 Thread Attila Király
Hi Duy,

which wicket, inmethod-grid versions are you using?

Regards,
Attila

2011/9/17 Duy Do 

> 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
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


inmethod grid problem in IE8

2011-09-16 Thread Duy Do

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: How to get items of inmethod grid to export as excel file

2011-08-29 Thread Duy Do

Thanks Martin.

On 8/29/11 4:03 PM, Martin Grigorov wrote:

See 
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/wicket-poi-parent
https://github.com/wicketstuff/core/wiki/POI

On Mon, Aug 29, 2011 at 10:34 AM, Duy Do  wrote:

Hi Wicketers,

I have to get all items of the inmethod grid to export as excel file. Is it
possible?

Thanks,
Duy







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



Re: How to get items of inmethod grid to export as excel file

2011-08-29 Thread Martin Grigorov
See 
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/wicket-poi-parent
https://github.com/wicketstuff/core/wiki/POI

On Mon, Aug 29, 2011 at 10:34 AM, Duy Do  wrote:
> Hi Wicketers,
>
> I have to get all items of the inmethod grid to export as excel file. Is it
> possible?
>
> Thanks,
> Duy
>



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



How to get items of inmethod grid to export as excel file

2011-08-29 Thread Duy Do
Hi Wicketers,

I have to get all items of the inmethod grid to export as excel file. Is it
possible?

Thanks,
Duy


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 Do


Hi all,

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

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

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

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

Thanks,
Duy


--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@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
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 

> 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.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"  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 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 Do  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 Martin Grigorov
Which version do you use ?

On Wed, Jul 6, 2011 at 9:02 AM, Duy Do  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



inmethod-grid bugs?

2011-07-06 Thread Duy Do

Hi all,

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


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

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


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

Thanks,
Duy


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



Re: inmethod-grid 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 Do


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

>
> 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.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


inmethod-grid generics

2011-07-02 Thread Duy Do


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

> 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-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 
>
>> 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-18 Thread Attila Király
Can you provide a minimal example webapp showing the problem?

Attila

2011/4/18 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  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 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
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  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 <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
> >>
> >>
> >
>
>
> --
> 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
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 <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
>>
>>
> 


--
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
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  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 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 Attila Király
2011/4/18 GJT 

> 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


Inmethod Grid Select All or Reload Grid

2011-04-17 Thread GJT
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



Re: Updating inmethod grid from the server

2010-10-28 Thread Adz

Ah yes, it occurred to me last night that my implementation of equals for my
object must be the problem, thanks for the help.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-inmethod-grid-from-the-server-tp3015007p3018162.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: Updating inmethod grid from the server

2010-10-27 Thread Jeremy Thomerson
On Wed, Oct 27, 2010 at 7:00 PM, Adz  wrote:

>
> I tried that, it didn't make any difference.  I think the problem is due to
> the item reuse strategy ReuseIfModelsEqualStrategy.  It has a cache of the
> existing items and only compares to see if the new models are in the list
> of
> the old models (which for my case they are), and if they are it uses the
> old
> model, regardless of whether the data in the new model is different.
>

Okay, then I believe your problem is one of the following two things:

   1. the objects that your model contains (likely your domain objects) do
   not implement equals and/or hashcode properly
   2. when you created the things in your row items, you didn't use models
   properly, so they have old, stale data in them

Posting code is the only way to get more help.

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


Re: Updating inmethod grid from the server

2010-10-27 Thread Adz

I tried that, it didn't make any difference.  I think the problem is due to
the item reuse strategy ReuseIfModelsEqualStrategy.  It has a cache of the
existing items and only compares to see if the new models are in the list of
the old models (which for my case they are), and if they are it uses the old
model, regardless of whether the data in the new model is different.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-inmethod-grid-from-the-server-tp3015007p3016451.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



Updating inmethod grid from the server

2010-10-27 Thread Adz

Hi,

I have a requirement whereby I need to periodically poll the db, and refresh
my in method grid if anything has changed.  I've started out by just trying
to get the whole grid to refresh, but I can't seem to get it to work.  I'm
creating my DefaultDataGrid with an implementation of the IDataSource

final DefaultDataGrid tradeDataTable = new DefaultDataGrid("trades",
tradeDataSource, getColumns());

When my onTimer event occurs I go back to the DB, pull out my data and set
it in the tradeDataSource.  I can see that the query method is getting
called again, and it is returning the correct new data, but the grid is not
updating.  I've tried adding combinations of the below, to no avail. 

tradeDataTable.markAllItemsDirty();
tradeDataTable.update();
tradeDataTable.renderComponent();

Does anyone know what i'm doing wrong, or if there is a good example for
using ajax from the server to refresh a DefaultDataGrid.

All help is much appreciated

Adam
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-inmethod-grid-from-the-server-tp3015007p3015007.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



Printing an inmethod grid

2010-09-30 Thread Adz

Hi,

I'm using an inmethod grid which is working great for me, but when I try to
print I only get the data that is on the screen.  I get all the headers,
including the ones off screen, but not all the data, anyone have a
fix/workaround for this?  I'm thinking maybe a print.css that overrides the
standard styles defined in inmethod?

cheers,

Adam 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Printing-an-inmethod-grid-tp2773083p2773083.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



inmethod grid test fails

2010-08-17 Thread nino martinez wael
Hi Guys

I am having some trouble testing the inmethod grid, specifically when I
remove a row from the data list. On pagerender the grid tries to render the
deleted row, which of course does not exist anymore. This problem does not
occur running the application for real.

I try to click the column that deletes the row like this :


tester.clickLink("pilotForm:pilotGrid:form:bodyContainer:body:row:1:item:delete:delete",true);

Are it because I've failed to set some ajax specific thing up for the wicket
tester?

regards Nino


Re: inmethod grid

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

2010/7/2 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 
> >
> > > 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
> > >  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 
> > > >
> > > >> 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 
>
> > 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
> >  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 
> > >
> > >> 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 

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

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


inmethod grid

2010-06-30 Thread nino martinez wael
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-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" 
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

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: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-20 Thread Douglas Ferguson
After digging through the js i realized that if columns at the beginning of the 
table are fixed if they are no moveable.
i.e. you can't move stuff in front of them. 

D/

On Jun 12, 2010, at 3:12 AM, Douglas Ferguson wrote:

> Thanks.
> 
> Another question for you...
> 
> I have a few columns that I want to be fixed at the beginning of the table.
> There is a "setReorderable(false);" which will prevent you from being able to 
> drag it around, but there is nothing to prevent you from moving another 
> column in front of the "fixed" one.
> 
> I think I'll have to update the js to get the behavior. Let me know if I'm 
> missing something.
> 
> D/
> 
> 
> On Jun 9, 2010, at 5:06 AM, Charles Deal wrote:
> 
>> I believe there is an object called GridSortState on the DataGrid.  Using
>> that object, you can set the default sort for the grid.  One of our grids do
>> this, but I don't have the code in front of me.
>> 
>> On Wed, Jun 9, 2010 at 1:04 AM, Douglas Ferguson >> wrote:
>> 
>>> Thanks!
>>> 
>>> I just got data grid going. It is very cool!
>>> 
>>> Do you know if there is a way to set a default sort?
>>> 
>>> D/
>>> 
>>> On Jun 8, 2010, at 3:26 PM, Charles Deal wrote:
>>> 
>>>> I use Eclipse and the Subversive SVN plugin.  I did a checkout into a new
>>>> Project of
>>>> 
>>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent
>>>> 
>>>> After I made my changes I used the Create Patch option within Eclipse to
>>>> generate the patches that I supplied.  If using a similar setup, you
>>> should
>>>> be able to use the Eclipse Apply Patch feature to update the source again
>>> or
>>>> use your own preferred method.
>>>> 
>>>> On Tue, Jun 8, 2010 at 1:55 PM, Douglas Ferguson <
>>> doug...@douglasferguson.us
>>>>> wrote:
>>>> 
>>>>> What's the url you used to pull from svn? I.E. What branch, etc..
>>>>> 
>>>>> D/
>>>>> 
>>>>> On Jun 8, 2010, at 12:49 PM, Charles Deal wrote:
>>>>> 
>>>>>> The patches are based upon the latest in svn (as of 07JUN2010).  I
>>> pulled
>>>>> a
>>>>>> fresh copy of the source and then applied my changes back against it.
>>> I
>>>>>> don't think the svn codebase has changed all that much in the 1.4
>>> branch,
>>>>> so
>>>>>> I didn't experience any conflicts applying my patches.
>>>>>> 
>>>>>> 
>>>>>> On Tue, Jun 8, 2010 at 1:17 PM, Douglas Ferguson <
>>>>> doug...@douglasferguson.us
>>>>>>> wrote:
>>>>>> 
>>>>>>> What version of inmethod are these patches based from?
>>>>>>> 
>>>>>>> I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT"
>>>>>>> 
>>>>>>> 
>>> http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Jun 7, 2010, at 10:48 AM, Charles Deal wrote:
>>>>>>> 
>>>>>>>> We've been using the grid for quite some time now and have
>>> accumulated
>>>>> a
>>>>>>> few changes to the codebase.  I'd like to submit them for other users
>>> to
>>>>>>> review and discuss, in the hopes that they will make it into the
>>>>> wicketstuff
>>>>>>> codebase in the future.  The following are brief descriptions of the
>>>>>>> attached files.
>>>>>>>> 
>>>>>>>> inmethodgrid-script.patch
>>>>>>>> This patch simply adds a resize event to the grid.  We noticed that
>>>>> when
>>>>>>> the browser was resized, the grid wouldn't resize until the user
>>>>> attempted
>>>>>>> to scroll.
>>>>>>>> 
>>>>>>>> inmethodgrid-columns.patch
>>>>>>>> Some small changes to facilitate more code reuse.
>>>>>>>> 
>

InMethod Grid

2010-06-20 Thread Avraham Rosenzweig
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


Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-12 Thread Douglas Ferguson
Thanks.

Another question for you...

I have a few columns that I want to be fixed at the beginning of the table.
There is a "setReorderable(false);" which will prevent you from being able to 
drag it around, but there is nothing to prevent you from moving another column 
in front of the "fixed" one.

I think I'll have to update the js to get the behavior. Let me know if I'm 
missing something.

D/


On Jun 9, 2010, at 5:06 AM, Charles Deal wrote:

> I believe there is an object called GridSortState on the DataGrid.  Using
> that object, you can set the default sort for the grid.  One of our grids do
> this, but I don't have the code in front of me.
> 
> On Wed, Jun 9, 2010 at 1:04 AM, Douglas Ferguson > wrote:
> 
>> Thanks!
>> 
>> I just got data grid going. It is very cool!
>> 
>> Do you know if there is a way to set a default sort?
>> 
>> D/
>> 
>> On Jun 8, 2010, at 3:26 PM, Charles Deal wrote:
>> 
>>> I use Eclipse and the Subversive SVN plugin.  I did a checkout into a new
>>> Project of
>>> 
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent
>>> 
>>> After I made my changes I used the Create Patch option within Eclipse to
>>> generate the patches that I supplied.  If using a similar setup, you
>> should
>>> be able to use the Eclipse Apply Patch feature to update the source again
>> or
>>> use your own preferred method.
>>> 
>>> On Tue, Jun 8, 2010 at 1:55 PM, Douglas Ferguson <
>> doug...@douglasferguson.us
>>>> wrote:
>>> 
>>>> What's the url you used to pull from svn? I.E. What branch, etc..
>>>> 
>>>> D/
>>>> 
>>>> On Jun 8, 2010, at 12:49 PM, Charles Deal wrote:
>>>> 
>>>>> The patches are based upon the latest in svn (as of 07JUN2010).  I
>> pulled
>>>> a
>>>>> fresh copy of the source and then applied my changes back against it.
>> I
>>>>> don't think the svn codebase has changed all that much in the 1.4
>> branch,
>>>> so
>>>>> I didn't experience any conflicts applying my patches.
>>>>> 
>>>>> 
>>>>> On Tue, Jun 8, 2010 at 1:17 PM, Douglas Ferguson <
>>>> doug...@douglasferguson.us
>>>>>> wrote:
>>>>> 
>>>>>> What version of inmethod are these patches based from?
>>>>>> 
>>>>>> I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT"
>>>>>> 
>>>>>> 
>> http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Jun 7, 2010, at 10:48 AM, Charles Deal wrote:
>>>>>> 
>>>>>>> We've been using the grid for quite some time now and have
>> accumulated
>>>> a
>>>>>> few changes to the codebase.  I'd like to submit them for other users
>> to
>>>>>> review and discuss, in the hopes that they will make it into the
>>>> wicketstuff
>>>>>> codebase in the future.  The following are brief descriptions of the
>>>>>> attached files.
>>>>>>> 
>>>>>>> inmethodgrid-script.patch
>>>>>>> This patch simply adds a resize event to the grid.  We noticed that
>>>> when
>>>>>> the browser was resized, the grid wouldn't resize until the user
>>>> attempted
>>>>>> to scroll.
>>>>>>> 
>>>>>>> inmethodgrid-columns.patch
>>>>>>> Some small changes to facilitate more code reuse.
>>>>>>> 
>>>>>>> inmethodgrid-form.patch
>>>>>>> Move the header and toolbars into the form.  This allows the header
>> to
>>>>>> determine the form automatically so that, for example, when sorting a
>>>> grid,
>>>>>> the behavior can submit the form to retain any transient changes to
>> the
>>>>>> grid.
>>>>>>> 
>>>>>>> inmethodgrid-gridbehavior.patch
>>>>>>> Refactor the AjaxFormSubmitBahvior implementation into its own class
>> to
>>>>>> be used by custom behaviors.  Altered the code to use the new class.
>>>>>>> 
>>>>>>> inmethodgrid-insert.patch
>>>>>>> Add support for adding rows to the grid.
>>>>>>> 
>>>>>>> As I said, my team have been successfully using (almost all of) these
>>>>>> patches since at least June 2008.  The script patch is the only one
>> that
>>>> is
>>>>>> a recent change.  I'd appreciate some feedback and if no objections
>> are
>>>>>> made, I'd like to get these patches into the scm.
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -
>>>>>> 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



  1   2   3   >