Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Gili
I've almost got my prototype ready for testing but I'm having a initialization problem. My markup reads: div wicket:id=imageRow class=floatfix div wicket:id=imageCell class=imageColumn foo /div /div and wicket is complaining about

Re: [Wicket-user] getParent recursively?

2005-08-17 Thread Phil Kulak
MyForm.this.getModelObject(); Still three steps though. Couldn't beat Igor's. :) And that will only work if they are nested and non static, of course. On 8/16/05, Joshua Lim [EMAIL PROTECTED] wrote: I like Igor's method a little better ;) but thanks for the suggestion On 8/17/05, Gili

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
There is no magic in add(). imageRow.add(imageCell) wont work because it needs to be added to the dataitem, that's what populateItem is for. In fact the add() function in the dataview should probably throw an unsupported operation exception. -Igor -Original Message- From: [EMAIL

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
Btw it's a very bad idea to work on the sourcecode directly as opposed to extending a class because you wont always be able to merge the latest changes back into your code. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent:

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Phil Kulak
I don't like the idea of components creating their own markup instead of taking it from the markup stream. In fact, I'd really like to see components like RadioChoice and DropDownChoice operate more like Loop or ListView then how they do now. I think that having a renderer would be a step back. I

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Christian Essl
In fact the add() function in the dataview should probably throw an unsupported operation exception. Or just add to the current data-item if present. Christian ___ Gesendet von Yahoo! Mail - Jetzt

[Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Anders Peterson
Thanks very much for trying to help, I have it working now, but I'm not happy with the code - it's not correct. It's the small, obvious, things that are difficult for beginners. I had this: new Model(tmpBrand.getName(), name) which of course did not work. Changing to this: new

Re: [Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Martijn Dashorst
This just works, but not totally as you might expect... public MyForm(String id, FooBar foobar) { super(id, new CompoundPropertyModel(foobar)); add(new ListView(persons) { protected IModel getListItemModel(IModel model, int nr) { return new

[Wicket-user] Nestable DataView now ready

2005-08-17 Thread Gili
Ok, so I got the nestable DataView ready. So now you can nest one DataView inside another in order to create rows, columns, etc and when populateItem() is called on any of the views in the hierarchy they share the same state for index (as opposed to using ColumnedDataProvider where the

[Wicket-user] Spiral 12 update

2005-08-17 Thread Dzenan Ridjanovic
Hi, The new member registration works now in Spiral 12 (urls12). The update is on the Web: Spiral 12 introduction:: http://drdb.fsa.ulaval.ca/urls/web/spirals/spiral12/index.html Spiral 12 in action: http://drdb.fsa.ulaval.ca/urls12/app Spiral 12 zip file:

Re: [Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Phil Kulak
Check out the user's guide as well. There's some very good documentation on models in there. On 8/17/05, Martijn Dashorst [EMAIL PROTECTED] wrote: This just works, but not totally as you might expect... public MyForm(String id, FooBar foobar) { super(id, new

RE: [Wicket-user] Spiral 12 update

2005-08-17 Thread Eelco Hillenius
I'd like to take a look at it, but unfortunately it won't be before this weekend. So... if anyone else has ideas. Eelco -Oorspronkelijk bericht- Van: Dzenan Ridjanovic [mailto:[EMAIL PROTECTED] Verzonden: wo 17-8-2005 16:22 Aan:

[Wicket-user] ListView Question

2005-08-17 Thread Huy Do
Hi, Please see code below in relation to my question add(new ListView(rows, Arrays.asList(pick.getPickDetails())) { protected void populateItem(final ListItem item) { final PickDetail pickDet = (PickDetail)item.getModelObject();

Re: [Wicket-user] ListView Question

2005-08-17 Thread Martijn Dashorst
add(new ListView(rows, Arrays.asList(pick.getPickDetails())) { protected IModel getListItemModel(IModel arg0, int arg1) { return new CompoundPropertyModel(super.getListItemModel(arg0, arg1)); } protected void populateItem(final

[Wicket-user] Spiral 12 - update

2005-08-17 Thread Dzenan Ridjanovic
I am not sure what I should do in Thunderbird to be able to read properely a multi-part message such as Message: 7 Subject: RE: [Wicket-user] Spiral 12 update Date: Wed, 17 Aug 2005 17:45:16 +0200 From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Reply-To:

RE: [Wicket-user] Nestable DataView now ready

2005-08-17 Thread Igor Vaynberg
Why don't you send us the code plus a code and a template for the page so we can see exactly what is going on. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Wednesday, August 17, 2005 7:00 AM To: [EMAIL PROTECTED] Subject:

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
Too confusing since you are adding in the page constructor, but dataitems are cleared every request. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Essl Sent: Wednesday, August 17, 2005 1:34 AM To:

[Wicket-user] Custom resources

2005-08-17 Thread pepone pepone
Hello wicket users I creating a panel that display an image that is stored in a java object as a byte array public class OzImagePanel extends Panel { private Image img; private OzImage imgModel; public OzImagePanel(final String id,FilePrx filePx) {

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
I would disagree with everything except 1. (2) wont work because cells might create different hierarchies of components based on a model, ie insert different panels based on model objects type. (3) this is not error prone at all. You have to understand that you cannot add directly into the

Re: [Spam] [Wicket-user] New to question on Wicket Application concept ?

2005-08-17 Thread Martijn Dashorst
Huy Do wrote: Perfect sense. Thanks Igor and Gili for your help. It was just a bit confusing looking at all the examples (cdapp etc) and seeing the way things are structured. Yeah, I can see that it is confusing. The examples are in fact different applications put into one war. Normally