Re: Inmethod Grid with wicket 1.3

2008-10-02 Thread lesterburlap

Damn it, for some reason nabble 2 didn't show all the other responses to
Jim's question.  Sorry to answer it needlessly.

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


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



Re: Inmethod Grid with wicket 1.3

2008-10-02 Thread lesterburlap


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

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

LBB


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


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



Re: Inmethod Grid with wicket 1.3

2008-10-01 Thread Jim Pinkham
Nice.

OK, now I'm getting more ideas - I added more columns, but now I'd like some
to use other input controls such as checkbox, radiobutton, datepicker, or
ChoiceList.

I see EditablePropertyColumn has newCellPanel I could override to return
Panels with various input component types in edit mode.

Before I embark on this, perhaps you have some ideas to share about this?

If there is some minor refactoring involved, I'm not afraid to jump in and
help if it also benefits others.

For example, these Panels could benefit from the way TextFieldPanel puts
feedback into title, which suggests to me a new class such as
AbstractEditablePropertyColumn where this could be moved.  I also notice
that CheckBoxColumn has the concern of being a row-selector that could be
separated into RowSelectingCheckBoxColumn, for example (leaving the name
CheckBoxColumn available as the obvious choice for editing any boolean
column).

That could be step one, then once that works, the next step could be for the
light-weight propertycolumn (currently newCell just puts value into
response) to use these same corresponding panels in disabled mode.

I know that's a lot to ask, but it seems a reasonable next level to aim
for...   Thoughts?

Thanks,
-- Jim.

On Tue, Sep 30, 2008 at 2:40 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:

> If you don't use multiple select than you can override
> CheckBoxColumn#newHeader(String componentId) and return panel that
> displays the title you want to show.
>
> -Matej
>
> On Tue, Sep 30, 2008 at 6:11 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
> > Got that working.  Now, since I'm using row selection to indicate
> > deletion, and since I've disabled row multiselect (so rows get deleted
> > one-at-a-time), I'd like to give the checkbox column a header: new
> > Model("Delete"), but I don't see a way to do that.  I was able to
> > override getHeaderModel, but isVisible is false in the HeadPanel.
> >
> > Can I visit the component by attribute name somehow to do it?
> >
> > Really appreciate the help - it's starting to look good.  Since I'm
> > using a pageSize of 500, avoiding the page refresh allows me to have
> > super-simple yet snappy interface for non web-savvy proofreaders.
> >
> > Thanks,
> > -- Jim.
> >
> > On Tue, Sep 30, 2008 at 10:27 AM, Matej Knopp <[EMAIL PROTECTED]>
> wrote:
> >> If you want to save the entity, SubmitCancelColumn is indeed the right
> >> place. but you should be overriding the onSubmitted method. As for
> >> custom delete link in SubmitCancelColumn, that might be a bit
> >> problematic as the panel is package private.
> >>
> >> Anyway, I usually don't put the delete link in that column, it doesn't
> >> make much sense IMHO. WhatI do is to add CheckBoxColumn and a separate
> >> delete link that removes all checked items.
> >>
> >> -Matej
> >>
> >> On Tue, Sep 30, 2008 at 3:54 PM, Jim Pinkham <[EMAIL PROTECTED]>
> wrote:
> >>> OK, now a question about using inmethod grid:  (I really like this
> >>> grid, by the way - awesome work Matej!!)
> >>>
> >>> On a grid with some editable columns, I override setItemEdit to use
> >>> the same grid in non-editable mode, and also to save the edits.
> >>>
> >>>if (enableEdits)
> >>>columns.add(new SubmitCancelColumn("esd", new
> Model("Edit")));
> >>>DataGrid grid = new DefaultDataGrid("grid", new
> MyDataSource(), columns) {
> >>>@Override
> >>>public void setItemEdit(IModel rowModel, boolean
> edit) {
> >>>if (enableEdits) {
> >>>super.setItemEdit(rowModel,
> edit);
> >>>if (!edit)
> >>>// dao save row goes
> here
> >>>}
> >>>}
> >>>};
> >>>
> >>> I think the IDataSource is very clear, but it is for loading. For
> >>> updating, is this appropriate, or am I overlooking a simpler/better
> >>> way?
> >>>
> >>> Then, I would like to add a delete link inside the SubmitCancelColumn
> >>> - has anyone already done that?  I'm thinking it would only be visible
> >>> if editMode is false to share the same screen space with the ok/cancel
> >>> icons.
> >>>
> >>> I suppose a blank line to add a new row at the end would be nice too,
> >>> but I think I can figure that out myself...
> >>>
> >>> Thanks,
> >>> -- Jim.
> >>>
> >>> On Mon, Sep 29, 2008 at 5:57 PM, Jim Pinkham <[EMAIL PROTECTED]>
> wrote:
>  That did the trick, thanks a million!
> 
>  On Mon, Sep 29, 2008 at 5:20 PM, Matej Knopp <[EMAIL PROTECTED]>
> wrote:
> > I don't think the grid snapshots in maven are recent enough. You
> > should fetch it from svn and build it yourself if you want to use it.
> > Also keep in mind that grid version for 1.3 is in the 1.3 branch of
> > wicket stuff, not the trunk:
> >
> >
> http://wicket-stuf

Re: Inmethod Grid with wicket 1.3

2008-09-30 Thread Matej Knopp
If you don't use multiple select than you can override
CheckBoxColumn#newHeader(String componentId) and return panel that
displays the title you want to show.

-Matej

On Tue, Sep 30, 2008 at 6:11 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
> Got that working.  Now, since I'm using row selection to indicate
> deletion, and since I've disabled row multiselect (so rows get deleted
> one-at-a-time), I'd like to give the checkbox column a header: new
> Model("Delete"), but I don't see a way to do that.  I was able to
> override getHeaderModel, but isVisible is false in the HeadPanel.
>
> Can I visit the component by attribute name somehow to do it?
>
> Really appreciate the help - it's starting to look good.  Since I'm
> using a pageSize of 500, avoiding the page refresh allows me to have
> super-simple yet snappy interface for non web-savvy proofreaders.
>
> Thanks,
> -- Jim.
>
> On Tue, Sep 30, 2008 at 10:27 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> If you want to save the entity, SubmitCancelColumn is indeed the right
>> place. but you should be overriding the onSubmitted method. As for
>> custom delete link in SubmitCancelColumn, that might be a bit
>> problematic as the panel is package private.
>>
>> Anyway, I usually don't put the delete link in that column, it doesn't
>> make much sense IMHO. WhatI do is to add CheckBoxColumn and a separate
>> delete link that removes all checked items.
>>
>> -Matej
>>
>> On Tue, Sep 30, 2008 at 3:54 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
>>> OK, now a question about using inmethod grid:  (I really like this
>>> grid, by the way - awesome work Matej!!)
>>>
>>> On a grid with some editable columns, I override setItemEdit to use
>>> the same grid in non-editable mode, and also to save the edits.
>>>
>>>if (enableEdits)
>>>columns.add(new SubmitCancelColumn("esd", new 
>>> Model("Edit")));
>>>DataGrid grid = new DefaultDataGrid("grid", new 
>>> MyDataSource(), columns) {
>>>@Override
>>>public void setItemEdit(IModel rowModel, boolean 
>>> edit) {
>>>if (enableEdits) {
>>>super.setItemEdit(rowModel, edit);
>>>if (!edit)
>>>// dao save row goes here
>>>}
>>>}
>>>};
>>>
>>> I think the IDataSource is very clear, but it is for loading. For
>>> updating, is this appropriate, or am I overlooking a simpler/better
>>> way?
>>>
>>> Then, I would like to add a delete link inside the SubmitCancelColumn
>>> - has anyone already done that?  I'm thinking it would only be visible
>>> if editMode is false to share the same screen space with the ok/cancel
>>> icons.
>>>
>>> I suppose a blank line to add a new row at the end would be nice too,
>>> but I think I can figure that out myself...
>>>
>>> Thanks,
>>> -- Jim.
>>>
>>> On Mon, Sep 29, 2008 at 5:57 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
 That did the trick, thanks a million!

 On Mon, Sep 29, 2008 at 5:20 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I don't think the grid snapshots in maven are recent enough. You
> should fetch it from svn and build it yourself if you want to use it.
> Also keep in mind that grid version for 1.3 is in the 1.3 branch of
> wicket stuff, not the trunk:
>
> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/inmethod-grid/
>
> -Matej
>
> On Mon, Sep 29, 2008 at 10:21 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
>> I'd like to use inmethod grid in my charity auction project.
>>
>> I've got a slightly modified version of one of the grid-examples using
>> DataGrid like so:
>>
>>DataGrid grid = new DefaultDataGrid("grid",
>>
>> AuctionApplication.get().getDao().getItems(getYear()),   // returns
>> IDataSource
>>Arrays.asList(new IGridColumn[] {
>>new PropertyColumn(new ResourceModel("id"), "id"),
>>new PropertyColumn(new ResourceModel("name"), 
>> "name"),
>>// I'll try editable columns here once I get
>> basic display working...
>>new SubmitCancelColumn("esd", new Model("Edit")),
>>}));
>>add(new Form("form").add(grid));
>>
>> I'm getting this error at runtime I don't understand:
>>
>> NoSuchMethodError: org.apache.wicket.MetaDataKey: method ()V not 
>> found
>>at 
>> com.inmethod.grid.common.AbstractGrid$4.(AbstractGrid.java:908)
>>at 
>> com.inmethod.grid.common.AbstractGrid.(AbstractGrid.java:907)
>>at org.firstuucolumbus.CatalogPage.(CatalogPage.java:43)
>>
>> 

Re: Inmethod Grid with wicket 1.3

2008-09-30 Thread Jim Pinkham
Got that working.  Now, since I'm using row selection to indicate
deletion, and since I've disabled row multiselect (so rows get deleted
one-at-a-time), I'd like to give the checkbox column a header: new
Model("Delete"), but I don't see a way to do that.  I was able to
override getHeaderModel, but isVisible is false in the HeadPanel.

Can I visit the component by attribute name somehow to do it?

Really appreciate the help - it's starting to look good.  Since I'm
using a pageSize of 500, avoiding the page refresh allows me to have
super-simple yet snappy interface for non web-savvy proofreaders.

Thanks,
-- Jim.

On Tue, Sep 30, 2008 at 10:27 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> If you want to save the entity, SubmitCancelColumn is indeed the right
> place. but you should be overriding the onSubmitted method. As for
> custom delete link in SubmitCancelColumn, that might be a bit
> problematic as the panel is package private.
>
> Anyway, I usually don't put the delete link in that column, it doesn't
> make much sense IMHO. WhatI do is to add CheckBoxColumn and a separate
> delete link that removes all checked items.
>
> -Matej
>
> On Tue, Sep 30, 2008 at 3:54 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
>> OK, now a question about using inmethod grid:  (I really like this
>> grid, by the way - awesome work Matej!!)
>>
>> On a grid with some editable columns, I override setItemEdit to use
>> the same grid in non-editable mode, and also to save the edits.
>>
>>if (enableEdits)
>>columns.add(new SubmitCancelColumn("esd", new 
>> Model("Edit")));
>>DataGrid grid = new DefaultDataGrid("grid", new 
>> MyDataSource(), columns) {
>>@Override
>>public void setItemEdit(IModel rowModel, boolean 
>> edit) {
>>if (enableEdits) {
>>super.setItemEdit(rowModel, edit);
>>if (!edit)
>>// dao save row goes here
>>}
>>}
>>};
>>
>> I think the IDataSource is very clear, but it is for loading. For
>> updating, is this appropriate, or am I overlooking a simpler/better
>> way?
>>
>> Then, I would like to add a delete link inside the SubmitCancelColumn
>> - has anyone already done that?  I'm thinking it would only be visible
>> if editMode is false to share the same screen space with the ok/cancel
>> icons.
>>
>> I suppose a blank line to add a new row at the end would be nice too,
>> but I think I can figure that out myself...
>>
>> Thanks,
>> -- Jim.
>>
>> On Mon, Sep 29, 2008 at 5:57 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
>>> That did the trick, thanks a million!
>>>
>>> On Mon, Sep 29, 2008 at 5:20 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
 I don't think the grid snapshots in maven are recent enough. You
 should fetch it from svn and build it yourself if you want to use it.
 Also keep in mind that grid version for 1.3 is in the 1.3 branch of
 wicket stuff, not the trunk:

 http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/inmethod-grid/

 -Matej

 On Mon, Sep 29, 2008 at 10:21 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
> I'd like to use inmethod grid in my charity auction project.
>
> I've got a slightly modified version of one of the grid-examples using
> DataGrid like so:
>
>DataGrid grid = new DefaultDataGrid("grid",
>
> AuctionApplication.get().getDao().getItems(getYear()),   // returns
> IDataSource
>Arrays.asList(new IGridColumn[] {
>new PropertyColumn(new ResourceModel("id"), "id"),
>new PropertyColumn(new ResourceModel("name"), 
> "name"),
>// I'll try editable columns here once I get
> basic display working...
>new SubmitCancelColumn("esd", new Model("Edit")),
>}));
>add(new Form("form").add(grid));
>
> I'm getting this error at runtime I don't understand:
>
> NoSuchMethodError: org.apache.wicket.MetaDataKey: method ()V not 
> found
>at 
> com.inmethod.grid.common.AbstractGrid$4.(AbstractGrid.java:908)
>at 
> com.inmethod.grid.common.AbstractGrid.(AbstractGrid.java:907)
>at org.firstuucolumbus.CatalogPage.(CatalogPage.java:43)
>
> Unfortunately, I'm a total Maven newbie, so I'm guessing something
> must be amiss in pom.xml (below)
>
> or the way I'm using it:  mvn clean install eclipse:clean eclipse:eclipse
>
> (Then I usually run Start from Eclipse)
>
> Would someone wiser in the ways of inmethod and/or Maven care to give
> me a hand here?
>
> A

Re: Inmethod Grid with wicket 1.3

2008-09-30 Thread Matej Knopp
If you want to save the entity, SubmitCancelColumn is indeed the right
place. but you should be overriding the onSubmitted method. As for
custom delete link in SubmitCancelColumn, that might be a bit
problematic as the panel is package private.

Anyway, I usually don't put the delete link in that column, it doesn't
make much sense IMHO. WhatI do is to add CheckBoxColumn and a separate
delete link that removes all checked items.

-Matej

On Tue, Sep 30, 2008 at 3:54 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
> OK, now a question about using inmethod grid:  (I really like this
> grid, by the way - awesome work Matej!!)
>
> On a grid with some editable columns, I override setItemEdit to use
> the same grid in non-editable mode, and also to save the edits.
>
>if (enableEdits)
>columns.add(new SubmitCancelColumn("esd", new 
> Model("Edit")));
>DataGrid grid = new DefaultDataGrid("grid", new 
> MyDataSource(), columns) {
>@Override
>public void setItemEdit(IModel rowModel, boolean edit) 
> {
>if (enableEdits) {
>super.setItemEdit(rowModel, edit);
>if (!edit)
>// dao save row goes here
>}
>}
>};
>
> I think the IDataSource is very clear, but it is for loading. For
> updating, is this appropriate, or am I overlooking a simpler/better
> way?
>
> Then, I would like to add a delete link inside the SubmitCancelColumn
> - has anyone already done that?  I'm thinking it would only be visible
> if editMode is false to share the same screen space with the ok/cancel
> icons.
>
> I suppose a blank line to add a new row at the end would be nice too,
> but I think I can figure that out myself...
>
> Thanks,
> -- Jim.
>
> On Mon, Sep 29, 2008 at 5:57 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
>> That did the trick, thanks a million!
>>
>> On Mon, Sep 29, 2008 at 5:20 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>> I don't think the grid snapshots in maven are recent enough. You
>>> should fetch it from svn and build it yourself if you want to use it.
>>> Also keep in mind that grid version for 1.3 is in the 1.3 branch of
>>> wicket stuff, not the trunk:
>>>
>>> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/inmethod-grid/
>>>
>>> -Matej
>>>
>>> On Mon, Sep 29, 2008 at 10:21 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
 I'd like to use inmethod grid in my charity auction project.

 I've got a slightly modified version of one of the grid-examples using
 DataGrid like so:

DataGrid grid = new DefaultDataGrid("grid",

 AuctionApplication.get().getDao().getItems(getYear()),   // returns
 IDataSource
Arrays.asList(new IGridColumn[] {
new PropertyColumn(new ResourceModel("id"), "id"),
new PropertyColumn(new ResourceModel("name"), 
 "name"),
// I'll try editable columns here once I get
 basic display working...
new SubmitCancelColumn("esd", new Model("Edit")),
}));
add(new Form("form").add(grid));

 I'm getting this error at runtime I don't understand:

 NoSuchMethodError: org.apache.wicket.MetaDataKey: method ()V not 
 found
at com.inmethod.grid.common.AbstractGrid$4.(AbstractGrid.java:908)
at com.inmethod.grid.common.AbstractGrid.(AbstractGrid.java:907)
at org.firstuucolumbus.CatalogPage.(CatalogPage.java:43)

 Unfortunately, I'm a total Maven newbie, so I'm guessing something
 must be amiss in pom.xml (below)

 or the way I'm using it:  mvn clean install eclipse:clean eclipse:eclipse

 (Then I usually run Start from Eclipse)

 Would someone wiser in the ways of inmethod and/or Maven care to give
 me a hand here?

 Any help much appreciated.

 Thanks,
 -- Jim.

 http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd";>

4.0.0
org.firstuucolumbus
auction
war
1.0-SNAPSHOT

auction




The Apache Software License, Version 
 2.0

 http://www.apache.org/licenses/LICENSE-2.0.txt
repo






org.apache.wicket
>>>

Re: Inmethod Grid with wicket 1.3

2008-09-30 Thread Jim Pinkham
OK, now a question about using inmethod grid:  (I really like this
grid, by the way - awesome work Matej!!)

On a grid with some editable columns, I override setItemEdit to use
the same grid in non-editable mode, and also to save the edits.

if (enableEdits)
columns.add(new SubmitCancelColumn("esd", new 
Model("Edit")));
DataGrid grid = new DefaultDataGrid("grid", new 
MyDataSource(), columns) {
@Override
public void setItemEdit(IModel rowModel, boolean edit) {
if (enableEdits) {
super.setItemEdit(rowModel, edit);
if (!edit)
// dao save row goes here
}
}
};

I think the IDataSource is very clear, but it is for loading. For
updating, is this appropriate, or am I overlooking a simpler/better
way?

Then, I would like to add a delete link inside the SubmitCancelColumn
- has anyone already done that?  I'm thinking it would only be visible
if editMode is false to share the same screen space with the ok/cancel
icons.

I suppose a blank line to add a new row at the end would be nice too,
but I think I can figure that out myself...

Thanks,
-- Jim.

On Mon, Sep 29, 2008 at 5:57 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
> That did the trick, thanks a million!
>
> On Mon, Sep 29, 2008 at 5:20 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> I don't think the grid snapshots in maven are recent enough. You
>> should fetch it from svn and build it yourself if you want to use it.
>> Also keep in mind that grid version for 1.3 is in the 1.3 branch of
>> wicket stuff, not the trunk:
>>
>> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/inmethod-grid/
>>
>> -Matej
>>
>> On Mon, Sep 29, 2008 at 10:21 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
>>> I'd like to use inmethod grid in my charity auction project.
>>>
>>> I've got a slightly modified version of one of the grid-examples using
>>> DataGrid like so:
>>>
>>>DataGrid grid = new DefaultDataGrid("grid",
>>>
>>> AuctionApplication.get().getDao().getItems(getYear()),   // returns
>>> IDataSource
>>>Arrays.asList(new IGridColumn[] {
>>>new PropertyColumn(new ResourceModel("id"), "id"),
>>>new PropertyColumn(new ResourceModel("name"), 
>>> "name"),
>>>// I'll try editable columns here once I get
>>> basic display working...
>>>new SubmitCancelColumn("esd", new Model("Edit")),
>>>}));
>>>add(new Form("form").add(grid));
>>>
>>> I'm getting this error at runtime I don't understand:
>>>
>>> NoSuchMethodError: org.apache.wicket.MetaDataKey: method ()V not found
>>>at com.inmethod.grid.common.AbstractGrid$4.(AbstractGrid.java:908)
>>>at com.inmethod.grid.common.AbstractGrid.(AbstractGrid.java:907)
>>>at org.firstuucolumbus.CatalogPage.(CatalogPage.java:43)
>>>
>>> Unfortunately, I'm a total Maven newbie, so I'm guessing something
>>> must be amiss in pom.xml (below)
>>>
>>> or the way I'm using it:  mvn clean install eclipse:clean eclipse:eclipse
>>>
>>> (Then I usually run Start from Eclipse)
>>>
>>> Would someone wiser in the ways of inmethod and/or Maven care to give
>>> me a hand here?
>>>
>>> Any help much appreciated.
>>>
>>> Thanks,
>>> -- Jim.
>>>
>>> http://maven.apache.org/POM/4.0.0";
>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd";>
>>>
>>>4.0.0
>>>org.firstuucolumbus
>>>auction
>>>war
>>>1.0-SNAPSHOT
>>>
>>>auction
>>>
>>>
>>>
>>>
>>>The Apache Software License, Version 2.0
>>>
>>> http://www.apache.org/licenses/LICENSE-2.0.txt
>>>repo
>>>
>>>
>>>
>>>
>>>
>>>
>>>org.apache.wicket
>>>wicket
>>>${wicket.version}
>>>
>>>
>>>org.apache.wicket
>>>wicket-extensions
>>>${wicket.version}
>>>
>>>
>>>
>>>
>>>org.slf4j
>>>slf4j-log4j12
>>>${slf4j.version}
>>>
>>>
>>>log4j
>>>log4j
>>>${log4j.version}
>>>
>>>
>>>
>>> 
>>> 

Re: Inmethod Grid with wicket 1.3

2008-09-29 Thread Matej Knopp
I don't think the grid snapshots in maven are recent enough. You
should fetch it from svn and build it yourself if you want to use it.
Also keep in mind that grid version for 1.3 is in the 1.3 branch of
wicket stuff, not the trunk:

http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/inmethod-grid/

-Matej

On Mon, Sep 29, 2008 at 10:21 PM, Jim Pinkham <[EMAIL PROTECTED]> wrote:
> I'd like to use inmethod grid in my charity auction project.
>
> I've got a slightly modified version of one of the grid-examples using
> DataGrid like so:
>
>DataGrid grid = new DefaultDataGrid("grid",
>AuctionApplication.get().getDao().getItems(getYear()), 
>   // returns
> IDataSource
>Arrays.asList(new IGridColumn[] {
>new PropertyColumn(new ResourceModel("id"), "id"),
>new PropertyColumn(new ResourceModel("name"), "name"),
>// I'll try editable columns here once I get
> basic display working...
>new SubmitCancelColumn("esd", new Model("Edit")),
>}));
>add(new Form("form").add(grid));
>
> I'm getting this error at runtime I don't understand:
>
> NoSuchMethodError: org.apache.wicket.MetaDataKey: method ()V not found
>at com.inmethod.grid.common.AbstractGrid$4.(AbstractGrid.java:908)
>at com.inmethod.grid.common.AbstractGrid.(AbstractGrid.java:907)
>at org.firstuucolumbus.CatalogPage.(CatalogPage.java:43)
>
> Unfortunately, I'm a total Maven newbie, so I'm guessing something
> must be amiss in pom.xml (below)
>
> or the way I'm using it:  mvn clean install eclipse:clean eclipse:eclipse
>
> (Then I usually run Start from Eclipse)
>
> Would someone wiser in the ways of inmethod and/or Maven care to give
> me a hand here?
>
> Any help much appreciated.
>
> Thanks,
> -- Jim.
>
> http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>
>4.0.0
>org.firstuucolumbus
>auction
>war
>1.0-SNAPSHOT
>
>auction
>
>
>
>
>The Apache Software License, Version 2.0
>
> http://www.apache.org/licenses/LICENSE-2.0.txt
>repo
>
>
>
>
>
>
>org.apache.wicket
>wicket
>${wicket.version}
>
>
>org.apache.wicket
>wicket-extensions
>${wicket.version}
>
>
>
>
>org.slf4j
>slf4j-log4j12
>${slf4j.version}
>
>
>log4j
>log4j
>${log4j.version}
>
>
>
> 
> junit
> junit
> 3.8.2
> test
> 
>
>
>
>org.mortbay.jetty
>jetty
>${jetty.version}
>provided
>
>
>org.mortbay.jetty
>jetty-util
>${jetty.version}
>provided
>
>
>org.mortbay.jetty
>jetty-management
>${jetty.version}
>provided
>
>
>org.mortbay.jetty
>jetty-plus
>${jetty.version}
>provided
>
>
>org.mortbay.jetty
>jetty-naming
>${jetty.version}
>provided
>
>
>commons-dbcp
>commons-dbcp
>${commons-dbcp.version}
>
>
>
>org.springframework
>spring
>${springframework.version}
>
>
>org.apache.wicket
>wicket-spring
>${wicket.version}
>
>
>
>
>org.apache.wicket
>wicket-spring-annot
>