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
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
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
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:
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
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
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
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
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
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:
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
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:
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();
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
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:
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:
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:
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)
{
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
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
20 matches
Mail list logo