; add(new AjaxFallbackLink("edit-link"){
>> > @Override
>> > public void onClick(AjaxRequestTarget target) {
>> > // dome some other stuff
>> > text.add(new SimpleAttributeModifier("id","test"));
>> >
;
> if (target != null) {
> // add some other components
> target.addComponent(text);
> }
> }
>
> });
>
>
> Somehow this doesn't work. I guess I simply missed something?
>
> thanks,
>
> Pieter
>
> --
>
// dome some other stuff
text.add(new SimpleAttributeModifier("id","test"));
if (target != null) {
// add some other components
target.addComponent(text);
}
}
});
Somehow this doesn't work. I guess I simply missed
e FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/
h all the constructors of the subsequent classes. This seems a bit
cumbersome. I was wondering whether there is a better solution.
thanks,
Pieter
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
-
This SF.net email is
hat it may be
hard to grasp.
If you want a better understanding, try to draw a picture with
references and objects and see how they interact.
Martijn
On 6/28/07, Pieter Cogghe <[EMAIL PROTECTED]> wrote:
> Thanks, that works. I really didn't know what I did wrong, nut I
understand
&g
ttp://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Pieter Cogghe
Ganzendri
upTitle
final String titleProperty = "resource.text[" +
this.language.toString() + "][" + InstrumentContentType.PHRASE_TYPE + "]";
item.add(new Label("title",new PropertyModel(item.getModelObject(),
titleProperty)));
}
}
}
2007/6/2
e.setModel(new PropertyModel (
item.getModelObject(),"some.property")); // this works
}
});
}
};
add(sectionMenu);
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
-
This SF.net email is sponsored b
plex web ui without using session at all, thus wicket. so just
depends on what tradeoffs match your specs.
-igor
On 6/20/07, Pieter Cogghe <[EMAIL PROTECTED]> wrote:
>
> That's partially true, but after the session expired and the user has
> logged in again, you can redirect him im
ss and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/li
owerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
-
Th
piredErrorPage*)*. How do I redirect users to the page they left,
after they logged in again and secondly how do I preserve submitted data and
submit it after the user logged in again?
thanks a lot,
Pieter
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
--
. The code
looks a bit messy, but it does fancy things with locales.
Eelco
On 6/14/07, Pieter Cogghe <[EMAIL PROTECTED]> wrote:
> I've got a model with a language (Locale) property. I want to write
> the language (language.getDisplayLanguage) in a Label. I did it like
> th
(s))?default:s; }
public void detach() { delegate.detach(); }
}
then just add(new label("label", new defaulttextmodel("default text",
model));
-igor
On 6/14/07, Pieter Cogghe <[EMAIL PROTECTED]> wrote:
> So if the property is first not null and I change it later on to nul
)));
}
}
2007/6/14, Martijn Dashorst <[EMAIL PROTECTED]>:
> I wouldn't do that... If you change the property that should be shown
> when not null, it will not be reflected here, as you have lost the
> connection between the label and the original model.
>
> Martijn
>
ag openTag) {
>String model = (String) getModelObject();
>replaceComponentTagBody(markupStream, openTag, model == null ?
> defaultText : model);
>}
> });
> }
>
> Or make a model wrapper
>
> On 6/14/07, Pieter Cogghe <[EMAIL PROTECTED]> wrote:
> &g
Body(markupStream, openTag, "no language selected");
} else {
super.onComponentTagBody(markupStream, openTag)
}
}
});
This is really verbose. Anybody knows a better way?
thanks a lot,
Pieter
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
d of Locale?)
thanks,
Pieter
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits.
EDIT: it does work, there's something wrong with the order of the
links => a problem with the initialisation of my javascript
2007/6/13, Pieter Cogghe <[EMAIL PROTECTED]>:
> I made a panel MyPanel and want to link to some javascript file for
> the behaviour
>
> The dire
t) {
> this.text = text;
> }
>
> public String getText(){
> return text;
> }
> public void setText(String text) {
> this.text = text;
> }
> }
>
> class MyPanel extends Panel{
>
> public MyPanel(String id, MyModel myModelObject){
> sup
nders like this:
That doesn't work. What did I get wrong?
thanks,
Pieter
--
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE
quot;text"))
So the textfield within the panel should be associated with the "text"
property of the compoundProperty model (MyModel.getText). Somehow I
feel I get something seriously wrong here.
Thanks,
Pieter
2007/6/13, Jean-Baptiste Quenot <[EMAIL PROTECTED]>:
> *
I've found SimpleFormComponentLabel in the api, which wasn't listed in
the component reference. With this I get (more or less) what I want.
2007/6/12, Pieter Cogghe <[EMAIL PROTECTED]>:
> Hi,
>
> (I'm new to Wicket and relatively new to Java so beware of stupid
&g
oid onComponentTag(ComponentTag tag){
setOutputMarkupId(true);
super.onComponentTag(tag)
}
This works fine for the input-id, however I'm not sure how I can add
the label tag in front of it. Maybe I should write a custom panel?
Thanks a lot,
Pieter
--
Pieter Cogghe
25 matches
Mail list logo