Re: Best practice for returning to calling page after submitting a form page

2012-01-19 Thread Martin Grigorov
You can pass PageReference to the page with the form and use it in Form#onSubmit(). Page1.java: setResponsePage(new FormPage(getPageReference())); FormPage.java: public FormPage(final PageReference pr) { add(new Form() { onSubmit() { setResponsePage(pr.getPage()); } }); }

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
i get below error on using AjaxFormComponentUpdatingBehavior WicketMessage: Behavior nl.planon.hera.filters.quicksearch.PnWebAdvancedSearchPanel$3 can only be added to an instance of a FormComponentRoot cause:org.apache.wicket.WicketRuntimeException: Behavior

RE: Doing an action on press of key in a form

2012-01-19 Thread Michal Wegrzyn
AjaxFormComponentUpdatingBehavior must be used on a FormComponent (sub)class. Best Regards, Michal Wegrzyn -Original Message- From: Krishna Mohan [mailto:k.krishnamoha...@gmail.com] Sent: Thursday, January 19, 2012 9:32 To: users@wicket.apache.org Subject: Re: Doing an action on

Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
In Wicket 1.4.x I used Link link = new Link(download){ @Override public void onClick() { *IResourceStream stream = new FileResourceStream(new File(path + fileName));

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
Yes i understood that, but how to solve my original problem Regards Krishna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread Martin Grigorov
See the source code of DownloadLink On Thu, Jan 19, 2012 at 10:06 AM, ricmancio ricman...@gmail.com wrote: In Wicket 1.4.x I used Link link       =       new Link(download){        @Override        public void onClick() {        *IResourceStream stream = new FileResourceStream(new

Re: wicket appl architecture

2012-01-19 Thread Bas Gooren
When he wrote wtf he probably mean ftw (for the win), to indicate it's a solid combination ;-) Op 19-1-2012 2:19, schreef nazeem: Russell Pitre wrote Separate front-end sounds fine. Use a REST architecture with JSON as the data exchange format. I'm pretty Spring MVC supports this through the

Re: Doing an action on press of key in a form

2012-01-19 Thread Martin Grigorov
I'm not sure what Igor meant with this suggestion. I think .setDefaultButton() should do what you need. Here is another suggestion from me: Add a non-Ajax behavior to the text field which adds 'keyup' event handler. When the user types something in the field then check the keyCode from the

Re: Controlling URL of static cacheable resources

2012-01-19 Thread Martin Grigorov
And I'm not sure why you think String#startsWith is faster than String#endsWith. They do the same ... With the IResourceCachingStrategy you can append .static to all resources you want and later use that to check in your filter. On Wed, Jan 18, 2012 at 11:34 PM, Peter Ertl pe...@gmx.org wrote:

Re: wicket appl architecture

2012-01-19 Thread Arjun Dhar
haha .. ur welcome. yes, I meant ftw = For the Win; ... well wtf is one for internet typo humor. Good luck ;) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context:

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
thanks for the suggestion, but now it works also from the documentation: *https://cwiki.apache.org/WICKET/migration-to-wicket-15.html* *Redirect to non wicket or external page* suggests replacing old code : * getRequestCycle().setRequestTarget(new RedirectRequestTarget(/usage.html));* with:

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 10:33 AM, ricmancio ricman...@gmail.com wrote: thanks for the suggestion, but now it works That's good, no ? Is there a question below ? also from the documentation: *https://cwiki.apache.org/WICKET/migration-to-wicket-15.html* *Redirect to non wicket or external

Re: ListView not refreshed after a new row is inserted with EJB3 as its backend data

2012-01-19 Thread Per Newgro
Use a LoadableDetachableModelListUser in the ListView Constructor. Put all the load loading into the load method and see what happens. Cheers Per Am 19.01.2012 07:49, schrieb x.yang: Hello, Everyone, I am trying to build a web app with Wicket, EJB3, and MySQL. My IDE is Netbeans 6.9.1 and the

Re: How do I write my first Apache Wicket program on NetBeans IDE?

2012-01-19 Thread Ian Marshall
The answer might depend in part upon which web server you want to use. NetBeans ships with Tomcat. There are others which one can use. I stopped using Tomcat and now use Google App Engine's (GAE's) development web server to run my Wicket application outside of NetBeans. If that is want you want

Re: How do I write my first Apache Wicket program on NetBeans IDE?

2012-01-19 Thread Josh Kamau
If i were you i would learn how to create a project with maven first. Josh On Thu, Jan 19, 2012 at 12:53 PM, Ian Marshall ianmarshall...@gmail.comwrote: The answer might depend in part upon which web server you want to use. NetBeans ships with Tomcat. There are others which one can use. I

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
no question, *I replaced:* Link link = new Link(download){ @Override public void onClick() { IResourceStream stream = new FileResourceStream(new File(path + fileName)); getRequestCycle().scheduleRequestHandlerAfterCurrent(new

Re: How do I write my first Apache Wicket program on NetBeans IDE?

2012-01-19 Thread Andrea Del Bene
Don't forget to look at this: /http://netbeans.org/kb/68/web/quickstart-webapps-wicket.html./ If i were you i would learn how to create a project with maven first. Josh On Thu, Jan 19, 2012 at 12:53 PM, Ian Marshallianmarshall...@gmail.comwrote: The answer might depend in part upon which

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
Martin Grigorov mgrigorov at apache.org writes: I'm not sure what Igor meant with this suggestion. I think .setDefaultButton() should do what you need. Here is another suggestion from me: Add a non-Ajax behavior to the text field which adds 'keyup' event handler. When the user types

Hello all; TILT I learned how to access server session and context in Wicket 1.5

2012-01-19 Thread Oscar Besga
TILT I learned how to access server session and context in Wicket 1.5 Wicket 1.4 code HttpSession httpSession = ((WebRequest)getRequest()).getHttpServletRequest().getSession(); /code Wicket 1.5 code HttpServletRequest httpServletRequest =

Re: Doing an action on press of key in a form

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 1:31 PM, Krishna Mohan k.krishnamoha...@gmail.com wrote: Martin Grigorov mgrigorov at apache.org writes: I'm not sure what Igor meant with this suggestion. I think .setDefaultButton() should do what you need. Here is another suggestion from me: Add a non-Ajax

Re: Hello all; TILT I learned how to access server session and context in Wicket 1.5

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 1:39 PM, Oscar Besga obe...@gmail.com wrote: TILT I learned how to access server session and context in Wicket 1.5 Wicket 1.4 code    HttpSession httpSession = ((WebRequest)getRequest()).getHttpServletRequest().getSession(); /code Wicket 1.5 code    

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
Put this code in PanelWithTheButton#onInitialize() i did the same but it did not work - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Doing an action on press of key in a form

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 1:56 PM, Krishna Mohan k.krishnamoha...@gmail.com wrote: Put this code in PanelWithTheButton#onInitialize() i did the same but it did not work the form should be reachable in #onInitialize(). try again

Re: How to clear PageMap in Wicket 1.5?

2012-01-19 Thread rebecca
hi dear wicket authors, I must say that the functionallity Matt is describing is a very important feature. We use Matt's hack in all our wicket applications using wicket 1.4. Please (please please) add this as an official feature to 1.5. thanks Rebecca -- View this message in context:

Re: wicket appl architecture

2012-01-19 Thread kamiseq
well but then you need to rewrite some logic you already have in wicket's components, right? pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail:

regarding sort property

2012-01-19 Thread ridaa
Hi, I am using a check box panel to build a column of check box in data table using abstract column. How do i impose sort on it.On click of sort the selected checkboxes should appear on top and rest at the bottom. Do i need to use sortableComparator class..It would be a big help if some1 can

Re: regarding sort property

2012-01-19 Thread Josh Kamau
Hi there ; I think the simplest option would be to put a boolean field on the entity that you are sorting. Then add the column as usual (e.g using AbstractColumn the checkbox) . Then sorting will be done just as in the other fields. Josh. On Thu, Jan 19, 2012 at 7:31 PM, ridaa

Wicket webshere 7

2012-01-19 Thread matteus
Hi, I have a big problem with websphere and wicket because of several ajax behavior that does not work when it is configured in webphere. Someone has gone through some configuration problem with websphere wicket that could help me? Being that we've set the property called

RE: Best practice for returning to calling page after submitting a form page

2012-01-19 Thread Chris Colman
You can pass PageReference to the page with the form and use it in Form#onSubmit(). Page1.java: setResponsePage(new FormPage(getPageReference())); FormPage.java: public FormPage(final PageReference pr) { add(new Form() { onSubmit() { setResponsePage(pr.getPage()); } }); }

Re: Best practice for returning to calling page after submitting a form page

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 6:54 PM, Chris Colman chr...@stepaheadsoftware.com wrote: You can pass PageReference to the page with the form and use it in Form#onSubmit(). Page1.java: setResponsePage(new FormPage(getPageReference())); FormPage.java: public FormPage(final PageReference pr) {  

Error detaching RequestHandler

2012-01-19 Thread Allen Gilbert
Running 1.5.2, we occasionally see this error message in our logs, usually many times in a row: 2012-01-19 10:03:09,284 ERROR [org.apache.wicket.request.RequestHandlerStack] Error detaching RequestHandler org.apache.wicket.RestartResponseAtInterceptPageException No other details are provided.

Java class and javascript

2012-01-19 Thread Oscar Besga
Hello. I'm working into a wicket (1.4) project that now is in production, but we have decided to move it from Wicket 1.4 to Wicket 1.5 - and correct/add some features. I've some problems with the migration, I can't find how to translate some code from one version to another. My greatest

Re: Java class and javascript

2012-01-19 Thread vineet semwal
response.renderJavascriptReference(new *PackageResourceReference*(HistoricoBehavior.class, MyComponent.js)); On Fri, Jan 20, 2012 at 12:43 AM, Oscar Besga obe...@gmail.com wrote: Hello. I'm working into a wicket (1.4) project that now is in production, but we have decided to move it from

Re: Error detaching RequestHandler

2012-01-19 Thread Martin Grigorov
Hi, This error means that somewhere in your component hierarchy you throw RestartResponseAtInterceptPageException in #detach() method. I just did a quick search in Wicket's code and I didn't find such occurrence. Check your code and the libraries you use. On Thu, Jan 19, 2012 at 7:31 PM, Allen

Re: Get Wicket to ignore wicket parameters

2012-01-19 Thread Steve Fatula
On Jan 17, 2012, at 9:31 PM, Jeremy Thomerson wrote: I'm sure it can be handled in Wicket, but even then I'd default to mod_rewrite for something as simple as always remove parameter X from query string for pages A, B, C. To me dealing with old URLs is better done at that level rather than

Re: Wicket webshere 7

2012-01-19 Thread Eric Hamel
Am I right to assume you're running with Wicket Filter ? On Thu, Jan 19, 2012 at 12:51 PM, matteus matteu...@hotmail.com wrote: Hi, I have a big problem with websphere and wicket because of several ajax behavior that does not work when it is configured in webphere. Someone has gone through

Nested Modal Window Problem - IE8 - 404 Error

2012-01-19 Thread ashindler
Since I upgraded from wicket version 1.4 to wicket version 1.5.3 I get a Http status 404 error in IE8 when I open a modal window within a modal window - this is not a problem I had with the 1.4 versions of wicket. I tried using the 1.5.4 version that is about to be released and I still have this

Re: Wicket spring security sample app

2012-01-19 Thread Brian Lavender
James, I cloned the repository. $ git clone https://github.com/jwcarman/Wicketopia.git $ cd Wicketopia $ mvn eclipse:eclipse a few errors including the below error. [ERROR] Failed to execute goal on project wicketopia-persistence: Could not resolve dependencies for project

Still trying to get the Spring security with auth-roles

2012-01-19 Thread Brian Lavender
Can someone add the Spring Security for me? I have this simple web app from the Wicket examples (slightly modified) that uses Wicket-auth-roles and I just can't seem to wire in the spring security. Right now, authman has the users and hard coded in com.foobar.MyAuthenticatedWebSession. I would

Re: Doing an action on press of key in a form

2012-01-19 Thread Krishna Mohan
the form should be reachable in #onInitialize(). try again No it is not reachable - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org