wire legacy ajax (jquery) widget to Wicket page
Hi, I've got a relatively complex jquery filter widget (for a property listings site) which allows users to filter properties using a number of criteria (neigbourhood, price range, property type, bedrooms etc). The widget works well (at least on the old site) and I want to carry on using it on the new wicket site. I've build the page for property filter list (ListRealtyAdverts) and its serving up the jquery widget fine using renderHead(HtmlHeaderContainer) to include the jquery js files and also using TextTemplate interpolation. The jquery widget initiates a $.ajax({}) call to the server, which then returns a text/html response, an example of the url of the $.ajax call is: http://www.mydomain.com/mls/list-with-filter-ajax-html.jhtml?_=1349428009131operation_types=rental-standardaddress_city=londonprice_range=400~GBP~straight$!$1800~GBP~straightproperty_types=flatproperty_types=houseproperty_types=town-housedefined_values=imagesdefined_values=mapaddress_areas=1address_areas=2current_page=1order_fields=dateUpdated~desc My question is what is the best way to plumb the above call (I can obviously change the url) so that the text/html is returned by wicket, is there a special kind of AjaxPageResource or something? How do I get the url for the ajax resource? I'm using Wicket 1.5.8. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wire-legacy-ajax-jquery-widget-to-Wicket-page-tp4652684.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: wire legacy ajax (jquery) widget to Wicket page
Hi Martin, Thanks for your post, in the end I found this post on thewicketevangelist // Jeff Schwartz who doesn't post so much any more (I think he has switched from wicket to node js), which is a shame as his blog is really instructive: http://thewicketevangelist.blogspot.com.es/2011/12/reusable-jquery-ui-autocomplete-wicket.html http://thewicketevangelist.blogspot.com.es/2011/12/reusable-jquery-ui-autocomplete-wicket.html Anyway what I did was add the widget as a AbstractAjaxBehavior and implement the renderHead(Component, IHeaderResonse) and onRequest() methods. For anyone interested the implementations where along the lines of: @Override public void renderHead(Component _component, IHeaderResponse _response) { super.renderHead(_component, response); renderHeaderJs(_response, JS_BOOTSTRAP); ... more rendering of other js files ... MapString, String variables = new HashMapString, String(); variables.put(jsCurrenciesArray, getJsCurrenciesArray()); ... more interpolated variables ... variables.put(callbackUrl, getCallbackUrl().toString()); TextTemplate packageTextTemplate = new PackageTextTemplate(MyJqueryWidgetBehavior.class, JS_INIT); packageTextTemplate.interpolate(variables); _response.renderOnDomReadyJavaScript(packageTextTemplate.asString()); } private void renderHeaderJs(IHeaderResponse _response, String _inPackageJsFile) { if (!_response.wasRendered(_inPackageJsFile)) { _response.renderJavaScriptReference(new PackageResourceReference(JqueryRealtyAdvertSideFilter.class, _inPackageJsFile)); _response.markRendered(_inPackageJsFile); } } @Override public void onRequest() { RequestCycle requestCycle = RequestCycle.get(); Request request = requestCycle.getRequest(); IRequestParameters irp = request.getRequestParameters(); // construct the filter to be run against the mw from the parameters in the ajax request... Filter filter = getFilterFromParameters(irp); // run the filter using the injected manager ( // check out getBehaviorInstantiationListeners().add(wicketGuiceInjector); in the Application class realtyAdvertManager.runFilter(filter); // create a model from the results of the filter ListModel realtyAdvertModel = new ListModel(filter.getBeans()); // use the model to create a results panel FilterResults newResults = new FilterResults(results, realtyAdvertModel); // replace the model in the component heirarchy Component oldResults = getComponent().get(results); oldResults.replaceWith(newResults); // write it out to the request so that it blats over the original results panel requestCycle.scheduleRequestHandlerAfterCurrent(new ComponentRenderingRequestHandler(newResults)); } Anyway thanks to Jeff Schwartz for his original blog post. And thank you Martin for taking the time to post another solution. Cheers SimonSimon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wire-legacy-ajax-jquery-widget-to-Wicket-page-tp4652684p4652797.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
Link url in ListView on ajaxed panel not resolving properly
Hi, I'm using wicket 1.5.7 I've got a page that has a filter widget in it and a summary list of results that correspond to the filter criteria. When the page initially renders the widget and the default results show. When the filter is changed and an apply filter button is clicked, the results update. The results are displayed through a ListView, one of the components added to each ListItem is a link. This link resolves fine for the default results but when the filter widget is changed and the results updated, the link does not resolve. The link is created as follows: When the page is first rendered the link mentioned above can be clicked and resolves fine to the ManageRealtyAdvert page. The links in the default results look like the following: http://localhost:8080/wicket/page?23-1.ILinkListener-summaryResults-summaries-0-accountRealtyAdvertDisplay However when the results are updated through AJAX the links in the new summary panel do not resolve properly and I get an exception: java.lang.ClassNotFoundException: page and the links look like: http://localhost:8080/wicket/bookmarkable/page?25-1.ILinkListener-summaryResults-summaries-0-accountRealtyAdvertDisplay the only difference between the good urls and the bad urls is the bookmarkable/ in the middle of the bad urls, in fact if I manually remove the bookmarkable/ string the link resolves fine. An extended stack trace is as follows Can anyone suggest what I'm doing wrong. Cheers Simon B -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-url-in-ListView-on-ajaxed-panel-not-resolving-properly-tp4653596.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: Link url in ListView on ajaxed panel not resolving properly
Hi Sven, Thanks for the reply. I have just tried with wicket version 1.5.8 and I get the same symtoms i.e. bookmarkable/ string in the url of the links in the updated ajax results, and also the same exeption: Any other suggestions? Let me know if you need any more information. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-url-in-ListView-on-ajaxed-panel-not-resolving-properly-tp4653596p4653602.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: format value missing in ConversionException thrown by wicket-datetime's DateConverter
Hi Benedikt Should this be posted on the Forum for Wicket Core developers forum? Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/format-value-missing-in-ConversionException-thrown-by-wicket-datetime-s-DateConverter-tp4653598p4653603.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: Link url in ListView on ajaxed panel not resolving properly
Thanks Sven, I've added a Jira issue and attached a quickstart: https://issues.apache.org/jira/browse/WICKET-4860 Let me know if there is any more information that you need Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-url-in-ListView-on-ajaxed-panel-not-resolving-properly-tp4653596p4653722.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
ResourceAggregator in Wicket 6.x
Hi, I'm trying to aggregate my javascript files into one file and then get them placed at the bottom of the page just before the /body tag. I've looked at the example here: http://www.wicket-library.com/wicket-examples-6.0.x/resourceaggregation I've managed to copy the example so that the files are placed just before the /body tag, but the aggregation bit still eludes me. I've tried and Neither seem to aggregate // merge the javascript files. Can someone give me a piece of example code that achieves this. Any help much appreciated. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceAggregator-in-Wicket-6-x-tp4655125.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: ResourceAggregator in Wicket 6.x
Thanks Martin, I'll take a look at those, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceAggregator-in-Wicket-6-x-tp4655125p4655137.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
Ajax Link not resolving Wicket 6.4
Hi I'm using wicket 6.4.0 on Jetty I've got mounted Bookmarkable page with various forms submitted via a AjaxButton (actually a IndicatingAjaxButton) When I go to the page by directly copying the url of the mounted Bookmarkable page into the nav bar or clicking the url from an email, the target url for the ajax requests triggered by the AjaxButton(s) does not resolve properly. The Wicket Ajax Debug Window goes red and an Error entry appears: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Not Found Looking at the source there are several entries like the following: Looking at the net panel of firebug it seems that the url simply does not resolve with wicket: note the //wicket/page;jsessionid=yvcj55z9trey1omjoh9cqme7p Once I go back to the page, thereby having established a session with the application, things work fine, at that point the Wicket.Ajax.ajax call is as follows: the url resolves ok with wicket: note the /wicket/page rather than //wicket/page and the lack of ;sessionid= This happens in all browsers, I'm using Wicket 6.4.0 // 1.6.4, as far as I'm aware it was working in wicket 1.5 Has anyone experiencied similar issues, is there a fix. I don't want to jump the gun, but it appears like it might be a bug. Does anyone have any suggestions to help resolve this? Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Link-not-resolving-Wicket-6-4-tp4655511.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: Ajax Link not resolving Wicket 6.4
Hi Martin, Thanks for replying. I take the url of the page for example: http://localhost:8080/rental/piedras-otra-afuera-de-bs-as-52368.html This is mounted using a MountedMapper in the Application object and resolves to a subclass of WebPage I copy the url, then boot up a fresh version of IE 9 from scratch and paste the URL into the navigation bar. Then I look at the source and see that the URLs that are being created for the AjaxButtons (called via: Wicket.Ajax.ajax) are like I mentioned in my original post e.g.: the above url which is called when I click the AjaxButton, does not resolve with the Wicket Servlet on the Jetty Container I guess it's got something to do with the // in the relative url. incidentally I'm also using a one pass render stategy set up in my Application class i.e. I'm not sure if that's pertinent or not. If you'd like any more information let me know Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Link-not-resolving-Wicket-6-4-tp4655511p4655513.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: Ajax Link not resolving Wicket 6.4
Hi, I've managed to produce a quickstart that reliably reproduces the problem I'm having. It looks like that it's to do with my BookmarkableMapper sub class, so I thought I'd try and diagnose the issue more precisely first rather than ask others to look into it, as it may simply be a bug in my code. Also I've not tried it with Wicket 6.5 yet. I'll post again when I've done both of the above. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Link-not-resolving-Wicket-6-4-tp4655511p4655542.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: Ajax Link not resolving Wicket 6.4
Hi Sven, I just tried 6.5 and that's fixed it! Thank you very much. If you still want a quickstart to have a look at the code that demonstrates the issue in 6.4, then let me know. As it turned out It wasn't to do with my BookmarkableMapper sub class although the urls that the mapper handles have two segments e.g. http://localhost:8080/sale/pedro-moran-agronomia-297919.html The issue seemed to be in the UrlRenderer.renderRelativeUrl(Url) method in Wicket 6.4 which seems to have been updated in 6.5 Anyway the ServletWebResponse (SWR) was creating a fullUrl and also an encodedFullUrl when a fresh request from a unknown User Agent happens the two are different given that the encodedFullUrl contains the sessionId: e.g fullUrl: encocedFullUrl: As these two differ the SWR object was using the UrlRenderer to create a Relative Url this method took a parsed Url e.g: and produced the relative url which (in 6.4) had a double slash in it: Incidentally bookmarkable url for the page that the AjaxButton was on was: venta/laprida-recoleta-286358.html i.e. it had two segments [venta, laprida-recoleta-286358.html] rather than just one I'm not sure if this caused the double slash? Anyway let me know if you'd like the quickstart that shows the issue in 6.4 Thanks very much for fixing it in 6.5, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Link-not-resolving-Wicket-6-4-tp4655511p4655576.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: Eclipse or IntelliJ
I use Intellij 12.0.4 its very quick, certainly much quicker than previous versions. The speed of code completion, find usages, code navigation its amazing. Finally the run, debug, compile cycle is now much quicker, running a jetty quickstart and restarting after editing code is so much quicker than in previous versions, I think this is one of the features that they've added since 12 with the new compiler mode: http://blogs.jetbrains.com/idea/2012/06/brand-new-compiler-mode-in-intellij-idea-12-leda/ I no longer use jrebel as restarting compiling and then running jetty is just as quick through intellij. Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Eclipse-or-IntelliJ-tp4656571p4656600.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
form processing adding new inputs with an ajax onupdate
Hi, I have a form with several inputs one is a DropDownChoice with an AjaxFormComponentUpdatingBehavior(onchange) / AFCUB(onchange) Behavior added to it. When the user changes the DropDownChoice, depending on the value a previously non visible field is displayed via the AFCUB(onchange) onUpdate(AjaxRequestTarget) method, which the user must then fill in. Roughly the code is like this This works fine on the browser the new input fields appear etc, but when the form is then submitted manually with the inputs visible on the screen, their models do not reflect the values selected by the user. Is there something that I need to do in the onUpdate method of the AFCUB(onchange) so the manually submitted Form of the Page reflects the new visibility hierarchy that has been changed via the AFCUB(onchange) ? Any help or clarification much appreciated Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/form-processing-adding-new-inputs-with-an-ajax-onupdate-tp4658758.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: form processing adding new inputs with an ajax onupdate
Hi Paul, Thanks for your suggestion, hadn't tried that, but I have now and it doesn't fix my problem. I use the idiom rather than simply calling Because: 1. depending on the situation it can lead to many setVisible calls in different parts of the page 2. it localises the visible setting to the component to which it applies 3. i don't need to pepper the code with lots of references to the component whose visibility is to be set 4. http://wicketinaction.com/2011/11/implement-wicket-component-visibility-changes-properly/ Thanks anyway for your suggestion, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/form-processing-adding-new-inputs-with-an-ajax-onupdate-tp4658758p4658778.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: form processing adding new inputs with an ajax onupdate
Hi Paul, I was mistaken. I apologise. Previously I hadn't completely removed the onConfigure method from the form component and simply called the setVisible in the onUpdate method of the AjaxFormComponentUpdatingBehavior(onchange) / AFCUB(onchange). So your suggestion worked! Thank you very much. I would still really like to understand why the onConfigure way of setting the visibility of the component didn't work, does anybody have any idea about this? Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/form-processing-adding-new-inputs-with-an-ajax-onupdate-tp4658758p4658779.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
AttributeModifier with html in the attribute?
Hello I want to add html content in an attribute of an html tag. This is for a bootstrap tooltip. What is the best way to do this? When I simply add html to the attribute modifier e.g. it gets converted into What I'd like is: What's the best way to achieve this? Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AttributeModifier-with-html-in-the-attribute-tp4659206.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: AttributeModifier with html in the attribute?
Hello Bertrand, Thank you for your answer I'll try option 3 and create a component subclass. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AttributeModifier-with-html-in-the-attribute-tp4659206p4659226.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: Converting 1.4.7 to 6.12
Hello, I think you can use getSession().getPageFactory().newPage(); Depending on your context you could use Session.get() or getSession() Hope that helps -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-tp4662892p4662893.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: [ANNOUNCE] Apache Wicket 6.13.0 adds free online user guide
Excellent Guide, thank you to everyone who helped with this. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANNOUNCE-Apache-Wicket-6-13-0-adds-free-online-user-guide-tp4663664p4663782.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
Dynamic JQuery Resource Reference for http // https context
Hello, My Wicket app running (6.13.0) is run both under http://www.mydomain.com/ and https://admin.mydomain.com/ In the http domain for the JQuery javascript library i use a UrlResourceReference that points to http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js for the https domain I would like to use a locally hosted version of the JQuery library (as most modern browsers do not load external resources for secure connections). I would like to use a jquery file that is *not* hosted within the package structure but in a standard javascript library directory e.g.: https://admin.mydomain.com/js/lib/jquery-1.8.3.min.js I've had a look at the internals of the DynamicJQueryResourceReference which didn't really give me an idea of how I can mixin the UrlResourceReference. Any suggestions help greatly appreciated... Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-JQuery-Resource-Reference-for-http-https-context-tp4663806.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: Dynamic JQuery Resource Reference for http // https context
Martin, Thank you very much for your quick reply, that works a perfectly. In case it might help someone else, here is the code that I came up with: Then add an call to setJavaScriptLibrarySettings() in your overriden Application.init() Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-JQuery-Resource-Reference-for-http-https-context-tp4663806p4663810.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: Using AjaxRequestTarget with parent/child page
Hi, I'm not sure I completely understand your question but, could you use the event mechanism for this? by passing around custom events you could make the have a look at the Broadcast and IEvent classes you need to send a signal via the Component send method: then receive it via the onEvent method Hope that helps or may give you a pointer to a solution -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-page-tp4663996p4664004.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: Using AjaxRequestTarget with parent/child page
Hi, It occurred to me that you could use the event mechanism to inform your parent page of the event, and then use atmosphere or Native WebSockets to update that parent page. Its just a suggestion I've not used the atmosphere or websockets part of wicket. But if it allows you to asynchronously update your parent page, via a server push then it may work. Sorry for the vagueness, if anyone else has experience of this then please chip in, Cheers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-AjaxRequestTarget-with-parent-child-page-tp4663996p4664009.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: Is there an equivalent for ResourceReference in wicket 6
Hello, I override the renderHead(HtmlHeaderContainer) method if its a Panel and renderHead(IHeaderResponse) if its a WebPage : So in the case of a Panel, I guess it would be something like: Hope that helps. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-equivalent-for-ResourceReference-in-wicket-6-tp4664014p4664024.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: Is there an equivalent for ResourceReference in wicket 6
Hello Martin, Thanks for the heads up, I'll definitely make that change in my project, Cheers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-equivalent-for-ResourceReference-in-wicket-6-tp4664014p4664041.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
setting visibility of a component decocorated with a behavior
Hi, I have a behavior that decorates the component that it is added to by using beforeRender(Component) and afterRender(Component). So a simplified version of my behavior would be I wish for the visibility of the surrounding html that is written to be driven by the visibility of the component that it wraps including when the component that it wraps is sent to the client in an AjaxRequestTarget. What would be the best way to do this? Any suggestions very much appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setting-visibility-of-a-component-decocorated-with-a-behavior-tp4664511.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: setting visibility of a component decocorated with a behavior
Hi Igor, Wow, that is *exactly* what I wanted, just tried it and it worked perfectly. Thank you Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setting-visibility-of-a-component-decocorated-with-a-behavior-tp4664511p4664518.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: setting visibility of a component decocorated with a behavior
Igor, Incidentally the javadoc on that interface is awesome, thanks for taking the time to make it so easily readable and understandable. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setting-visibility-of-a-component-decocorated-with-a-behavior-tp4664511p4664520.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
testing component with assertComponentOnAjaxResponse with IAjaxRegionMarkupIdProvider behavior
Hi, I'm trying to test for a component in an ajax response. The component has had a behavior added to it, this behavior implements IAjaxRegionMarkupIdProvider. When I call the WicketTester#assertComponentOnAjaxResponse(Component) method, it doesn't find the component with the id of component. The ajax response tag (e.g. component id=.../)has the id of the IAjaxRegionMarkupIdProvider not the component. For example the Component has an id of agentOptions and the IAjaxRegionMarkupIdProvider then uses that to create the Markup Id of agentOptions_fd e.g. // in the ajax response the id is that of the IAjaxRegionMarkupIdProvider not of the actual component who's existence I wish to test for / assert Is there some specific way I'm supposed to test for the existence of Components with IAjaxRegionMarkupIdProvider behaviors that have been added to them, or is this simply something that I should live with. I imagine this is a very marginal corner case. Any suggestions very welcome -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/testing-component-with-assertComponentOnAjaxResponse-with-IAjaxRegionMarkupIdProvider-behavior-tp4664569.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
ajax child component and enclosures visibility doesn't seem to work properly
Hi, I'm using wicket 6.13. I've got an ajax link that I want to toggle the visibility of two components, each component is nested with an html div with a wicket:enclosure attribute. In my WebPage when the AjaxLink is clicked I add the components to the AjaxRequestTarget but not the div wicket:enclosure elements. WebPage code: Looking at this post I understand that I shouldn't need to add the element that has the wicket:enclosure attribute. Simplified visibility control of Enclosures in Ajax requests - https://issues.apache.org/jira/browse/WICKET-3422 Does any one have any suggestions as to why this isn't working? Any help greatly appreciated -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ajax-child-component-and-enclosures-visibility-doesn-t-seem-to-work-properly-tp4664606.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: ajax child component and enclosures visibility doesn't seem to work properly
Hi Igor, Thanks for the reply. I'm a bit confused, the markup that I'm using (and that I posted originally) does have inline enclosure attributes: I understand that by inline enclosure you mean an html tag with a wicket:enclosure=... attribute like: div wicket:enclosure=aChildId Is that correct, or am I misunderstanding? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ajax-child-component-and-enclosures-visibility-doesn-t-seem-to-work-properly-tp4664606p4664615.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
mounting // mapping subdomain HomePage
Hi, I want one instance of Wicket to handle different subdomains, so for example: http://mydomain.com/ http://www.mydomain.com/ Map to GeneralHomePage.class and http://foo.mydomain.com/ Maps to FooHomePage.class and http://bar.mydomain.com/ Maps to BarHomePage.class sorry for the unoriginal naming. If anyone could suggest the best way to do this I'd be very grateful. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mounting-mapping-subdomain-HomePage-tp4664880.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: mounting // mapping subdomain HomePage
Thanks Martin for your quick reply. I took your advice and came up with the following implementation which seems to work well on my development box. But as it is the root mapper I'd appreciate it if you or someone could just look over it to make sure its robust. I instantiate it in the MyApplication#init() method with the following: If anyone can see an issue with this implementation please let me know. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mounting-mapping-subdomain-HomePage-tp4664880p4664897.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
testing subdomain page
Hi, Following on from my previous question: http://apache-wicket.1842946.n4.nabble.com/mounting-mapping-subdomain-HomePage-tp4664880.html I now want to test the page using the following: The web app is set up to redirect if it sees that a request has been made from a subdomain or domain that is *not* foo.myapp.com or foo.localhost:8080 Because of this redirect the above test fails. When I look at the host of the url in the request during the test, with a call to: it returns localhost. How can I set the host for urls // requests in WicketTester to foo.localhost Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/testing-subdomain-page-tp4664912.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: testing subdomain page
Hi Martin, Thanks for your reply, I've tried that and it works fine. I was hoping for a way that would fit more simply into my existing tests. Incidentally what is the best way for me to include code snippets, I use the nabble web interface, but I note that in your reply you didn't get any of the code that included in raw tags. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/testing-subdomain-page-tp4664912p4664916.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
wantsOnSelectionChangedNotifications - RadioGroup / Radio vs DropDownChoice
Hi, I'm using Wicket 6.14.0 I've got a form with many components including one which is a RadioGroup (with several Radio) and one which is a DropDownChoice, Both the RadioGroup // Radios and the DropDownChoice have been marked to get selection changed notifications with the RadioGroup#wantOnSelectionChangedNotifications() and the DropDownChoice#wantOnSelectionChangedNotifications() both returning true. My problem is that the DropDownChoice although it refreshes the *page does not* actually receive a notification via the onSelectionChanged(T) method whereas the RadioGroup *does* via the onSelectChanged(Object). I've looked at the code and noticed that when Wicket (6.14 in my case) writes out the onChange javascript the radio and the dropdown differ slightly: Here is the html code for both: Notably the radio sets a specific form element name id28_hf_0 to the value (reference): ./antwerp.web.page.account.realtyadvert.publish.PublishRealtyAdvert?6-1.IOnChangeListener-publishRealtyAdvert-form-advertEditPanel-operationType and the Dropdown sets the same form element name: ../../page?6-1.IOnChangeListener-publishRealtyAdvert-form-advertEditPanel-propertyType So the first one (of the radio group) works ok and finds the right ListenerInterfaceRequestHandler and calls its onSelectionChanged() methodThe second one (from the dropdown) does not find any ListenerInterfaceRequestHandler. The code from DropDownChoice that creates the onchange attribute value is: // we do not want relative URL here, because it will be used by// Form#dispatchEventCharSequence url = urlFor(new ListenerInterfaceRequestHandler(new PageAndComponentProvider(getPage(), this, new PageParameters()), IOnChangeListener.INTERFACE));Form? form = findParent(Form.class);if (form != null){ tag.put(onchange, form.getJsForInterfaceUrl(url.toString()));}else{ tag.put(onchange, window.location.href=' + url +(url.toString().indexOf('?') -1 ? : ?) + getInputName() + =' + this.options[this.selectedIndex].value;);} The code from Radio // url that points to this components IOnChangeListener methodCharSequence url = group.urlFor(IOnChangeListener.INTERFACE, new PageParameters());Form? form = group.findParent(Form.class);if (form != null){ tag.put(onclick, form.getJsForInterfaceUrl(url));}else{ // NOTE: do not encode the url as that would give invalid JavaScript tag.put(onclick, window.location.href=' + url +(url.toString().indexOf('?') -1 ? : ?) + group.getInputName() + =' + this.value;);} The page on which the form is on is not mapped its is just redirected to from another mapped page, I think this may be the problem and I should explicitly map the page with the form so that both urlFor calls return a defined page. I just tried that mapping the page to my-advert-form-page.html and it now works fine. So back to my original question, is this a bug in wicket, or am I just using the framework incorrectly. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wantsOnSelectionChangedNotifications-RadioGroup-Radio-vs-DropDownChoice-tp4665927.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: Conditional input types
There's a bit in the Wicket Cookbook by Igor Vaynberg (ivaynberg !) about this I think its in Chapter 9 Creating Dynamic Forms: http://books.google.es/books?id=51SYxb2YVI8Cpg=PT409lpg=PT409dq=wicket+cookbook+creating+dynamic+formssource=blots=IC3YKn6IxCsig=Xsc8Oi7R3QUJxIP108dkHcrm2oshl=ensa=Xei=xdt5U_KUF9KU0QWgmYGgBwredir_esc=y#v=onepageq=wicket%20cookbook%20creating%20dynamic%20formsf=false The book itself is a bit dated (I think it was written around 2011) but I think the patterns and code samples are still very pertinent Hope that helps, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665928.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: Conditional input types
Its also available in many other formats, including PDF (which is what I bought, I've printed several chapters out): http://www.packtpub.com/apache-wicket-cookbook/book#chapter_9 Considering the quality of the book and the amount of activity of Igor (and others) donate to this forum, it would be well worth your time buying it. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665937.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: wantsOnSelectionChangedNotifications - RadioGroup / Radio vs DropDownChoice
I've just added an issue to JIRA with a quickstart attachment: https://issues.apache.org/jira/browse/WICKET-5596 Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wantsOnSelectionChangedNotifications-RadioGroup-Radio-vs-DropDownChoice-tp4665927p4665942.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: Conditional input types
Hi David, Your post reminded me of this quote from a (completely unrelated) post on Stack Overflow: Note that it is generally better to describe the goal, rather than the strategy. 'Store changed file in Jar' is a strategy, whereas 'Save preferences between runs' might be the goal http://stackoverflow.com/questions/5052311/how-can-an-app-use-files-inside-the-jar-for-read-and-write/5052359#5052359 You seem to have your mind set on the strategy which doesn't really sit well with Wicket. I can understand your frustration as if you had direct access to the html as you might with a jsp then you could you achieve your goal very quickly. As I understand your post, Wicket doesn't work in the way that would allow you to achieve your goal with the strategy that you've chosen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665955.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: Conditional input types
Ernesto, Martin, Just to clarify a bit. I didn't say that you couldn't do it with wicket. Simply that david.latan's strategy - I couldn't manage to use AttributeModifier in order to assign a CheckBox to the input. http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665938.html : Wouldn't work with Wicket as it treats TextFields and CheckBoxes as different FormComponents, not as an html element with can change its behaviour completely by modifying one attribute. That's what I meant when I said: As I understand your post, Wicket doesn't work in the way that would allow you to achieve your goal with the strategy that you've chosen. As far as using fragments of factories within wicket I'm sure both work and have their merits in different contexts. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665958.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
using Tomcat instead of Jetty in quickstart archetype
Hi, I'm currently using Jetty as the servlet container to do development for my Wicket web app and I use the Start class and Jetty Maven plugin that comes with the wicket Quickstart. I then start Jetty through running Start#main(String[]) in my IDE (Intellij IDEA 12). For some reason my sessionid s get reset when browsing to the login page on localhost in Firefox, and I wanted to try using Tomcat to see if that behaves differently. I wondered if anyone has managed to swap Tomcat for Maven and if so how its done, specifically, what would be the equivalent Start class and plugin xml for the maven pom.xml. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-Tomcat-instead-of-Jetty-in-quickstart-archetype-tp4665977.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
javascript reference header item with async attribute
Hi, I'm using Wicket 6.15 What is the best way to set the async attribute when rendering a javascript header item. I would like to change : to or even I see that there is a flag for setting the defer attribute but could not find anything for async. Any suggestions? Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/javascript-reference-header-item-with-async-attribute-tp4666155.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: javascript reference header item with async attribute
Hello Andrea, Thank you for replying. In the end I subclassed JavaScriptUrlReferenceHeaderItem creating my own AsyncJavaScriptUrlReferenceHeaderItem class and overrode the public void render(Response response); method, take as a reference the implemenation from JavaScriptUtils.writeJavaScriptUrl and JavaScriptUrlHeaderItem and simply adding a async attribute in one of the response.write method calls: Seems a bit of a brutish way just to add an async attribute. Is this something that could // should be added to a future release of wicket, does anyone have any opinion about it? Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/javascript-reference-header-item-with-async-attribute-tp4666155p4666159.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: WicketTester and AjaxFormComponentUpdatingBehavior
This came up a while ago, I just wanted to say that I've been having the same problem And solved it in the same way, by recreating the form and changing the value. Like the original poster said I'm not sure why doing that makes it work, but it does. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-AjaxFormComponentUpdatingBehavior-tp2067951p4669007.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
Determine Last Item in a ListView
Hi, First of all thank you for creating Wicket its awesome, now that I'm a bit more familiar with it, I'm continually delighted by it. Secondly could someone tell me what the best way of determining whether an item passed to the method: protected void populateItem(ListItem? item); is the last item? Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Determine-Last-Item-in-a-ListView-tp4669641.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: Determine Last Item in a ListView
Hi Tobias, Thanks for your answer. I've decided to use the ListView#getViewSize method so my check is as follows: if ((item.getIndex() + 1) == getViewSize()) { // do last item stuff here item.add(new AttributeModifier(class, lastItemClass)); } Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Determine-Last-Item-in-a-ListView-tp4669641p4669643.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: Antibot Form Submission Composite Behavior
Hi Martin, Thanks for your suggestion, the thing about the bot that was accessing my site was that it it didn't give any user agent information which leads me to think that it was malicious. I've put together the following behaviour (included at the end of this) and will use that for the time being to see whether its fit for purposes in real life. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Antibot-Form-Submission-Composite-Behavior-tp4671760p4671779.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
Antibot Form Submission Composite Behavior
Hi, I want to add a behavior to a Form object that helps stop bots successfully submitting the form. In order to do this I've come up with the following idea. Get a timestamp of when the web page loads Get a timestamp of when the form first receives user focus Get a timestamp of when the submit button is clicked With that information so long as there is a reasonable time difference between the three timestamps then allow the form to be submitted, if not then add a form error . I'm a bit unsure about how to go about implementing this, but was thinking about creating an AntibotBehaviour that I could add to a a form, the AntibotBehavior would wrap other AjaxEventBehaviors pinging the AntibotBehavior for each event (page load, form focus, form submission). Does anyone have an example of a behavior that I look at to base my implementation on. Alternatively does anyone have an Antibot behavior that they could show me? Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Antibot-Form-Submission-Composite-Behavior-tp4671760.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: categorizing checks in a checkgroup
Hi Martin, Thank you for the hint, you're completely right it would be much better as a span or wicket:container although it did work as a wicket:enclosure. I've changed it and it works fine, Thanks once again, Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/categorizing-checks-in-a-checkgroup-tp4671586p4671591.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: categorizing checks in a checkgroup
Hello, In the end I managed to do this. I found following presentation on how to do a bean editor: https://londonwicket.googlecode.com/files/LondonWicket-BeanEditor.pdf And using that and a few other things I done in the past came up with the following: the html was: and then the getGridViewWithCheckGroups(String,CheckGroup,PropertyTypeFeatureGroup) implementation was roughly: I hope that helps someone else in the future, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/categorizing-checks-in-a-checkgroup-tp4671586p4671587.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
categorizing checks in a checkgroup
I have a bean / entity which models a real estate advert. An advert can have different features checked (e.g. west facing, east facing, north facing, sauna, gym, swimming pool, needs renovating, repossession, access by stairsetc) which are represented as java enums e.g. SetFeature Advert.getFeatures() These features are categorized so for example: - orientation has the following features - west facing, east facing, north facing - other considerations - needs renovating , repossession, finance options - luxury features - sauna, swimming pool, gym etc each category is also represented as a java enum from which you can get the Feature objects for that category e.g. SetFeature Category.getFeatures(); I'm trying to work out how to put this into a form within a checkgroup in Wicket 6.20 so the page would display something like Orientation X west facing X east facing X north facing Luxury Features X sauna X swimming pool X gym X theatre X library X whirlpool Other Considerations X needs renovating X repossession X finance options It would be nice if the checks could be tabular so that if there were say more than 4 options in a category it would put the next check on the next row / line. Can someone give me a pointer on how I might go about implementing this. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/categorizing-checks-in-a-checkgroup-tp4671586.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: OnDomReady Ajax.
Hi Sven, Thanks for replying. I'll give your suggestion ago and see how I get on. Thanks for the help Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/OnDomReady-Ajax-tp4671994p4671996.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
OnDomReady Ajax.
Hi, I'm using Wicket 6.19 Somehow the following is being added at the bottom of the "domready" block in the inline javascript of my page: Wicket.Ajax.ajax({"u":"/wicket/bookmarkable/thepackage.ThePage?1-1.IBehaviorListener.15-=es_AR_template=no_criteria","e":"load"});; Just before the: Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND); I'm trying to work out which piece of code is adding it, as from what I can tell I'm not adding any "load" ajax behaviors to any components in the page. Can someone suggest a way that I can track this down. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/OnDomReady-Ajax-tp4671994.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
AjaxEditableMultiLineLabel place cursor on click location
Hi, First of all thank you to everyone for such a great framework! My question is that when I use the AjaxEditableMultiLineLabel and click on the displayed text the subsequent text in the textarea form element is *all* selected, this makes it difficult to then find the place that I wanted to edit. Has anyone found a way to place the cursor at the location which was clicked on in the original text and scroll the textarea to that location. This would increase the utility of the AjaxEditableMultiLineLabel massively, Any replies very appreciated -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxEditableMultiLineLabel-place-cursor-on-click-location-tp4674053.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: AjaxEditableMultiLineLabel place cursor on click location
Thanks for the quick reply, I'll have a go with that! Cheers Simon On 17 March 2016 at 14:39, Martin Grigorov-4 [via Apache Wicket]wrote: > Hi, > > This requirement sounds quite sophisticated! > Initially AEMLL is rendered in view mode - as a Label, i.e. a . > When you click on this then an Ajax call is made and the Label is > replaced with TextArea. > It would be challenging to set the cursor at the desired position. > > Maybe it will be much simpler to use something like Summernote air mode > [1][2]. > It uses and all this "Just Works". > > 1. http://wb-mgrigorov.rhcloud.com/summernote > 2. http://summernote.org/examples/#air-mode > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxEditableMultiLineLabel-place-cursor-on-click-location-tp4674053p4674055.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
IAjaxIndicatorAware AjaxBehavior for csv download
Hello, First thanks very much for Wicket I'm still enjoying using it even after several years. I'm trying to show a "Please Wait" message while my server gets all the information for a csv file download. The dowload (AjaxDownloadBehavior) works fine and is implemented as an AbstractAjaxBehavior using this posting as a template: https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow The csv file download is initalized from an AjaxSubmitLink which I've made IAjaxIndicatorAware to show the "Please Wait" message. The problem is that the Indicator only shows for the duration of the AjaxSubmitLink to return, the AjaxDownloadBehavior is run asynchronously and completes several seconds after the AjaxSubmitLink has returned and the indicator disappeared. How can I work the Indicator to show while the AjaxDownloadBehavior is still running and disappear when the users browse brings up the "Save File" dialog box. Any help much appreciated. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
quickstart instructions cause - archetypeCatalog 'http://wicket.apache.org' is not supported anymore
Hi I'm trying to get a new Wicket project going using the latest version with maven I get the following error when running the recommended command: $] mvn archetype:generate -DarchetypeCatalog=https://wicket.apache.org -e archetypeCatalog 'http://wicket.apache.org' is not supported anymore -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: quickstart instructions cause - archetypeCatalog 'http://wicket.apache.org' is not supported anymore
Great, thank you! -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org