RE: abort loading lazy components

2011-11-15 Thread Michal Wegrzyn
Done https://issues.apache.org/jira/browse/WICKET-4227 Best regards, Michal Wegrzyn -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, November 14, 2011 13:43 To: users@wicket.apache.org Subject: Re: abort loading lazy components Ticket +

Re: Capture the response of a page request and displays another page as result

2011-11-15 Thread Dirk Forchel
Okay, this is the preferred way if I would have a link on the page, but I have not. This is also the way like the DownloadLink works: @Override public void onClick() { ... getRequestCycle().scheduleRequestHandlerAfterCurrent(

Re: Capture the response of a page request and displays another page as result

2011-11-15 Thread Martin Grigorov
Hi, Extend MountedMapper and override its mapRequest() method. When a request comes render the page and send it as email. After that return TextRequestHandler(OK) to indicate the success or ErrorCodeRequestHandler for the failure. On Tue, Nov 15, 2011 at 12:31 PM, Dirk Forchel

Re: Capture the response of a page request and displays another page as result

2011-11-15 Thread Dirk Forchel
Sorry for all the hassle. This sounds now obvious to me. Thank you for your hint. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Capture-the-response-of-a-page-request-and-displays-another-page-as-result-tp4039468p4042521.html Sent from the Users forum mailing list

LoadableDetachableModel load() - Listview onclick()

2011-11-15 Thread bilgisever
Simpy, I have a listview and a LoadableDetachableModel which is listview Model. Listview has a link to populate. This Link has onclick event. The event is update the query for LoadableDetachableModel to load data and list them in listview. But the problem is that event of

Re: Capture the response of a page request and displays another page as result

2011-11-15 Thread Dirk Forchel
Finally I've implemented my customized IRequestMapper (CapturingRequestMapper). How can I contribute this little working example to the wicket-examples? -- View this message in context:

Re: Capture the response of a page request and displays another page as result

2011-11-15 Thread Martin Grigorov
Checkout http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/ Integrate it in http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/ Attach the patch to a ticket in Jira I guess you will need the logic from MailTemplate.java - feel

Re: Capture the response of a page request and displays another page as result

2011-11-15 Thread Dirk Forchel
See https://issues.apache.org/jira/browse/WICKET-4228. Please check the attached patch whether it works. Locally it works the way intented. Dirk Forchel -- View this message in context:

AW: LoadableDetachableModel load() - Listview onclick()

2011-11-15 Thread Sven Meier
LoadableDetachableModel#load() is invoked lazily only first access of the model object. Is your link part of the ListView? Does it access the row model before changing the query? Sven -Ursprüngliche Nachricht- Von: bilgisever [mailto:mehmetate...@hotmail.com] Gesendet: Dienstag, 15.

Re: AW: LoadableDetachableModel load() - Listview onclick()

2011-11-15 Thread bilgisever
Yes, the link is a part of the listview. ListView : ListViewAstPlans breadList = new ListViewAstPlans(breadList,loadModel) { private static final long serialVersionUID = 1L; @Override protected void

AW: AW: LoadableDetachableModel load() - Listview onclick()

2011-11-15 Thread Sven Meier
Ok, then you have to call #detach() on your model: public void onClick() { stack.add(item.getModelObject().getAssetCod()); loadModel.detach(); } Hope this helps Sven -Ursprüngliche Nachricht- Von: bilgisever

Re: Customizing Error / Validation messages

2011-11-15 Thread Igor Vaynberg
the javadoc says the key to use is PatternValidator not pattern. to make it specific to a field use fieldid.PatternValdiator, in your case you can see from the log that one of the keys that is tried is zip.PatternValidator -igor On Mon, Nov 14, 2011 at 12:03 PM, anantasthana

Re: Customizing Error / Validation messages

2011-11-15 Thread anant . asty
Thanks that workes perfectly -Original Message- From: Igor Vaynberg igor.vaynb...@gmail.com Date: Tue, 15 Nov 2011 07:20:44 To: users@wicket.apache.org Reply-To: users@wicket.apache.org Subject: Re: Customizing Error / Validation messages the javadoc says the key to use is

integrating CDI into Wicket

2011-11-15 Thread Igor Vaynberg
if you want to learn how to use CDI with Wicket i just wrote a short blog about it: https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/ -igor

WicketStuff JSR-303 validation breaks in WicketTester

2011-11-15 Thread Jablow, Eric R
I'm trying to use the wicketstuff.org JSR-303 validation project to use Hibernate Validator in my newish Wicket project. I have a FormComponentPanel with a model object set up for JSR-303 validation, but we are using vanilla Wicket Validators for it. To test the FormComponentPanel, I wrote a

Re: WicketStuff JSR-303 validation breaks in WicketTester

2011-11-15 Thread Martin Grigorov
Hi, On Tue, Nov 15, 2011 at 8:09 PM, Jablow, Eric R eric.jab...@mantech.com wrote: I'm trying to use the wicketstuff.org JSR-303 validation project to use Hibernate Validator in my newish Wicket project. I have a FormComponentPanel with a model object set up for JSR-303 validation, but we

Call an external url setting method and header

2011-11-15 Thread Alberto
Hi, I have to call an external url (a rest web service) from onSubmit of a form. I found this solution: |throw new RedirectToUrlException( http://www.facebook.com/login.php?api_key=+ _apiKey + v=1.0, HttpServletResponse.SC_MOVED_PERMANENTLY); but it is just a redirect and I cannot

Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread Thomas Heigl
Hey all, I have a requirement where I'd like to create a Wicket Session outside of a Wicket request: My application runs stand-alone (no problem here) and as a Facebook application. Facebook calls my REST authentication service with a user's credentials if they open my application in facebook.

RE: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread David Berkman
Apache Shiro, and create a shiro version of WebSession. Then wicket can ask for the Shio Session from the Http context, and you can get it outside the context. David -Original Message- From: Thomas Heigl [mailto:tho...@umschalt.com] Sent: Tuesday, November 15, 2011 10:57 AM To:

Re: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread Thomas Heigl
Hey David, Thanks for your reply! I have thought about using Spring Security or Shire, but at the moment the minimal wicket-auth-roles is enough for my requirements. I'd prefer to just create the session myself when I need it. Any other ideas? Cheers, THomas On Tue, Nov 15, 2011 at 8:02 PM,

RE: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread David Berkman
You can integrate Shiro with auth-roles very easily. Just create ShiroAuthenticatedWebSession. package com.wicketized.extension.security; import java.util.LinkedList; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.UsernamePasswordToken; import

Re: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread anant . asty
That's interesting I was trying to do some thing similar n eariler and just dropped it. Is it possible to use wicket shiro instead? -Original Message- From: David Berkman david.berk...@glu.com Date: Tue, 15 Nov 2011 11:09:10 To: users@wicket.apache.org Reply-To: users@wicket.apache.org

RE: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread David Berkman
Don't know. It was easy enough I just rolled my own. David -Original Message- From: anant.a...@gmail.com [mailto:anant.a...@gmail.com] Sent: Tuesday, November 15, 2011 11:36 AM To: users@wicket.apache.org Subject: Re: Creating a Wicket Session outside of a Wicket request That's

NullPointerException in WicketTester

2011-11-15 Thread sudeivas
Hello, I am trying to write some unit tests for my wicket application. My webpage has a custom constructor. public DefaultErrorPage(String message) { add(new Label(message, message); } For this, I followed the steps mentioned in

Re: Creating a Wicket Session outside of a Wicket request

2011-11-15 Thread Thomas Heigl
That looks quite straight forward, but wouldn't I still have the same problem I'm currently facing? The ShiroWebSession is still just a normal wicket session that can't be created from outside the Wicket request. Or are you suggesting to login the subject using raw Shiro and then check in the

Re: NullPointerException in WicketTester

2011-11-15 Thread Igor Vaynberg
it is usually helpful to post a strack trace. also, isnt there a tester.startPage(Page)? -igor On Tue, Nov 15, 2011 at 12:04 PM, sudeivas sureshkumar@gmail.comwrote: Hello, I am trying to write some unit tests for my wicket application. My webpage has a custom constructor. public

Re: NullPointerException in WicketTester

2011-11-15 Thread sudeivas
Stack Trace: java.lang.NullPointerException at org.apache.wicket.protocol.http.MockHttpServletRequest.setRequestToComponent(MockHttpServletRequest.java:1222) at org.apache.wicket.util.tester.BaseWicketTester.executeListener(BaseWicketTester.java:260) at

RE: Issue with migrating to 1.5.2

2011-11-15 Thread Fang Lin
I have found the solution. getRequestCycle().replaceAllRequestHandlers(new RedirectRequestHandler (logoutPageUrl(isGuest))); Works! -Original Message- From: Fang Lin [mailto:fang...@u.washington.edu] Sent: Tuesday, November 15, 2011 1:31 PM To: users@wicket.apache.org Subject: Issue

RE: WicketStuff JSR-303 validation breaks in WicketTester

2011-11-15 Thread Jablow, Eric R
I took your advice and I am trying to use this project. I have some teething pains. See https://github.com/42Lines/wicket-bean-validation http://repo1.maven.org/maven2/net/ftlines/wicket-bean-validation/ I removed the wicketstuff.org jsr303 repository and added the ftlines one. I also noticed

Re: WicketStuff JSR-303 validation breaks in WicketTester

2011-11-15 Thread Igor Vaynberg
i just pushed version 1.1 into the maven repo. this one should fix dependencies (it depends on wicket-1.5.3). it should be synced within a couple of hours. if you want to try it sooner you can clone the repo, checkout the 'release/1.1' tag and mvn install it locally. -igor On Tue, Nov 15, 2011

Wizard finish button prevent double click

2011-11-15 Thread Jeffrey Schneller
I was using version 1.4.3 and recently updated to 1.4.19. I am trying to prevent the double click of the Finish button causing a double submit on the finish step of a wizard. Was this resolved between version 1.4.3 and 1.4.19? Hopefully it was. If not... There was mention of this in the

Re: Wizard finish button prevent double click

2011-11-15 Thread Igor Vaynberg
with jquery have you tried saying $(button).attr(disabled, disabled) ? -igor On Tue, Nov 15, 2011 at 3:29 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I was using version 1.4.3 and recently updated to 1.4.19. I am trying to prevent the double click of the Finish button causing

RE: Wizard finish button prevent double click

2011-11-15 Thread Jeffrey Schneller
I have. I even added a breakpoint in my onFinish code to be sure that it was getting there. I do the bind to the click event in the document onReady. It definitely fires the jquery but the onFinish code is never executed. -Original Message- From: Igor Vaynberg

Does [Parent|Child]HeaderRenderStrategy work with wicket:head tag?

2011-11-15 Thread TH Lim
I am using Wicket 1.5.x with wicket:head tag. I tried rendering the child component (Wicket Panel) CSS / JS 1st then followed by the parent. It didn't work. It always renders the parent (Wicket WebPage) JS 1st. I used

Re: NullPointerException in WicketTester

2011-11-15 Thread Igor Vaynberg
are you not using maven? -igor On Tue, Nov 15, 2011 at 6:21 PM, sudeivas sureshkumar@gmail.com wrote: I upgraded from 1.4 to 1.5.3. Now I am getting a different error, Stack trace: java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at

Re: NullPointerException in WicketTester

2011-11-15 Thread Martin Grigorov
Hi, This exception means that you have wicket-velocity.jar in the classpath but velocity.jar is not there. On Wed, Nov 16, 2011 at 4:21 AM, sudeivas sureshkumar@gmail.com wrote: I upgraded from 1.4 to 1.5.3. Now I am getting a different error, Stack trace:

Re: Call an external url setting method and header

2011-11-15 Thread Martin Grigorov
Hi, On Tue, Nov 15, 2011 at 8:45 PM, Alberto abros...@ogs.trieste.it wrote: Hi,  I have to call an external url (a rest web service) from onSubmit of a form. I found this solution: |throw new RedirectToUrlException(    http://www.facebook.com/login.php?api_key=+ _apiKey + v=1.0,    

[Announce] Wicket Stuff Core 1.5.3 Released

2011-11-15 Thread Michael O'Cleirigh
Hello, Following the release of wicket 1.5.3 have cut a matching wicketstuff-core release. The artifacts have been promoted and will be available in maven central soon (within 1-2 hours). They can be retrieved like this: dependency groupIdorg.wicketstuff/groupId

Re: Does [Parent|Child]HeaderRenderStrategy work with wicket:head tag?

2011-11-15 Thread Martin Grigorov
Hi, Please file a ticket with a quickstart to debug what is happening. I'm almost sure that the reason is the fact that a IMarkupFilter handles wicket:head and this is handled earlier than the header render phase but let's see what can be done. On Wed, Nov 16, 2011 at 5:07 AM, TH Lim

Re: [Announce] Wicket Stuff Core 1.5.3 Released

2011-11-15 Thread Martin Grigorov
Thank you, Mike! I've tested the build and the examples of wicket-facebook and they worked fine. On Wed, Nov 16, 2011 at 9:22 AM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Hello, Following the release of wicket 1.5.3 have cut a matching wicketstuff-core release. The artifacts

Purely XML / JSON Result Page

2011-11-15 Thread TH Lim
With Wicket 1.5, can we have a WebPage that serves XML / JSON without having an associated XML or HTML page? I understood how XMLPage.java example works but I just wander if we could do *without* the additional template file with a simple Wicket Label and stream tens of megabytes of XML/JSON as

Re: Purely XML / JSON Result Page

2011-11-15 Thread Martin Grigorov
See org.apache.wicket.markup.IMarkupResourceStreamProvider On Wed, Nov 16, 2011 at 9:31 AM, TH Lim ssh...@gmail.com wrote: With Wicket 1.5, can we have a WebPage that serves XML / JSON without having an associated XML or HTML page? I understood how XMLPage.java example works but I just wander