Re: 1.5 equivalent of setRedirect(false); ?

2011-09-02 Thread Martin Grigorov
Wicket automatically decides whether redirect is needed for the current request or not depending on the configured org.apache.wicket.settings.IRequestCycleSettings.RenderStrategy and by comparing the current url with the one that the IRequestMapper has generated for the page that is going to be ren

Re: 1.5 equivalent of setRedirect(false); ?

2011-09-02 Thread bht
Martin, Thanks very much, got the idea! Regards, Bernard On Fri, 2 Sep 2011 09:31:39 +0200, you wrote: >Wicket automatically decides whether redirect is needed for the >current request or not depending on the configured >org.apache.wicket.settings.IRequestCycleSettings.RenderStrategy and by >c

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread Martin Grigorov
Hi, On Fri, Sep 2, 2011 at 2:12 AM, pasto wrote: > Hi, > > while patching the original portlet support in Wicket 1.4 to Wicket 1.5, I > run into 2 problems: > > 1) Url returned by the RequestMapper does not seem to be properly rendered, > as it does not encode question mark character in the Url p

Reference to css outside classpath on wicket 1.5RC7

2011-09-02 Thread Sotil Bertanzetti, Matteo
Hello. I'm tying to migrate a project from wicket 1.4.18 to 1.5rc7. I have a problem trying to add css and javascript links to my html code; css and javascript files are located outside classpath (outside WEB-INF). In wicket 1.4.18 I do: add(CSSPackageResource.getHeaderContribution("css/ma

Re: Reference to css outside classpath on wicket 1.5RC7

2011-09-02 Thread Martin Grigorov
Quick solution for your case: Implement a new ResourceReference which returns org.apache.wicket.request.resource.ContextRelativeResource in its #getResource(). I think we should add such ResourceReference in wicket-core. I am not sure at the moment what's the problem with the wrongly produced Url

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread pasto
Thanks a lot, somehow I did not expect it so be so easy to override :). I have filed a bug for the UrlEncoder https://issues.apache.org/jira/browse/WICKET-4019. Peter. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UrlEncoder-question-mark-not-encoded-for-parameter-

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread pasto
Now I remembered, why I did not check the 'nextSequenceValue'. It returns an integer and I don't know about any unique portlet identifier, that is a number and could be used to make the markup ID unique. Of course, I can generate a hash or use a part of the portlet name, but that does not look that

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread Martin Grigorov
use getMarkupId() to get the generated by Wicket and then setMarkupId(orig + myUUID) On Fri, Sep 2, 2011 at 11:05 AM, pasto wrote: > Now I remembered, why I did not check the 'nextSequenceValue'. It returns an > integer and I don't know about any unique portlet identifier, that is a > number and

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread pasto
I might be missing something. But how to do this automatically for every component that is being rendered? On Fri, Sep 2, 2011 at 11:08 AM, Martin Grigorov-4 [via Apache Wicket] wrote: > use getMarkupId() to get the generated by Wicket and then > setMarkupId(orig + myUUID) > > On Fri, Sep 2, 2011

[Migration 1.5] How can i redirect to another page with a configured response?

2011-09-02 Thread Mike Mander
Hi, my usecase: Google caches page urls from our old shop. Because we changed the url layout i have to redirect all page requests to the new page. I did that this way wicket-1.4.18 @Override protected void onBeforeRender() { super.onBeforeRender(); final String url =

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread Martin Grigorov
org.apache.wicket.Application.getComponentInitializationListeners().add(new IComponentInitializationListener() { onInitialize(Component) { //do the trick here } }) On Fri, Sep 2, 2011 at 11:16 AM, pasto wrote: > I might be missing something. But how to do this automatically for > every co

Re: UrlEncoder - question mark not encoded for parameter values

2011-09-02 Thread pasto
aah, that was really long time ago, when I used this for SpringComponentInjector, thanks for the tip. Peter. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UrlEncoder-question-mark-not-encoded-for-parameter-values-tp3785027p3785702.html Sent from the Users forum mail

Re: [Migration 1.5] How can i redirect to another page with a configured response?

2011-09-02 Thread Martin Grigorov
On Fri, Sep 2, 2011 at 11:24 AM, Mike Mander wrote: > Hi, > > my usecase: Google caches page urls from our old shop. Because we changed > the url layout i have to redirect all page requests to the new page. > > I did that this way > wicket-1.4.18 > >    @Override >    protected void onBeforeRender

Re: [Migration 1.5] How can i redirect to another page with a configured response?

2011-09-02 Thread Mike Mander
Thanks Martin, that worked. Is this still the way to go in wicket 1.5? Thanks Mike On Fri, Sep 2, 2011 at 11:24 AM, Mike Mander wrote: Hi, my usecase: Google caches page urls from our old shop. Because we changed the url layout i have to redirect all page requests to the new page. I did tha

Javascript does not detect components loaded upon panel replacement

2011-09-02 Thread martin . asenov
Hello guys, I've got the following issue. I have a main page that declares in its markup . Once I replace an existing panel with another one, some JQuery within the file scripts.js cannot detect markup that come with the new panel and therefore does not call them. It acts just like that marku

[Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Mike Mander
In migration guide it says org.apache.wicket.markup.html.resources.CompressedResourceReference org.apache.wicket.request.resource.CompressedResourceReference But i can't import it. Do i have to include another wicket library? Thanks Mike ---

[Migration 1.5] Where has CookieValuePersister gone?

2011-09-02 Thread Mike Mander
Sorry for spaming. But i can't find CookieValuePersister anymore. Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Ernesto Reinaldo Barreiro
I think I remember I saw I commit message telling the feature was dropped... but I might be wrong. Best, Ernesto On Fri, Sep 2, 2011 at 1:05 PM, Mike Mander wrote: > In migration guide it says > org.apache.wicket.markup.html.resources.CompressedResourceReference > org.apache.wicket.request.reso

Re: [Migration 1.5] Where has CookieValuePersister gone?

2011-09-02 Thread Mike Mander
Am 02.09.2011 13:15, schrieb Mike Mander: Sorry for spaming. But i can't find CookieValuePersister anymore. Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Mike Mander
Am 02.09.2011 13:15, schrieb Ernesto Reinaldo Barreiro: I think I remember I saw I commit message telling the feature was dropped... but I might be wrong. Best, Ernesto On Fri, Sep 2, 2011 at 1:05 PM, Mike Mander wrote: In migration guide it says org.apache.wicket.markup.html.resources.Compr

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Martin Grigorov
Yes. Most (all?!) of the web servers provide such functionality. No need Wicket to compress as well. Actually we have tickets because of double compressing and the browser wasn't able to read. On Fri, Sep 2, 2011 at 1:20 PM, Mike Mander wrote: > Am 02.09.2011 13:15, schrieb Ernesto Reinaldo Barre

RE: Reference to css outside classpath on wicket 1.5RC7

2011-09-02 Thread Sotil Bertanzetti, Matteo
Thank you, it worked. I'll try to create a quickstart... Matteo Sotil -Mensaje original- De: Martin Grigorov [mailto:mgrigo...@apache.org] Enviado el: viernes, 02 de septiembre de 2011 10:37 Para: users@wicket.apache.org Asunto: Re: Reference to css outside classpath on wicket 1.5RC7 Q

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Ernesto Reinaldo Barreiro
I guess so... but maybe a commiter can confirm is that's correct. Best, Ernesto On Fri, Sep 2, 2011 at 1:20 PM, Mike Mander wrote: > Am 02.09.2011 13:15, schrieb Ernesto Reinaldo Barreiro: >> >> I think I remember I saw I commit message telling the feature was >> dropped... but I might be wrong

Event or way to check when a component has visibility change

2011-09-02 Thread Brown, Berlin [GCG-PFS]
With the 1.4 release of wicket, is there a way to determine when a component has changed visibility. Mainly from false to true visibility. I can use onBeforeRender or onConfigure to determine when the component is being rendered. onAfterRender will get called after it is rendered but the comp

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Martin Grigorov
Even the migration guide have it: https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-RemovedCompressedPackageResource On Fri, Sep 2, 2011 at 1:54 PM, Ernesto Reinaldo Barreiro wrote: > I guess so... but maybe a commiter can confirm is that's correct. >

Re: Event or way to check when a component has visibility change

2011-09-02 Thread Martin Grigorov
onBeforeRender() is not called for invisible components On Fri, Sep 2, 2011 at 2:41 PM, Brown, Berlin [GCG-PFS] wrote: > With the 1.4 release of wicket, is there a way to determine when a > component has changed visibility.  Mainly from false to true visibility. > > I can use onBeforeRender or on

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Ernesto Reinaldo Barreiro
Martin, Still sticking to 1.4.x over here;-) Hope soon I can jump to 1.5.x Cheers, Ernesto On Fri, Sep 2, 2011 at 2:43 PM, Martin Grigorov wrote: > Even the migration guide have it: > https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-RemovedCompres

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Martin Grigorov
I hope too :-) You make nice additions in our wiki. It would be great if they were for 1.5 ;-) On Fri, Sep 2, 2011 at 2:47 PM, Ernesto Reinaldo Barreiro wrote: > Martin, > > Still sticking to 1.4.x over here;-) Hope soon I can jump to 1.5.x > > Cheers, > > Ernesto > > On Fri, Sep 2, 2011 at 2:43

RE: Event or way to check when a component has visibility change

2011-09-02 Thread Brown, Berlin [GCG-PFS]
Is there another method to determine when the visibility of a component has changed. E.g. If a window is shown (through ajax possibly): Some listener Onevent() { this is visible } ... Onevent2() { this is now being changed to not visible } -Original Message- From: Martin Grigorov [

passing information to the modal window class

2011-09-02 Thread Anna Simbirtsev
Hi, I have a modal window defined like in the following example: *public class *Modal *extends *WebPage { *public *Modal() { *final *ModalWindow modal1; add(modal1 = *new *ModalWindow("modal1")); modal1.setPageMapName("modal-1"); modal1.setCookieName("modal-1"); modal1.setPageCreator

Passing info to the modal window

2011-09-02 Thread Anna Simbirtsev
Hi, I have a modal window defined like in the following example: *public class *Modal *extends *WebPage { *public *Modal() { *final *ModalWindow modal1; add(modal1 = *new *ModalWindow("modal1")); modal1.setPageMapName("modal-1"); modal1.setCookieName("modal-1"); modal1.setPageCreato

Re: Passing info to the modal window

2011-09-02 Thread Martin Makundi
Why not pull your data from session instead, the hollywood way? Push is mostly not a good way to do it. ** Martin 2011/9/2 Anna Simbirtsev : > Hi, I have a modal window defined like in the following example: > > > *public class *Modal *extends *WebPage > { >  *public *Modal() >  { >  *final *Mod

Re: Javascript does not detect components loaded upon panel replacement

2011-09-02 Thread Igor Vaynberg
google "jquery live" -igor On Fri, Sep 2, 2011 at 2:02 AM, wrote: > > > > Hello guys, > > > I've got the following issue. I have a main page that declares in its > markup . Once I replace an existing panel with another one, some JQuery > within the file scripts.js cannot detect markup that come

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Igor Vaynberg
he is a committer -igor On Fri, Sep 2, 2011 at 4:54 AM, Ernesto Reinaldo Barreiro wrote: > I guess so... but maybe a commiter can confirm is that's correct. > > Best, > > Ernesto > > On Fri, Sep 2, 2011 at 1:20 PM, Mike Mander wrote: >> Am 02.09.2011 13:15, schrieb Ernesto Reinaldo Barreiro: >

Re: Event or way to check when a component has visibility change

2011-09-02 Thread Igor Vaynberg
whats the usecase? -igor On Fri, Sep 2, 2011 at 6:19 AM, Brown, Berlin [GCG-PFS] wrote: > Is there another method to determine when the visibility of a component has > changed. > > E.g. > > If a window is shown (through ajax possibly): Some listener > > Onevent() { this is visible } > > ... > >

Re: Passing info to the modal window

2011-09-02 Thread Igor Vaynberg
you cannot pass page instances between pages. if you need this kind of communication make ModalPage1 a panel instead of a page. -igor On Fri, Sep 2, 2011 at 8:07 AM, Anna Simbirtsev wrote: > Hi, I have a modal window defined like in the following example: > > > *public class *Modal *extends *We

Re: [Migration 1.5] Where has the CompressedResourceReference gone?

2011-09-02 Thread Ernesto Reinaldo Barreiro
You mean Mike or Martin? I know Martin is commiter since the official announcement... and also because of the many commit messages he produces every day... Cheers, Ernesto On Fri, Sep 2, 2011 at 5:23 PM, Igor Vaynberg wrote: > he is a committer > > -igor > > > On Fri, Sep 2, 2011 at 4:54 AM, E

Re: Javascript does not detect components loaded upon panel replacement

2011-09-02 Thread martin . asenov
Thanks, fixed it. - Цитат от Igor Vaynberg (igor.vaynb...@gmail.com), на 02.09.2011 в 18:20 - google "jquery live" -igor On Fri, Sep 2, 2011 at 2:02 AM, wrote: Hello guys, I've got the following issue. I have a main page that declares in its markup . Once I replace an exist

Ultra strange behaviour AjaxButton - Form

2011-09-02 Thread martin . asenov
Hello, guys, I'm experiencing some very strange problem - an AjaxButton's onSubmit never gets called. Here are snippets of what I have: HTML: ... some fields... in code: Form form = new Form("form"); AjaxButton submitButton = new AjaxButton("submit") { public void onSubmit

Ultra strange behaviour AjaxButton - Form

2011-09-02 Thread martin . asenov
Hello, guys, I'm experiencing some very strange problem - an AjaxButton's onSubmit never gets called. Here are snippets of what I have: HTML: ... some fields... in code: Form form = new Form("form"); AjaxButton submitButton = new AjaxButton("submit") { public void onSubmi

RE: Ultra strange behaviour AjaxButton - Form

2011-09-02 Thread martin . asenov
Sorry, HTML is: ... some fields... - Цитат от martin.ase...@mail.bg, на 02.09.2011 в 18:50 - Hello, guys, I'm experiencing some very strange problem - an AjaxButton's onSubmit never gets called. Here are snippets of what I have: HTML: ... some fields... in code:

Re: Ultra strange behaviour AjaxButton - Form

2011-09-02 Thread Ernesto Reinaldo Barreiro
maybe you have validation errors and in that case onError will be called instead. Regards, Ernesto On Fri, Sep 2, 2011 at 5:50 PM, wrote: > > > > Hello, guys, > > > I'm experiencing some very strange problem - an AjaxButton's onSubmit never > gets called. > > > Here are snippets of what I have

Re: Ultra strange behaviour AjaxButton - Form

2011-09-02 Thread martin . asenov
Thanks, this is the case. However, I've no idea why the form does validation, since I have no required fields in it, nor have specified any validator. Best regards, Martin - Цитат от Ernesto Reinaldo Barreiro (reier...@gmail.com), на 02.09.2011 в 18:55 - maybe you have valida

Lazy loading exception despite of OpenSessionInViewFilter and object loading within a request

2011-09-02 Thread Florian B.
Hi I've got some issues with the OpenSessionInViewFilter I integrated into a Wicket application to get rid of the LazyLoadingException problem. So my problem is. I got a login page with a SignInPanel. When a user tries to log into the web site his credentials are passed to the authentication() m

Re: How my perfs are good

2011-09-02 Thread coincoinfou
I have profiled. It seems that the way the page is built. Mostly in listview, I need labels. These labels are not DetachableModels or whatever because another framework loads that on the fly. For 50 labels, I get 50 request of 1 second each. It shouldn't be like this for two strings.. I'm not sure

Re: Lazy loading exception despite of OpenSessionInViewFilter and object loading within a request

2011-09-02 Thread Sven Meier
Hi, there are multiple requests going on probably (e.g. because of redirects), You should put a breakpoint into WicketFilter to debug the requests. HTH Sven On 09/02/2011 08:03 PM, Florian B. wrote: > Hi > > I've got some issues with the OpenSessionInViewFilter I integrated into a > Wicket app

Re: How my perfs are good

2011-09-02 Thread Igor Vaynberg
On Fri, Sep 2, 2011 at 11:39 AM, coincoinfou wrote: > I have profiled. > It seems that the way the page is built. Mostly in listview, I need labels. > These labels are not DetachableModels or whatever because another framework > loads that on the fly. > For 50 labels, I get 50 request of 1 second

1.5: How to get Page instance from RequestCycle in IRequestCycleListener

2011-09-02 Thread bht
Hi, in 1.4, I could get the last page instance with WebRequestCycle#getResponsePage() In 1.5, I cannot find org.apache.wicket.Page instances, only IRequestablePage, and this indirectly via (RenderPageRequestHandler)getActiveRequestHandler() Any help is appreciated. Kind Regards, Bernard