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

Re: Implementing AjaxBehavior with decoration

2011-02-20 Thread Igor Vaynberg
see org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel in extensions -igor On Sun, Feb 20, 2011 at 4:07 AM, Nishant Neeraj nishant.has.a.quest...@gmail.com wrote: What is the easiest way to get following behavior: 1. When I click a link, a hidden DIV pops-up. The content of the

Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread eugenebalt
Guys, I almost got the Ajax Download-with-Form Refresh to work. I followed this example of how to do an Ajax download: https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html But there is one problem; the form has a FeedbackPanel which shows Validator messages. With this

Re: Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread eugenebalt
My code is below. 1) In Form Constructor: public MyForm(String id) { super(id); // add BeginDate/EndDate text fields: these require validation add(new TextField(bdate, new PropertyModel(myBean, bdate)) .add(new ErrorDateValidator1()) .add(new

Re: Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread Igor Vaynberg
whatever you are using to submit the form with ajax has an onError(target) method that you can override and update the feedback panel with. -igor On Sun, Feb 20, 2011 at 10:24 AM, eugenebalt eugeneb...@yahoo.com wrote: My code is below. 1) In Form Constructor:    public MyForm(String id) {

Re: Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread eugenebalt
You're the man, Igor! :) Thanks a lot. It's working now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Making-Ajax-Download-Work-With-Validator-Messages-in-FeedbackPanel-tp3315334p3315433.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread eugenebalt
I just have one more question. I need to put a red frame around the fields that have errors, in addition to displaying the Feedback message. I overrode onError() and did target.addComponent(feedbackPanel) so I'm getting the message displayed, that part works great. Now I just need to update the

Re: Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread eugenebalt
Any help with the above question? (update red/normal border around problem fields, I need to do it manually here, I think) I was thinking of iterating over all my components and doing a target.addComponent() on each one. That updates their border, but I can't make all my components

Re: wicket tree

2011-02-20 Thread mlabs
ok well I was in fact able to override the width by placing this style on the page: style type=text/css div.wicket-tree { width: 60em !important; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-tree-tp3313498p3316658.html Sent from the Users

How to do document.write(Hello Word); in Wicket?

2011-02-20 Thread Paolo
How can I write something into the HTML page, from Java code. A similar fast metod like in javascript to write in HTML: document.write(Hello word); It is userfull for conditional messagge like: If (sum==5) { document.write(It is right!) } or it may be userfull for an simple email antispam

How discover the caller page (referer)?

2011-02-20 Thread Paolo
How can I discover the caller page (referer) of my wicket application or specific page? http://en.wikipedia.org/wiki/HTTP_referrer Thank you. Paolo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-20 Thread Eelco Hillenius
Reading in the other thread that a session size of 100K or less is achievable, I'll admit defeat now: I have not been able to shrink some of my pages(!) to less than 200K, not to mention the sessions. Despite LDMs, CompoundPropertyModels, and no, there are no domain objects in there, and no

Re: How to do document.write(Hello Word); in Wicket?

2011-02-20 Thread Pedro Santos
You can use an Label with escapeModelStrings set to false On Sun, Feb 20, 2011 at 10:35 PM, Paolo irresistible...@gmail.com wrote: How can I write something into the HTML page, from Java code. A similar fast metod like in javascript to write in HTML: document.write(Hello word); It is

Re: How to do document.write(Hello Word); in Wicket?

2011-02-20 Thread Jeremy Thomerson
On Sun, Feb 20, 2011 at 7:35 PM, Paolo irresistible...@gmail.com wrote: How can I write something into the HTML page, from Java code. A similar fast metod like in javascript to write in HTML: document.write(Hello word); It is userfull for conditional messagge like: If (sum==5) {

Re: How discover the caller page (referer)?

2011-02-20 Thread Jeremy Thomerson
Get the http servlet request from the request, and get the referrer header. On Sun, Feb 20, 2011 at 8:09 PM, Paolo irresistible...@gmail.com wrote: How can I discover the caller page (referer) of my wicket application or specific page? http://en.wikipedia.org/wiki/HTTP_referrer Thank you.