Re: [Wicket-user] javascript and divIds

2005-08-23 Thread flemming
Thank Eelco for the suggestion...I have a look at it. /Flemming Eelco Hillenius wrote: Or, if you want to set it programatically, you can attach an AttributeModifier to it, like: WebMarkupContainer c = new WebMarkupContainer("foo"); IModel replacementModel = new Model("divId"); c.add(new A

RE: [Wicket-user] javascript and divIds

2005-08-23 Thread Igor Vaynberg
rom: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eelco Hillenius > Sent: Tuesday, August 23, 2005 1:07 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] javascript and divIds > > Or, if you want to set it programatically, you can attach an

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread Eelco Hillenius
Like I just answered (probably didn't come through yet): use an AttributeModifier. Eelco On 8/23/05, flemming <[EMAIL PROTECTED]> wrote: > Hi > > I will try with an example. > > Here is the example. and the javascript file which gets included on the > pages I want to use this panel/border. > >

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread Eelco Hillenius
Or, if you want to set it programatically, you can attach an AttributeModifier to it, like: WebMarkupContainer c = new WebMarkupContainer("foo"); IModel replacementModel = new Model("divId"); c.add(new AttributeModifier("id", true, replacementModel)); add(c); bar And, as you probably need some j

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread flemming
Hi I will try with an example. Here is the example. and the javascript file which gets included on the pages I want to use this panel/border. Now the problem I have is that the Id of the DIV must match the id in the onclick in the Is there any way that I can set the id in the DIV from wick

Re: [Wicket-user] javascript and divIds

2005-08-23 Thread Gwyn Evans
Hi, I'm not sure I get what the issue might be, as (as I understand it) Wicket will leave the "id" tag alone, so you'd just set it in your component's HTML and it should get rendered intact? /Gwyn On 23/08/05, flemming <[EMAIL PROTECTED]> wrote: > Hi there > > First I would like to say that I

[Wicket-user] javascript and divIds

2005-08-23 Thread flemming
Hi there First I would like to say that I think Wicket Rocks. I am an old struts guy, so I can really see the advantages over struts. However some things are of course more easy to do with Struts than wicket. In struts I have made a custom tag that gives me a panel with a headline =