Re: WiQuery 6.0.0 has been released!
Awesome ! I am impatient to use it in my next Wicket project ! Cheers Julien Roche On Thu, Sep 6, 2012 at 12:23 PM, Hielke Hoeve wrote: > We from WiQuery are happy to announce the release of WiQuery 6.0.0! > > Unlike WiQuery 1.5 this release has become smaller. All of the resource > management present in WiQuery 1.5 has been removed because Wickets resource > management has been totally revamped and works nearly the same. This > considerably decreases the footprint of WiQuery. Not only in LOC but also > in performance. This allows us to start focusing completely on providing > users with a JQuery statement API and JQuery UI components. > > For backward compatibility purposes some of the 1.5 API has been marked > deprecated instead of removing it completely. For example: all Behaviors in > WiQuery will check if the statement() function is still used and if so use > the new approach to render. > > Our artifacts can be found at maven central. See listing here: > http://mvnrepository.com/artifact/org.odlabs.wiquery/ > > Happy querying! > > Hielke Hoeve > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: wicket-dnd strange situation
hi Prototype uses $ like jQuery. That can create conflict (your error message indicates that the jquery method "ready" is not available. probably vecause Prototype was loaded after jquery and so override $.). jquery offers a noconflict mode, but I don't remember if we have integrate it to wiquery (like an option). in all cases it is not a good idea to mix many javascript core apis. so use jquery only or prototype, but not the twice in the same time. regards julien roche Le 2 août 2012 09:46, "Decebal Suiu" a écrit : > Nice. I see a beautiful future :) wicket-dnd integrated with wicket tree > and > of course wicket-dnd part of wicket core. > Now, I'm waiting a clarification from a member of wiquery. > > Thanks again, > Decebal > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4650947.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: Question regarding wiquery Rangeslider
hi, I remenber about an AjaxSlider component with method to get the values. I think you will find more hints on the wiquery wiki pages. cheers jul Le 10 nov. 2011 19:51, "odin568" a écrit : > Hi, > > I want to implement Sliders into my Wicket Project. This works fine with > the > example shown here: > > http://wiquery-examples-1-1-x.appspot.com/?wicket:bookmarkablePage=wicket-1:org.odlabs.wiquery.examples.slider.SliderPage > > Now I want to implement Range sliders. So i don't need only the Value of > the > Slider, but the two values (min, max) of them. > > Well, it works optically by adding > >SliderRange range = new SliderRange(true); >slider.setRange(range); > > But I don't get the example edited so that I get those two values :'-( > > For help: > > Cleaned example: >slider = new Slider("slider", 0, 100); >slider.setChangeEvent( >new DefaultJsScopeUiEvent( >"wicketAjaxGet('" + > sliderBehavior.getCallbackUrl(true) >+ "&sliderValue='+" + > Slider.UI_VALUE >+ ", null,null, function() > {return true;})")); >add(slider); > > > > Can anybody give me a hint or prepare an example? > > Thank you a lot! > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Question-regarding-wiquery-Rangeslider-tp4025737p4025737.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: catch jquery event at AjaxEventBehavior
Hi, You can use the setCloseEvent method of the Dialog component: http://code.google.com/p/wiquery/source/browse/trunk/src/main/java/org/odlabs/wiquery/ui/dialog/Dialog.java#702 And if you want to associate the event to an Ajax Behavior, I suggest you to look on this example ( http://code.google.com/p/wiquery-demos/source/browse/trunk/wiquery-examples/src/main/java/org/odlabs/wiquery/examples/dialog/DialogPage.java) where we link an Ajax Behavior to a button of the Dialog (and so, you can reproduce it for the close event) Regards Julien Roche On Mon, Aug 1, 2011 at 8:57 AM, Lurtz Nazgul wrote: > Hi; > > I used jquery dialog. I can open and close jquery dialog box. I represent > jquery > dialog as a panel at wicket side. > > My question is how can i catch jquery close event ? > > I tested like below but it doesn't work > >dialogConfirmation.add(new AjaxEventBehavior("close") { > @Override > protected void onEvent(AjaxRequestTarget target) { > System.out.println(" closed" ); > } >}) ; > > Thanks.
Re: facebook like notification
Hi, I think you need a push approach. I suggest you to use the Atmosphere framework that enable a push channel between the client and the server with WebSocket (of HTML5). If Websocket doesn't work, Atmosphere uses the Comet approach. See: http://jfarcand.wordpress.com/2010/10/07/writing-websocket-application-using-apache-wicket/ Hope that helped you Julien On Sun, Jun 19, 2011 at 11:50 AM, Noven wrote: > Hi All.. > > Newbie need guide , I just registered and this is my first post. > > I am facing problem about creating a facebook like notification. > Like if your friend tag someone in your photos, there will be a > notification appeared on your facebook page. > > My problem actually, I can't manage the user session/application state. > I have successfully presented my feedback message into jGrowl like here > > The real scenario is : > There are 2 role of user in my application, a user and a supervisor. > When the user create something via a form, a notification appeared on > the supervisor page lively. > > My question is how I can trigger the notification (which is a > feedback message) appears on the supervisor page. Where I have to put my > code, override some method in wicket application class? > > I am sorry if there is a similar question like mine before. > > Thanks, > Noven
Re: [ANNOUNCE] Wicketopia 0.9 Released...
That seems very cool !! Many thanks for your great job Julien Roche On Fri, Apr 1, 2011 at 9:02 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > very nice with the scaffold component!! > > Any examples of it? > > 2011/3/31 James Carman : > > Wicketopia is a Rapid Application Development (RAD) library for > > Wicket. There is some documentation available at: > > > > http://wicketopia.sourceforge.net > > > > The official release will be available in the main maven repository > > shortly, but you can download it via SVN (and run the example > > application) by doing: > > > > svn co > http://wicketopia.svn.sourceforge.net/svnroot/wicketopia/tags/wicketopia-parent-0.9/ > > wicketopia > > > > I am trying to clean up the code a bit and tie up some loose ends, but > > I got the Scaffold component working, so I thought that at least > > deserved a release. Plus, I wanted to make sure my release process > > was all ironed out before 1.0. > > > > Thanks, > > > > James > > > > - > > 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: WiQuery DatePicker and Ajax Request
Hi, This is typically a jquery ui problem. Indeed, it creates a div element after the input field So, each time you refresh the input, a new div will be inserted. The "best" workaround is to wrap the input into a div / span element which will be used to refresh the input. With this approach, we flush the input and the additionnal div created by the datepicker js plugin. So, you will have: and Form form = new Form( "form" ); add( form ); WebMarkupContainer datepickercontainer = new WebMarkupContainer("datepickercontainer"); datepickercontainer.setOutputMarkupId(true); form.add( datepickercontainer ); DatePicker datePicker = new DatePicker( "datepicker", new Model(), Date.class ); datePicker.setButtonImageOnly( true ); datePicker.setShowOn( ShowOnEnum.BUTTON ); datePicker. setOutputMarkupPlaceholderTag( true ); datepickercontainer .add( datePicker ); FormComponent submitBtn = new AjaxButton( "submit", new Model( "Submit" ), form ) { @Override protected void onSubmit( AjaxRequestTarget target, Form form ) { Component datePicker = getForm().get( "datepicker" ); datePicker.setDefaultModelObject( null ); target.addComponent( datepickercontainer ); } }; form.add( submitBtn ); Best regards Julien Roche On Tue, Mar 15, 2011 at 3:19 PM, Alexander Monakhov wrote: > Hi, guys. > > Here is a problem I met today: > When I use DatePicker and I change it's model when ajax request > received, on client side date picker's button image doubles. > It happens because on every request date picker is initialized again > and renders new image every time, but old one doesn't disappear, so > user can see several button images. > > Here is simple code snippet for testing: > Form form = new Form( "form" ); > add( form ); > > DatePicker datePicker = new DatePicker( "datepicker", >new Model(), Date.class ); > datePicker.setButtonImageOnly( true ); > datePicker.setShowOn( ShowOnEnum.BUTTON ); > datePicker.setOutputMarkupPlaceholderTag( true ); > form.add( datePicker ); > > FormComponent submitBtn = new AjaxButton( "submit", >new Model( "Submit" ), form ) { > >@Override >protected void onSubmit( AjaxRequestTarget target, Form form ) { >Component datePicker = getForm().get( "datepicker" ); >datePicker.setDefaultModelObject( null ); > >target.addComponent( datePicker ); >} > > }; > form.add( submitBtn ); > > Here is markup: > > > > > > Is there any solution? > > Best regards, Alexander. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: How to block browser Suggestion ?
Hi, Be carefull with "autocomplete", that seems to be an new HTML5 input attributes (see http://www.w3schools.com/html5/att_input_autocomplete.asp). That will works for new browser, but not for the old. Regards Julien Roche On Mon, Mar 14, 2011 at 5:14 PM, Bas Gooren wrote: > autocomplete
Re: jquery ui dialog and ajax component updating
Hi, The jQuery UI Dialog (and the others dialogs too) has this comportement (adding elements at the end of the body) to position the dialogs and for the modal approach. So, when you refresh the dialog, you recreate the instance and so regenerate the HTML. You have to destroy properly your dialog with the call of "destroy" dialog method and with the call of remove(). I think you must do into the Ajax transaction: target.preprendJavascript("$('#myDialog').dialog('destroy').remove();"); Regards Julien Roche On Mon, Dec 13, 2010 at 8:44 AM, jensiator wrote: > > Did you solve this problem? Im having the same problem. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/jquery-ui-dialog-and-ajax-component-updating-tp1857058p3085030.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: DatePicker to pick a year
Hi Anna, I think you have to set the right converter on your wicket textfield (with the override of the method getConverter and with the class PatternDateConvert). The "dateFormat" option works only on the client side with jQuery. Regards Julien Roche On Tue, Dec 7, 2010 at 7:56 PM, Anna Simbirtsev wrote: > Hi, > > I am using the wiQuery for the calendar now, but have some problems. > > 1) The page refreshes when I click in the field, then the datepicker > appeares. > > 2) When I try to submit, it gives me an error: '1980-12-04' is not a valid > Date. > > > DatePicker datefield = new DatePicker("datefield", Date.class); >datefield.setYearRange(new DatePickerYearRange(new > Short("-210"), new Short("0"))); >datefield.setDateFormat("yy-mm-dd"); >datefield.setChangeYear(true); >datefield.setChangeMonth(true); >datefield.setShowOn(ShowOnEnum.FOCUS); >add(datefield); > > > In the model object, datefield is a Date type. > > Thanks > Anna > > > On Tue, Nov 30, 2010 at 11:20 AM, Alexander Monakhov > wrote: > > Hi. > > > > Why don't you use wiQuery? > > > > BTW, it's not a good idea to set markup id, because you're not sure > > whether it's unique across entire page. Let it be set by framework. > > > > If you don't want to use wiQuery, use header contribution to inject > > jquery related code from java code to page. In this case you can use > > getMarkupId() to retrieve actual input's id and put it to jquery > > related code. > > > > Best regards, Alexander. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > -- > Anna Simbirtsev > (416) 729-7331 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
wiQuery: Release 1.1.2
Hi, Just a little annoucement for an intermediate release of wiQuery: the 1.1.2. What kind of changes ? * Use of jQuery 1.4.4 & jQuery UI 1.8.6 * IModel enhancement for the options * Javascript and Stylesheet enhancement * Animate for the jQuery effect * IWiQueryInitializer & wiquery.properties (like the wicket.properties) * More tests * Issue 128 * Issue 130 We have created too some new wiquery sites: * http://code.google.com/p/wiquery-plugins/ // Which contains some wiQuery plugins * http://code.google.com/p/wiquery-demos/ // Sources for all wiQuery examples * http://code.google.com/p/wiquery-maven-archetype/ // Base for wiQuery Maven Archetype Best regards Julien Roche
Re: Wicket 1.4.14 and WiQuery Tabs
Hi all, Can you try tabs with the last release of wiquery ? (the 1.1.1). A lot of changes and refactoring were don into the core. Maybe that will solved your problems. Can you give me your feedbacks please . Thank you Regards Julien Roche On Mon, Nov 29, 2010 at 9:33 PM, Brad Grier wrote: > Okay, well...it's more than a contribution problem. It looks like the tab's > associated div, ul and li tags do not get modified by wiquery in 1.4.14. > WiQuery assigns classes to these tags (ui-tabs, ui-tabs-nav, > ui-state-default, etc). Those are all missing when I run in Wicket 1.4.14. > > Since it works fine for you, I'm not sure where to look. > > > > -Original Message- From: Brian Topping > Sent: Monday, November 29, 2010 2:04 PM > > To: users@wicket.apache.org > Subject: Re: Wicket 1.4.14 and WiQuery Tabs > > > On Nov 29, 2010, at 3:02 PM, Brian Topping wrote: > > >> On Nov 29, 2010, at 2:39 PM, Brad Grier wrote: >> >> My tabs are on panels that get swapped in and out via ajax. Are you using >>> this approach? >>> >> >> They are ajax, but I haven't bothered looking at how it works. Here's >> what I use in populateItem(): >> >>mainContentPanel = >>> cp.loadComponentInstance("mainContentPanel"); >>> mainContentPanel.setOutputMarkupId(true); >>> AdminPage.this.replace(mainContentPanel); >>> target.addComponent(mainContentPanel); >>> >> > Erm, that should have been "what I use in my onClick()"... > > > - > 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: Wicket JQuery drag and drop behaviors
Hi Armandoxxx, If you want, you have too an implementation for your case with wiQuery (see: http://wiquery-examples-1-1-x.appspot.com/?wicket:bookmarkablePage=:org.odlabs.wiquery.examples.droppable.DroppablePage). But your approach is very ligthweight !! Regards Julien On Tue, Nov 9, 2010 at 2:30 PM, armandoxxx wrote: > > Just to let everyone know, this is just a simple imeplementation, there are > no events triggered on draggable and therefore no methods called, so if > anyone needs it just implement it .. > So all the NPE checks and that kinda stuff is still needed ! > All I needed for my case was to get the dropped component and I needed it > to > be done with JQuery. > > Regards > > Armando > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-JQuery-drag-and-drop-behaviors-tp3033676p3033703.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 > >
wiQuery: new releases
Hi, wiQuery is now available as 1.0.3 (bugfixes from the 1.0.2) and as a major version: the 1.1. The 1.1 binds jQuery 1.4.3, jQuery UI 1.8.5 and Wicket 1.4.12. So, you can found two now components: AutoComplete and Button (see the jQuery UI examples: http://jqueryui.com/demos/autocomplete/ and http://jqueryui.com/demos/button/). More options were added to configure wiQuery and a big refactoring/cleaning of the core was done to enhancement the framework. We will try to release bimonthly. So, the next release, the 1.2, will be in January. We will try to offer the possiblity to use IModel for the components, new advanced components (AccordionPanel, TabPanel ...) and try to bind more plugins (see http://code.google.com/p/wiquery-plugins/). If you see bugs or have an idea for enhancements, you can add issues at http://code.google.com/p/wiquery/issues/list. Have a nice day The wiQuery team
Re: [wiQuery] Creating a script without a component
Or return new JsQuery().$(".check-login").chain("attr", "'href'", "'#'"); Julien Roche On Mon, Oct 18, 2010 at 5:53 PM, julien roche AKA indiana_jules < roche@gmail.com> wrote: > Hi Peter, > > The "right" way for your case will be: > > add(new WiqueryAbstractBehavior() { >public JsStatement statement() { > return new JsStatement ().$(null, ".check-login").chain("attr", > "'href'", "'#'"); >} > }); > > In the standard process, we will never have an empty component when the > renderHead method is called. Maybe we will renforce the code to enable your > approach. > > Regards > > Julien Roche > > > > On Mon, Oct 18, 2010 at 5:39 PM, Jeremy Thomerson < > jer...@wickettraining.com> wrote: > >> On Mon, Oct 18, 2010 at 10:02 AM, Peter Munro >> wrote: >> >> > Hi, >> > >> > I'd like to set up a JQuery script in my page header to change the >> > attributes of all links with a specified class, so in my Java code I >> tried >> > this: >> > >> >JsQuery linkQuery = new JsQuery(); >> >linkQuery.$(".check-login").chain("attr", "'href'", "'#'"); >> >add(new HeaderContributor(linkQuery)); >> > >> > I'm not sure if this code should do what I want yet, but in any case I >> get >> > a >> > NullPointerException (I'm using wiQuery 1.0.2): >> > >> > java.lang.NullPointerException >> > at >> > org.odlabs.wiquery.core.javascript.JsQuery.renderHead(JsQuery.java:133) >> > >> > >> > I looked at the JsQuery.java and it looks like renderHead() assumes >> > 'component' is initialised, but I'm using the no-arg constructor. >> > >> > Am I going about this the wrong way (and if so, what's the right way?!) >> or >> > is this a bug? >> > >> > Many thanks, >> > Peter >> > >> >> >> Have you tried emailing the wiquery users' list? I believe it's >> wiqu...@googlegroups.com >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> > >
Re: [wiQuery] Creating a script without a component
Hi Peter, The "right" way for your case will be: add(new WiqueryAbstractBehavior() { public JsStatement statement() { return new JsStatement ().$(null, ".check-login").chain("attr", "'href'", "'#'"); } }); In the standard process, we will never have an empty component when the renderHead method is called. Maybe we will renforce the code to enable your approach. Regards Julien Roche On Mon, Oct 18, 2010 at 5:39 PM, Jeremy Thomerson wrote: > On Mon, Oct 18, 2010 at 10:02 AM, Peter Munro wrote: > > > Hi, > > > > I'd like to set up a JQuery script in my page header to change the > > attributes of all links with a specified class, so in my Java code I > tried > > this: > > > >JsQuery linkQuery = new JsQuery(); > >linkQuery.$(".check-login").chain("attr", "'href'", "'#'"); > >add(new HeaderContributor(linkQuery)); > > > > I'm not sure if this code should do what I want yet, but in any case I > get > > a > > NullPointerException (I'm using wiQuery 1.0.2): > > > > java.lang.NullPointerException > > at > > org.odlabs.wiquery.core.javascript.JsQuery.renderHead(JsQuery.java:133) > > > > > > I looked at the JsQuery.java and it looks like renderHead() assumes > > 'component' is initialised, but I'm using the no-arg constructor. > > > > Am I going about this the wrong way (and if so, what's the right way?!) > or > > is this a bug? > > > > Many thanks, > > Peter > > > > > Have you tried emailing the wiquery users' list? I believe it's > wiqu...@googlegroups.com > -- > Jeremy Thomerson > http://www.wickettraining.com >
Re: AjaxLazyLoadPanel in WiQuery Accordion
Hi Reinout, Can you post your HTML code please ? Because I think the better way with an ajaxLazyLoadPanel will be like this: First header Second header Second content Where lazy is a child of the Accordion section, not the Accordion section. Otherwise, jQuery UI will inject the CSS classes but the Ajax request will replace the Div and so, erase the injected CSS. Regards Julien Roche On Tue, Oct 12, 2010 at 3:01 PM, Reinout van Schouwen wrote: > Hi all, > > When I use an AjaxLazyLoadPanel within a WiQuery Accordion widget, the > panel that replaces the loading placeholder doesn't get the correct > CSS class attributes. > What's the right way to set the class attributes of the lazyloadcomponent? > > Thanks, > > -- > Reinout van Schouwen > http://vanschouwen.info/ > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: dialog
Hi, For wiQuery, you can find the sources on the following link: http://code.google.com/p/wiquery/source/browse/#svn/examples/wiquery-examples To see dialogs examples: http://code.google.com/p/wiquery/source/browse/#svn/examples/wiquery-examples/src/main/java/org/odlabs/wiquery/examples/dialog Regards Julien Roche On Wed, Aug 18, 2010 at 5:23 AM, james yong wrote: > > Hi Martin, > > Thanks for the link. > > Regards, > James > > > Martin Makundi wrote: > > > > > http://wicketstuff.org/wicket14/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.modal.ModalWindowPage > > > > 2010/8/18 james yong : > >> > >> Hi, > >> > >> Is there any suggestion on creating a dialog? > >> > >> I have look at the following: > >> 1. wiquery has little documentation on creating dialog, and no source > >> codes > >> for the example war file. > >> 2. visural-wicket isn't working for me at 1st try. Maybe due to some > >> javascript conflict with my existing scripts. > >> 3. wicketstuff-dojo-1.1 is only for wicket 1.3...according to the site. > >> 4. jwicket svn project at wicketstuff is empty! > >> > >> Regards, > >> James > >> > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/dialog-tp2329291p2329301.html > Sent from the Wicket - User 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 UI Layout
Hi, All our jQuery UI components and behaviors were made as wiQuery plugins. You can take a look on the code in the svn. You have got too an example for the qTip plugin: http://groups.google.com/group/wiquery/browse_thread/thread/119255ce1db56101/7b36b3cc2ed957a0?lnk=gst&q=tooltip#7b36b3cc2ed957a0 Most, you can found two base of implementations in the svn (there were used for a presentation): http://code.google.com/p/wiquery/source/browse/#svn/examples/wiquery-presentation-examples/src/main/java/org/odlabs/wiquery/presentation/examples/ui/layout http://code.google.com/p/wiquery/source/browse/#svn/examples/wiquery-presentation-examples/src/main/java/org/odlabs/wiquery/presentation/examples/scrumdashboard If you want, you can fork our github wiquery plugin project ( http://github.com/lionelarmanet/wiquery-plugin) and you can upload your implementation of the UI Layout Cheers Julien Roche On Fri, May 21, 2010 at 8:25 AM, Josh Kamau wrote: > Still on WiQuery, > > I would also be glad if you let me know how to wrap up any JQuery plugin as > a wiquery component. > > Regards. > > On Fri, May 21, 2010 at 9:07 AM, Josh Kamau wrote: > > > Hi WiQuery Team, > > > > Do you have any plans of including Jquery UI Layout in wiQuery? I > urgently > > need it. > > > > regards. > > > > Josh. > > >
Re: My first WiQuery app does not work
Hi, That's really odd. Can we see your code ? Thanks Julien Roche On Tue, Mar 30, 2010 at 6:31 PM, David Chang wrote: > In my experiment, the app does not work without extending > WiQueryWebApplication. > > Is extending WiQueryWebApplication a must? The Hello World example does not > extend WiQueryWebApplication and I copied the example code but it does not > work. > > Best, David > > --- On Tue, 3/30/10, Cemal Bayramoglu wrote: > > > From: Cemal Bayramoglu > > Subject: Re: My first WiQuery app does not work > > To: "users" > > Date: Tuesday, March 30, 2010, 10:29 AM > > David, > > > > Adding the component instantiation listener is more > > flexible than > > extending WiQueryWebApplication. > > > > Regards - Cemal > > jWeekend > > OO & Java Technologies, Wicket > > Consulting, Development, Training > > http://jWeekend.com > > > > > > On 30 March 2010 15:18, David Chang > > wrote: > > > Julien, > > > > > > Thanks for your reply and it works now. Strangely, I > > copied the example on that page, which does not ask me to > > extend WiQueryWebApplication. > > > > > > Something wrong with that Hello World example? > > > > > > Two quick questions: > > > > > > 1. My environment is JDK 1.6 and Wicket 1.4.7. WiQuery > > 1.0 should have no problem with it. Correct? > > > > > > 2. Why the example requires double-click? > > > > > > Regards. > > > > > > -David > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- On Tue, 3/30/10, julien roche AKA indiana_jules > > > > wrote: > > > > > >> From: julien roche AKA indiana_jules > > >> Subject: Re: My first WiQuery app does not work > > >> To: users@wicket.apache.org > > >> Date: Tuesday, March 30, 2010, 8:02 AM > > >> Hi, > > >> > > >> Have you enable wiquery in your Wicket application > > ? This > > >> link is an > > >> implementation of the WebApplication with the > > linked with > > >> Wiquery: > > >> > http://code.google.com/p/wiquery/source/browse/branches/1.0.1/src/main/java/org/odlabs/wiquery/utils/WiQueryWebApplication.java > > >> > > >> Hope that helped you > > >> > > >> Julien Roche > > >> > > >> > > >> On Tue, Mar 30, 2010 at 1:56 PM, David Chang > > wrote: > > >> > > >> > Here is what I have: JDK 1.6, Wicket 1.4.7, > > WiQuery > > >> 1.0, Tomcat 6.0.24 > > >> > > > >> > I downloaded wiquery and put its jar on the > > >> classpath. > > >> > > > >> > I copied the Hello World sample from > > >> > http://code.google.com/p/wiquery/wiki/QuickStart > > >> > > > >> > Here is my code: > > >> > > > >> > HTML:- > > >> > > > >> > > > >> > > > >> >WiQuery > > >> Quickstart Archetype Homepage > > >> > > > >> > > > >> > > >> wicket:id="open-dialog">Open dialog > > ! > > >> > > > >> > > >> wicket:id="dialog"> > > >> > > > >> Hello world, yes we can ! > > >> > > > >> > > > >> > > > >> > > > >> > Java: > > >> > > > >> > import > > org.apache.wicket.markup.html.WebPage; > > >> > import > > org.apache.wicket.markup.html.form.Button; > > >> > > > >> > import org.odlabs.wiquery.core.events.Event; > > >> > import > > org.odlabs.wiquery.core.events.MouseEvent; > > >> > import > > >> > > org.odlabs.wiquery.core.events.WiQueryEventBehavior; > > >> > import > > org.odlabs.wiquery.core.javascript.JsScope; > > >> > import org.odlabs.wiquery.ui.dialog.Dialog; > > >> > > > >> > public class WiqueryDialog extends WebPage { > > >> > > > >> >public WiqueryDialog() { > > >> > > > >> >final Dialog dialog =
Re: My first WiQuery app does not work
Hi, The dialog display on dbclick because we bind the event on it : "MouseEvent.DBLCLICK" If you want to display on a simple click, use MouseEvent.CLICK Regards Julien Roche On Tue, Mar 30, 2010 at 4:29 PM, Cemal Bayramoglu < jweekend_for...@cabouge.com> wrote: > David, > > Adding the component instantiation listener is more flexible than > extending WiQueryWebApplication. > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > > On 30 March 2010 15:18, David Chang wrote: > > Julien, > > > > Thanks for your reply and it works now. Strangely, I copied the example > on that page, which does not ask me to extend WiQueryWebApplication. > > > > Something wrong with that Hello World example? > > > > Two quick questions: > > > > 1. My environment is JDK 1.6 and Wicket 1.4.7. WiQuery 1.0 should have no > problem with it. Correct? > > > > 2. Why the example requires double-click? > > > > Regards. > > > > -David > > > > > > > > > > > > > > > > > > > > --- On Tue, 3/30/10, julien roche AKA indiana_jules > wrote: > > > >> From: julien roche AKA indiana_jules > >> Subject: Re: My first WiQuery app does not work > >> To: users@wicket.apache.org > >> Date: Tuesday, March 30, 2010, 8:02 AM > >> Hi, > >> > >> Have you enable wiquery in your Wicket application ? This > >> link is an > >> implementation of the WebApplication with the linked with > >> Wiquery: > >> > http://code.google.com/p/wiquery/source/browse/branches/1.0.1/src/main/java/org/odlabs/wiquery/utils/WiQueryWebApplication.java > >> > >> Hope that helped you > >> > >> Julien Roche > >> > >> > >> On Tue, Mar 30, 2010 at 1:56 PM, David Chang >wrote: > >> > >> > Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery > >> 1.0, Tomcat 6.0.24 > >> > > >> > I downloaded wiquery and put its jar on the > >> classpath. > >> > > >> > I copied the Hello World sample from > >> > http://code.google.com/p/wiquery/wiki/QuickStart > >> > > >> > Here is my code: > >> > > >> > HTML:- > >> > > >> > > >> > > >> >WiQuery > >> Quickstart Archetype Homepage > >> > > >> > > >> > >> wicket:id="open-dialog">Open dialog ! > >> > > >> > >> wicket:id="dialog"> > >> > > >> Hello world, yes we can ! > >> > > >> > > >> > > >> > > >> > Java: > >> > > >> > import org.apache.wicket.markup.html.WebPage; > >> > import org.apache.wicket.markup.html.form.Button; > >> > > >> > import org.odlabs.wiquery.core.events.Event; > >> > import org.odlabs.wiquery.core.events.MouseEvent; > >> > import > >> org.odlabs.wiquery.core.events.WiQueryEventBehavior; > >> > import org.odlabs.wiquery.core.javascript.JsScope; > >> > import org.odlabs.wiquery.ui.dialog.Dialog; > >> > > >> > public class WiqueryDialog extends WebPage { > >> > > >> >public WiqueryDialog() { > >> > > >> >final Dialog dialog = new > >> Dialog("dialog"); > >> >add(dialog); > >> > > >> >Button button = new > >> Button("open-dialog"); > >> >button.add(new > >> WiQueryEventBehavior(new Event(MouseEvent.DBLCLICK) { > >> > > >> >@Override > >> >public > >> JsScope callback() { > >> > > >> return JsScope.quickScope(dialog.open().render()); > >> >} > >> > > >> >})); > >> >add(button); > >> > > >> >} > >> > } > >> > > >> > -- > >> > > >> > I did not get any compiler error and I can run the > >> wicket app and see the > >> > html in the browser. However, I did not get any > >> respone when clicking the > >> > button. > >> > > >> > > >> >
Re: My first WiQuery app does not work
Hi, Have you enable wiquery in your Wicket application ? This link is an implementation of the WebApplication with the linked with Wiquery: http://code.google.com/p/wiquery/source/browse/branches/1.0.1/src/main/java/org/odlabs/wiquery/utils/WiQueryWebApplication.java Hope that helped you Julien Roche On Tue, Mar 30, 2010 at 1:56 PM, David Chang wrote: > Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery 1.0, Tomcat 6.0.24 > > I downloaded wiquery and put its jar on the classpath. > > I copied the Hello World sample from > http://code.google.com/p/wiquery/wiki/QuickStart > > Here is my code: > > HTML:- > > > >WiQuery Quickstart Archetype Homepage > > >Open dialog ! > > >Hello world, yes we can ! > > > > > Java: > > import org.apache.wicket.markup.html.WebPage; > import org.apache.wicket.markup.html.form.Button; > > import org.odlabs.wiquery.core.events.Event; > import org.odlabs.wiquery.core.events.MouseEvent; > import org.odlabs.wiquery.core.events.WiQueryEventBehavior; > import org.odlabs.wiquery.core.javascript.JsScope; > import org.odlabs.wiquery.ui.dialog.Dialog; > > public class WiqueryDialog extends WebPage { > >public WiqueryDialog() { > >final Dialog dialog = new Dialog("dialog"); >add(dialog); > >Button button = new Button("open-dialog"); >button.add(new WiQueryEventBehavior(new Event(MouseEvent.DBLCLICK) { > >@Override >public JsScope callback() { >return JsScope.quickScope(dialog.open().render()); >} > >})); >add(button); > >} > } > > -- > > I did not get any compiler error and I can run the wicket app and see the > html in the browser. However, I did not get any respone when clicking the > button. > > > What I did is wrong? > > > Thanks. > > > -- here is generated html -- > > > >WiQuery Quickstart Archetype Homepage > src="resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/jquery/jquery-1.3.2.js"> > src="resources/org.odlabs.wiquery.core.commons.WiqueryGeneratedJavaScriptResourceReference/1269950176687wiquery-gen.js"> > > >Open dialog ! > > >Hello world, yes we can ! > > > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: AjaxEditableLabel
Hi, Well, I have overrided AjaxEditableLabel to use the wicketAjaxPost (that's solved my problem), because I shall not change the URIEncoding (there may be conflits with others applications running under the Tomcat server and I'm not allowed to do that :'( ). Thanks for your reply Regards Julien Roche Aka Indiana_Jules On Tue, Dec 8, 2009 at 8:30 PM, TahitianGabriel wrote: > > Try to add URIEncoding="UTF-8" in the Connector meta in the server.xml file > of Tomcat: > > > > Should solve your problem... > > Regards, > > Gabriel. > -- > View this message in context: > http://old.nabble.com/AjaxEditableLabel-tp26676156p26699350.html > Sent from the Wicket - User 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 > >
AjaxEditableLabel
Hi guys, I used Wicket-1.4.3 & Wicket-1.4.3 on Windows XP & Tomcat 6, and I've got a strange behavior on the component AjaxEditableLabel. If I insert "peut-être" in the field, the character with the accent will be badly stored. In the code, I see the following code into the Ajax behavior: final String saveCall = "{" + generateCallbackScript("wicketAjaxGet('" + getCallbackUrl() + "&save=true&'+this.name+'='+wicketEncode(this.value)") + "; return false;}"; If I change it, like it was done into the commit r835229 for the ajaxEditMultineLabel (see http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableMultiLineLabel.java?view=diff&r1=835228&r2=835229&pathrev=835229), with this code: final String saveCall = "{" + "wicketAjaxPost('" + getCallbackUrl(true) + "&save=true', wicketSerialize(this)); return true;}"; It works, I retrieve the correct text. Can it be possible to change this part of code to avoid changing the Tomcat server configuration ? Thanks Julien Roche Aka Indiana_Jules Email: roche@gmail.com Portable: 06 63 91 94 63 Skype: indiana_jules