URL Encoding strategy

2010-02-20 Thread Nishant Neeraj
Hi, I wanted to apply URL encoding strategy to application context root but I cant mount empty string because it throws exception at start-up. Is there a work around to this? Regards Nishant

Re: URL Encoding strategy

2010-02-20 Thread Nishant Neeraj
blog article > on it, with example code to make it a lot easier from within Wicket. > > Regards, >Erik. > > > Op 20-02-10 11:07, Nishant Neeraj wrote: > >> Hi, >> >> I wanted to apply URL encoding strategy to application context root but I >> can

UploadProgressBar and AjaxSubmitButton

2010-02-24 Thread Nishant Neeraj
Hi, I am trying show UploadProgressBar while the form submission is done by AjaxSubmitButton / Link. The problem is, I do not see progress bar when I use AjaxSubmitButton (it works with regular form submission button). I have set setRenderBodyOnly(false) for the progress bar and added it to ajax

Wicket Session Management

2010-03-09 Thread Nishant Neeraj
Hi, I have a registration system where, when you request for registration, you are mailed a URL with unique-key as parameter. When user clicks the link, he lands on a page where I am setting his UserVO object in session. This page has another BookmarkablePageLink that points to the user's profile

Re: Wicket Session Management

2010-03-09 Thread Nishant Neeraj
Mar 9, 2010 at 11:53 PM, Nishant Neeraj < nishant.has.a.quest...@gmail.com> wrote: > Hi, > > I have a registration system where, when you request for registration, you > are mailed a URL with unique-key as parameter. When user clicks the link, he > lands on a page where I am s

Using SetResponsePage in Session

2010-03-13 Thread Nishant Neeraj
Hi, In my custom session, I have a method which, on certain condition, wants to redirect the request to some page, other than the original. This is what I am doing, in the method: RequestCycle.get().setRedirect(true); RequestCycle.get().setResponsePage(SomePage.class); But the response continues

Re: Using SetResponsePage in Session

2010-03-13 Thread Nishant Neeraj
o a request something like this might > be cleaner: > > YourPage > > if (getYourApp().getYourSession().isWhatever()) > { > RequestCycle.get().setRedirect(true); > RequestCycle.get().setResponsePage(SomePage.class); > } else { > > Ed. >

Re: Using SetResponsePage in Session

2010-03-13 Thread Nishant Neeraj
r already exists in the session, but send the > redirect from a Page. You can refactor the redirection code into a base > class and extend as required. > > Ed. > > On Mar 13, 2010 2:04 PM, "Nishant Neeraj" < > nishant.has.a.quest...@gmail.com> > wrote: >

Best Practices for Using JavaScript With Wicket

2010-04-05 Thread Nishant Neeraj
Hi, I am working on an application that's very rich in UI. Most of the input validation, unless it requires back-end support, are done at UI level. There are drag-and-drop, multiple file uploader (not the one in wicket extensions), and customized warning message (much like Stack-overflow's top inf

Re: Best Practices for Using JavaScript With Wicket

2010-04-06 Thread Nishant Neeraj
Thanks Jeremy. I had been using component.setMarkupId(..); which is not recommended... so I was wondering what is the standard. I need to get hands-on JS-Wicket integration, so I was looking for a good organized documentation/resource (other than WIA). > So, what's the objection to using it? :)

Re: Best Practices for Using JavaScript With Wicket

2010-04-06 Thread Nishant Neeraj
; > container.getHeaderResponse().renderJavascriptReference( reference to your js library here>); > > container.getHeaderResponse().renderOnDomReadyJavascript("soSomethingWith('" > + getMarkupId() + "');"); >} >} > > And: Pl

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Nishant Neeraj
I think you may look into this package org.apache.wicket.extensions.ajax.markup.html.form.upload where upload progress-bar is implemented. You may do something like this. So, probably it sets a resource in session, Java part regularly updates the string resource. And JS keeps on polling this resou

Upload Max Size Exceeded: Early Warning

2010-05-23 Thread Nishant Neeraj
Hi, I am using MultiFileUploadField to upload content and limiting size to 10MB using form.setMaxSize(...). It works as intended but there is one problem, the "max file-size limit exceeded" warning comes after upload completes. So, the issue is the user has started upload and is waiting; and at t

Http Error Page configuration causing Closing the buffer error

2010-06-22 Thread Nishant Neeraj
Hi, I have configured http error pages as per this[1] document. It works fine except I see "closing the buffer error" NPE [2](see the stack trace below), on almost all the pages. Removing REQUEST ERROR from wicket-fil

Re: About the Mail on this page mainly to Igor

2010-06-24 Thread Nishant Neeraj
:) On Thu, Jun 24, 2010 at 6:14 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > if you want to go incognito just create an email address for that, like > many > of the other users on this list have done. > > -Nino > > 2010/6/24 midikem > > > > > Hi can u please put the mail invis

JavaScript form submission does not go to Button.onSubmit() method

2010-08-24 Thread Nishant Neeraj
I have a form which has a button. The processing code after submission is written in Button.onSubmit() and Form.onSubmit() is not overridden. Now, when I add a JavaScript confirmation asking if the user is ready to submit the form. The JavaScript performs $('#formId').submit(). The form submission

Implementing AjaxBehavior with decoration

2011-02-20 Thread Nishant Neeraj
What is the easiest way to get following behavior: 1. When I click a link, a hidden DIV pops-up. The content of the DIV is loaded via AJAX. 2. While the content is being loaded (it takes a couple of seconds), I need to show the empty DIV with busy-spinner inside it. 3. The busy spinner eventually