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
Application class and mount these image resources with the ResourceMapper.

At the moment I refer to images in my root web container from a Panel's
markup file like



This works for me but I wanna go the wicketzed way. If I would use the
ResourceMapper in my Application class I would mount just one image resource
the following way:


What is the preferred way to mount all resources at ones in one directory? 
How can these changes be applied to the corresponding markup files of my
Panels without creating an Image (or ContextImage?) component?
Thanks for your hints.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Static-images-and-ResourceMapper-in-Wicket-1-5-tp4570016p4570016.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: 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 AM, Dirk Forchel dirk.forc...@exedio.com wrote:
 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
 Application class and mount these image resources with the ResourceMapper.

 At the moment I refer to images in my root web container from a Panel's
 markup file like



 This works for me but I wanna go the wicketzed way. If I would use the
 ResourceMapper in my Application class I would mount just one image resource
 the following way:


 What is the preferred way to mount all resources at ones in one directory?
 How can these changes be applied to the corresponding markup files of my
 Panels without creating an Image (or ContextImage?) component?
 Thanks for your hints.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Static-images-and-ResourceMapper-in-Wicket-1-5-tp4570016p4570016.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 thing:

 *This is page class, with basic form input:*

 //...omitted some not revelant code
 AjaxIndicatorAppender indicator = new AjaxIndicatorAppender();
 final RequiredTextFieldString nickField = new RequiredTextFieldString(
 nick, new PropertyModelString( this, nickValue ) );
 formContainer.add( nickField );
 indicator.bind(nickField);

replace the line above with:
nickField.add(indicator);

 nickField.add( new MyValidatingBehaviour( (Form) formContainer, onkeyup,
 Duration.ONE_SECOND, indicator ) );
 //...

 *And this is my validating behaviour:*

 private class MyValidatingBehaviour extends AjaxFormValidatingBehavior
 implements IAjaxIndicatorAware
 {
    AjaxIndicatorAppender indicator;

    private MyValidatingBehaviour( Form? form, String event, final
 Duration throttleDelay, AjaxIndicatorAppender indicator )
    {
        super( form, event );
        this.setThrottleDelay( throttleDelay );
        this.indicator = indicator;
    }

    @Override
    public String getAjaxIndicatorMarkupId()
    {
        return indicator.getMarkupId();
    }
 }

 Of course there are some other validators than required one, I just
 ommited 'em here. The thing is, that I dont have any indicator sign
 anywhere. Docs says that it appeds span, yet I couldnt find any in HTML.

 The HTML looks simple as this:

 form wicket:id=form
 input wicket:id=nick class=textInput id=nick/

 /form

 Any help whats wrong?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/behaviour-and-busy-indicator-tp4568683p4568683.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Reloading-content-via-Ajax-tp4570233p4570233.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: 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 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: 
 http://apache-wicket.1842946.n4.nabble.com/Reloading-content-via-Ajax-tp4570233p4570233.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p4570279.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: 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 unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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: 
 http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p4570279.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 
WebMarkupContainer and the two textfields each have a 
AjaxFormComponentUpdatingBehavior associated.
This basic setup works.

The next step is that once the buildnr number is changed, I may want to change 
the roomnr (clear it if it doesn't exist) or the room label as well. So the 
ajax event on the buildingnr textfield also influences the roomnr fields. This 
does not work as expected: I cannot set the value of the second TextField.

What would be the best way to do this?

Tom





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 wicket:id=runtimeOs style=width:100px; value=ios 
name=runtimesPanel:runtimes:1:runtimeOs

However, there are more of these inputs with the same wicket:id; it's a make 
shift table build using a RefreshingView
input type=text wicket:id=runtimeOs style=width:100px; value=bada 
name=runtimesPanel:runtimes:2:runtimeOs
input type=text wicket:id=runtimeOs style=width:100px; value=bada 
name=runtimesPanel:runtimes:3:runtimeOs
...

I believe I'm doing something wrong in building that make shift table.

// the panel taking care of the ajax
final MarkupContainer lRuntimesPanel = new 
WebMarkupContainer(runtimesPanel);
lRuntimesPanel.setOutputMarkupId(true);
lForm.add(lRuntimesPanel);

// the list of runtimes
final 
RefreshingViewcom.service2media.licenseframework.service.license.jaxb.Runtime 
lRuntimeListView = new 
RefreshingViewcom.service2media.licenseframework.service.license.jaxb.Runtime(runtimes)
 //LicenseModel.RUNTIMES_PROPERTY)
{
@Override
protected 
IteratorIModelcom.service2media.licenseframework.service.license.jaxb.Runtime
 getItemModels()
{
return new 
ModelIteratorAdapter(lLicenseJAXB.getRuntimes().getRuntime().iterator())
{
@Override
protected final IModel model(final Object object)
{
return new 
CompoundPropertyModel((com.service2media.licenseframework.service.license.jaxb.Runtime)
 object);
}
};
}

@Override
protected void populateItem(final 
Itemcom.service2media.licenseframework.service.license.jaxb.Runtime item)
{
item.add( new DropDownChoiceString(runtimeType, new 
PropertyModelString(item.getDefaultModel(), type), License.RUNTIME_TYPES));
item.add( new TextFieldString(runtimeOs, new 
PropertyModelString(item.getDefaultModel(), os)));
item.add( new TextFieldString(runtimeOsVersion, new 
PropertyModelString(item.getDefaultModel(), osversion)));
item.add( new TextFieldString(runtimePoolId, new 
PropertyModelString(item.getDefaultModel(), poolid)));
item.add( new TextFieldBigInteger(runtimePoolSize, new 
PropertyModelBigInteger(item.getDefaultModel(), poolsize)));
  // remove button
  AjaxSubmitLink lRemoveRuntime = new 
AjaxSubmitLink(removeRuntime, lForm)
  {
  @Override
  protected void onError(AjaxRequestTarget target, 
Form? form)
  {
  }

  @Override
  protected void onSubmit(AjaxRequestTarget target, 
Form? form)
  {
  
Listcom.service2media.licenseframework.service.license.jaxb.Runtime lRuntimes 
= lLicenseJAXB.getRuntimes().getRuntime();
  lRuntimes.remove(item.getModelObject());
  if (target != null) target.add(lRuntimesPanel); 
// ajax update
  }

  @Override
  protected IAjaxCallDecorator getAjaxCallDecorator()
  {
  return new JavascriptConfirmDecorator(Remove the 
runtime?);
  }
  };
  lRemoveRuntime.setDefaultFormProcessing(false);
  item.add(lRemoveRuntime);
}
};
lRuntimesPanel.add(lRuntimeListView);


On 16-4-2012 8:54, Martin Grigorov wrote:

Hi Tom,

Wicket keeps track of the last focused element only for Ajax requests.
I.e. Wicket sends a header in the ajax requests with the id of the
focused element when the Ajax call starter and later when the Ajax
response is processed it re-focuses this element.
Additionally there is AjaxRequestTarget#focusComponent(Component)
method which may be used to focus another element.

If you replace the focused element in the Ajax response then
lastFocusedId will be obsolete and Wicket wont be able to find the old
component.

I hope this helps you find out what causes the jumps in the focused elements.

On Fri, Apr 13, 2012 at 5:49 PM, Tom Eugelinkt...@tbee.org  wrote:

On 2012-04-13 11:58, Tom Eugelink wrote:



The cursor can be placed in the date fields, but not in any of the
textfield in the listview.



To add some additional information; the 

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)
}
  }
})

On Thu, Apr 19, 2012 at 3:02 PM, Tom Eugelink t...@tbee.org wrote:

 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
 WebMarkupContainer and the two textfields each have a
 AjaxFormComponentUpdatingBehavior associated.
 This basic setup works.

 The next step is that once the buildnr number is changed, I may want to
 change the roomnr (clear it if it doesn't exist) or the room label as well.
 So the ajax event on the buildingnr textfield also influences the roomnr
 fields. This does not work as expected: I cannot set the value of the second
 TextField.

 What would be the best way to do this?

 Tom





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 = getComponent.getModelObject();
 if (buildingNr == ...) {
field2.setModelObject(newValue)
target.add(field2)
 }
   }
})




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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);

target.addComponent(radio2RadioGroup);
}
}));


radio1RadioGroup.add(textFileRadio.add(new AjaxEventBehavior(onChange ) {

protected void onEvent(AjaxRequestTarget target) {

radio2RadioGroup.setDefaultModel(secondRadioModel);
   
target.addComponent(radio2RadioGroup);
}
}));

I am getting an excepiton onChange event of outPutRadioGroup
IllegalStateException: Ajax render cannot be called on component that has
setRenderBodyOnly enabled. Component: [MarkupContainer [Component id =
radio2RadioGroup]]

if I set setRenderBodyOnly(false) for radio2RadioGroup; then Nothing
happens.

Please  suggest me the work around.

Regards,
Pradnya

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4570589.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: 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 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 = getComponent.getModelObject();
     if (buildingNr == ...) {
        field2.setModelObject(newValue)
        target.add(field2)
     }
   }
 })




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 target) {

                         radio2RadioGroup.setDefaultModel(firstRadioModel);

 target.addComponent(radio2RadioGroup);
                    }
                }));


 radio1RadioGroup.add(textFileRadio.add(new AjaxEventBehavior(onChange ) {

                    protected void onEvent(AjaxRequestTarget target) {

                        radio2RadioGroup.setDefaultModel(secondRadioModel);

 target.addComponent(radio2RadioGroup);
                    }
                }));

 I am getting an excepiton onChange event of outPutRadioGroup
 IllegalStateException: Ajax render cannot be called on component that has
 setRenderBodyOnly enabled. Component: [MarkupContainer [Component id =
 radio2RadioGroup]]

 if I set setRenderBodyOnly(false) for radio2RadioGroup; then Nothing
 happens.

 Please  suggest me the work around.

 Regards,
 Pradnya

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4570589.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 wicket:id=secondRadio type=radio
class=radio/  br/ /wicket:container

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4570850.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: 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/
input wicket:id=textFileRadiotype=radio
class=radio/  br/ /wicket:container 




 
wicket:container wicket:id=radio2RadioGroup
input wicket:id=firstRadio type=radio
class=radio/  br/
input wicket:id=secondRadio type=radio
class=radio/  br/ /wicket:container 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4570888.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: 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.
Replace with a div

                        input wicket:id=firstRadio     type=radio
 class=radio/  br/
                        input wicket:id=secondRadio type=radio
 class=radio/  br/ /wicket:container

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4570850.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 have this behavior, but does not update the 
second textfield.

Naturally this behavior is related to the browser; FF and IE do not do a 
select-all, but they place the cursor at the beginning of the text (which is 
not helping either).

Tom


On 19-4-2012 14:39, Martin Grigorov wrote:

Check OnChangeAjaxBehavior too.
It is bit smarter than AjaxFormComponentUpdatingBehavior and you wont
need to leave the text input field with it.





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 call triggers and does a select-all of the textbox (in
 Chrome), the next keystroke when overwrites the contents. Onblur does not
 have this behavior, but does not update the second textfield.

 Naturally this behavior is related to the browser; FF and IE do not do a
 select-all, but they place the cursor at the beginning of the text (which is
 not helping either).

 Tom



 On 19-4-2012 14:39, Martin Grigorov wrote:

 Check OnChangeAjaxBehavior too.
 It is bit smarter than AjaxFormComponentUpdatingBehavior and you wont
 need to leave the text input field with it.




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 event.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4571061.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: 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 6 beta 1 to see if the problem was in the javascript 
being used, and even though there is no onchange attribute on the element 
anymore (it's put there by jquery), the behavior is identical.

What confuses me is that if I do a simple onchange=javascript:alert('test'); 
on any textfield, it does not trigger until the cursor leaves the textfield.



On 19-4-2012 15:53, Martin Grigorov wrote:

see org.apache.wicket.ajax.AjaxEventBehavior#setThrottleDelay





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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


div class=clearfix wicket:id=contextPanel
labelClient:
div class=input
input type=text size=5 wicket:id=context.owner.id 
onchange=javascript:alert('test');/
/div
/label
/div

The last alert is displayed on every key press, the first after leaving the 
field. The behavior of the event is different.

Tom



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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


     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


 div class=clearfix wicket:id=contextPanel
 labelClient:
 div class=input
 input type=text size=5 wicket:id=context.owner.id
 onchange=javascript:alert('test');/
 /div
 /label
 /div

 The last alert is displayed on every key press, the first after leaving the
 field. The behavior of the event is different.

 Tom




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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. The behavior of the event is different.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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. Starting with 
1.5, wicket security is part of core and released together with the other 
modules. The WicketStuff maven repository is no longer available, as far as I 
know.

Best regards,
Emond 

On Thursday 19 April 2012 12:20:48 Martin Grigorov wrote:
 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 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:
  http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-secu
  rity-1-4-1-released-roadmap-for-future-direction-tp2543742p4570279.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

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4571946p4571946.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: 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 site?

 Thanks,
 Decebal

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4571946p4571946.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


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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: 
http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4571946p4571946.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


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org