Re: Centering ModalWindow during scroll?
Ok well I think I'm going to abandon this for the meantime and just use an indicator and a modal semi-transparent overlay over the site. I don't really have the time to learn cross-browser javascript! - Original Message - From: Matej Knopp [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 14, 2007 11:13 AM Subject: Re: Centering ModalWindow during scroll? It's not a simple thing. A huge amount of time (both for implementation and testing) went into the current modal window library to make it work as cross-browser as possible. Unfortunately, I wasn't aware of all the exotic use cases people want so the library is rather monolithic. There is a rewrite on my to-do list that would split the modal window into pieces (mask, basic window, style, etc.), but it's not really a high priority. -Matej On 9/14/07, Anthony J Webster [EMAIL PROTECTED] wrote: It seems to be a rather tricky issue in terms of browser compatibilty. I have been looking around for alternatives to ModalWindow and most of them only have this working in FF (the small ones which don't involve a huge library that is). Pity I'm not a JS expert... - Original Message - From: Matej Knopp [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 14, 2007 11:04 AM Subject: Re: Centering ModalWindow during scroll? No, currently there is not. -Matej On 9/14/07, Anthony J Webster [EMAIL PROTECTED] wrote: Hi, Is there a way to center a ModalWindow so that when a user scrolls the site with the navigator scrollbar, the ModalWindow stays centered while the site behind scrolls? Thanks Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Centering ModalWindow during scroll?
Hi, Is there a way to center a ModalWindow so that when a user scrolls the site with the navigator scrollbar, the ModalWindow stays centered while the site behind scrolls? Thanks Anthony
Re: Centering ModalWindow during scroll?
It seems to be a rather tricky issue in terms of browser compatibilty. I have been looking around for alternatives to ModalWindow and most of them only have this working in FF (the small ones which don't involve a huge library that is). Pity I'm not a JS expert... - Original Message - From: Matej Knopp [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 14, 2007 11:04 AM Subject: Re: Centering ModalWindow during scroll? No, currently there is not. -Matej On 9/14/07, Anthony J Webster [EMAIL PROTECTED] wrote: Hi, Is there a way to center a ModalWindow so that when a user scrolls the site with the navigator scrollbar, the ModalWindow stays centered while the site behind scrolls? Thanks Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modal dialogs with Ajax
Hello again, I have a form with ajax validation on its component's 'onblur' and a sumit link. The submission process takes a while as it results in numerous database lookups and so on. Initially I used an IndicatingAjaxSubmitButton to show the user that their request was being processed, with the help of mailinglist and #wicket members I also disabled the link during the submission with an AjaxCallDecorator and I suppose I could always add a modal div over the whole site as well (in the same callDecorator) in order to stop users changing the form contents or navigating to another part of the site. That all works fine however I need to push this further. If a user submits information which corresponds to a object that already exists in the database, I need to ask him whether he wishes to create a duplicate. The way I see this working is as follows. The user submits a valid form by clicking the link. This results in a modal centered dialog with some loading animation being displayed. If the submission works the user is redirected to a 'success' page where the entered data is display along with any information calculated during the submission. However if there is an error (an Exception thrown from the server) either a connection problem or duplicate data, the animation is replaced by some text explaining the problem and 1 or 2 buttons (Cancel for connection problems and Make Duplicate/Cancel for duplicate data). The Cancel button simply removes the modal window effectively returning the user to the form, whereas the Duplicate button launches the submission again and displays the animation until it succeeds or fails again in the case of connectivity problems. I know this a lot to ask but has anyone got any idea how to achieve this as I'm getting a tad confused! Many Thanks Anthony
ModalWindow customisation ?
Hi, Is there any way to customise the actual frame of a ModalWindow? Preferably I'd like to get rid of the frame entirely or just replace it with a simple box of the same colour as the enclosed page/panel without the top-right close button. Any ideas? Many Thanks Anthony
Re: ModalWindow customisation ?
hmm it uses image maps for the frame graphics :/ I suppose I could rewrite it and strip it of most of its functionality - Original Message - From: Frank Bille [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Tuesday, September 11, 2007 3:15 PM Subject: Re: ModalWindow customisation ? It's in the stylesheet. Some time ago I did a custom skin for it. The project died, so I don't have it anymore, but it's not that hard (read: if I can do it, you can do it) Frank On 9/11/07, Anthony J Webster [EMAIL PROTECTED] wrote: Hi, Is there any way to customise the actual frame of a ModalWindow? Preferably I'd like to get rid of the frame entirely or just replace it with a simple box of the same colour as the enclosed page/panel without the top-right close button. Any ideas? Many Thanks Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image from DB example
If I remember correctly (this was a while back) it doesn't work over firefox either... I'll check up on the link. Thanks Anthony - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Monday, September 10, 2007 4:58 PM Subject: Re: Image from DB example google pngfix for explorer -igor On 9/10/07, Anthony J Webster [EMAIL PROTECTED] wrote: Along these lines I haven't managed to get images with transparency to display properly. My PNGs all display black instead of transparent pixels :(. Anthony - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Monday, September 10, 2007 4:32 PM Subject: Re: Image from DB example see sourcecode of the pastebin, i think its on belios. also there is an article on the wiki about it. -igor On 9/9/07, Doug Leeper [EMAIL PROTECTED] wrote: I am looking for an example that obtains an image from the db and displays it. Can anyone point me in the right direction? I couldn't find the cdApp in wicket-contrib-examples I know that I need to use a Resource or some derivative of one, but I want to make sure that the Image is not stored in session. I am converting an existing JSP/Pageflow project to Wicket and have used a specific servlet to stream the image but not sure how to do in Wicket. Thanks in advance, - Doug -- View this message in context: http://www.nabble.com/Image-from-DB-example-tf4410796.html#a12582968 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxSubmitLink does nothing in IE
That works fine. Thanks However I've just noticed that this AjaxSubmitLink doesn't do anything in IE whereas in Firefox it works. I check the Ajax debug window and the server *is* contacted and everything however after recieving the response I get an ERROR: Error while parsing response: Unknown runtime error in IE. Any Ideas? Many Thanks Anthony - Original Message - From: Matej Knopp [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Thursday, September 06, 2007 11:35 PM Subject: Re: Creating a disableable AjaxSubmitLink Something like the following should work: decorateScript: this.onclick_=this.onclick; this.onclick=function() { return false; }; + script; onSuccess,onFailureScript: this.onclick=this.onclick_; + script; -Matej On 9/6/07, Anthony J Webster [EMAIL PROTECTED] wrote: Hi, I'm trying to create a disableable AjaxSubmitLink. When a user clicks on the link further clicks must not result in anything until the 'submission' is complete. This call be achieved by adding return false; in a call decorator. However I'm stuggling with the re-enabling. I need to strip the return false and put the original destination back. form.add(new AjaxSubmitLink(randomise, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { somethingLong(); } protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { return return false; + script; } public CharSequence decorateOnSuccessScript(CharSequence script) { // NEED TO RESET TO PREVIOUS STATE } public CharSequence decorateOnFailureScript(CharSequence script) { // NEED TO RESET TO PREVIOUS STATE } }; } }); Any help would be most appreciated. Thanks in advance Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upcoming jWeekend Wicket training courses
Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: Al Maw [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming Getting Started With Apache Wicket 1.3 [1] and Apache Wicket 1.3 [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upcoming jWeekend Wicket training courses
I'd be arriving from Paris but I know my way around London having been born there! Something tells me the boss isn't going to pick up the check though (he's got struts suck in his head) grrr :( - Original Message - From: jweekend [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 07, 2007 12:52 PM Subject: Re: Upcoming jWeekend Wicket training courses (there's a link below if you'd like to see a presentation Al gave at one of our London Wicket User Groups and at the last Java Web users Group) That's interesting Anthony; our first 2 Wicket-course students also found us from continental Europe, in fact, both from Belgium (is this where the next wave of the popularist Wicket revolution will start to gather pace? ;-), with at least one arriving on Eurostar; from Waterloo Station (where Eurostar stops in London) it's a direct, 17 minute underground ride. I think it's like a weekend break for some people; but beware that the Wicket courses are pretty intensive. All the details are at http://jWeekend.co.uk jWeekend.co.uk . We have helped people from out of town with accommodation (for the Saturday night or, Friday and Saturday nights) as well, so let us know if you're looking at this. We have had excellent feedback about our last Wicket course (2 day), and we believe we have further improved the material for our 2 new 1 day Wicket courses and our original 2 day course (all now based on 1.3), with Al deserving all the credit here as well. If we continue to get interest and such good and satisfying feedback we will continue delivering these courses beyond the dates already scheduled. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk PS If you'd like to get a taste of how Al presents Wicket material, you can enjoy an example http://talks.londonwicket.org/BeanEditor.mov here ; a presentation he gave at one of our London Wicket User Groups and at the last Java Web users Group. Of course, our course material is even more thoughtfully put together and pedagogically delivered. Anthony J Webster wrote: Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: Al Maw [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming Getting Started With Apache Wicket 1.3 [1] and Apache Wicket 1.3 [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Upcoming-jWeekend-Wicket-training-courses-tf4400269.html#a12553097 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upcoming jWeekend Wicket training courses
Oh I agree. I'll definitely try and go if I'm up to it. - Original Message - From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 07, 2007 11:58 AM Subject: Re: Upcoming jWeekend Wicket training courses ahh but going to the weeekend might make it easier for you to get the load of work off your shoulders:) I've been hearing the phrase we haven't got time to education, because we are too busy too much, that itself are oxymoron. That could easily be translate into : we havent got time to make ourselfs faster, because we are too busy my 2 dry cents. regards Nino Anthony J Webster wrote: Hmm nice. I'd hop on a Eurostar if I weren't submerged with work and totally exhausted! A - Original Message - From: Al Maw [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, September 07, 2007 11:02 AM Subject: Upcoming jWeekend Wicket training courses Hi folks, Cemal and I have been working hard refining jWeekend's upcoming Getting Started With Apache Wicket 1.3 [1] and Apache Wicket 1.3 [2] courses. The next ones are scheduled for September 22nd and September 29th-30th respectively. They're an excellent way to get up to speed with Wicket and develop an in-depth understanding of Models, Behaviors, the AJAX functionality, advanced validation, etc., etc. As such, they will be useful to you whether you're a beginner or a fairly seasoned Wicket programmer, so I'd encourage you to visit the jWeekend site [3] for more information and to see just what you'll be getting (and hopefully to book your place ;-) ). Hope to see some of you there! Best regards, Al [1] http://jweekend.co.uk/dev/JW7031 [2] http://jweekend.co.uk/dev/JW703 [3] http://jweekend.co.uk/ -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a disableable AjaxSubmitLink
Hi, I'm trying to create a disableable AjaxSubmitLink. When a user clicks on the link further clicks must not result in anything until the 'submission' is complete. This call be achieved by adding return false; in a call decorator. However I'm stuggling with the re-enabling. I need to strip the return false and put the original destination back. form.add(new AjaxSubmitLink(randomise, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { somethingLong(); } protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { return return false; + script; } public CharSequence decorateOnSuccessScript(CharSequence script) { // NEED TO RESET TO PREVIOUS STATE } public CharSequence decorateOnFailureScript(CharSequence script) { // NEED TO RESET TO PREVIOUS STATE } }; } }); Any help would be most appreciated. Thanks in advance Anthony
Houdini FeedBackPanel Problem
Hello, I'm having some trouble with FeedbackPanel. I have an ajax validated form and submit button. Whenever a component looses focus it and the others are validated and if there are errors these are displayed in the single feedbackpanel abover the form. This works fine however I have a problem when submitting with my AjaxButton. There is a lengthy method call in AjaxButton#onSubmit() which (as it contacts other servers) mail fail. If an exception in thrown I call error() in order to show the user that the submission process has failed. This call works, however most of the time I only see the error message for a split second. When I submit by pressing enter it seems to work OK. I think his has something to do with the componenet focus and have been trying to decern a pattern in this behaviour but so far despite numerous re-workings the feedbackpanel behaviour remains the same. I have uploaded a small quickstart project demonstrating this problem over at http://www.transcendenz.co.uk/quickstart.zip and I would be most grateful if someone with greater Wicket knowledge than I could have a quick look and tell me what I'm doing wrong. Many thanks in advance, Anthony
Re: Houdini FeedBackPanel Problem
D'oh. Ignore the javascript. I was testing sometning and it would seem I forgot to remove it all before uploading the quickstart. Is there a way I can register my error as a regular validation error from the onSubmit()? Or somehow deactivate the validation behaviour until after the submission error is displayed... Thanks Anthony - Original Message - From: Matej Knopp [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Monday, September 03, 2007 5:17 PM Subject: Re: Houdini FeedBackPanel Problem Hi, there are multiple problems with your code. First you have script type=text/javascript document.getElementById('a'). /script In your page's header. That's a javascript error (trailing .). Also you've attached validating behavior in onblur. That's the behavior that clears feedback from your panel. Your problem is that the error message is registered only during onSubmit(), but not during regular validaiton. In wicket, all validation message sare supposed to be displayed only once. So when you submit your form, the message is registered, and if after that for any reason onblur is triggered, it clears your message. -Matej On 9/3/07, Anthony J Webster [EMAIL PROTECTED] wrote: Hello, I'm having some trouble with FeedbackPanel. I have an ajax validated form and submit button. Whenever a component looses focus it and the others are validated and if there are errors these are displayed in the single feedbackpanel abover the form. This works fine however I have a problem when submitting with my AjaxButton. There is a lengthy method call in AjaxButton#onSubmit() which (as it contacts other servers) mail fail. If an exception in thrown I call error() in order to show the user that the submission process has failed. This call works, however most of the time I only see the error message for a split second. When I submit by pressing enter it seems to work OK. I think his has something to do with the componenet focus and have been trying to decern a pattern in this behaviour but so far despite numerous re-workings the feedbackpanel behaviour remains the same. I have uploaded a small quickstart project demonstrating this problem over at http://www.transcendenz.co.uk/quickstart.zip and I would be most grateful if someone with greater Wicket knowledge than I could have a quick look and tell me what I'm doing wrong. Many thanks in advance, Anthony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]