Wicket 1.5 migration Issue
Hi all, I decided to do the migration from 1.4.15 to 1.5rc2 Some background on how we do stuff: In web.xml we have the WicketServlet configured with multiple servlet mappings, eg wicket.servlet /skinwithlongname/* wicket.servlet /shortskin/* Now these mappings are used to specify which style to set on the session like this: [Session Constructor] ... String u = request.getUrl().toString();// should resolve to /servletMapping/mountedPage/ according to wicket 1.4) String skin = u.substring(0, u.indexOf(/)); setStyle(skin) ... This no longer works The issue comes in the request.getUrl(). I traced it all the way back to WicketFilter.init(). In there the filterPath gets resolved, in my opinion this is not correct, as I havent even hit a request. So init() only loads the first mapping in the web.xml (/skinwithlongname). Now when I enter a page thru the mapping /shortskin and the Session gets created, request.getUrl() breaks (String index out of range) I hope I'm making sence here. But essencially request.getUrl() is not working correctly Thanks Frans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-migration-Issue-tp3331365p3331365.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] Wicket 1.5-rc2 is released!
Martin Grigorov-4 wrote: The Wicket Team is proud to introduce the second Release Candidate in Wicket 1.5 series. It includes bug fixes and improvements reported against 1.5-RC1. See the changelog for full list. More detailed migration notes are available on our [Migrate to 1.5 Wiki Page](https://cwiki.apache.org/WICKET/migration-to-wicket-15.html) Release Artifacts: * Subversion tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5-rc2 * Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12316059 * To use in Maven: dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version1.5-rc2/version /dependency * Download the full distribution: http://www.apache.org/dyn/closer.cgi/wicket/1.5-rc2 (including source) The Wicket Team! Hi I downloaded the full distribution, but it seems that the wicket-1.5-rc1.jar jar in lib missing. I think it might be a good idea to maybe add it I'm not big on compiling from source so I would appreciate it if we can get a link to download the jar... Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-1-5-rc2-is-released-tp3324596p3327689.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] Wicket 1.5-rc2 is released!
Andrea Del Bene-2 wrote: Hi fstof, maybe you meant wicket-core-1.5-rc2.jar and not wicket-1.5-rc1.jar. In full distribution still missing wicket core jar. O crap... stupid typo... I copied from my rc1 lib folder... I ment rc2. either way there is no wicket-core-1.5-rc2.jar (or wicket-1.5-rc2.jar for that matter) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-1-5-rc2-is-released-tp3324596p3327724.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] Wicket 1.5-rc2 is released!
Attila Király wrote: As a workaround you can download the missing core jar from the maven repo: http://repo1.maven.org/maven2/org/apache/wicket/wicket-core/1.5-rc2/ Awesome, Thanks Attila Király wrote: http://repo1.maven.org/maven2/org/apache/wicket/wicket-core/1.5-rc2/There is no wicket.jar because it was sliced up into 3 smaller one: core (missing from the distribution), request and util. Attila Yes I figured as much. Thanks a lot for the info... Frans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-1-5-rc2-is-released-tp3324596p3327757.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: Multiple wicket applications in a single WAR
Reinhard Nägele wrote: I don't think it is a good idea to have multiple applications in one war. Well according to Igor It's not an issue, as wicket-examples makes use of it. Although it does not use the Servlet but rather the Filter, (don't know if that could make a difference) Reinhard Nägele wrote: All apps in the same war share the same ClassLoader and thus the same static ThreadLocal instances. The point of ThreadLocal is that whatever object is stored in it is only static within that thread Reinhard Nägele wrote: There might be circumstances when the state somehow gets messed up. This I know happens (in our case) but what are the circumstances? thats what I want to get to -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3081608.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: SV: Multiple wicket applications in a single WAR
Wilhelmsen Tor Iver wrote: The ThreadLocal objects are static, yes, but the actual objects stored there are per thread and thus not static. My thoughts exactly Wilhelmsen Tor Iver wrote: The Application instance is shared between all users, but in this case there is no user state in it, the difference is which Session class is used for factorizing the user Session, and which Pages are mounted (again, for factory purposes). I'm not sure what exactly it is you are asking...? I have a bunch of pages mounted(loging pages for both applications) in my base abstract Application class's init() so both my sub Applications mount the same pages... (could this be it?) Also both my Application implementations specify their own home pages and sign in pages Could there be something wrong in my sessions? I thought it might be some static/synchronisation issue -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3081633.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: Multiple wicket applications in a single WAR
Oh and I excluded the session code for the simple reason, that I dont think it is relevant, as it is the applications that get mixed up fstof wrote: Igor Vaynberg-2 wrote: a reproducible test case :) -igor If I could reproduce it I'm pretty sure I would have been able to solve it :) The thing is It happens like once a week, and we have not seen it happen in any of our DEV/PRE environments Zilvinas Vilutis wrote: 1. No one will steal your non-working code - that's for sure :) 2. Try to explain the scenario in more details. Are you using Spring Security or just wicket? What brings you to the app after login - component.continueToOriginalDestination() ? 1. Steeling my code is the least of my problems :) 2. We are not using spring at all, Only wicket-auth-roles. (AuthenticatedWebApplication / AuthenticatedWebSession) When loading the app in the browser it loads the HomePage / ThirdPartyHomePage. Both of these have the annotation @AuthorizeInstantiation(user) which causes the redirecting the the SignInPage / SignInThirdPartyPage And that is exactly where it goes pear shaped. When calling the mapping for the one Application (MMSAHealthWebApplication) it would load the page SignInThirdPartyPage which belongs to the other app So I'll add some more code... 1. We have a base Application class: public abstract class MMSAAbstractWebApplication extends AuthenticatedWebApplication { private static Logger log = LoggerFactory.getLogger(MMSAAbstractWebApplication.class); protected void init() { log.info(initialising application); super.init(); // Get the logger IRequestLoggerSettings reqLogger = Application.get().getRequestLoggerSettings(); // Enable the logger reqLogger.setRequestLoggerEnabled(true); getRequestCycleSettings().setRenderStrategy(Settings.ONE_PASS_RENDER); mountPages(); } private void mountPages() { mountBookmarkablePage(/registration, RegistrationPage.class); ... } } 2. Then we have 2 subclasses (these are the ones mapped in web.xml) public class MMSAHealthWebApplication extends MMSAAbstractWebApplication { private static Logger log = LoggerFactory.getLogger(MMSAHealthWebApplication.class); @Override protected Class? extends AuthenticatedWebSession getWebSessionClass() { return MMSAHealthWebSession.class; } protected Class? extends WebPage getSignInPageClass() { return SignInPage.class; } public Class? extends WebPage getHomePage() { return HomePage.class; } protected void init() { log.info(initialising application); super.init(); } } And public class MMSAThirdPartyWebApplication extends MMSAAbstractWebApplication { private static Logger log = LoggerFactory.getLogger(MMSAThirdPartyWebApplication.class); @Override protected Class? extends AuthenticatedWebSession getWebSessionClass() { return MMSAThirdPartyWebSession.class; } protected Class? extends WebPage getSignInPageClass() { return SignInThirdPartyPage.class; } public Class? extends WebPage getHomePage() { return ThirdPartyHomePage.class; } protected void init() { log.info(initialising application); super.init(); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3081431.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multiple wicket applications in a single WAR
BUMP... Anyone? we run wicket 1.4.9 fstof wrote: Hi I have a web app where clients can log in as well as third party users. To do this I implemented 2 wicket applications (both extending AuthenticatedWebApplication) to keep the authentication and sessions separate from each other. The two are separated in web.xml with separate servlet mappings like so: servlet servlet-namewicket.servlet/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valueza.co.MyNormalWebApplication/param-value /init-param /servlet servlet servlet-namewicket.servlet.thirdParty/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valueza.co.MyThirdPartyWebApplication/param-value /init-param /servlet servlet-mapping servlet-namewicket.servlet/servlet-name url-pattern/app/*/url-pattern /servlet-mapping servlet-mapping servlet-namewicket.servlet.thirdParty/servlet-name url-pattern/thirdParty/*/url-pattern /servlet-mapping It all works fine and I am happy with how It works But for some wierd reason wicket gets confused. It starts mapping incorrectly, and if I come in on /app it serves up the third party application/session/login screen and vice versa This happens with no apparent reason and once its stars doing it, it doesn't stop. So the app will work fine for days, with no issues, then out of the blue it starts doing it and only recovers after a server restart We are running WebSphere Application Server 6.1 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3078212.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multiple wicket applications in a single WAR
Okay well I've given everything that I can. Please tell me what you need to be able to assist, and I'll do my best to get it for you Igor Vaynberg-2 wrote: impossible to help you since you have given us no information to go on. all i can say is that having multiple applications in a single war is fine, this is how wicket-examples project is structured and it works fine. good luck. -igor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3078234.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: Multiple wicket applications in a single WAR
That is what I noticed when I looked at the code, so I cant really tell why that could be an issue We are using WicketServlet because WebSphere 6.1 has issues with the filter (not 100% sure what the issue is, but it does not work with the filter) Wilhelmsen Tor Iver wrote: Any reason you use WicketServlet instead of WicketFilter? We use multiple apps in a war and that works fine in the filter case. In fact it seems that WicketServlet delegates to an internal WicketFilter anyway... - Tor Iver -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3078248.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: Multiple wicket applications in a single WAR
Igor Vaynberg-2 wrote: a reproducible test case :) -igor If I could reproduce it I'm pretty sure I would have been able to solve it :) The thing is It happens like once a week, and we have not seen it happen in any of our DEV/PRE environments Zilvinas Vilutis wrote: 1. No one will steal your non-working code - that's for sure :) 2. Try to explain the scenario in more details. Are you using Spring Security or just wicket? What brings you to the app after login - component.continueToOriginalDestination() ? 1. Steeling my code is the least of my problems :) 2. We are not using spring at all, Only wicket-auth-roles. (AuthenticatedWebApplication / AuthenticatedWebSession) When loading the app in the browser it loads the HomePage / ThirdPartyHomePage. Both of these have the annotation @AuthorizeInstantiation(user) which causes the redirecting the the SignInPage / SignInThirdPartyPage And that is exactly where it goes pear shaped. When calling the mapping for the one Application (MMSAHealthWebApplication) it would load the page SignInThirdPartyPage which belongs to the other app So I'll add some more code... 1. We have a base Application class: public abstract class MMSAAbstractWebApplication extends AuthenticatedWebApplication { private static Logger log = LoggerFactory.getLogger(MMSAAbstractWebApplication.class); protected void init() { log.info(initialising application); super.init(); // Get the logger IRequestLoggerSettings reqLogger = Application.get().getRequestLoggerSettings(); // Enable the logger reqLogger.setRequestLoggerEnabled(true); getRequestCycleSettings().setRenderStrategy(Settings.ONE_PASS_RENDER); mountPages(); } private void mountPages() { mountBookmarkablePage(/registration, RegistrationPage.class); ... } } 2. Then we have 2 subclasses (these are the ones mapped in web.xml) public class MMSAHealthWebApplication extends MMSAAbstractWebApplication { private static Logger log = LoggerFactory.getLogger(MMSAHealthWebApplication.class); @Override protected Class? extends AuthenticatedWebSession getWebSessionClass() { return MMSAHealthWebSession.class; } protected Class? extends WebPage getSignInPageClass() { return SignInPage.class; } public Class? extends WebPage getHomePage() { return HomePage.class; } protected void init() { log.info(initialising application); super.init(); } } And public class MMSAThirdPartyWebApplication extends MMSAAbstractWebApplication { private static Logger log = LoggerFactory.getLogger(MMSAThirdPartyWebApplication.class); @Override protected Class? extends AuthenticatedWebSession getWebSessionClass() { return MMSAThirdPartyWebSession.class; } protected Class? extends WebPage getSignInPageClass() { return SignInThirdPartyPage.class; } public Class? extends WebPage getHomePage() { return ThirdPartyHomePage.class; } protected void init() { log.info(initialising application); super.init(); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3078310.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Multiple wicket applications in a single WAR
Hi I have a web app where clients can log in as well as third party users. To do this I implemented 2 wicket applications (both extending AuthenticatedWebApplication) to keep the authentication and sessions separate from each other. The two are separated in web.xml with separate servlet mappings like so: servlet servlet-namewicket.servlet/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valueza.co.MyNormalWebApplication/param-value /init-param /servlet servlet servlet-namewicket.servlet.thirdParty/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valueza.co.MyThirdPartyWebApplication/param-value /init-param /servlet servlet-mapping servlet-namewicket.servlet/servlet-name url-pattern/app/*/url-pattern /servlet-mapping servlet-mapping servlet-namewicket.servlet.thirdParty/servlet-name url-pattern/thirdParty/*/url-pattern /servlet-mapping It all works fine and I am happy with how It works But for some wierd reason wicket gets confused. It starts mapping incorrectly, and if I come in on /app it serves up the third party application/session/login screen and vice versa This happens with no apparent reason and once its stars doing it, it doesn't stop. So the app will work fine for days, with no issues, then out of the blue it starts doing it and only recovers after a server restart We are running WebSphere Application Server 6.1 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-wicket-applications-in-a-single-WAR-tp3066793p3066793.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?
drf wrote: in which class are call calling setOutputMarkupId(true) on the wizard ? Since we are calling target.addComponent(wizard); setOUtputMarkupId should be seton the wizard itself, since that is the component we want to re-render. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-ajax-WizardButton-to-use-in-a-wizard-inside-a-ModalWindow-tp1876283p2546806.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?
Sean Brookes wrote: Thank you for posting your code on this. It is exactly the same issue I am working on. A problem I am experiencing is with adding the wizard to the target in the addOrReplace method of AjaxWizardButtonBar: target.addComponent(wizard); That is causing the init method of the Wizard class to be called. The last line of that method calls: wizardModel.reset(); The reset method resets the whole wizard back to it's initial state so when I click 'next' the navigation happens and the wizard advances to the next 'step' but then the wizard is reinitialized back to the original state. What is the best way to avoid the reset method being called? thanks in advance, Sean init(); should not be called on target.addComponent(wizard); If I look at Wizard's code, init is only called on construction. The only reason your init may be called is if you are extending Wizard (which I assume you are) and explicitly calling it from onBeforeRender() or something else maybe. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-ajax-WizardButton-to-use-in-a-wizard-inside-a-ModalWindow-tp1876283p2546833.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: intercept security check in wicket-auth-roles
Any luck with this? I'm looking to do the same thing, but how Brill Pappin wrote: I'm trying to integrate wicket-auth-roles with a token based SSO security system. I can't see where I can intercept the authentication sequence and auto-login the user based on the token. Essentially i want to catch the authentication request and authorize the user based on a token before they are redirected to the login page. Does anyone have a clue how I might go about doing that? Unfortunately most places I've looked to over ride the sequence are marked final for some reason, which makes things difficult. I'm actually at the point now where I'm thinking of writing a new auth- roles based on the current lib, but I thought I'd ask first. ... and no, I don't want to use the other more complex security lib... auth-roles is very nice and simple to use and suitable for most applications. - Brill Pappin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/intercept-security-check-in-wicket-auth-roles-tp22122773p24320938.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Stability of Wicket 1.4RC1 methods/interfaces: new development on 1.3.5 or 1.4RC1?
Okay... so the end of year came and gone... any new ideas? Martijn Dashorst wrote: ideally when bug count is zero. But were aiming before years end IMO. Martijn On 11/24/08, Jeremy Thomerson jer...@wickettraining.com wrote: The API is pretty locked for now - only a significant bug found would cause a change. A significant bug is fairly unlikely considering that so many people are running production apps against it already and the changes from 1.3 - 1.4 were not many (functionally). I don't know about a date for 1.4 at this time - Igor? Frank / etc??? I just added a paragraph to the migration page regarding this change ( http://cwiki.apache.org/confluence/display/WICKET/Migrate-1.4#Migrate-1.4-getModelnamechange ). Hope this helps! -- Jeremy Thomerson http://www.wickettraining.com On Sun, Nov 23, 2008 at 6:31 PM, Susan Liebeskind susan.liebesk...@gtri.gatech.edu wrote: Jeremy Thomerson wrote: 1.4-rc1 is safe to go with (my opinion - i have quite a few apps currently deployed on various versions of 1.4 (m2 / m3 / and now rc1). So long as the interfaces are NOT likely to make major changes (where major = along the lines of the getModel - getDefaultModel changeover), then I'm okay with going with 1.4-rc1. I also noticed that the QuickStart maven archetype works with 1.4-rc1 (it had problems with 1.4-m3 generics), so that's also a good sign that 1.4rc1 is stable. And let me ask: is there any more resolution on when 1.4 final will be out, given that RC1 is on the street? Or you just cannot predict a date at this time? You go on to describe problems with differences between 1.3 / 1.4 - what errors are you specifically seeing? I think everything is pretty well documented, but something could be missed. The biggest difference (other than generics) was probably the getModel() - getDefaultModel() change. The POM file needed some fixing up due to changes in the Spring library packaging - that was mentioned on the Wicket Migration page, so it was easy to resolve that. It was the getModel-getDefaultModel change that took some digging to find out, and which wasn't on the migration page. If the powers that be could add something about the method name change to the current migration page, that would be very helpful to others who will be migrating from 1.3. I'm feeling a bit too new to the game to feek comfortable updating the page (and that would also be making the assumption that folks other than committers can add to the Wiki which I haven't yet tried to do). Start a new thread for the errors you are seeing and we will help. Thanks. I know I can get rid of the compiler errors on my own (20+ uses of the older get/setModel to replace), so I'm not too worried about that. But do you have a sense of any best practices/metaphors new for 1.4? I don't see anything new on the wiki for 1.4 on the best practices page and that's a more subtle issue when it comes to working with the newer release - how should I be coding differently, if at all, now that we have this genericized framework? Should I start a new thread about best practices for 1.4? Thanks again. Susan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Stability-of-Wicket-1.4RC1-methods-interfaces%3A-new-development-on-1.3.5-or-1.4RC1--tp20645896p21827992.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Composite input components not updating model
Hi Thank you all for an incredibly helpful mailing list and a great framework My problem is this I have a form that gets submitted with an ajax button On the form I have a couple of composite input components. I followed the example in the book Wicket in action (sample chapter 8) to create the components. But when I submit the form and theres no validation error, the form submits fine, and all is well. But if there are errors (example: number out of range) and I fix these and submit a second time my components' convertInput() method is not called and onError() on my AjaxButton is called every time, even if I fixed the input. Also my FeedbackPanel does not go away when the error is fixed, I do target.addComponent(feedback); on the buttons' onError() and onSubmit() but as I said onSubmit() never gets called, only onError() Thanks in advance Frans -- View this message in context: http://www.nabble.com/Composite-input-components-not-updating-model-tp20618646p20618646.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Composite input components not updating model
Hahaa... Ive sorted it out... My stupid mistake... I have my own implementation of Session and override the cleanupFeedbackMessages() but did not implement anything in it, so my messages remained in the session, and buggered everything up Thanks fstof wrote: Hi Thank you all for an incredibly helpful mailing list and a great framework My problem is this I have a form that gets submitted with an ajax button On the form I have a couple of composite input components. I followed the example in the book Wicket in action (sample chapter 8) to create the components. But when I submit the form and theres no validation error, the form submits fine, and all is well. But if there are errors (example: number out of range) and I fix these and submit a second time my components' convertInput() method is not called and onError() on my AjaxButton is called every time, even if I fixed the input. Also my FeedbackPanel does not go away when the error is fixed, I do target.addComponent(feedback); on the buttons' onError() and onSubmit() but as I said onSubmit() never gets called, only onError() Thanks in advance Frans -- View this message in context: http://www.nabble.com/Composite-input-components-not-updating-model-tp20618646p20620917.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?
Ahaa... I see... Can you maybe post your implementation of the onclick method of the AjaxNextButton? sorry, but I'm a bit new with the wicket thing Thanks a lot for the help AshleyAbraham wrote: Yes, I did make it to work by creating those two Ajax buttons and putting them in a class which extends WizardButtonBar class and overrided the newButtonBar() in the Wizard class to pass that. Its been a while since I did it, so I dont have the exact details on the tip of my finger. Hope it helps, Ashley -- View this message in context: http://www.nabble.com/Is-there-an-ajax-WizardButton-to-use-in-a-wizard-inside-a-ModalWindow--tp15978434p19893571.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?
Oops... I see you are only concerned with the cancel and finish buttons... I'm looking to make everything, including the next and previous buttons to use ajax... I'm asuming I'll have to have something like this in there someware, yes? target.addComponent(wizard); fstof wrote: Ahaa... I see... Can you maybe post your implementation of the onclick method of the AjaxNextButton? sorry, but I'm a bit new with the wicket thing Thanks a lot for the help AshleyAbraham wrote: Yes, I did make it to work by creating those two Ajax buttons and putting them in a class which extends WizardButtonBar class and overrided the newButtonBar() in the Wizard class to pass that. Its been a while since I did it, so I dont have the exact details on the tip of my finger. Hope it helps, Ashley -- View this message in context: http://www.nabble.com/Is-there-an-ajax-WizardButton-to-use-in-a-wizard-inside-a-ModalWindow--tp15978434p19893631.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?
Hey man, I'm looking for something similar, have you got it working? AshleyAbraham wrote: Just to clarify: I have created three classes, the parent class is the AjaxWizardButton similar to Wicket's WizardButton and the two child classes are AjaxCancelButton and AjaxFinishButton similar to Wicket's CancelButton and FinishButton. -- View this message in context: http://www.nabble.com/Is-there-an-ajax-WizardButton-to-use-in-a-wizard-inside-a-ModalWindow--tp15978434p19879346.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]