Re: Manipulate Component Markup before rendering

2008-05-31 Thread Erik van Oosten
Hello Jürgen, You coulld put a span in the markup and add a Label to it. Don't forget to call setRenderBodyOnly(true) on the label. Regards, Erik. Jürgen Lind wrote: Hi, I was wondering if there is some way to rewrite the component markup before it is rendered. My setting is as

Re: Manipulate Component Markup before rendering

2008-05-31 Thread Jürgen Lind
Hi Erik, thank you for the suggestion. I tried that already and it did not work. Any component defined within the script area seems to be ignored by wicket, i.e. when I define the label in the Java code, I get an error message stating that the component was not declared in the markup file...

Re: Manipulate Component Markup before rendering

2008-05-31 Thread Erik van Oosten
Any component defined within the script area seems to be ignored by wicket Weird. That sounds like a bug to me. Anyway, your solution seems robust enough to me. Regards, Erik. Jürgen Lind wrote: Hi Erik, thank you for the suggestion. I tried that already and it did not work. Any

Manipulate Component Markup before rendering

2008-05-30 Thread Jürgen Lind
Hi, I was wondering if there is some way to rewrite the component markup before it is rendered. My setting is as follows: 1. I have a component markup file like this wicket:panel script type=text/javascript someFunction( runtime parameter ); /script /wicket:panel 2. The