Re: AjaxSelfUpdatingTimerBehavior breaks browser refresh

2015-09-21 Thread eostermueller
That fixed it, thanks Sven.
I updated to github repo with your fix.

Is that ever a valid combo, to have a stateful page and a raw value for a
model?
Thanks again for the help,
--Erik

On Sun, Sep 20, 2015 at 3:44 PM, Sven Meier [via Apache Wicket] <
ml-node+s1842946n467199...@n4.nabble.com> wrote:

> Hi,
>
> the AjaxSelfUpdatingBehavior makes the page stateful - without it the
> refresh will serve a new page instance with an up-to-date counter.
>
> To make this work for a stateful page, you should use a model that
> provides the current counter to the label:
>
>  add(new Label("myCounter", new AbstractReadOnlyModel() {
>  @Override
>  public Integer getObject()
>  {
>  Object o = getApplication();
>  if (o instanceof WicketApplication) {
>  WicketApplication w = (WicketApplication)o;
>  return w.getCounter().get();
>  }
>  return null;
>  }
>  }));
>
> Have fun
> Sven
>
> On 20.09.2015 21:48, eostermueller wrote:
>
> > Hello all,
> >
> > I just created a wicket quickstart here:
> >
> > https://github.com/eostermueller/selfUpdating
> >
> > I added a AjaxSelfUpdatingTimerBehavior that kind of breaks the browser
> > refresh.
> > The details are on the README.md.
> >
> > I found a number of similar issues on the forum but none quite match
> this.
> >
> > Thanks,
> > --Erik
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxSelfUpdatingTimerBehavior-breaks-browser-refresh-tp4671997.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden email]
> <http:///user/SendEmail.jtp?type=node=4671998=0>
> > For additional commands, e-mail: [hidden email]
> <http:///user/SendEmail.jtp?type=node=4671998=1>
> >
>
>
> -
> To unsubscribe, e-mail: [hidden email]
> <http:///user/SendEmail.jtp?type=node=4671998=2>
> For additional commands, e-mail: [hidden email]
> <http:///user/SendEmail.jtp?type=node=4671998=3>
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/AjaxSelfUpdatingTimerBehavior-breaks-browser-refresh-tp4671997p4671998.html
> To unsubscribe from AjaxSelfUpdatingTimerBehavior breaks browser refresh, 
> click
> here
> <http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=4671997=ZW9zdGVybXVlbGxlckBnbWFpbC5jb218NDY3MTk5N3wtNTA0MjE0ODU1>
> .
> NAML
> <http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxSelfUpdatingTimerBehavior-breaks-browser-refresh-tp4671997p4672004.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



AjaxSelfUpdatingTimerBehavior breaks browser refresh

2015-09-20 Thread eostermueller
Hello all,

I just created a wicket quickstart here:

https://github.com/eostermueller/selfUpdating

I added a AjaxSelfUpdatingTimerBehavior that kind of breaks the browser
refresh.
The details are on the README.md.

I found a number of similar issues on the forum but none quite match this.

Thanks,
--Erik


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxSelfUpdatingTimerBehavior-breaks-browser-refresh-tp4671997.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: wicket library example, but with tabs

2013-11-17 Thread eostermueller
replying to self here.

Finally got this worked out here: 
https://github.com/eostermueller/wicket-librarywithtabs

This code is a copy of the wicket library example, but it displays the book
detail in 3 different tabs on a single page.

Would you all consider including it in the distribution of wicket examples? 
Other than the filter in web.xml, you'd just need to copy:

wicket-examples/src/main/java/org/apache/wicket/examples/librarywithtabs/

...from the above repo.

Thanks,
--Erik




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-library-example-but-with-tabs-tp4662343p4662470.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: wicket library example, but with tabs

2013-11-13 Thread eostermueller
That fixed it, thx.
Now, all the tab code is loading the book detail in the TabPanel1 which is
great, but tabs are not part of the html.  I updated the github code but
need to noodle on this more tomorrow.

--Erik



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-library-example-but-with-tabs-tp4662343p4662390.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