Re: Direclty using parent's compoundpropertymodel not possible ?
Newgro wrote: Did you check http://cwiki.apache.org/WICKET/working-with-wicket-models.html already? It's explained realy well. I did already. My issue is more about model sharing with sub components and especially how to access it easily in a sub component (like for example in a panel whose representation depends on the data in the model attached to some form way above in the hierarchy). Thanks nonetheless for your help ++ zedros -- View this message in context: http://www.nabble.com/Direclty-using-parent%27s-compoundpropertymodel-not-possible---tp18356056p18398127.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]
DateTextField bug : no validation and giving null to Hibernate
Hi We're currently facing an issue with a DateTextField define like this : DateTextField yearOfPublication = new DateTextField(published, getModel(), new PatternDateConverter(,true)); add(yearOfPublication); This field is added in a panel containing as well a required field (named title). This panel is added to a form containing a feedback panel and a compound property model. A simple html submit button does the submit. In a new browser session, when I first access the page, if a put a value in this DateTextField and submit the form, no validation is made (be it of the required text field being null or the date field itself : I can put letters into it without error showing up) and everything is sent to the DB, which of course complain of the missing required title (of the required textfield). We are using Hibernate for the DAO, Guice for injection and Wicket 1.3.3. Any clue of why it happens ? Any help is really appreciated (users are waiting..). I add a file with the stack trace (I just removed some packages names) if it can help : http://www.nabble.com/file/p18379140/trace.txt trace.txt Thanks in advance bye Joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379140.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: DateTextField bug : no validation and giving null to Hibernate
Hi We have found it : it's the getRequestCycleSettings().setGatherExtendedBrowserInfo(true); setting in the application initSettings() which was causing all this fuss. Since we commented it out it works fine... shall I open a bug ? bye joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.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: DateTextField bug : no validation and giving null to Hibernate
Ok, we will :) bye -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18384019.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: DateTextField bug : no validation and giving null to Hibernate
It's not better in 1.3.4... I'll open the issue later on. bye Joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18384463.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]