Static images and ResourceMapper in Wicket 1.5

2012-04-19 Thread Dirk Forchel
I'm wondering what is the preferred way to include static image resources to my web application. Instead of having a directory like images in my root web container (WEB-INF) with all the static images used in my application it is advised (so far I can remember) to have a directory next to the

Re: Static images and ResourceMapper in Wicket 1.5

2012-04-19 Thread Martin Grigorov
Hi, Read http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ But don't do it just because this way it is more Wicketized. It is much better if static resources are served by the web container, frontend proxy and even better if they are served by CDN. On Thu, Apr 19, 2012 at 9:16

Re: behaviour and busy indicator

2012-04-19 Thread Martin Grigorov
Hi, On Wed, Apr 18, 2012 at 9:58 PM, jasp kamilszoka...@gmail.com wrote: Hello, I'm trying get Ajax Indicator working for my form validating behaviour. Basically I have a thing that takes time to check on server. Meanwhile I'd like to show user a busy indicator. I tried to do following

Re: behaviour and busy indicator

2012-04-19 Thread jasp
I just cant believe it... so easy yet I didnt firgure it out myself. Thank you very much! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/behaviour-and-busy-indicator-tp4568683p4570104.html Sent from the Users forum mailing list archive at Nabble.com.

Reloading content via Ajax

2012-04-19 Thread meduolis
Hello guys, how do I properly reload content via Ajax using AjaxLink? I have label component like this: And there is an AjaxLink: After I click this link, label value stays not changed. Any ideas what I am doing wrong? :) -- View this message in context:

Re: Reloading content via Ajax

2012-04-19 Thread Martin Grigorov
Hi, read about static vs. dynamic models at: https://cwiki.apache.org/WICKET/working-with-wicket-models.html On Thu, Apr 19, 2012 at 11:33 AM, meduolis meduol...@gmail.com wrote: Hello guys, how do I properly reload content via Ajax using AjaxLink? I have label component like this: And

Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2012-04-19 Thread Leonardo D'Alimonte
Hi everybody, I'm still having troubles downloading Swarm 1.4 from the Wicketstuff Maven repository, GitHub alerts me that File Not Found... Is this version (i know isn't the latest..) so difficult to recover?? Thanks, Leonardo -- View this message in context:

Re: Reloading content via Ajax

2012-04-19 Thread meduolis
Thanks, that solved my problem: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Reloading-content-via-Ajax-tp4570233p4570286.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2012-04-19 Thread Martin Grigorov
Hi, Check wicketstuff-security-** modules at http://repo1.maven.org/maven2/org/wicketstuff/ On Thu, Apr 19, 2012 at 12:01 PM, Leonardo D'Alimonte leonardo.dalimo...@loginet.it wrote: Hi everybody, I'm still having troubles downloading Swarm 1.4 from the Wicketstuff Maven repository, GitHub

two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Again a situation where I'm missing the background because of my newbie status. I have two textfields, one for the buildingnr, the second for the roomnr within that building. Both have a label to the right with a description. All four components (2x TextField, 2x Label) are within a single

Re: focus locked in place

2012-04-19 Thread Tom Eugelink
Ok, I've opened wicket's ajax debugger and there is NO ajax call. What I see is this: INFO: focus set on INFO: focus removed from INFO: focus set on INFO: focus removed from So it seems to me the fields do not have names. However in the HTML I do see a name. input type=text

Re: two interlinked ajax textfields

2012-04-19 Thread Martin Grigorov
Hi, TextField field1 = new ... final TextField field2 = ... field1.add(new AjaxFormComponentUpdatingBehavior(onchange) { onUpdate(target) { buildingNr = getComponent.getModelObject(); if (buildingNr == ...) { field2.setModelObject(newValue) target.add(field2) } } })

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Thank you! The problem apparently was that I had the ajax bound to onblur and not to onchange. Copied that from some example on the web. Tom On 19-4-2012 14:12, Martin Grigorov wrote: field1.add(new AjaxFormComponentUpdatingBehavior(onchange) { onUpdate(target) { buildingNr =

Radio Group Ajax Render issue

2012-04-19 Thread topradnya
I have a following piece of code radio1RadioGroup.add(onScreenRadio.add(new AjaxEventBehavior(onChange ) { protected void onEvent(AjaxRequestTarget target) { radio2RadioGroup.setDefaultModel(firstRadioModel);

Re: two interlinked ajax textfields

2012-04-19 Thread Martin Grigorov
Check OnChangeAjaxBehavior too. It is bit smarter than AjaxFormComponentUpdatingBehavior and you wont need to leave the text input field with it. On Thu, Apr 19, 2012 at 3:34 PM, Tom Eugelink t...@tbee.org wrote: Thank you! The problem apparently was that I had the ajax bound to onblur and

Re: Radio Group Ajax Render issue

2012-04-19 Thread Martin Grigorov
Hi, Paste the hTML that you use for radio2RadioGroup. On Thu, Apr 19, 2012 at 2:34 PM, topradnya toprad...@gmail.com wrote: I have a following piece of code radio1RadioGroup.add(onScreenRadio.add(new AjaxEventBehavior(onChange ) {                    protected void onEvent(AjaxRequestTarget

Re: Radio Group Ajax Render issue

2012-04-19 Thread topradnya
This is a HTML code for the radio2RadioGroup in which I want to select the second radio if I select second radio in radio1Group wicket:container wicket:id=radio2RadioGroup input wicket:id=firstRadio type=radio class=radio/ br/ input

Re: Radio Group Ajax Render issue

2012-04-19 Thread topradnya
This is a HTML code for the radio1Group and radio2RadioGroup.I want second radio of radio2Group should get selected onchange event of textFileRadio in radio1Group. wicket:container wicket:id=radio1Group input wicket:id=onScreenRadio type=radio class=radio/ br/

Re: Radio Group Ajax Render issue

2012-04-19 Thread Martin Grigorov
On Thu, Apr 19, 2012 at 4:17 PM, topradnya toprad...@gmail.com wrote: This is a HTML code for the radio2RadioGroup in which I want to select the second radio if I select second radio in radio1Group wicket:container wicket:id=radio2RadioGroup wicket:xyz are not preserved in the HTML.

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Hm. Using onchange either directly or via OnChangeAjaxBehavior, I'm not able to type more that one character in the textbox. As soon as I've typed one, the ajax call triggers and does a select-all of the textbox (in Chrome), the next keystroke when overwrites the contents. Onblur does not

Re: two interlinked ajax textfields

2012-04-19 Thread Martin Grigorov
see org.apache.wicket.ajax.AjaxEventBehavior#setThrottleDelay On Thu, Apr 19, 2012 at 4:43 PM, Tom Eugelink t...@tbee.org wrote: Hm. Using onchange either directly or via OnChangeAjaxBehavior, I'm not able to type more that one character in the textbox. As soon as I've typed one, the ajax

Re: Radio Group Ajax Render issue

2012-04-19 Thread topradnya
Hi ,I tried the same code replacing wicket:container. but , I am still getting an error that Ajax render cannot be called on component that has setRenderBodyOnly enabled. Component: [MarkupContainer [Component id = radio2RadioGroup]] If I setRenderBodyOnly(false) then nothing happens onchange

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Hm. So I type something in field #1, tab to the field #2, start typing, then the 1 second delay on field #1 triggers the ajax call, it refreshes the label associated with #1 AND a select all on field #2 happens. This is not an acceptable user interface experience. I've upgraded to Wicket

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
To take it one level further, if I add onchange=javascript:alert('test'); to an input without and with an OnChangeAjaxBehavior: div class=clearfix labelRenewal delay: div class=input input type=text size=10 wicket:id=renewalDelay onchange=javascript:alert('test');/ /div /label /div

Re: two interlinked ajax textfields

2012-04-19 Thread Martin Grigorov
OnChangeAjaxBehavior uses oninput/onpaste/oncut behind the scenes for text form components, that's why it reacts on each key press onchange fires only when you leave the input field On Thu, Apr 19, 2012 at 5:40 PM, Tom Eugelink t...@tbee.org wrote: To take it one level further, if I add    

Re: two interlinked ajax textfields

2012-04-19 Thread Tom Eugelink
Removing the OnChangeAjaxBehavior does not help, this behavior comes from the MarkupContainer; it changes the behavior of the onchange to a per-keypress event. Tom On 19-4-2012 16:40, Tom Eugelink wrote: The last alert is displayed on every key press, the first after leaving the field.

Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2012-04-19 Thread Emond Papegaaij
Wicket security for 1.4 is no longer maintained and it was never released as part of WicketStuff core. If you want to use wicket security on 1.4, I suggest you build it yourself from https://github.com/dashorst/wicketstuff-security . This is where we put it before adding it to WicketStuff core.

A/B testing with wicket

2012-04-19 Thread Decebal Suiu
Hello Any advice how can I implement the A/B testing (http://en.wikipedia.org/wiki/A/B_testing) in wicket. Anybody already implemented this concept in an ecommerce or page landing site? Thanks, Decebal -- View this message in context:

Re: A/B testing with wicket

2012-04-19 Thread Martin Makundi
You can use Google adwords to implement A/B testing. ** Martin 2012/4/19 Decebal Suiu decebal.s...@asf.ro: Hello Any advice how can I implement the A/B testing (http://en.wikipedia.org/wiki/A/B_testing) in wicket. Anybody already implemented this concept in an ecommerce or page landing

Re: A/B testing with wicket

2012-04-19 Thread Haiko
Is this not a javascript thing were div containers are shuffled? I can imagine you can do it with wicket, but code would be pretty complex. My advice is use javascript. That way it is easier to seperate a/b logic from other logic Decebal Suiu decebal.s...@asf.roschreef: Hello Any advice how