Re: Accordion using jquery and wicket 6
t; > > > Lorem ipsum dolor sit amet, consectetur adipisicing elit, > sed do eiusmod tempor incididunt ut labore et dolore magna > aliqua. Ut enim ad minim veniam, quis nostrud exercitation > ullamco laboris nisi ut aliquip ex ea commodo consequat. > > > List item one > List item two > List item three > > > > > > > > > I get a javascript error saying: `Object doesn't support this property or > method` on line 15 of the generated HTML. > > I tried with jquery library which is commented in the code. > Once with keeping jquery library in HTML code and once with Keeping it in > Java code using the renderHead method. > It just doesn't work. > Am i missing anything here? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Accordion-using-jquery-and-wicket-6-tp4669182.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Accordion using jquery and wicket 6
Hi, i am using wicket 6.13.0 and i am trying to implement the accordion functionality using jquery. Java Code: package com.digid.wicket.usability; import org.apache.wicket.markup.head.CssReferenceHeaderItem; import org.apache.wicket.markup.head.IHeaderResponse; import org.apache.wicket.markup.head.JavaScriptReferenceHeaderItem; import org.apache.wicket.markup.head.OnDomReadyHeaderItem; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.request.Url; import org.apache.wicket.request.resource.UrlResourceReference; public class AccordionJquery extends WebPage { public AccordionJquery() { WebMarkupContainer wmc = new WebMarkupContainer("accordion-2"); wmc.setOutputMarkupPlaceholderTag(true); add(wmc); } @Override public void renderHead(IHeaderResponse response){ //response.render(JavaScriptReferenceHeaderItem.forReference(new UrlResourceReference(Url.parse("http://code.jquery.com/ui/1.10.4/jquery-ui.js";; //response.render(JavaScriptReferenceHeaderItem.forReference(new UrlResourceReference(Url.parse("http://code.jquery.com/jquery-1.10.2.js";; //response.render(CssReferenceHeaderItem.forReference(new UrlResourceReference(Url.parse("http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css";; response.render(OnDomReadyHeaderItem.forScript("$('#accordion_21').accordion()")); } } HTML Code: http://wicket.apache.org";> jQuery UI Accordion Example Tab 1 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Tab 2 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Tab 3 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. List item one List item two List item three Generated HTML: http://wicket.apache.org";> jQuery UI Accordion Example Tab 1 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Tab 2 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Tab 3 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. List item one List item two List item three I get a javascript error saying: `Object doesn't support this property or method` on line 15 of the generated HTML. I tried with jquery library which is commented in the code. Once with keeping jquery library in HTML code and once with Keeping it in Java code using the renderHead method. It just doesn't work. Am i missing anything here? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accordion-using-jquery-an
Re: JQuery and Wicket 1.5 question
See https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-HeaderContribution and the next paragraph On Wed, Apr 11, 2012 at 11:34 PM, Sandor Feher wrote: > Hi, > > > I would like to use some visural wicket components so I need to initialize > JQuery first. > I'm wondering how to initialize it in wicket 1.5. > The example shown below does not work in 1.5. > Thank you in advance! > > > Regards., Sandor > > -- > > package com.myapp.wicket; > > import com.jquery.JQueryResourceReference; > import org.apache.wicket.markup.html.JavascriptPackageResource; > import org.apache.wicket.protocol.http.WebApplication; > > public class Application extends WebApplication { > > public Application() { > > addRenderHeadListener(JavascriptPackageResource.getHeaderContribution(new > JQueryResourceReference())); > } > > public Class getHomePage() { > return HomePage.class; > } > } > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/JQuery-and-Wicket-1-5-question-tp4549988p4549988.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
JQuery and Wicket 1.5 question
Hi, I would like to use some visural wicket components so I need to initialize JQuery first. I'm wondering how to initialize it in wicket 1.5. The example shown below does not work in 1.5. Thank you in advance! Regards., Sandor -- package com.myapp.wicket; import com.jquery.JQueryResourceReference; import org.apache.wicket.markup.html.JavascriptPackageResource; import org.apache.wicket.protocol.http.WebApplication; public class Application extends WebApplication { public Application() { addRenderHeadListener(JavascriptPackageResource.getHeaderContribution(new JQueryResourceReference())); } public Class getHomePage() { return HomePage.class; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JQuery-and-Wicket-1-5-question-tp4549988p4549988.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery and wicket
thanks for the LegUp link :) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Mar 9, 2010 at 12:11 PM, Richard Wilkinson < richardjohnwilkin...@googlemail.com> wrote: > Hi Thorsten, > > The latest version of wiQuery is 1.0, which you can download the jar > from the wiQuery site [1] or use maven. See the wiQuery LegUp maven > archetype [2] for initial help setting it all up. > > As for working with plugins, yes it can be done quite easily by > implementing the IWiQueryPlugin interface in your component, but you > are probably better asking for help on the wiQuery mail list [3]. > > [1] - http://code.google.com/p/wiquery/ > [2] - http://jweekend.com/dev/LegUp > [3] - http://groups.google.com/group/wiquery > > -- > Regards - Richard Wilkinson > Developer, > jWeekend: OO & Java Technologies - Development and Training > http://jWeekend.com > > > On 9 March 2010 09:36, Thorsten wrote: > > Hi, > > > > I'd like to use jquery in my wicket application. So far, I need > > tooltips. > > > > I think, I could use wiquery for that, right? On the wiquery homepage > > the latest build is Revision 44 from 04/07/2009. Is that the most recent > > one? > > > > Can I use jquery plugins in combination with wiquery, e.g. qtip > > (http://craigsworks.com/projects/qtip/) > > > > > > Thanks, > > Thorsten > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: jquery and wicket
Hi Thorsten, The latest version of wiQuery is 1.0, which you can download the jar from the wiQuery site [1] or use maven. See the wiQuery LegUp maven archetype [2] for initial help setting it all up. As for working with plugins, yes it can be done quite easily by implementing the IWiQueryPlugin interface in your component, but you are probably better asking for help on the wiQuery mail list [3]. [1] - http://code.google.com/p/wiquery/ [2] - http://jweekend.com/dev/LegUp [3] - http://groups.google.com/group/wiquery -- Regards - Richard Wilkinson Developer, jWeekend: OO & Java Technologies - Development and Training http://jWeekend.com On 9 March 2010 09:36, Thorsten wrote: > Hi, > > I'd like to use jquery in my wicket application. So far, I need > tooltips. > > I think, I could use wiquery for that, right? On the wiquery homepage > the latest build is Revision 44 from 04/07/2009. Is that the most recent > one? > > Can I use jquery plugins in combination with wiquery, e.g. qtip > (http://craigsworks.com/projects/qtip/) > > > Thanks, > Thorsten > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery and wicket
I can't tell you all the rules for compatibility and interoperability with Wicket's own js library. I think you will find answers on that with web searches. But I can tell you that I use jQuery without problems. I use jsTree, jqModal and other components. I exchange data via Wicket HiddenField. Please note that Wicket generates the names of the hidden fields, so you might either want to override the names in Java or use ids to address the hidden fields in your js. Bernard On Tue, 9 Mar 2010 10:36:04 +0100, you wrote: >Hi, > >I'd like to use jquery in my wicket application. So far, I need >tooltips. > >I think, I could use wiquery for that, right? On the wiquery homepage >the latest build is Revision 44 from 04/07/2009. Is that the most recent >one? > >Can I use jquery plugins in combination with wiquery, e.g. qtip >(http://craigsworks.com/projects/qtip/) > > >Thanks, >Thorsten > >- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
jquery and wicket
Hi, I'd like to use jquery in my wicket application. So far, I need tooltips. I think, I could use wiquery for that, right? On the wiquery homepage the latest build is Revision 44 from 04/07/2009. Is that the most recent one? Can I use jquery plugins in combination with wiquery, e.g. qtip (http://craigsworks.com/projects/qtip/) Thanks, Thorsten - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org