Was able to reproduce that :(
Will dig into it
As a workaround I can disable current menu item ...

What do you think?

On Wed, Sep 19, 2012 at 12:43 AM, [email protected] <
[email protected]> wrote:

> Hi Maxim,
>
> the calendar code does neither work with FF (latest) or Chrome.
> The second time you load the calendar via the Menu it will show just a
> blank page.
> I don't think that it is a browser specific issue. The JS code is
> simply not executed the second time you load the Panel in the same
> session/without pressing f5.
>
> Sebastian
>
> 2012/9/16 Maxim Solodovnik <[email protected]>:
> > I'm currently using following calls in Wicket 6:
> >
> > add(new AbstractAjaxBehavior() {
> > public void onRequest() {
> > }
> >  @Override
> > public void renderHead(Component component, IHeaderResponse response) {
> > response.render(JavaScriptHeaderItem.forScript( "alert('AAA');",
> > "alertScript"));
> > }
> > });
> >
> >
> > On Sun, Sep 16, 2012 at 11:43 PM, [email protected] <
> > [email protected]> wrote:
> >
> >> @Timur: Thanks but in Wicket 6.0.0 there is no  static method
> >> AjaxRequestTarget.get() anymore:
> >>
> >>
> http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/AjaxRequestTarget.html
> >>
> >> Sebastian
> >>
> >> 2012/9/16 Тимур Тлеукенов <[email protected]>:
> >> >  Hello,
> >> >
> >> > Within AJAX request AjaxRequestTarget can be accessed via
> >> > AjaxRequestTarget.get().
> >> > Script can be appended, for example, in
> >> > onBeforeReder/onRender/onAfterRender method of Component.
> >> >
> >> > 2012/9/16 [email protected] <[email protected]>
> >> >
> >> >> Hi,
> >> >>
> >> >> we build a single page application and want to extend that with some
> >> >> jQuery plugins.
> >> >>
> >> >> The issue is that "$(document).ready( function()" is not called (or
> >> >> only the first time) a Panel is loaded via Ajax.
> >> >>
> >> >> Example1 "JavaScript in HTML wicket:head":
> >> >>
> >> >>
> >>
> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/configurations/ConfigsPanel.html?view=markup
> >> >> Line 27ff
> >> >> => Works, but only one time: The first time you initialize the Panel,
> >> >> $(document).ready is executed, the second time you click on the menu
> >> >> item / load the Panel via Ajax,the JavaScript is not executed
> >> >>
> >> >> Example2 "JavaScript pragmatically injected by overwriting
> >> >> renderHead(HtmlHeaderContainer container)":
> >> >>
> >> >>
> >>
> https://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/components/admin/configurations/ConfigsPanel.java?view=markup
> >> >> Line 45ff
> >> >> => Works but $(document).ready is executed before the table with the
> >> >> id "example" is rendered in the UI, so you can't see any effect
> >> >>
> >> >> Additionally to the load of the Ajax Panel, we need to trigger an
> >> >> JavaScript event every time the table dynamically loads new records
> to
> >> >> the grid/table.
> >> >>
> >> >> From examples in the Net I can ready that AjaxRequestTarget is used
> >> >> for that. However the Panel itself does not provide a method to
> >> >> overwrite or similar to catch such events globally for a the
> >> >> component.
> >> >>
> >> >> I guess this is a common issue in Wicket, how do folks solve it?
> >> >>
> >> >> Thanks!
> >> >> Sebastian
> >> >>
> >> >> --
> >> >> Sebastian Wagner
> >> >> https://twitter.com/#!/dead_lock
> >> >> http://www.webbase-design.de
> >> >> http://www.wagner-sebastian.com
> >> >> [email protected]
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Timur Tleukenov
> >>
> >>
> >>
> >> --
> >> Sebastian Wagner
> >> https://twitter.com/#!/dead_lock
> >> http://www.webbase-design.de
> >> http://www.wagner-sebastian.com
> >> [email protected]
> >>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> [email protected]
>



-- 
WBR
Maxim aka solomax

Reply via email to