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
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
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
I do not see a problem with the first solution. You can use a wicket:border
to decorate your custom component with a
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-
&
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
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
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
There is at least two solutions.
1. The ideea is to use
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?
--
10 matches
Mail list logo