Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Gerolf Seitz
thx, igor, for the clarification. although it's been said a lot of times, i have to repeat it: you guys do one hell of a good job teaching us padawans, because at the beginning of one's wicket journey, it's sometimes hard to travel on the right (=wicket) way. and btw, it's been a tremendous journe

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Igor Vaynberg
On 7/1/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: thx for the corrections, igor. i have one question though: what if the panel get's updated via ajax, wouldn't the whole panel be "redrawn" and thus loosing the javascript-rendered round corners? that was actually the reason for putting the javas

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Eelco Hillenius
> It seems there is more than one way to skin this cat. I'm really looking > forward to Wicket in Action. Working on it as we speak :) > I'm hoping that besides acting as a great > reference, it will be great at explaining the "intent" of the design of the > APIs so that end users can make corr

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Erik Dreyer
That worked Great! Thx for the help. I also created a simple Border that uses this Behavior since that is the pattern I'll be using the most (provided to help others): It seems there is more than one way to skin this cat. I'm really looking forward to Wicket in Action. I'm hoping that besides

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Gerolf Seitz
thx for the corrections, igor. i have one question though: what if the panel get's updated via ajax, wouldn't the whole panel be "redrawn" and thus loosing the javascript-rendered round corners? that was actually the reason for putting the javascript code after the rendering of the component. ple

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Igor Vaynberg
On 7/1/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: [...] @Override public void renderHead(IHeaderResponse response) { // add the javascript libraries to the header response.renderJavascriptReference(new JavascriptResourceReference( RicoCo

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Gerolf Seitz
you could try to implement this as a behavior: public class RicoCorner extends AbstractBehavior { private Component component; @Override public void renderHead(IHeaderResponse response) { // add the javascript libraries to the header response.render

[Wicket-user] dynamic JS question

2007-07-01 Thread Erik Dreyer
Hi, Thanks in advance for the help as I wrap my mind around Wicket. I'm trying to create a Border component that, using the openRico js library (www.openrico.org), will output JS that will be called on load to round its own borders. Basically Rico works like this: ... stuff goes here ... Rico