Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Mark van Leeuwen
usable behavior. Thanks to everyone for their contributions. > -Original Message- > From: [EMAIL PROTECTED] [mailto:wicket-user- > [EMAIL PROTECTED] On Behalf Of Harald Gruber > Sent: Wednesday, 23 May 2007 5:55 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicke

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Harald Gruber
you could implement it as behavior and just add it to the dropdown... have a look at my example. the javascript is composed and written in the "onRendered" method so its written out right after the component. harald example --- import org.apache.wicket.Component; import

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
t; -Original Message- >> From: [EMAIL PROTECTED] [mailto:wicket-user- >> [EMAIL PROTECTED] On Behalf Of Nino Saturnino Martinez >> Vazquez Wael >> Sent: Wednesday, 23 May 2007 5:42 PM >> To: wicket-user@lists.sourceforge.net >> Subject: Re: [Wicket-user] Best w

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Alex Objelean
I do not see a problem with the first solution. You can use a wicket:border to decorate your custom component with a

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
be able to by overriding >> DropDownChoice.onRender(). >> >> Maybe a new behavior would be a more generic solution. >> >> Any other ideas would be welcome... >> >> >> >> >>> -Original Message- >>> From: [EMAIL PROTECTED] [mailto:wicket-user- &

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Mark van Leeuwen
t; To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Best way to insert inline Javascript > > Another way could be to create the javascript component and invoke it by > adding a onload behavior to your dropdown, this should work? > > I've implemented a simpl

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Nino Saturnino Martinez Vazquez Wael
t; > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:wicket-user- >> [EMAIL PROTECTED] On Behalf Of Alex Objelean >> Sent: Wednesday, 23 May 2007 5:02 PM >> To: wicket-user@lists.sourceforge.net >> Subject: Re: [Wicket-user] Best way to insert inline Javascript >> >> >> >> There is at least two solutions. >> 1. The ideea is to use

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Mark van Leeuwen
L PROTECTED] [mailto:wicket-user- > [EMAIL PROTECTED] On Behalf Of Alex Objelean > Sent: Wednesday, 23 May 2007 5:02 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Best way to insert inline Javascript > > > > There is at least two solutions. > 1. The ideea is to use

Re: [Wicket-user] Best way to insert inline Javascript

2007-05-23 Thread Alex Objelean
There is at least two solutions. 1. The ideea is to use

[Wicket-user] Best way to insert inline Javascript

2007-05-22 Thread Mark van Leeuwen
Writing my first custom component... I want to initialise the component using inline Javascript placed immediately after the component markup. Searching the message archive I found one solution which is to use a label to output the script. Seems a bit of a hack. Is there a better way? --