Re: Detaching Border with nested body

2017-06-14 Thread Dirk Forchel
I've created a new issue. Please see  WICKET-6399
  .

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detaching-Border-with-nested-body-tp4678040p4678051.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



DropDownChoice with a different choice class than model class

2017-06-14 Thread Lon Varscsak
Am I wrong to assume that DropDownChoice (and a few of it’s superclasses)
should be using the generic of  that AbstractChoice defines where T
is the class of the model object and E is the class of choice object?

It seems that from AbstractSingleSelectChoice up, it assumes that the value
from the model is the same as the choice.

In my case, the model object may be a string, but my choices and renderer
are rendering from a complex class.

Thoughts?

-Lon


Re: textfield focus not working on FF

2017-06-14 Thread Sven Meier

Hi,

your quickstart works fine here with Firefox

Have fun
Sven


Am 13.06.2017 um 23:35 schrieb trlt:

Hi,

I have a form with 2 textfields (field1, field2).  I want to be able to set
the focus on field1 again when user finishes entering data in field2.  The
code works fine on Chrome, but it doesn't work on FF (i.e. the focus on
field1 is not set).  I've included the sample source code below:

 Form form = new Form("form");
 form.setDefaultModel(new CompoundPropertyModel(formModel = new
HashMap()));
 add(form);
 
 final TextField field1 = new TextField("field1", String.class);

 field1.setMarkupId("field1");
 form.add(field1);
 
 final TextField field2 = new TextField("field2", String.class);

 field2.setMarkupId("field2");
 form.add(field2);
 
 field2.add(new AjaxFormComponentUpdatingBehavior("onblur") {
 
 @Override

 protected void onUpdate(AjaxRequestTarget target) {
 target.add(field1.setDefaultModelObject(null));
 target.add(field2.setDefaultModelObject(null));
 target.focusComponent(field1);
 }
 });

Can someone help me understand what I might have been missing? I've also
included a quickstart to illustrate my problems. Thanks!

quickstart.zip



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/textfield-focus-not-working-on-FF-tp4678031.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: Detaching Border with nested body

2017-06-14 Thread Martin Grigorov
Yes, please create a new issue!
Thank you!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Jun 14, 2017 at 1:53 PM, Dirk Forchel 
wrote:

> myproject2.zip
> 
> testproject.zip
> 
> With the latest official Wicket release (7.7.0) both issues  WICKET-6303
>    and  WICKET-6306
>    should be fixed. I
> was
> curious and used the latest Wicket version with my previous quickstart
> versions in order to validate the fix. At the first glance it seems to
> work,
> but after I've tried to access the third example page
> (http://localhost:8080/test3.html) again, I've got the following
> WicketRuntimeException:
>
>
>
> You can easily try it by yourself if you choose one of both attached
> quickstarts (the myproject2.zip demonstrates issue WICKET-6303,
> testproject.zip demonstrates WICKET-6306). Both issues relate to some
> queing
> problem with Border components.
> Should I rise a new issue?
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Detaching-Border-with-nested-body-tp4678040.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
>
>


Detaching Border with nested body

2017-06-14 Thread Dirk Forchel
myproject2.zip
  
testproject.zip
 
With the latest official Wicket release (7.7.0) both issues  WICKET-6303
   and  WICKET-6306
   should be fixed. I was
curious and used the latest Wicket version with my previous quickstart
versions in order to validate the fix. At the first glance it seems to work,
but after I've tried to access the third example page
(http://localhost:8080/test3.html) again, I've got the following 
WicketRuntimeException:



You can easily try it by yourself if you choose one of both attached
quickstarts (the myproject2.zip demonstrates issue WICKET-6303,
testproject.zip demonstrates WICKET-6306). Both issues relate to some queing
problem with Border components.
Should I rise a new issue? 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Detaching-Border-with-nested-body-tp4678040.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