Re: Ordering of OnDomReadyHeaderItem

2014-10-31 Thread Nick Pratt
I got the required JS to be rendered lower down the page (using Application#setHeaderResponseDecorator( new IHeaderResponseDecorator(){} ) , but I couldn't get the FilteredHeaderItem to be added in the section of the page (only outside of the element). Not too much of an issue, but what Im seein

Re: Handling page refresh or redirect when the server reboots

2014-10-31 Thread msalman
myproject.zip I finally got it working. And just in case some one needs to do something similar I am attaching the proof of concept project. Any feedback would be highly appreciated. Thanks to Sebastian and Martin for

Re: simple confirmation on button/link

2014-10-31 Thread Andrea Del Bene
Probably there was a misunderstanding :). I saw Garret Wilson searching for a behavior to inject "submission" and "confirmation" into various components. I just pointed out that actually we have a special behavior for AJAX (AbstractDefaultAjaxBehavior) that can be used to factorize custom Ajax

Re: simple confirmation on button/link

2014-10-31 Thread Martin Grigorov
Unless you use a more powerful language than Java that provides something like Scala's Trait I don't see how you could implement your solution without re-implementing the standard Ajax links. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 31, 2014 at 5:3

Re: simple confirmation on button/link

2014-10-31 Thread Andrea Del Bene
You are suggesting something like we see in GlobalUpdateAjaxAttributesTest, right? What I was thinking of was a less powerful solution suited to decorate standard AJAX links only in few cases you might need confirmation. You have to refresh your knowledge about the related code. Or I should ..

Wicket FormTester not working with CheckGroupSelector.

2014-10-31 Thread lucast
Dear Forum, I'm implementing the CheckGroup example from wicket-examples I have added a AjaxFormChoiceComponentUpda

Ordering of OnDomReadyHeaderItem

2014-10-31 Thread Nick Pratt
Is is possible to modify the ordering of OnDomReadyHeaderItem? I see a way to modify the JS lib ordering using IResourceSettings#setHeaderItemComparator, but that doesn't get invoked for all the click handlers and scripts added via OnDomReadyHeaderItem. I have a script that needs to be invoked aft

Re: simple confirmation on button/link

2014-10-31 Thread Martin Grigorov
You have to refresh your knowledge about the related code. Or I should ... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 31, 2014 at 3:54 PM, Andrea Del Bene wrote: > You have to add it explicitly with the usual way. This is more desirable > if you d

Re: simple confirmation on button/link

2014-10-31 Thread Andrea Del Bene
You have to add it explicitly with the usual way. This is more desirable if you don't want to apply it to every Ajax behavior as you suggested. @Andrea: how would you share this behavior between ConfirmingAjaxLink and ConfirmingAjaxSubmitLink ? Martin Grigorov Wicket Training and Consulting http

Re: simple confirmation on button/link

2014-10-31 Thread Martin Grigorov
@Andrea: how would you share this behavior between ConfirmingAjaxLink and ConfirmingAjaxSubmitLink ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 31, 2014 at 2:56 PM, Andrea Del Bene wrote: > you can also use behavior AbstractDefaultAjaxBehavior whic

Re: simple confirmation on button/link

2014-10-31 Thread Andrea Del Bene
you can also use behavior AbstractDefaultAjaxBehavior which has updateAjaxAttributes(AjaxRequestAttributes attributes), so you can share confirmation code among different components. Hi, On Thu, Oct 30, 2014 at 11:57 PM, Garret Wilson wrote: Andrea, thanks for jolting my brain; I was a littl

Re: Error in java.lang.String during Internationalisation of a wicket project

2014-10-31 Thread Francois Meillet
When the toString() method of your class de.myproject.MyClass is called, you get a LazyInitializationException. This is from Hibernate To get the LazyInitializationException's full explanation, see https://developer.jboss.org/wiki/LazyInitializationExceptionOvercome?_sscc=t http://blog.gmorales.

Error in java.lang.String during Internationalisation of a wicket project

2014-10-31 Thread jayeshps
I am getting a no session error while trying to display some details from the database. I have pasted the error log below Root cause: org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitialize

Re: JQueryResourceReference is not rendered on JBOSS 7 AS 7.1.1

2014-10-31 Thread Martin Grigorov
On Fri, Oct 31, 2014 at 1:38 PM, Gonzalo Aguilar Delgado < gagui...@aguilardelgado.com> wrote: > Hi Martin, > > Well, that's good news. Unfortunately we cannot upgrade server now. Can > you try it in 7.1.1 because I think something wrong is happening since no > one .js from wicket is loading. > O

Re: JQueryResourceReference is not rendered on JBOSS 7 AS 7.1.1

2014-10-31 Thread Gonzalo Aguilar Delgado
Hi Martin, Well, that's good news. Unfortunately we cannot upgrade server now. Can you try it in 7.1.1 because I think something wrong is happening since no one .js from wicket is loading. From your comment below do you mean that it will not work on Jboss7? Thank you in advance. El 31/10/1

Re: JQueryResourceReference is not rendered on JBOSS 7 AS 7.1.1

2014-10-31 Thread Martin Grigorov
Hi, It works well here with JBoss 8 (WildFly 8.1). On Fri, Oct 31, 2014 at 1:22 PM, Gonzalo Aguilar Delgado < gagui...@aguilardelgado.com> wrote: > Hi, > > We built an application that depends on JQuery because we show graphs with > morris and raphael. And we discovered that > > @Override >

JQueryResourceReference is not rendered on JBOSS 7 AS 7.1.1

2014-10-31 Thread Gonzalo Aguilar Delgado
Hi, We built an application that depends on JQuery because we show graphs with morris and raphael. And we discovered that @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(JavaScriptHeaderItem .forRefe

Re: Modify items in quickview?

2014-10-31 Thread vineet semwal
hi, actually your workaround is the right way.there is no setter method for dataprovider in quickview. even in dataview there is none.this is to depict dataprovider can only be provided at construction time either by providing it in constructor or by overriding getter for dataprovider.. actually

Re: simple confirmation on button/link

2014-10-31 Thread Martin Grigorov
Hi, On Thu, Oct 30, 2014 at 11:57 PM, Garret Wilson wrote: > Andrea, thanks for jolting my brain; I was a little sleepy this morning. > > I was using a subclass of AjaxLink that added confirmation JavaScript as I > outlined below. My original HTML was: > > > > The root of the problem is tha