Hi,

Its because you didnt escape the ' in Let's

when I get chance I will put some code in to make sure that this cant happen

Thanks.

Richard



Serkan Camurcuoglu-2 wrote:
> 
> Hi all,
> I'm using wicketstuff-minis prototip PrototipBehaviour to add tooltip to 
> my components. In the populateItem method of my listview, I add the 
> prototip behaviour to a label object as follows:
> 
>             protected void populateItem(ListItem item) {
> 
>                 ...
> 
>                 ContentDisplayLink link = new 
> ContentDisplayLink("detailLink",
>                         new Model(swd.summary.getName()), swd);
>                 Label label = new Label("name", swd.summary.getName());
>                 link.add(label);
>                 PrototipBehaviour pb = new PrototipBehaviour("Let's see 
> this tooltip.");
>                 label.add(pb);
>                 item.add(link);
>             }
> 
> However, the generated javascript gives the following error in firefox
> 2.0:
> 
> missing ) after argument list
> 
> and the generated javascript looks like :
> 
> Wicket.Event.add(window, "load", function() { new 
> Tip($('namejs__623____1'),'Let's see this tooltip.');;});
> 
> 
> what's wrong with this javascript? How can I correct it? By the way, I'm 
> using wicket 1.3.3, wicketstuff-minis-1.3.0-SNAPSHOT.jar and portlets in 
> Jetspeed 2.1.3 environment..
> 
> Best regards,
> 
> SerkanC
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicketstuff-minis-prototip-generated-javascript-error-tp17985410p17986272.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to