[Wicket-user] NPE in PropertyResolver
i'm getting this in a unit test and wondering if anyone knows why that might happen: Caused by: java.lang.NullPointerException at org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:274) at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:266) at org.apache.wicket.util.lang.PropertyResolver.getPropertyClass(PropertyResolver.java:144) at org.apache.wicket.model.AbstractPropertyModel.getObjectClass(AbstractPropertyModel.java:199) at org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType(AbstractTextComponent.java:119) at org.apache.wicket.markup.html.form.AbstractTextComponent.onBeforeRender(AbstractTextComponent.java:107) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) -- View this message in context: http://www.nabble.com/NPE-in-PropertyResolver-tf3974388.html#a11281637 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Betr.: Write javascript to inlineframe
Yes, the writejavascript lines are indeed in the inlinepage constructor. In my example the code isn't inside InnerPage.html but inside InnerPage.java. My mistake. Thanks ! igor.vaynberg wrote: where are those writejavascript lines? in inlinepage constructor? -igor On 6/21/07, Marieke Vandamme [EMAIL PROTECTED] wrote: Hello, I could reproduce in a very simple example.. Could you check it for me? I don't see any exception.. MainPage.java - add(new InlineFrame(myIframe, PageMap.forName(innerframe), InnerPage.class)); add(new Form(form)); MainPage.html - form wicket:id=form/form iframe wicket:id=myIframe/iframe InnerPage.html -- JavascriptUtils.writeJavascript(this.getResponse(), var test = 'hello'); JavascriptUtils.writeJavascriptUrl(this.getResponse(), test.js); None if the javascript is written in te innerpage.. When deleting the from from MainPage, the javascript is written. Strange behaviour. Thanks in advance ! you sure you dont have an exception somewhere...check the console/logs for a stacktrace -igor DISCLAIMER http://www.tvh.be/newen/pages/emaildisclaimer.html This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Write-javascript-to-inlineframe-tf3951997.html#a11281977 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Betr.: Write javascript to inlineframe
On 6/24/07, Marieke Vandamme [EMAIL PROTECTED] wrote: Yes, the writejavascript lines are indeed in the inlinepage constructor. In my example the code isn't inside InnerPage.html but inside InnerPage.java. My mistake. Thanks ! constructor is the wrong place to write that kind of output because it might end up before html tag. you should use iheadercontributor to write javascript so it goes into the head element. -igor igor.vaynberg wrote: where are those writejavascript lines? in inlinepage constructor? -igor On 6/21/07, Marieke Vandamme [EMAIL PROTECTED] wrote: Hello, I could reproduce in a very simple example.. Could you check it for me? I don't see any exception.. MainPage.java - add(new InlineFrame(myIframe, PageMap.forName(innerframe), InnerPage.class)); add(new Form(form)); MainPage.html - form wicket:id=form/form iframe wicket:id=myIframe/iframe InnerPage.html -- JavascriptUtils.writeJavascript(this.getResponse(), var test = 'hello'); JavascriptUtils.writeJavascriptUrl(this.getResponse(), test.js); None if the javascript is written in te innerpage.. When deleting the from from MainPage, the javascript is written. Strange behaviour. Thanks in advance ! you sure you dont have an exception somewhere...check the console/logs for a stacktrace -igor DISCLAIMER http://www.tvh.be/newen/pages/emaildisclaimer.html This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Write-javascript-to-inlineframe-tf3951997.html#a11281977 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
O, then 16 a clock at jayway dk it is? Jayway address: Jakob Danefærdsvej 6b Frederiksberg C regards Nino Flemming Boller wrote: Great idea with the calendar! It is the same with me, after 16-17 is the best for me too. /Flemming On 6/22/07, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 6/22/07, * Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've created a public google calendar for us: http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com And entered your proposition Flemming. It looks ok for me. Cool, thx. I normally can't meet before 16-17. So it's either after 4 or in the weekends. Frank - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?
jweekend wrote: Now that we have confirmed the venue (1 Alie Street, near Aldgate tube - thanks to Matt Dudbridge who is also going to talk about the development of the zoomf.com site), we know that there are still a few places left for July 3rd, so let us know if you'd like to come along. You can now sign up for this at http://londonwicket.org. I've added everyone who's replied in this thread. Let me know if you can no longer make it (or want your Wicket experience rating changing ;-) ). Regards, Al - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NPE in PropertyResolver
i think in the unit test the init method that is now introduced in the PropertyREsolver isn't called: private static Map getClassesToGetAndSetters() { return (Map)applicationToClassesToGetAndSetters.get(Application.get ()); } /** * Initialize cache for this app. * * @param application */ public static void init(Application application) { applicationToClassesToGetAndSetters.put(application, new ConcurrentHashMap(64)); } AlMaw?? johan On 6/25/07, Jonathan Locke [EMAIL PROTECTED] wrote: i'm getting this in a unit test and wondering if anyone knows why that might happen: Caused by: java.lang.NullPointerException at org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter( PropertyResolver.java:274) at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter( PropertyResolver.java:266) at org.apache.wicket.util.lang.PropertyResolver.getPropertyClass( PropertyResolver.java:144) at org.apache.wicket.model.AbstractPropertyModel.getObjectClass( AbstractPropertyModel.java:199) at org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType( AbstractTextComponent.java:119) at org.apache.wicket.markup.html.form.AbstractTextComponent.onBeforeRender( AbstractTextComponent.java:107) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren( MarkupContainer.java:1449) -- View this message in context: http://www.nabble.com/NPE-in-PropertyResolver-tf3974388.html#a11281637 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NPE in PropertyResolver
maybe we shouldn't store the class itself at all: Map getAndSetters = (Map)classesToGetAndSetters.get(clz); if (getAndSetters == null) { getAndSetters = new ConcurrentHashMap(8); classesToGetAndSetters.put(clz, getAndSetters); } but do put(clz.getName(), getAndSetters) hmm, on second hand that wont help a bit, because we need to keep references to fields and methods anyway. johan On 6/25/07, Johan Compagner [EMAIL PROTECTED] wrote: i think in the unit test the init method that is now introduced in the PropertyREsolver isn't called: private static Map getClassesToGetAndSetters() { return (Map)applicationToClassesToGetAndSetters.get( Application.get()); } /** * Initialize cache for this app. * * @param application */ public static void init(Application application) { applicationToClassesToGetAndSetters.put (application, new ConcurrentHashMap(64)); } AlMaw?? johan On 6/25/07, Jonathan Locke [EMAIL PROTECTED] wrote: i'm getting this in a unit test and wondering if anyone knows why that might happen: Caused by: java.lang.NullPointerException at org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter( PropertyResolver.java:274) at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter ( PropertyResolver.java:266) at org.apache.wicket.util.lang.PropertyResolver.getPropertyClass( PropertyResolver.java:144) at org.apache.wicket.model.AbstractPropertyModel.getObjectClass( AbstractPropertyModel.java :199) at org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType( AbstractTextComponent.java:119) at org.apache.wicket.markup.html.form.AbstractTextComponent.onBeforeRender( AbstractTextComponent.java :107) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren( MarkupContainer.java:1449) -- View this message in context: http://www.nabble.com/NPE-in-PropertyResolver-tf3974388.html#a11281637 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] OT: Invitation to participate in research project
Hello there I would greatly appreciate a small amount of your time to assist with my doctoral research at The University of Newcastle. The research concerns open source licensing and we're seeking developers working on Java projects. The research is supervised, ethics-approved, anonymous and results will be freely available. Participation will also provide a custom licensing report for your project. To learn more, please visit: http://licensing-research.newcastle.edu.au Thanks for reading this email, and I hope you'll consider participating. Best regards Ben Alex (My apologies for being off-topic; this list will not be emailed again) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?
* Al Maw: You can now sign up for this at http://londonwicket.org. Hey, very nice website! Eating your own dogfood. I'm just worried by the WICKET AJAX DEBUG link :-) -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
could it be 17, then it is fine by me :-) have to get to frederiksberg... /FLemming On 6/25/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: O, then 16 a clock at jayway dk it is? Jayway address: Jakob Danefærdsvej 6b Frederiksberg C regards Nino Flemming Boller wrote: Great idea with the calendar! It is the same with me, after 16-17 is the best for me too. /Flemming On 6/22/07, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 6/22/07, * Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've created a public google calendar for us: http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com And entered your proposition Flemming. It looks ok for me. Cool, thx. I normally can't meet before 16-17. So it's either after 4 or in the weekends. Frank - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?
Jean-Baptiste Quenot wrote: * Al Maw: You can now sign up for this at http://londonwicket.org. Hey, very nice website! Eating your own dogfood. I'm just worried by the WICKET AJAX DEBUG link :-) Ahem. That'll teach me to deploy stuff when I've had a beer or two. Apologies for the three minutes of downtime we just had, but it's now sorted. Thanks. ;-) Regards, Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NPE in PropertyResolver
Johan Compagner wrote: maybe we shouldn't store the class itself at all: Map getAndSetters = (Map)classesToGetAndSetters.get(clz); if (getAndSetters == null) { getAndSetters = new ConcurrentHashMap(8); classesToGetAndSetters.put(clz, getAndSetters); } but do put(clz.getName(), getAndSetters) hmm, on second hand that wont help a bit, because we need to keep references to fields and methods anyway. Yeah, this was my rationale - it makes all the look-ups much slower, and if you WeakReference or String-reference the class, you need to build a custom key for method signatures and all the rest of it (Methods and Fields can't be WeakReferences as they'll be garbage collected behind your back). Going back to Jonathan's original unit test case, I'm thinking maybe we can lazy-init this to make unit testing more bearable. Otherwise you need to have an MockApplication, etc. stage directions: Al goes off to make it so... / Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Foldable border
Hello. I'm trying to create a foldable box component - not unlike the quick contacts and labels boxes in gmail. I want to render some markup around a border's contents - particulary, an open/close link. So far, I've made it toggle the value of Border.setBorderBodyVisible() and it works fine. But. I also want to skip the loading of the contents of borders, that are initially rendered closed. I though the deal would be to just borderBodyVisible to false and not to put any components in it at all, but unfortunatelly wicket raises an exception that components with coresponding names cannot be found in the hierarchy. This was not the behavior I was expecting, since after Component.setVisible(false) it doesn't check the markup for matching components. Can anyone help me resolve this issue? I'm using wicket 1.3, if it matters. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NPE in PropertyResolver
thanks. seems to work now. Al Maw wrote: Al Maw wrote: Going back to Jonathan's original unit test case, I'm thinking maybe we can lazy-init this to make unit testing more bearable. Done. Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/NPE-in-PropertyResolver-tf3974388.html#a11285562 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket 1.2.4 - Cross session concurrency issues
Hello all, Further to email sent out back on 15/06/07 regarding concurrency issues using Wicket 1.2.4 and load runner... Really keen to know best place to get a list of outstanding defects between releases wicket 1.2.4 and 1.2.6 is located? Are there release notes / URL links etc with this info easily available? Apache issues list starts with version 1.2.7 but this is no good in our case. Our concurrency problem can be reproduced without load testing s/w and (after exhaustively going through all our static code usages and other possible areas of contention) likely explanation now sits with the version of Wicket we're using. The Wicket website does include a section about a critical bug in 1.2.4. In our case, if this is the problem, then it has proven to be a show-stopper. We are hoping to go live with our production release of SOA app in next few days and have concluded we may need to either go with 1.2.6 (if the migration is proven to fix our defects in test environments) or apply a patch to 1.2.4 that covers just whats needed from 1.2.6 to fix the cross-session issues. One other point I'd really like to hear discussion about:- we're using WID version 2.0.1.2 which provides support for Java 1.4. At present, this limits us up to Wicket 1.3 - will there be ongoing maintenance support for users unable to migrate further due to limitations in the current app server versions of Java support available? As developers, we're definitely pro-Wicket but getting nervous regarding this project's usage of Wicket and outstanding defects. Especially with migration route options outlined above. Hope some of you can put these fears to rest? Cheers, Rich. This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. The following companies are subsidiary companies of the Legal General Group Plc which are authorised and regulated by the Financial Services Authority for advising and arranging the products shown: Legal General Partnership Services Limited (insurance and mortgages), Legal General Insurance Limited (insurance), Legal General Assurance Society Limited (life assurance, pensions and investments), Legal General Unit Trust Managers Limited and Legal General Portfolio Management Services Limited (investments). They are registered in England under numbers shown. The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 4TP. Legal General Partnership Services Limited: 5045000 Legal General Assurance Society Limited: 166055 Legal General (Unit Trust Managers) Limited: 1009418 Legal General (Portfolio Management Services) Limited: 2457525 Legal General Insurance Limited: 423930 They are registered with the Financial Services Authority under numbers shown. You can check this at www.fsa.gov.uk/register Legal General Partnership Services Limited: 300792 Legal General Assurance Society Limited: 117659 Legal General (Unit Trust Managers) Limited: 119273 Legal General (Portfolio Management Services) Limited: 146786 Legal General Insurance Limited: 202050 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AJAX causing UI state corruption....
Hello all, Further to email sent out back on 15/06/07 regarding concurrency issues using Wicket 1.2.4. Really keen to know best place to get a list of outstanding defects between releases wicket 1.2.4 and 1.2.6 is located? Are there release notes / URL links etc with this info easily available? Apache issues list starts with version 1.2.7 but this is no good in our case. Our concurrency problem can be reproduced without load testing s/w and (after exhaustively going through all our static code usages and other possible areas of contention) likely explanation now sits with the version of Wicket we're using. The Wicket website does include a section about a critical bug in 1.2.4. In our case, if this is the problem, then it has proven to be a show-stopper. Another point I'd really like to hear discussion about:- we're using WID version 2.0.1.2 which provides support for Java 1.4. At present, this limits us up to Wicket 1.3 - will there be ongoing maintenance support for users unable to migrate further due to limitations in the current app server versions of Java support available? As developers, we're definitely pro-Wicket but getting nervous regarding this project's usage of Wicket and outstanding defects. Especially with migration route options outlined above. Hope some of you can put these fears to rest? Cheers, Rich. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alex Objelean Sent: 15 June 2007 09:48 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] AJAX causing UI state corruption I recommend you to use wicket-1.2.6. This version is better and have some useful fixes, including ajax related. Regarding the transparency issue, I recommend to use the http://malsup.com/jquery/block/ jquery.block plugin , or at least take it as an example for your own js implementation. I have my own light version of this plugin.. Seldon, Richard wrote: Sure Alex, what i meant was that in order to get IFRAME to be transparent i tried a combination of setting allowtransparency=true as an attribute on the IFRAME element and then in css class definition for the IFRAME put in: filter:progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0); Alpha handles opacity allowing effectively transparency for the underlying page content (didn't work with select form component though). Note IE worked for textfields (input type=text) html form components with these settings. it was the select that failed. Below is an example snippet code with z-indexes to illustrate this point. the z-index is a constant in the example: HTML HEAD TITLEZ-Index/TITLE script function setindex() { div1.style.zIndex=text1.value; select1.style.zIndex=text2.value; getindexes(); } function getindexes(){ text1.value=div1.style.zIndex; text2.value=select1.style.zIndex; text3.value=5; } /script /HEAD BODY onload=getindexes() Div input type=text value= id=text1 name=text1 p Select input type=text value= id=text2 name=text2p IFrame input type=text value= id=text3 name=text3p input type=button value=Set Z-Index id=button1 name=button1 onclick=setindex() DIV id=div1 name=div1 style=width:200;height:200;background-color:lightblue; position:absolute;left:350;top:250;z-index:DIV/DIV select id=select1 name=select1 style=;position:absolute;left:300;top:400;width=500;z-index: size=1 optionOption1 optionOption2 optionOption3 /select IFRAME id=iframe1 name=iframe1 src= scroll=none style=width:100;height:115;position:absolute; left:400;top:300;border-color:green;z-index:5;/iframe /BODY /HTML -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alex Objelean Sent: 14 June 2007 20:43 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] AJAX causing UI state corruption Can you explain what do you mean by but iframe transparency issues meant access to underlying form component.? I am using option 2 to avoid UI state corruption and didn't have any problems with it. Seldon, Richard wrote: Experiencing a wicket problem to do with UI state corruption when using ajax tabbed panel. When the ajax links are rapidly clicked in succession various validation errors appear relating to panels that are hidden, form component drop downs lose their display UI values and UI state basically becomes v.confused. Have not observed this behavior elsewhere but somehow it seems like the ajax requests are not stacking correctly or at least are losing synch with the UI rerendering somehow. Below are all the steps (in brevity) so far attempted and some unanswered questions I still have:- (1) Tried IAjaxIndicatorAware on individual form components and overridden tabbed panel links. Used this in conjunction with a server side request throttler. Basically wrote a timer class that
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
sure... Flemming Boller wrote: could it be 17, then it is fine by me :-) have to get to frederiksberg... /FLemming On 6/25/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: O, then 16 a clock at jayway dk it is? Jayway address: Jakob Danefærdsvej 6b Frederiksberg C regards Nino Flemming Boller wrote: Great idea with the calendar! It is the same with me, after 16-17 is the best for me too. /Flemming On 6/22/07, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 6/22/07, * Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've created a public google calendar for us: http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com And entered your proposition Flemming. It looks ok for me. Cool, thx. I normally can't meet before 16-17. So it's either after 4 or in the weekends. Frank - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2.4 - Cross session concurrency issues
one of the great things about open source software is that you can investigate an issue like this yourself and suggest a patch. Seldon, Richard wrote: Hello all, Further to email sent out back on 15/06/07 regarding concurrency issues using Wicket 1.2.4 and load runner... Really keen to know best place to get a list of outstanding defects between releases wicket 1.2.4 and 1.2.6 is located? Are there release notes / URL links etc with this info easily available? Apache issues list starts with version 1.2.7 but this is no good in our case. Our concurrency problem can be reproduced without load testing s/w and (after exhaustively going through all our static code usages and other possible areas of contention) likely explanation now sits with the version of Wicket we're using. The Wicket website does include a section about a critical bug in 1.2.4. In our case, if this is the problem, then it has proven to be a show-stopper. We are hoping to go live with our production release of SOA app in next few days and have concluded we may need to either go with 1.2.6 (if the migration is proven to fix our defects in test environments) or apply a patch to 1.2.4 that covers just whats needed from 1.2.6 to fix the cross-session issues. One other point I'd really like to hear discussion about:- we're using WID version 2.0.1.2 which provides support for Java 1.4. At present, this limits us up to Wicket 1.3 - will there be ongoing maintenance support for users unable to migrate further due to limitations in the current app server versions of Java support available? As developers, we're definitely pro-Wicket but getting nervous regarding this project's usage of Wicket and outstanding defects. Especially with migration route options outlined above. Hope some of you can put these fears to rest? Cheers, Rich. This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. The following companies are subsidiary companies of the Legal General Group Plc which are authorised and regulated by the Financial Services Authority for advising and arranging the products shown: Legal General Partnership Services Limited (insurance and mortgages), Legal General Insurance Limited (insurance), Legal General Assurance Society Limited (life assurance, pensions and investments), Legal General Unit Trust Managers Limited and Legal General Portfolio Management Services Limited (investments). They are registered in England under numbers shown. The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 4TP. Legal General Partnership Services Limited: 5045000 Legal General Assurance Society Limited: 166055 Legal General (Unit Trust Managers) Limited: 1009418 Legal General (Portfolio Management Services) Limited: 2457525 Legal General Insurance Limited: 423930 They are registered with the Financial Services Authority under numbers shown. You can check this at www.fsa.gov.uk/register Legal General Partnership Services Limited: 300792 Legal General Assurance Society Limited: 117659 Legal General (Unit Trust Managers) Limited: 119273 Legal General (Portfolio Management Services) Limited: 146786 Legal General Insurance Limited: 202050 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Wicket-1.2.4---Cross-session-concurrency-issues-tf3975737.html#a11286305 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list
Re: [Wicket-user] Wicket 1.2.4 - Cross session concurrency issues
On 6/25/07, Seldon, Richard [EMAIL PROTECTED] wrote: Really keen to know best place to get a list of outstanding defects between releases wicket 1.2.4 and 1.2.6 is located? Are there release notes / URL links etc with this info easily available? Apache issues list starts with version 1.2.7 but this is no good in our case. Click on the 'Releases' tab and you can see *all* releases. Then you have release notes for 1.2.5 and 1.2.6: * http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561styleName=Htmlversion=12312236 * http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561styleName=Htmlversion=12312305 Our concurrency problem can be reproduced without load testing s/w and (after exhaustively going through all our static code usages and other possible areas of contention) likely explanation now sits with the version of Wicket we're using. The Wicket website does include a section about a critical bug in 1.2.4. In our case, if this is the problem, then it has proven to be a show-stopper. Not knowing the details of your concurrency problem, I would urge anyone to upgrade to 1.2.6, because of the security implications of said bug. Now that you have it reproducable, could you provide a quickstart/other test so we can fix it? And before that, use 1.2.6 to see if that fixes your problem? We are hoping to go live with our production release of SOA app in next few days and have concluded we may need to either go with 1.2.6 (if the migration is proven to fix our defects in test environments) or apply a patch to 1.2.4 that covers just whats needed from 1.2.6 to fix the cross-session issues. What is preventing you to upgrade to 1.2.6? One other point I'd really like to hear discussion about:- we're using WID version 2.0.1.2 which provides support for Java 1.4. At present, this limits us up to Wicket 1.3 - will there be ongoing maintenance support for users unable to migrate further due to limitations in the current app server versions of Java support available? JDK 1.5 is already 2 years available. We have held off developing 1.5 features for long enough IMO. That said, we will support Wicket 1.3 for bug fixes, and possibly some features will be backported (portlet support may be one such feature), but that is based on available interest, and the impact of said feature on 1.3. Usually we shy away from API breaks, providing a binary compatible release on maintenance branches. And yes *eventually* we will stop support for 1.2 and 1.3 as technology progresses: this is a volunteer project and we only have limited time and resources. If you are anxious with respect to support for older versions, you might want to consider paid support. Wicket Support (http://wicket-support.com) will be happy to give you options. As developers, we're definitely pro-Wicket but getting nervous regarding this project's usage of Wicket and outstanding defects. Especially with migration route options outlined above. I really don't understand what you are saying here. Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to best deffend models and entity classes
Guys, thanks for the answers but I don't think I explained my self.: I understad this is a solution. But how may I better defend models in general. What would be the purpose of a class with only getters and setters besides adding a new layer to the software? public class Person{ String firstName; String lastName; public Person(){ } public String getFirstName(){ return firstName; } public void setFirstName(String firstName){ this.firstName=firstName; } etc...etc.. } On 6/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: or create models that bind to xml, something like class XmlPropertyModel(String xml, String path) extends AbstractReadOnlyModel { Object getObject() { return XmlUtils.getPath(xml, path); } } add(new TextField(foo, new XmlPropertyModel(xml, address.street)); also create anl XmlCompoundPropertyModel(String xml) and you can do add(new TextField(address.street)); wicket can bind to anything, not just pojos. -igor On 6/22/07, severian [EMAIL PROTECTED] wrote: I'm not sure I fully understand your situation, but if your wicket front end is obtaining xml-serialised versions of business objects (or data transfer objects or whatever), can you not generate a simple Java version from the xml schema? Then perhaps your colleagues objections about having to redo the objects will disappear... -- View this message in context: http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11247700 Sent from the Wicket - User mailing list archive at Nabble.comhttp://nabble.com/ . - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to best deffend models and entity classes
Francisco Diaz Trepat - gmail wrote: What would be the purpose of a class with only getters and setters besides adding a new layer to the software? Well (in the absence of further information), there would be no purpose. But there's no need to have these extra objects in the first place. If your services are written in Java, just use the pojo BOs (or DTOs) returned by these services as your model. If your services are written in some other language (C++) and return xml-serialised versions of BOs/DTOs, then just use the xml as the model (as Igor explained). No need for another set of objects, at least not for Wicket models. Or am I still missing something? -- View this message in context: http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11288105 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Unable to find the markup for the component
i'm getting the exception below. have there been any recent changes to markup finding or is this probably my own issue? thanks, jon -- WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = thoof.web.pages.story.improve.ImproveStoryPage, path = 2:proposedStoryChangeVotingArea:proposedStoryChanges:0.ListItem, isVisible = true, isVersioned = false]] Root cause: org.apache.wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] at org.apache.wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:111) at org.apache.wicket.Component.getMarkupAttributes(Component.java:1176) at org.apache.wicket.Component.getMarkupId(Component.java:1211) at org.apache.wicket.Component.onComponentTag(Component.java:3198) at org.apache.wicket.Component.renderComponent(Component.java:2073) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1931) -- View this message in context: http://www.nabble.com/Unable-to-find-the-markup-for-the-component-tf3976741.html#a11288111 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unable to find the markup for the component
this does at least appear to have started happening after updating wicket (either in the past few days or today). Jonathan Locke wrote: i'm getting the exception below. have there been any recent changes to markup finding or is this probably my own issue? thanks, jon -- WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] Root cause: org.apache.wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] at org.apache.wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:111) at org.apache.wicket.Component.getMarkupAttributes(Component.java:1176) at org.apache.wicket.Component.getMarkupId(Component.java:1211) at org.apache.wicket.Component.onComponentTag(Component.java:3198) at org.apache.wicket.Component.renderComponent(Component.java:2073) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1931) -- View this message in context: http://www.nabble.com/Unable-to-find-the-markup-for-the-component-tf3976741.html#a11288116 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unable to find the markup for the component
ah. i think maybe it's not just me: https://issues.apache.org/jira/browse/WICKET-592 Jonathan Locke wrote: i'm getting the exception below. have there been any recent changes to markup finding or is this probably my own issue? thanks, jon -- WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] Root cause: org.apache.wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] at org.apache.wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:111) at org.apache.wicket.Component.getMarkupAttributes(Component.java:1176) at org.apache.wicket.Component.getMarkupId(Component.java:1211) at org.apache.wicket.Component.onComponentTag(Component.java:3198) at org.apache.wicket.Component.renderComponent(Component.java:2073) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1931) -- View this message in context: http://www.nabble.com/Unable-to-find-the-markup-for-the-component-tf3976741.html#a11289297 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unable to find the markup for the component
oh, i see now that's 1.2.6 not 1.3... still it's about the same stack trace. Jonathan Locke wrote: ah. i think maybe it's not just me: https://issues.apache.org/jira/browse/WICKET-592 Jonathan Locke wrote: i'm getting the exception below. have there been any recent changes to markup finding or is this probably my own issue? thanks, jon -- WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] Root cause: org.apache.wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = 0, page = com.foo.MyPage, path = 2:myArea:mylist:0.ListItem, isVisible = true, isVersioned = false]] at org.apache.wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:111) at org.apache.wicket.Component.getMarkupAttributes(Component.java:1176) at org.apache.wicket.Component.getMarkupId(Component.java:1211) at org.apache.wicket.Component.onComponentTag(Component.java:3198) at org.apache.wicket.Component.renderComponent(Component.java:2073) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1294) at org.apache.wicket.Component.render(Component.java:1931) -- View this message in context: http://www.nabble.com/Unable-to-find-the-markup-for-the-component-tf3976741.html#a11289298 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to best deffend models and entity classes
Thanks I guess I will have to agree. Although I still think there are some good reasons to have structure like clasesses that only hold value. Some times it's good to have a changing state module that does not compromise final data, until last minute. I think it's best for unitest to have models that you can fill up to test behavior on customize data. It is true that in a general sensce you are adding a class that only receives setter calls from the Form trough the IModel Implementation (PropertyModel, CompoundPropertyModel, etc), but we are talking about some hundred bytes and microseconds of calls, assigment operations are very light. f(t) On 6/25/07, severian [EMAIL PROTECTED] wrote: Francisco Diaz Trepat - gmail wrote: What would be the purpose of a class with only getters and setters besides adding a new layer to the software? Well (in the absence of further information), there would be no purpose. But there's no need to have these extra objects in the first place. If your services are written in Java, just use the pojo BOs (or DTOs) returned by these services as your model. If your services are written in some other language (C++) and return xml-serialised versions of BOs/DTOs, then just use the xml as the model (as Igor explained). No need for another set of objects, at least not for Wicket models. Or am I still missing something? -- View this message in context: http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11288105 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Xml output with extra lines after removeNodeChild
Hi guys, sorry to be asking this here. But I'm having trouble googling this out. Here is the problem. Given an xml document. I read it on my app and manipulate it, then save it when I am done. When I remove a child, the output files shows all the extra lines from the formatting and indent. So it looks like a big hole in the xml file after the node is removed. Here is an example bookshelf books book isbn3349583080580584308/isbn authorJon Stewart/author /book book isbn9900909770543356488/isbn authorStephen Colbert/author /book /books /bookshelf Node parentNode = jonStewartNode.getParentNode(); parentNode.removeChild (jonStewartNode); The result of this is the following xml. bookshelf books book isbn9900909770543356488 /isbn authorStephen Colbert/author /book /books /bookshelf How can I output the xml without this extra lines? Thanks in advance, f(t) PS: here is the initialization, and configuration of the TransformerFactory, and Transformer, and finally the save method. /** * Initializes factory instances and member variables. */ private void initialize(){ try{ //obtain a trasformer factory to save the file this.transformerFactory = TransformerFactory.newInstance(); this.transformerFactory.setAttribute(indent-number, 4); //obtain the transforme this.transformer = this.transformerFactory.newTransformer(); //setup transformer this.transformer.setOutputProperty(OutputKeys.METHOD, xml); this.transformer.setOutputProperty(OutputKeys.INDENT, yes); //this.transformer.setOutputProperty({http://xml.apache.org/xslt}indent-amount http://xml.apache.org/xslt%7Dindent-amount, 4); }catch(TransformerConfigurationException tcex){ this.logger.logException(this, errors.storage.xml.configuringXmlTransformer, true, tcex); } } /** * Saves the DOM document to the XML file. */ private void saveDocument(){ //verify that the documents is not null if(this.document==null) return; //sincronize document synchronized (this.document){ try{ //normalize document this.document.normalizeDocument(); //get a document documentSource object out of the document DOMSource documentSource= new DOMSource( this.document); //create the file output stream FileOutputStream fileOutputStream = new FileOutputStream( this.file); //create the output stream writer OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream); //create the stream streamResult out to the file Stream StreamResult streamResult = new StreamResult(outputStreamWriter); //performe the trasformation transformer.transform(documentSource, streamResult); //clean up outputStreamWriter.close(); outputStreamWriter = null; fileOutputStream.close(); fileOutputStream = null; documentSource = null; } catch (TransformerConfigurationException tcex) { // Error generated by the parser // Log Error this.logger.logException(this, errors.storage.xml.saveXMLRepositoryFile, true, tcex); } catch (TransformerException tex) { // Error generated by the parser // Log Error this.logger.logException(this, errors.storage.xml.saveXMLRepositoryFile, true, tex); } catch (Exception ex) { // Unknown error // Log Error this.logger.logException(this, errors.storage.xml.saveXMLRepositoryFile, true, ex); } } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax
* glr: FormTester formTester = this.tester.newFormTester(articleEditorForm, false); formTester.select(rscTypesList, 0); this.tester.executeAjaxEvent(articleEditorForm:rscTypesList, onchange); Can you please try with: formTester.submit(); instead of: this.tester.executeAjaxEvent(articleEditorForm:rscTypesList, onchange); To see if it's not the ajax behavior that causes problems? You may want to have a look at an existing working unit test for selecting a new value with the DropDownChoice: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/tester/apps_3/FormTesterTest.java?revision=530304view=markup -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HibernateAnnotationComponentConfigurator
Ryan Sonnek wrote: I don't want to sound like a databinder basher, Oh I hope not, I was just about to link to your post and say nice things! In my opinion, database access should be abstracted away from the UI layer altogether, which leaves the goals of databinder questionable. Does anyone remember the horror of the JSP tags that directly connected to datbases?? Spring integration is a much more desirable location for database access, and there is already excellent spring integration with wicket. The way that a Databinder application works has little in common with any JSP horror; as in all Wicket applications the page templates contain no executable code and refer only to user interface components. The coupling to the database in page templates, such as it is, is in the wicket:id of those components. But that is a Wicket innovation, the CompoundPropertyModel handling the common base case of components referring to property names of bound objects (and so table columns). You'll see (and must have seen) the same coupling in Wicket applications that use Spring or anything else, because it saves a ton of time and redundant code. And as much as you want to or need to, you can manually bind components to any object and field in any Wicket application, including one that uses Databinder. Where Databinder is unconventional is not in the templates or anything that might relate to the JSP dead horse; it is that the view components themselves encourage the direct use of Hibernate. This also saves a ton of code and time, but it violates the widespread belief that grown-up Java applications must have hand-coded database layers. For me, Hibernate itself is the only layer I require between most UI components and the database. And I'm not about to encourage users to do extra work (that I wouldn't do) just to fit a traditional Java architecture diagram. (Elsewhere, writing ActiveRecord db code in Rails's uninspired view controllers seems pretty desirable to people.) But there's plenty of room to disagree on that point, and I realize my position is still very much the minority in Java circles. I just thought I should explain it in response. (No further debate from this corner.) As for the validation configurator, I'm trilled to have it at my disposal! Yes it's something I thought about doing inside Databinder (the list is very long, and items are rarely crossed off), but it makes no differences to me if things are inside or outside, as long as they work well. Expect it to see some action in the Databinder examples. (Whenever I wrap up the next version, which Wicket 1.3's trials and travails have allowed me to procrastinate doing for far too long.) And thank you for contributing to the world of Wicket programming. Nathan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?
Are you guys gonna make a nice video out of it? ;-) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxFallackDataTables with fixed columns width
thanks igor, I tried with the simple attribute modifier, but it does nothing to the width. I've modified the color in order to test it, and it worked fine with it, but no modifications on the width chris On 6/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/23/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote: Hi everyone, I'm kinda new to wicket and I'm trying to get closer to it =) here comes the question... I was wondering if there is a way to set the width of the columns for the DataTable when it's constructed as defining the columns element, I've seen the possibility of doing this with one of the Column class, but in the DataTable I have to link it with a Model, while the other one that contains the Location property does not provide a link to a model, at least I haven't found any... If someone knows how to set the width of the columns in this DataTables, i will appreciate it very much, if you don't, thank you for the time invested =) Once again, thank you for your time and attention =) Christian there are a couple of ways. override datatable.newrowitem() and do something lile: newrowitem(..) { return super.newrowitem(..).add(new SimpleAttributeModifler(style,100px;)) or if you want to do it on column level let the column implement IStyledColumn(or something like that) which is only in latest 1.3 snapshot -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?
Eelco Hillenius wrote: Are you guys gonna make a nice video out of it? ;-) No, you'll need to come over and see it in person :-) Upayavira - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxFallackDataTables with fixed columns width
I found the place, instead of newrowitem I placed the attribute modifier in newcellitem, there it worked! thanks for the help =) On 6/25/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote: thanks igor, I tried with the simple attribute modifier, but it does nothing to the width. I've modified the color in order to test it, and it worked fine with it, but no modifications on the width chris On 6/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/23/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote: Hi everyone, I'm kinda new to wicket and I'm trying to get closer to it =) here comes the question... I was wondering if there is a way to set the width of the columns for the DataTable when it's constructed as defining the columns element, I've seen the possibility of doing this with one of the Column class, but in the DataTable I have to link it with a Model, while the other one that contains the Location property does not provide a link to a model, at least I haven't found any... If someone knows how to set the width of the columns in this DataTables, i will appreciate it very much, if you don't, thank you for the time invested =) Once again, thank you for your time and attention =) Christian there are a couple of ways. override datatable.newrowitem() and do something lile: newrowitem(..) { return super.newrowitem(..).add(new SimpleAttributeModifler(style,100px;)) or if you want to do it on column level let the column implement IStyledColumn(or something like that) which is only in latest 1.3 snapshot -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?
Let me be the first to give to the Eelco WUG (Wicket User Groups) traveling fund On Mon, 2007-06-25 at 18:24 +0100, Upayavira wrote: Eelco Hillenius wrote: Are you guys gonna make a nice video out of it? ;-) No, you'll need to come over and see it in person :-) Upayavira - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HibernateAnnotationComponentConfigurator
Hey Nathan. Thanks so much for your reply. Thanks for understanding my comments. I *really* didn't want to come off like a jerk, and I *do* think that there is a place for databinder, it's just not my cup of tea for my current project. Please feel free to take whatever I've done to use with databinder. If there's anything I can do to help make the integration as seemless as possible, let me know. On 6/25/07, Nathan Hamblen [EMAIL PROTECTED] wrote: Ryan Sonnek wrote: I don't want to sound like a databinder basher, Oh I hope not, I was just about to link to your post and say nice things! In my opinion, database access should be abstracted away from the UI layer altogether, which leaves the goals of databinder questionable. Does anyone remember the horror of the JSP tags that directly connected to datbases?? Spring integration is a much more desirable location for database access, and there is already excellent spring integration with wicket. The way that a Databinder application works has little in common with any JSP horror; as in all Wicket applications the page templates contain no executable code and refer only to user interface components. The coupling to the database in page templates, such as it is, is in the wicket:id of those components. But that is a Wicket innovation, the CompoundPropertyModel handling the common base case of components referring to property names of bound objects (and so table columns). You'll see (and must have seen) the same coupling in Wicket applications that use Spring or anything else, because it saves a ton of time and redundant code. And as much as you want to or need to, you can manually bind components to any object and field in any Wicket application, including one that uses Databinder. Where Databinder is unconventional is not in the templates or anything that might relate to the JSP dead horse; it is that the view components themselves encourage the direct use of Hibernate. This also saves a ton of code and time, but it violates the widespread belief that grown-up Java applications must have hand-coded database layers. For me, Hibernate itself is the only layer I require between most UI components and the database. And I'm not about to encourage users to do extra work (that I wouldn't do) just to fit a traditional Java architecture diagram. (Elsewhere, writing ActiveRecord db code in Rails's uninspired view controllers seems pretty desirable to people.) But there's plenty of room to disagree on that point, and I realize my position is still very much the minority in Java circles. I just thought I should explain it in response. (No further debate from this corner.) As for the validation configurator, I'm trilled to have it at my disposal! Yes it's something I thought about doing inside Databinder (the list is very long, and items are rarely crossed off), but it makes no differences to me if things are inside or outside, as long as they work well. Expect it to see some action in the Databinder examples. (Whenever I wrap up the next version, which Wicket 1.3's trials and travails have allowed me to procrastinate doing for far too long.) And thank you for contributing to the world of Wicket programming. Nathan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HibernateAnnotationComponentConfigurator
Ryan Sonnek wrote: Please feel free to take whatever I've done to use with databinder. If there's anything I can do to help make the integration as seemless as possible, let me know. Making sure that releases of it go into the central Maven repository is the only thing I can think of. I'm not sure if there are any wicket-stuff projects deployed there yet (there's nothing under org.wicketstuff), but it would be appropriate for those that reach any kind of finished state. The central is more reliable than wicketstuff.org (sorry!) and has mirrors. Nathan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Copenhagen Wicket Users Group - interested?
Cool. I have invited a colleague of mine. Frank On 6/25/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: sure... Flemming Boller wrote: could it be 17, then it is fine by me :-) have to get to frederiksberg... /FLemming On 6/25/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: O, then 16 a clock at jayway dk it is? Jayway address: Jakob Danefærdsvej 6b Frederiksberg C regards Nino Flemming Boller wrote: Great idea with the calendar! It is the same with me, after 16-17 is the best for me too. /Flemming On 6/22/07, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 6/22/07, * Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've created a public google calendar for us: http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com And entered your proposition Flemming. It looks ok for me. Cool, thx. I normally can't meet before 16-17. So it's either after 4 or in the weekends. Frank - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data.
[Wicket-user] Re-using page's look and feel
Hello everyone, We are currently helping a client with establishing web application development. We are considering several variants and right now we are looking at Wicket. I have a couple of questions. I'll really appreciate your feedback. We want to create a base page that other pages would inherit. This page would provide a unified look and feel. It would contain a header navigation and a bread cumb on top, a navigation pane on the left and the main content panel on the righ. The content of most of those items is going to be dynamic. As an example, selecting Actions on the top nav menu bar would show Actions page with its own set of commands on the left nav pane. The question is, what components are the best to serve as containers for dymanic content? Initially (and naturally) I thought that that would be Panel, but apprettly it required ID-ing all the content in the markup which doesn't fit the requirement for dynamic content. Regards, Slava Imeshev - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Automatic repaint of component?
Hi, Say I have panel A and panel B each basing their output on the same model. When panel B updates the model through an ajax request, is it possible to have panel A refresh automatically without explicitly adding it to an AjaxRequestTarget ? gr, Thies - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax
* Jean-Baptiste Quenot: * glr: FormTester formTester = this.tester.newFormTester(articleEditorForm, false); formTester.select(rscTypesList, 0); this.tester.executeAjaxEvent(articleEditorForm:rscTypesList, onchange); Can you please try with: formTester.submit(); instead of: this.tester.executeAjaxEvent(articleEditorForm:rscTypesList, onchange); To see if it's not the ajax behavior that causes problems? Indeed WicketTester was overwriting field values in two places when submitting via Ajax. I just fixed this, you can safely use executeAjaxEvent() now. The related JIRA issue is: Allow to set field values before submitting a form with Ajax in WicketTester https://issues.apache.org/jira/browse/WICKET-254 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
Thank you so much for your answer. GridView seems to achieve exactly what i need. A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). Thanks for your help. Igor Vaynberg a écrit : On 6/23/07, *Landry Soules* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I have a very simple problem: i just want to display a table of customers, with some infos on each entry. No problem to achieve that when you deal with one record per line. The problem is that i want to display 4 customers on each row, as this : = Customer1 || Customer2 || Customer3 || Customer4 firstName || firstName || firstName || firstName lastName || lastName || lastName || lastName = Customer5 || Customer6 || Customer7 || Customer8 firstName || firstName || firstName || firstName lastName || lastName || lastName || lastName It sounds so simple, but i can't figure out how to do this. Can someone help me, please ? see GridView component. example here [1] [1] http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.GridViewPage -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
just use markup inheritance directly. your base page class can have components and markup that are inherited by all subclasses: http://wicket.sourceforge.net/ExampleMarkupInheritance.html http://www.javalobby.org/java/forums/t69357.html slava.imeshev wrote: Hello everyone, We are currently helping a client with establishing web application development. We are considering several variants and right now we are looking at Wicket. I have a couple of questions. I'll really appreciate your feedback. We want to create a base page that other pages would inherit. This page would provide a unified look and feel. It would contain a header navigation and a bread cumb on top, a navigation pane on the left and the main content panel on the righ. The content of most of those items is going to be dynamic. As an example, selecting Actions on the top nav menu bar would show Actions page with its own set of commands on the left nav pane. The question is, what components are the best to serve as containers for dymanic content? Initially (and naturally) I thought that that would be Panel, but apprettly it required ID-ing all the content in the markup which doesn't fit the requirement for dynamic content. Regards, Slava Imeshev - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Re-using-page%27s-look-and-feel-tf3978581.html#a11295535 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax
* Timo Rantalaiho: (It's a pity that WicketTester has so many bugs or shortcomings; if I ever find the spare moment I'll try to understand how it works to be able to do better bug reports on it or even patches. Any help for getting into it is welcome!) Hi Timo, It's a pity that you didn't mention the JIRA issue in this email thread, as it would have helped to address the problem in a timely manner, I was not sure what bug you were exactly talking about and didn't ask. Anyway now it's fixed, I discovered it is WICKET-254. If you are aware of other bugs in WicketTester, please let us know, there is no reason why we would want to let WicketTester unmaintained, I'm sorry if you feel so. This is a great tool that we use a lot, we just have different usecases than yours obviously, or it also happens that when something doesn't work, we don't always have the time to fix it and work around it like any developer would do. Be sure that your bug reports are very valuable, it's true that you opened the issue a few months ago, but one day or another we always end up resolving it. Don't hesitate to remind us from time to time of the little cracks that went in, and keep up the good bug reports ;-) -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote: A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count Actually, in Oracle, it's significantly more complex than the above, but let's not go there (unless you're actually doing that in Oracle?). But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). I've not used MySQL for years, but I think it's select * from mytable order by whatever limit first, count where 'first' is from 0. /Gwyn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote: A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count Actually, in Oracle, it's significantly more complex than the above, but let's not go there (unless you're actually doing that in Oracle?). But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). I've not used MySQL for years, but I think it's select * from mytable order by whatever limit first, count where 'first' is from 0. If you are using an ORM tool (JPA, Hibernate, JDO) the tool might do specific optimizations for you. But I think what most people (/ implementations) do is just scroll the result set cursor to the first record needed. Eelco Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
http://www.oracle.com/technology/oramag/oracle/07-jan/o17asktom.html ;) On 6/25/07, Gwyn Evans [EMAIL PROTECTED] wrote: On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote: A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count Actually, in Oracle, it's significantly more complex than the above, but let's not go there (unless you're actually doing that in Oracle?). But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). I've not used MySQL for years, but I think it's select * from mytable order by whatever limit first, count where 'first' is from 0. /Gwyn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A trivial problem with tables that i can't manage
On 6/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote: A problem remains, however : i don't know how to implement IDataProvider.iterator(int first, int count). Must be something like this in oracle : select * from mytable where rownum=first and rownum count Actually, in Oracle, it's significantly more complex than the above, but let's not go there (unless you're actually doing that in Oracle?). But how to do this in mysql ? (row_id could do the thing, but it is only available when your primary key is integer). I've not used MySQL for years, but I think it's select * from mytable order by whatever limit first, count where 'first' is from 0. If you are using an ORM tool (JPA, Hibernate, JDO) the tool might do specific optimizations for you. But I think what most people (/ implementations) do is just scroll the result set cursor to the first record needed. Eelco In Hibernate, and more widely in JPA, you use setFirstResult() setMaxResults() on your query. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
May be I didn't explain it right. I am not looking for markup inheritance. I am looking to create a reusable component, let say, BasePage, expose accessors to containers, define markup for it as described, and then let all other pages extend the class, w/o ever touching page markup/layout. Example: class MtPage extends BasePage { MyPage() { getHeaderComponent().doSomehting(); getLeftNavigationPane().add(new MyPageNavigationBar()); getMainContentPane().add(new MyPageMainContent()); } } Jonathan Locke [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/25/2007 02:03 PM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] Re-using page's look and feel just use markup inheritance directly. your base page class can have components and markup that are inherited by all subclasses: http://wicket.sourceforge.net/ExampleMarkupInheritance.html http://www.javalobby.org/java/forums/t69357.html slava.imeshev wrote: Hello everyone, We are currently helping a client with establishing web application development. We are considering several variants and right now we are looking at Wicket. I have a couple of questions. I'll really appreciate your feedback. We want to create a base page that other pages would inherit. This page would provide a unified look and feel. It would contain a header navigation and a bread cumb on top, a navigation pane on the left and the main content panel on the righ. The content of most of those items is going to be dynamic. As an example, selecting Actions on the top nav menu bar would show Actions page with its own set of commands on the left nav pane. The question is, what components are the best to serve as containers for dymanic content? Initially (and naturally) I thought that that would be Panel, but apprettly it required ID-ing all the content in the markup which doesn't fit the requirement for dynamic content. Regards, Slava Imeshev - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Re-using-page%27s-look-and-feel-tf3978581.html#a11295535 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Classcastexception and getSession
Hi I have been troubled with a problem that is very strange. Finally I solved it, but I am unsure whether I am doing something wrong. I have a custom session implementation MySesission extends WebSession. On my first page I have a popuplink opening a normal popup-page. In that popuppage I classcast the (MySession)getSession(), but here the fun begins. If I open the popup like this public void onClick() { getRequestCycle().setResponsePage(new ChooseProductPage()); // it works like a charm } but if I do it like this public void onClick() { getRequestCycle().setResponsePage(ChooseProductPage.class); } I get a classcastexception in the line with the (MySession)getSession() Is this something I should make a jira of or am I missing something :-) As far as I can tell from the stack trace it seems to me that there might be a classloading problem. Btw I am running wicket 1.2.6, java 1.5 and OSX /Flemming === java.lang.ClassCastException: com.na.client.web.MySession at com.na.client.web.fs.ChooseProductPage.init(ChooseProductPage.java :44) at com.na.client.web.fs.ChooseProductPage.init(ChooseProductPage.java :29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage (BookmarkablePageRequestTarget.java:267) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage (BookmarkablePageRequestTarget.java:286) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents( BookmarkablePageRequestTarget.java:205) at wicket.request.compound.DefaultEventProcessorStrategy.processEvents( DefaultEventProcessorStrategy.java:65) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents( AbstractCompoundRequestCycleProcessor.java:57) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) === - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
Eelco, Thank you, but I don't think this is what I need. Those examples use static content panels, in a sense that IDs of the components are known, while I am looking for dymanic content. I will give an example Using pseudocode: Container c = super.getMainContentPane(); if (groupIsPresent) { c.add(new MyLabel(Section Header)); c.add(getGroupList()); else { c.add(new MyCreateGroupLink()); } Regards, Slava Imeshev Eelco Hillenius [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/25/2007 02:45 PM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] Re-using page's look and feel May be I didn't explain it right. I am not looking for markup inheritance. I am looking to create a reusable component, let say, BasePage, expose accessors to containers, define markup for it as described, and then let all other pages extend the class, w/o ever touching page markup/layout. Example: class MtPage extends BasePage { MyPage() { getHeaderComponent().doSomehting(); getLeftNavigationPane().add(new MyPageNavigationBar()); getMainContentPane().add(new MyPageMainContent()); } } You would indeed use panels for that. See for instance the template example in wicket-examples. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
On 6/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everyone, We are currently helping a client with establishing web application development. We are considering several variants and right now we are looking at Wicket. I have a couple of questions. I'll really appreciate your feedback. We want to create a base page that other pages would inherit. This page would provide a unified look and feel. It would contain a header navigation and a bread cumb on top, a navigation pane on the left and the main content panel on the righ. The content of most of those items is going to be dynamic. As an example, selecting Actions on the top nav menu bar would show Actions page with its own set of commands on the left nav pane. The question is, what components are the best to serve as containers for dymanic content? Initially (and naturally) I thought that that would be Panel, but apprettly it required ID-ing all the content in the markup which doesn't fit the requirement for dynamic content. Regards, Slava Imeshev see [Wicket-user] dynamic component generation with no placeholder in markup/html thread -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Automatic repaint of component?
you can build a model that has listeners and a notify() method when setobject() is called. then inside the listener you can do { if (getRequestCycle().getRequestTarget() instanceof AjaxRequestTarget) { AjaxRequestTarget t=...; t.add(panela); } -igor On 6/25/07, Thies Edeling [EMAIL PROTECTED] wrote: Hi, Say I have panel A and panel B each basing their output on the same model. When panel B updates the model through an ajax request, is it possible to have panel A refresh automatically without explicitly adding it to an AjaxRequestTarget ? gr, Thies - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
Thank you, but I don't think this is what I need. Those examples use static content panels, in a sense that IDs of the components are known, while I am looking for dymanic content. You have to know ids and elements they couple to up-front - the markup is leading and components work on particular markup. But there are no limits on what you can do with it. Can be as dynamic as you want, but you just have to translate your needs to what Wicket expects. I will give an example Using pseudocode: Container c = super.getMainContentPane(); if (groupIsPresent) { c.add(new MyLabel(Section Header)); c.add(getGroupList()); else { c.add(new MyCreateGroupLink()); } if (groupIsPresent) { add(new DisplayGroupPanel(header); } else { add(new CreateGroupLinkPanel(header); } class DisplayGroupPanel extends Panel { public DisplayGroupPanel(String id) { super(id); add(new MyLabel(section); add(new GroupList(list); } } Like that. Play around with it a bit yourself, I'm sure you'll be able to figure something out :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Classcastexception and getSession
I have been troubled with a problem that is very strange. Finally I solved it, but I am unsure whether I am doing something wrong. I have a custom session implementation MySesission extends WebSession. On my first page I have a popuplink opening a normal popup-page. In that popuppage I classcast the (MySession)getSession(), but here the fun begins. If I open the popup like this public void onClick() { getRequestCycle().setResponsePage(new ChooseProductPage()); // it works like a charm } but if I do it like this public void onClick() { getRequestCycle().setResponsePage(ChooseProductPage.class ); } I get a classcastexception in the line with the (MySession)getSession() Is this something I should make a jira of or am I missing something :-) As far as I can tell from the stack trace it seems to me that there might be a classloading problem. Btw I am running wicket 1.2.6, java 1.5 and OSX Interesting. So what session object does it return? Did you check whether you have duplicates in your class path? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
I see. I mean, I don't :) Knowing all possible layout combinatations upfront doesn't sound like very dynamic, does it? Or am I missing something? Regards, Slava Imeshev Eelco Hillenius [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/25/2007 04:27 PM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] Re-using page's look and feel Thank you, but I don't think this is what I need. Those examples use static content panels, in a sense that IDs of the components are known, while I am looking for dymanic content. You have to know ids and elements they couple to up-front - the markup is leading and components work on particular markup. But there are no limits on what you can do with it. Can be as dynamic as you want, but you just have to translate your needs to what Wicket expects. I will give an example Using pseudocode: Container c = super.getMainContentPane(); if (groupIsPresent) { c.add(new MyLabel(Section Header)); c.add(getGroupList()); else { c.add(new MyCreateGroupLink()); } if (groupIsPresent) { add(new DisplayGroupPanel(header); } else { add(new CreateGroupLinkPanel(header); } class DisplayGroupPanel extends Panel { public DisplayGroupPanel(String id) { super(id); add(new MyLabel(section); add(new GroupList(list); } } Like that. Play around with it a bit yourself, I'm sure you'll be able to figure something out :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re-using page's look and feel
On 6/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I see. I mean, I don't :) Knowing all possible layout combinatations upfront doesn't sound like very dynamic, does it? Or am I missing something? Regards, Slava Imeshev sigh, see the thread i pointed out in an earlier email. it explains exactly what you want. -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] WicketFilter NPE if filter-mapping is servlet-name rather than url-mapping
Hi All, I'm working in 1.3.0 snapshot. Two or three weeks ago it used to be possible to use a filter-mapping like this one: filter-mapping filter-namemy.wicket.filter/filter-name servlet-namemy.servlet/servlet-name /filter-mapping But it looks like a recent change to getFilterPath now forces you to use url-mapping instead. This was encouraged before in all the documentation, but not explicitly enforced. The exception I'm seeing is at line 467 in WicketFilter. I know it may seem pointless to have a servlet consumer at the end of the wicket filter chain, but not allowing us to do it feels like an unnecessary limitation, and given the codebase I'm working within (Sakai) -- my initial guess is that it's going to represent a serious hurdle to making use of Wicket. So I guess I'm wondering if there's any chance getFilterPath could be massaged to allow servlet-name as well? Thanks, James. -- James Renfro [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Interrupt page constructor and redirect to another page
Hi everyone, I have a page constructor that adds several components. However, those components are reliant on the existence of an object in the session. I'd like to test if that object is null, and if it is, redirect the user to a different page where they can make a selection that adds a valid object to the session. When I wrap a test around my constructor code, the page doesn't render if the object in the session is null because it isn't finding the components on the page: WicketMessage: Unable to find component with id 'stateName' ... Here is a simplified version of the code: public RequiresStatePage() { super(); if (((MySession)getSession()).getState() == null) { setResponsePage(SetStatePage.class); } else { add(new Label(stateName,((MySession)getSession()).getState().getName())); ... } } What is the proper way to do this? Thanks, Tauren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Interrupt page constructor and redirect to another page
On 6/25/07, Tauren Mills [EMAIL PROTECTED] wrote: Hi everyone, I have a page constructor that adds several components. However, those components are reliant on the existence of an object in the session. I'd like to test if that object is null, and if it is, redirect the user to a different page where they can make a selection that adds a valid object to the session. When I wrap a test around my constructor code, the page doesn't render if the object in the session is null because it isn't finding the components on the page: WicketMessage: Unable to find component with id 'stateName' ... Here is a simplified version of the code: public RequiresStatePage() { super(); if (((MySession)getSession()).getState() == null) { setResponsePage(SetStatePage.class); } else { add(new Label(stateName,((MySession)getSession()).getState().getName())); ... } } What is the proper way to do this? Thanks, Tauren instead of setResponsePage(SetStatePage.class) do throw new RestartResponseException(SetStatePage.class) -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Interrupt page constructor and redirect to another page
instead of setResponsePage(SetStatePage.class) do throw new RestartResponseException(SetStatePage.class) That's the workaround for Wicket 1.2. Note that in Wicket 1.3 you should be able to set the response page in the constructor. Also note that this might not actually be better; not having to use the exception imho looks better, but the advantage of using the exception is that the rest of the page you have that statement in won't be build up (and since you are not rendering it, why would you want to do that anyway?). Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketFilter NPE if filter-mapping is servlet-name rather than url-mapping
So I guess I'm wondering if there's any chance getFilterPath could be massaged to allow servlet-name as well? Could you please open a feature request[1] for that? Cheers, Eelco [1] http://issues.apache.org/jira/browse/WICKET - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Interrupt page constructor and redirect to another page
On 6/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: instead of setResponsePage(SetStatePage.class) do throw new RestartResponseException(SetStatePage.class) That's the workaround for Wicket 1.2. Note that in Wicket 1.3 you should be able to set the response page in the constructor. Also note that this might not actually be better; not having to use the exception imho looks better, but the advantage of using the exception is that the rest of the page you have that statement in won't be build up (and since you are not rendering it, why would you want to do that anyway?). Eelco if you do call setResponsePage() from another page's constructor do you end up with both of them in the pagemap? With the exception you will only end up with one, not sure about the other way around. if you do end up with both we should prob fix that somehow as the other page is not reachable? -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Interrupt page constructor and redirect to another page
if you do call setResponsePage() from another page's constructor do you end up with both of them in the pagemap? With the exception you will only end up with one, not sure about the other way around. if you do end up with both we should prob fix that somehow as the other page is not reachable? I just realized that as well. See http://issues.apache.org/jira/browse/WICKET-696 Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] where can i get the wicket1.3 documentation
Im just wondering where can i get the wicket1.3 documentation. Been searching around but to no avail Would be appreciated if somebody point me to the site. -- View this message in context: http://www.nabble.com/where-can-i-get-the-wicket1.3-documentation-tf3980393.html#a11299683 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] where can i get the wicket1.3 documentation
On 6/26/07, Lec [EMAIL PROTECTED] wrote: Im just wondering where can i get the wicket1.3 documentation. Been searching around but to no avail Would be appreciated if somebody point me to the site. -- If you mean 1.3 api javadoc, it is here: http://www.wicketstuff.org/wicket13doc/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Classcastexception and getSession
Hi Actually I had 4 different versions :-) But I removed them all, made a recompile and tried again. Same result. The object from getSession() is a MySession object. I will try and make a quickstart zipfile. and attach it. /Flemming On 6/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I have been troubled with a problem that is very strange. Finally I solved it, but I am unsure whether I am doing something wrong. I have a custom session implementation MySesission extends WebSession. On my first page I have a popuplink opening a normal popup-page. In that popuppage I classcast the (MySession)getSession(), but here the fun begins. If I open the popup like this public void onClick() { getRequestCycle().setResponsePage(new ChooseProductPage()); // it works like a charm } but if I do it like this public void onClick() { getRequestCycle().setResponsePage(ChooseProductPage.class ); } I get a classcastexception in the line with the (MySession)getSession() Is this something I should make a jira of or am I missing something :-) As far as I can tell from the stack trace it seems to me that there might be a classloading problem. Btw I am running wicket 1.2.6, java 1.5 and OSX Interesting. So what session object does it return? Did you check whether you have duplicates in your class path? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Classcastexception and getSession
On 6/26/07, Flemming Boller [EMAIL PROTECTED] wrote: Hi Actually I had 4 different versions :-) But I removed them all, made a recompile and tried again. Same result. The object from getSession() is a MySession object. I will try and make a quickstart zipfile. and attach it. /Flemming just a thought, are you using the ReloadingWicketFilter, I ran into similar problems when I made a mistake in configuring it: https://issues.apache.org/jira/browse/WICKET-685 On 6/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I have been troubled with a problem that is very strange. Finally I solved it, but I am unsure whether I am doing something wrong. I have a custom session implementation MySesission extends WebSession. On my first page I have a popuplink opening a normal popup-page. In that popuppage I classcast the (MySession)getSession(), but here the fun begins. If I open the popup like this public void onClick() { getRequestCycle().setResponsePage(new ChooseProductPage()); // it works like a charm } but if I do it like this public void onClick() { getRequestCycle().setResponsePage(ChooseProductPage.class ); } I get a classcastexception in the line with the (MySession)getSession() Is this something I should make a jira of or am I missing something :-) As far as I can tell from the stack trace it seems to me that there might be a classloading problem. Btw I am running wicket 1.2.6, java 1.5 and OSX Interesting. So what session object does it return? Did you check whether you have duplicates in your class path? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user