Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-19 Thread sardo
Ah yes sorry, the all important version number. It's Wicket 1.5. Yes, I *believe* the busy indicator isn't related. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Class-that-extends-AjaxTabbedPanel-does-not-remember-selected-panel-on-page-refresh-tp4650642p4650

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-19 Thread Sven Meier
Which Wicket version? The busy indicator is unrelated to the problem, is it? Regards Sven On 07/19/2012 11:29 PM, sardo wrote: Hi, I have a class that extends AjaxTabbedPanel, it displays a busy indicator while the ajax call is running (see code below). This all works fine during these ajax c

Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-19 Thread sardo
Hi, I have a class that extends AjaxTabbedPanel, it displays a busy indicator while the ajax call is running (see code below). This all works fine during these ajax calls; so a busy indicator is displayed and the tab that has been selected is displayed correctly in the view. However, if the page

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread Bertrand Guay-Paquet
Ah now I'm starting to understand. The "Wicket way" as I understand it is to validate in the form submit and its components. Your validator however will need a reference to the current value of those checkboxes. I'm guessing the checkboxes are not part of the form in your case, otherwise this i

Re: E-mail validation link

2012-07-19 Thread Michal Margiel
2012/7/19 Pierre Goupil > It looks nice, Michal! I'm browsing it and I'll come back here if I have > any questions, if it doesn't bother you. > > No problemo! we are here to help each other. So bug me as much as you want ;) btw. I was doing this for the first time. So if anyone has better, or at

Re: E-mail validation link

2012-07-19 Thread Pierre Goupil
It looks nice, Michal! I'm browsing it and I'll come back here if I have any questions, if it doesn't bother you. Thanks all! Regards, Pierre On Thu, Jul 19, 2012 at 9:10 PM, Michal Margiel wrote: > Hello, > > I've implemented this in the same way as Josh does. > My code for register partic

RE: [1.5] [6.0] dynamically named CSS, JS & images resources

2012-07-19 Thread Paul Bors
Have you tried turning the tag into a dynamic WebMarkupContainer and then switching its href attribute's value via an AttributeModifier? HTML: rel="stylesheet" type="text/css" href="css/default-styles.css"> Java: public BasePage() { htmlTag = new T

Re: E-mail validation link

2012-07-19 Thread Michal Margiel
Hello, I've implemented this in the same way as Josh does. My code for register participant for our conference[1] is open source. You can view it here[2] in particular: https://bitbucket.org/margielm/confitura/src/06588ec117c8/src/main/java/jelatyna/pages/confitura/registration/form/RegistrationF

Re: E-mail validation link

2012-07-19 Thread Pierre Goupil
Thanks Josh! :-) We'll be watching together to see if anyone has other cool solutions! Regards, Pierre On Thu, Jul 19, 2012 at 8:55 PM, Josh Kamau wrote: > I do something like this : > > >1. Create a confirmation page that takes a confirmation code as a page >parameter >2. Mount

[1.5] [6.0] dynamically named CSS, JS & images resources

2012-07-19 Thread Pierre Goupil
Good evening, I'd like to contribute CSSs & JSs to my for which names I don't know. More precisely, I'd like to be able to download a .zip, unzip it and contribute its CSS & JS content to the , plus being able to display the images of the zip thanks to the links in the CSS. Regarding the downloa

Re: E-mail validation link

2012-07-19 Thread Josh Kamau
I do something like this : 1. Create a confirmation page that takes a confirmation code as a page parameter 2. Mount a page to a url that looks like http://domain.com/confirmation?code=somesupersecretcode 3. When a user registers, i generate the code and put it somewhere in the

E-mail validation link

2012-07-19 Thread Pierre Goupil
Good evening, I'm currently trying to send a validation e-mail when a user creates an account. I'd link to provide a link in order to confirm the subscription. Is there any recommended way to do that? In particular, I don't know how to write the href of the Link in my e-mail. Any help will be mu

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread jam.ntk
I have two fields on the webpage which needs be validated for not being blank if user has selected few checkboxes which are part of the panel. So I thought of to have a validate method in the panel. Are you suggesting that instead of validating in the panel I validate in the form submit of webpage?

PagingNavigator with additionnal pageParameters

2012-07-19 Thread chimaira
Hi all, I would like to add a pagingNavigator , with a custom additional parameters , then the generated links will contain these parameters. Is it possible ? and how to do that. If not , how to deal with that. I m using wicket 1.4.16 , and I can't upgrade right now. Thank you , A.M. --

Wicket Layout Design

2012-07-19 Thread divad91
Hi, I am new to Wicket. I'm working on a multi province web application. The goal is to use the same web application for all provinces. CSS and some business logic will differ for each province. I want to know the best ways to instantiate my layout components in my base page. (Using markup inheri

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread Bertrand Guay-Paquet
Why do you have a validate() method in your panel if it isn't part of the form? When you get to the form's onSubmit() method, all the models used in the form components have already been updated. This occurs after all the validators of the form and its components are executed. Therefore, if y

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread jam.ntk
ok, I need to check the form attribute value in the vaildate() method of panel. If thats the case then i guess i cannot get the updated model in the validate method. So the workaround for me is to use getters of components (TextField, DropDownChoice etc) from webpage in the panel validate method

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread Bertrand Guay-Paquet
On 19/07/2012 3:26 AM, jam.ntk wrote: you are right that the LoginUserModel gets null. Now can you please suggest how and where should I reload the LoginUserModel? From my previous email: "You need to reload it in the LoadableDetachableModel.load() method." If in the panel, I try to call this.s

re-direct after pop-up notification

2012-07-19 Thread oliver.stef
Hi all, I wan't to display a pop-up message and after that (after the user pressed on he "OK" button inside the pop-up notification) i wan't to re-direct him to a new page. i tried to do the following: (from NewPage1) try { runMe( form );

Re: How to Logout

2012-07-19 Thread Matthias Keller
Hi Paul Thanks, I was able to fix this using your idea, even though I couldn't do this in the link itself since this URL is called from a lot of places. Thanks again Matt On 18.07.2012 19:06, Paul Bors wrote: There is no need to throw a RestartResponseAtInterceptPageException. Simply redire

Re: Wicket and Versioning

2012-07-19 Thread Alexander Adam, Emia Systems
Hi, Thanks a lot, however, doing that for every page seems to be though. Isn't there a "standard way" in wicket for doing this? I cannot believe such a base case not be covered besides workarounds.. I mean, linking through a Bookmarkable link to my stateful page creates a new version on each cli

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread jam.ntk
you are right that the LoginUserModel gets null. Now can you please suggest how and where should I reload the LoginUserModel? If in the panel, I try to call this.scmodel.getObject() in the validate() method I still get the old LoginUser Object. When the control goes back to page form submit, the L