Re: [Wicket-user] add class onlclick

2007-07-03 Thread Pieter Cogghe
; add(new AjaxFallbackLink("edit-link"){ >> > @Override >> > public void onClick(AjaxRequestTarget target) { >> > // dome some other stuff >> > text.add(new SimpleAttributeModifier("id","test")); >> >

Re: [Wicket-user] add class onlclick

2007-07-03 Thread Pieter Cogghe
; > if (target != null) { > // add some other components > target.addComponent(text); > } > } > > }); > > > Somehow this doesn't work. I guess I simply missed something? > > thanks, > > Pieter > > -- >

[Wicket-user] add class onlclick

2007-07-03 Thread Pieter Cogghe
// 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

Re: [Wicket-user] reference from deeply nested links

2007-07-02 Thread Pieter Cogghe
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/

[Wicket-user] reference from deeply nested links

2007-07-01 Thread Pieter Cogghe
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

Re: [Wicket-user] Panel doesn't use changed model

2007-06-28 Thread Pieter Cogghe
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

Re: [Wicket-user] Panel doesn't use changed model

2007-06-28 Thread Pieter Cogghe
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

Re: [Wicket-user] Panel doesn't use changed model

2007-06-28 Thread Pieter Cogghe
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

[Wicket-user] Panel doesn't use changed model

2007-06-28 Thread Pieter Cogghe
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

Re: [Wicket-user] handling expiring pages

2007-06-21 Thread Pieter Cogghe
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

Re: [Wicket-user] handling expiring pages

2007-06-20 Thread Pieter Cogghe
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

Re: [Wicket-user] handling expiring pages

2007-06-20 Thread Pieter Cogghe
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

[Wicket-user] handling expiring pages

2007-06-18 Thread Pieter Cogghe
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 --

Re: [Wicket-user] Label - alter rendering

2007-06-14 Thread Pieter Cogghe
. 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

Re: [Wicket-user] label - default model when given model is emty

2007-06-14 Thread Pieter Cogghe
(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

Re: [Wicket-user] label - default model when given model is emty

2007-06-14 Thread Pieter Cogghe
))); } } 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 >

Re: [Wicket-user] label - default model when given model is emty

2007-06-14 Thread Pieter Cogghe
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

[Wicket-user] label - default model when given model is emty

2007-06-14 Thread Pieter Cogghe
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

[Wicket-user] Label - alter rendering

2007-06-14 Thread Pieter Cogghe
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.

Re: [Wicket-user] Link to javascript for a custom component

2007-06-13 Thread Pieter Cogghe
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

Re: [Wicket-user] label - input

2007-06-13 Thread Pieter Cogghe
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

[Wicket-user] Link to javascript for a custom component

2007-06-13 Thread Pieter Cogghe
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

Re: [Wicket-user] label - input

2007-06-13 Thread Pieter Cogghe
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]>: > *

Re: [Wicket-user] label - input

2007-06-12 Thread Pieter Cogghe
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

[Wicket-user] label - input

2007-06-12 Thread Pieter Cogghe
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