Re: wicket8 - enclosure & onBeforeRender

2017-07-05 Thread Martin Grigorov
Hi,

I think this is the expected behavior.
onBeforeRender() is called first on the parent and then on all its children.
onBeforeRender() is the last method where Enclosure can check its
controlling child for existence.

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

On Wed, Jul 5, 2017 at 12:01 PM, Korbinian Bachl <
korbinian.ba...@whiskyworld.de> wrote:

> Hi,
>
> is it intended that any wicket:enclosure breaks if it is depending on a
> component that is not added in the constructor but in "onBeforeRender"?
>
> e.g:
>
> 
> 
> Bezeichnung:
> value
> 
> 
>
> with java:
> public HomePage(final PageParameters parameters) {
> super(parameters);
> add(new Label("version", getApplication().
> getFrameworkSettings().getVersion()));
> }
>
> works while if you delay it to:
>
> @Override
> protected void onBeforeRender() {
> super.onBeforeRender();
> add(new Label("version", getApplication().
> getFrameworkSettings().getVersion()));
> }
>
> it breaks with:
>
> 12:00:25.172 [main] WARN  RequestCycleExtra -
> 
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.666 sec
> <<< FAILURE! - in com.mycompany.TestHomePage
> homepageRendersSuccessfully(com.mycompany.TestHomePage)  Time elapsed:
> 0.589 sec  <<< ERROR!
> org.apache.wicket.WicketRuntimeException: Could not find child with id:
> version in the wicket:enclosure
> at org.apache.wicket.markup.html.internal.Enclosure.
> checkChildComponent(Enclosure.java:295)
>
>
>
>
> Best,
>
> KB
>


wicket8 - enclosure & onBeforeRender

2017-07-05 Thread Korbinian Bachl
Hi,

is it intended that any wicket:enclosure breaks if it is depending on a 
component that is not added in the constructor but in "onBeforeRender"?

e.g:



Bezeichnung:
value



with java:
public HomePage(final PageParameters parameters) {
super(parameters);
add(new Label("version", 
getApplication().getFrameworkSettings().getVersion()));
    }

works while if you delay it to:

@Override
protected void onBeforeRender() {
super.onBeforeRender();
add(new Label("version", 
getApplication().getFrameworkSettings().getVersion()));
}

it breaks with:

12:00:25.172 [main] WARN  RequestCycleExtra - 
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.666 sec <<< 
FAILURE! - in com.mycompany.TestHomePage
homepageRendersSuccessfully(com.mycompany.TestHomePage)  Time elapsed: 0.589 
sec  <<< ERROR!
org.apache.wicket.WicketRuntimeException: Could not find child with id: version 
in the wicket:enclosure
at 
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:295)




Best,

KB


Re: examples8x.wicket.apache.org / 503

2017-07-05 Thread Tobias Soloschenko
Hi,

if this occurs during the restart it may has something to do with session 
restoring (only an assumption) - are the tomcat logs enabled to have a look 
there?

kind regards

Tobias

> Am 05.07.2017 um 10:40 schrieb Sebastien :
> 
> Hi Andrea,
> 
> I'm also suffering this kind of issue with the wicket-jquery-ui webapp (and
> I never had time to investigate).
> I think this investigation may lead to discover a real problem...
> 
> Please let me know your conclusions :)
> 
> Thanks in advance,
> Sebastien.
> 
> 
> On Tue, Jul 4, 2017 at 5:54 PM, Andrea Del Bene 
> wrote:
> 
>> Hi,
>> 
>> no one is "officially" in charge for the site. I've also noted that after
>> some days of without problems, the site becomes unresponsive with a 503
>> error. I've tried to restart it several times with no luck. I will try to
>> investigate the problem in the next days.
>> 
>> On Tue, Jul 4, 2017 at 10:10 AM, Korbinian Bachl <
>> korbinian.ba...@whiskyworld.de> wrote:
>> 
>>> Hello,
>>> 
>>> http://examples8x.wicket.apache.org/ is giving me a 503 for several days
>>> now. Can you please tell me who is in charge of it?
>>> 
>>> Best,
>>> 
>>> Korbinian
>>> 
>> 


Re: examples8x.wicket.apache.org / 503

2017-07-05 Thread Sebastien
Hi Andrea,

I'm also suffering this kind of issue with the wicket-jquery-ui webapp (and
I never had time to investigate).
I think this investigation may lead to discover a real problem...

Please let me know your conclusions :)

Thanks in advance,
Sebastien.


On Tue, Jul 4, 2017 at 5:54 PM, Andrea Del Bene 
wrote:

> Hi,
>
> no one is "officially" in charge for the site. I've also noted that after
> some days of without problems, the site becomes unresponsive with a 503
> error. I've tried to restart it several times with no luck. I will try to
> investigate the problem in the next days.
>
> On Tue, Jul 4, 2017 at 10:10 AM, Korbinian Bachl <
> korbinian.ba...@whiskyworld.de> wrote:
>
> > Hello,
> >
> > http://examples8x.wicket.apache.org/ is giving me a 503 for several days
> > now. Can you please tell me who is in charge of it?
> >
> > Best,
> >
> > Korbinian
> >
>