wire legacy ajax (jquery) widget to Wicket page

2012-10-05 Thread Simon B
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

Re: wire legacy ajax (jquery) widget to Wicket page

2012-10-09 Thread Simon B
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:

Link url in ListView on ajaxed panel not resolving properly

2012-11-03 Thread Simon B
-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

Re: Link url in ListView on ajaxed panel not resolving properly

2012-11-04 Thread Simon B
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

Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter

2012-11-04 Thread Simon B
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

Re: Link url in ListView on ajaxed panel not resolving properly

2012-11-08 Thread Simon B
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:

ResourceAggregator in Wicket 6.x

2013-01-02 Thread Simon B
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

Re: ResourceAggregator in Wicket 6.x

2013-01-03 Thread Simon B
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.

Ajax Link not resolving Wicket 6.4

2013-01-18 Thread Simon B
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

Re: Ajax Link not resolving Wicket 6.4

2013-01-18 Thread Simon B
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

Re: Ajax Link not resolving Wicket 6.4

2013-01-20 Thread Simon B
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

Re: Ajax Link not resolving Wicket 6.4

2013-01-21 Thread Simon B
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

Re: Eclipse or IntelliJ

2013-02-20 Thread Simon B
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

form processing adding new inputs with an ajax onupdate

2013-05-13 Thread Simon B
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)

RE: form processing adding new inputs with an ajax onupdate

2013-05-14 Thread Simon B
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

RE: form processing adding new inputs with an ajax onupdate

2013-05-14 Thread Simon B
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

AttributeModifier with html in the attribute?

2013-06-03 Thread Simon B
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

Re: AttributeModifier with html in the attribute?

2013-06-04 Thread Simon B
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

Re: Converting 1.4.7 to 6.12

2013-12-10 Thread Simon B
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

Re: [ANNOUNCE] Apache Wicket 6.13.0 adds free online user guide

2014-01-16 Thread Simon B
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.

Dynamic JQuery Resource Reference for http // https context

2014-01-17 Thread Simon B
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

Re: Dynamic JQuery Resource Reference for http // https context

2014-01-17 Thread Simon B
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:

Re: Using AjaxRequestTarget with parent/child page

2014-01-28 Thread Simon B
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

Re: Using AjaxRequestTarget with parent/child page

2014-01-28 Thread Simon B
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

Re: Is there an equivalent for ResourceReference in wicket 6

2014-01-29 Thread Simon B
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:

Re: Is there an equivalent for ResourceReference in wicket 6

2014-01-29 Thread Simon B
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

setting visibility of a component decocorated with a behavior

2014-02-17 Thread Simon B
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

Re: setting visibility of a component decocorated with a behavior

2014-02-17 Thread Simon B
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

Re: setting visibility of a component decocorated with a behavior

2014-02-17 Thread Simon B
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:

testing component with assertComponentOnAjaxResponse with IAjaxRegionMarkupIdProvider behavior

2014-02-19 Thread Simon B
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

ajax child component and enclosures visibility doesn't seem to work properly

2014-02-21 Thread Simon B
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

Re: ajax child component and enclosures visibility doesn't seem to work properly

2014-02-21 Thread Simon B
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

mounting // mapping subdomain HomePage

2014-03-10 Thread Simon B
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

Re: mounting // mapping subdomain HomePage

2014-03-11 Thread Simon B
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

testing subdomain page

2014-03-12 Thread Simon B
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

Re: testing subdomain page

2014-03-12 Thread Simon B
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

wantsOnSelectionChangedNotifications - RadioGroup / Radio vs DropDownChoice

2014-05-19 Thread Simon B
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

Re: Conditional input types

2014-05-19 Thread Simon B
There's a bit in the Wicket Cookbook by Igor Vaynberg (ivaynberg !) about this I think its in Chapter 9 Creating Dynamic Forms:

Re: Conditional input types

2014-05-19 Thread Simon B
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

Re: wantsOnSelectionChangedNotifications - RadioGroup / Radio vs DropDownChoice

2014-05-19 Thread Simon B
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:

Re: Conditional input types

2014-05-20 Thread Simon B
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

Re: Conditional input types

2014-05-20 Thread Simon B
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.

using Tomcat instead of Jetty in quickstart archetype

2014-05-22 Thread Simon B
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

javascript reference header item with async attribute

2014-06-09 Thread Simon B
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

Re: javascript reference header item with async attribute

2014-06-09 Thread Simon B
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

Re: WicketTester and AjaxFormComponentUpdatingBehavior

2015-01-14 Thread Simon B
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

Determine Last Item in a ListView

2015-02-19 Thread Simon B
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);

Re: Determine Last Item in a ListView

2015-02-19 Thread Simon B
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));

Re: Antibot Form Submission Composite Behavior

2015-08-12 Thread Simon B
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

Antibot Form Submission Composite Behavior

2015-08-10 Thread Simon B
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

Re: categorizing checks in a checkgroup

2015-07-13 Thread Simon B
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:

Re: categorizing checks in a checkgroup

2015-07-13 Thread Simon B
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

categorizing checks in a checkgroup

2015-07-12 Thread Simon B
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

Re: OnDomReady Ajax.

2015-09-20 Thread Simon B
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.

OnDomReady Ajax.

2015-09-19 Thread Simon B
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:

AjaxEditableMultiLineLabel place cursor on click location

2016-03-19 Thread Simon B
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

Re: AjaxEditableMultiLineLabel place cursor on click location

2016-03-19 Thread Simon B
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,

IAjaxIndicatorAware AjaxBehavior for csv download

2017-11-30 Thread Simon B
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

quickstart instructions cause - archetypeCatalog 'http://wicket.apache.org' is not supported anymore

2018-09-21 Thread Simon B
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

Re: quickstart instructions cause - archetypeCatalog 'http://wicket.apache.org' is not supported anymore

2018-09-24 Thread Simon B
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