google-code-export / jqwicket

Automatically exported from code.google.com/p/jqwicket
1 stars 0 forks source link

example page has syntax error #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following text under the section "4. Using generic jquery behavior on 
components" contains a syntax error, and does not compile in Java:

    new JQBehavior($(changeCssAndPulsate).css("color", "green").effect(Effect.PULSATE))

Original issue reported on code.google.com by armh...@gmail.com on 26 May 2011 at 8:25

GoogleCodeExporter commented 9 years ago
1. what is the compilation error?
2. did you add the static import to you class?

import static net.javaforge.jqwicket.JQuery.$;

Original comment by m...@javaforge.net on 27 May 2011 at 12:58

GoogleCodeExporter commented 9 years ago
OK wow, I had no idea it was legal to reference a member named "$" in Java that 
way. I honestly thought the Wiki page had some sort of formatting/quoting 
issue. After adding the import, the code compiles fine. 

Apologies for the bogus report!

Original comment by armh...@gmail.com on 27 May 2011 at 1:08

GoogleCodeExporter commented 9 years ago

Original comment by m...@javaforge.net on 27 May 2011 at 5:30