Re: [Wicket-user] Wicket 2.0: Form within a modal Window
It depends whether you want to use component in a dialog or a separate page. When using separate page (iframe) everything should work ok. When using component, things are bit more complicated: Non-working tab could be fixed I think, I'll have to look at that. Also there was recently a bug fixed with selects not showing in modal dialog in IE. Plus you can't use regular submit. You have to use ajax for everything. So If you need forms in modal dialog, I strongly suggest you using page content with it. -Matej Stefan Lindner wrote: I tried to put a Panel with a Form inside a model window. The form is displayes very well but I notice some strange behavior. So my questionis: are modal windows designed to work with forms and are my problems related to the early state of wicket 2.0 or were modal windows never ment to contain all wicket components? I observe the following problems 1. Pressing the tab key does not navigate to the next input field. The cursor jumps into the browser's address input field 2. When I press the submit button (i have overwritten the onSubmit mehtod of the Form) the browser (IE5+6.x/FireFox1.5) pops up a question whether I (retranslated from german) really want to change to this page or if I want to stay on the dislayed page. 3. If I press change the onSubmit method is called if all required fields are complete. The window closes, as expected. 4. If I press change the onSubmit method is NOT called if any required fiel dis missing. No feedback is dieplayed, the window closes; Stefan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Absolute URL in Link's HREF
Dear Users,I have a requirement where I need the URL in HREF of a hyperlink to be absolute path for the resource. Hyperlink is created using implementation of Link. I know the the following way of doing it -- use getURL of Link - Append it with the Server Address and ContextPath- Use Attribute Modifier to write the new absolute URL.I wanted to know if there is any setting using which I could do it more easily.Thank you. Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Absolute URL in Link's HREF
no we don't do tha anywhere in the wicket core so you have to prepend it yourself.The contextpath shouldn't be added that is a thing we already do.johanOn 9/16/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Dear Users,I have a requirement where I need the URL in HREF of a hyperlink to be absolute path for the resource. Hyperlink is created using implementation of Link. I know the the following way of doing it - - use getURL of Link - Append it with the Server Address and ContextPath- Use Attribute Modifier to write the new absolute URL.I wanted to know if there is any setting using which I could do it more easily.Thank you. Imran -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AjaxHandler ClassNotFound
Hi All I am brand new to wicket, so excuse a possible stupid question. I downloaded wicket-1.2.2 and created a basic page and application, just so I get started evaluating wicket. However, I get an error from Tomcat when the application starts up: java.lang.NoClassDefFoundError: wicket/AjaxHandler I have googled and tried the mailing list archive without success. All I could establish was that the AjaxHandler class has been removed from wicket at some point. I have only the latest distribution files of wicket, and somewhere something is still trying to use this missing class. The basic application and page I have created does nothing but add a Label component. It cannot be made any simpler. I am not using the quickstart project as a starting point. I just created a blank web project in eclipse, copied the wicket libs and dependancies to the right place and started from scratch. Any help/pointers will be greatly appreciated. I am very keen to get over this hurdle, because it seems like it might be the first component-based web framework I might consider using. After a frustrating start, however, I am close to defaulting back to whatever I used previously, but don't want to give up too quickly, just now I miss out on a possible good thing just because of one frustrating day. I have to at least get my hands dirty on a small app before reaching a verdict. Thanks in advance for feedback - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: Form within a modal Window
Just as a sidenote: I use Panels with forms as the content of the Moda Windows and they work perfect (especially with the select fix, thx Matej). The trick is to always use Ajax(Submit)Link's for everything. FrankOn 9/16/06, Matej Knopp [EMAIL PROTECTED] wrote: The fix of disabling tabs for elements inside the window is in svn.So the situation is that with current svn it should be possible to useforms even in modal dialog with panel (not page), you just have toremember always to submit the form using ajax (not regular submit). -MatejMatej Knopp wrote: It depends whether you want to use component in a dialog or a separate page. When using separate page (iframe) everything should work ok. When using component, things are bit more complicated: Non-working tab could be fixed I think, I'll have to look at that. Also there was recently a bug fixed with selects not showing in modal dialog in IE. Plus you can't use regular submit. You have to use ajax for everything. So If you need forms in modal dialog, I strongly suggest you using page content with it. -Matej Stefan Lindner wrote: I tried to put a Panel with a Form inside a model window. The form is displayes very well but I notice some strange behavior. So my questionis: are modal windows designed to work with forms and are my problems related to the early state of wicket 2.0 or were modal windows never ment to contain all wicket components? I observe the following problems 1. Pressing the tab key does not navigate to the next input field. The cursor jumps into the browser's address input field 2. When I press the submit button (i have overwritten the onSubmit mehtod of the Form) the browser (IE5+6.x/FireFox1.5) pops up a question whether I (retranslated from german) really want to change to this page or if I want to stay on the dislayed page. 3. If I press change the onSubmit method is called if all required fields are complete. The window closes, as expected. 4. If I press change the onSubmit method is NOT called if any required fiel dis missing. No feedback is dieplayed, the window closes; Stefan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: Form within a modal Window
On 9/16/06, Frank Bille [EMAIL PROTECTED] wrote: The trick is to always use Ajax(Submit)Link's for everything.Which of cause is not entirely true. The trick is to use AJAX to submit the form (as Matej stated). I use an AjaxFormSubmitBehavior attached to the forms onsubmit so I can press ENTER in a field to submit the form. :) Frank - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxHandler ClassNotFound
Willie, It appears that somehow you have a wicket-1.1 dependency in your application. What other libraries do you use in your project? wicket-contrib-dojo, wicket-contrib-scriptaculous, etc? Martijn On 9/16/06, Willie Krause [EMAIL PROTECTED] wrote: Hi All I am brand new to wicket, so excuse a possible stupid question. I downloaded wicket-1.2.2 and created a basic page and application, just so I get started evaluating wicket. However, I get an error from Tomcat when the application starts up: java.lang.NoClassDefFoundError: wicket/AjaxHandler I have googled and tried the mailing list archive without success. All I could establish was that the AjaxHandler class has been removed from wicket at some point. I have only the latest distribution files of wicket, and somewhere something is still trying to use this missing class. The basic application and page I have created does nothing but add a Label component. It cannot be made any simpler. I am not using the quickstart project as a starting point. I just created a blank web project in eclipse, copied the wicket libs and dependancies to the right place and started from scratch. Any help/pointers will be greatly appreciated. I am very keen to get over this hurdle, because it seems like it might be the first component-based web framework I might consider using. After a frustrating start, however, I am close to defaulting back to whatever I used previously, but don't want to give up too quickly, just now I miss out on a possible good thing just because of one frustrating day. I have to at least get my hands dirty on a small app before reaching a verdict. Thanks in advance for feedback - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] A Job offer
Dear Friend, Taken into account the expansion of a field of activity of our firm, which is located in Europe and engaged in modeling and fashion industry in the world markets. We require Project Manager. The job is of a partial employment, which means that you will not spend a lot of energy and time on it. The salary depends on the price of projects executed by you (about 3-5 dollars a year). If our offer has interested you and you are a serious and hardworking person, who is not afraid to open a new field of activity for yourself, you are probably the person that we are looking for. Also, we will be glad to see you in our company. To suit this job you have to be at least 21 years of age or older and be a US or Australian citizen. Tahnk you. [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] constructors and on attach 2
here is a sample of what i was doing, ( i don't have my code infront of me but i'll try to be close) new BookmarkableLink(new MyPage()) class MyPage public MyPage() { List options =DbUtil.getData() List selected = new ArrayList() add(new Palette(palette,new Model(selected),new Mode(options)...) } so if I have new bookmarkable link in a table wicket will go to the database and get data for every row of the table, instead of only getting the one set of data when you click the link. Hope this clearifize my problem - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] constructors and on attach 2
Use new BookmarkableLink(MyPage.class); On 9/16/06, Scott Lusebrink [EMAIL PROTECTED] wrote: here is a sample of what i was doing, ( i don't have my code infront of me but i'll try to be close) new BookmarkableLink(new MyPage()) class MyPage public MyPage() { List options =DbUtil.getData() List selected = new ArrayList() add(new Palette(palette,new Model(selected),new Mode(options)...) } so if I have new bookmarkable link in a table wicket will go to the database and get data for every row of the table, instead of only getting the one set of data when you click the link. Hope this clearifize my problem - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] what mail client to you use?
I am using thunderbird as well but must be doing something wrong. I have a gmail account just set up but it would be easiest for me just to stick to one mail client only. I am using thunderbird version 1.5 on linux. How do I monitor a number of interesting threads in Thunderbird? What I do now is label a message as important, then look for all important messages (filtering), click the important message, then show all messages (filtering), and then show the entire thread, then scroll down to see the new messages. Is there any way in thunderbird to view only the interesting threads and interesting threads with new replies? Cheers Erik Gustavo Santucho wrote: It was hard to follow the discussions Just curious... why? This (complicated on purpose) picture shows: a) a visited thread with an unread message b) a totally unread thread c) a totally read and closed (for me) thread d) an important (for me) visited thread with an unread message inside (I really must open the thread and read). http://www.simetrias.com/wicket/tb.png You can have the threads opened too, of course. - Gustavo. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] (no subject)
Hi Martijn Thanks for your reply, it sorted me out. Removed the wicket-contrib-dojo jarfile from WEB-INF/lib and everything works now (I did not explicitly use any of the classes contained in the dojo jar, but included it because I want to eventually do some dojo related stuff - anycase it works now, will worry about dojo later). Just glad I can move on :-) Willie Willie, It appears that somehow you have a wicket-1.1 dependency in your application. What other libraries do you use in your project? wicket-contrib-dojo, wicket-contrib-scriptaculous, etc? Martijn On 9/16/06, Willie Krause [EMAIL PROTECTED] wrote: Hi All I am brand new to wicket, so excuse a possible stupid question. I downloaded wicket-1.2.2 and created a basic page and application, just so I get started evaluating wicket. However, I get an error from Tomcat when the application starts up: java.lang.NoClassDefFoundError: wicket/AjaxHandler I have googled and tried the mailing list archive without success. All I could establish was that the AjaxHandler class has been removed from wicket at some point. I have only the latest distribution files of wicket, and somewhere something is still trying to use this missing class. The basic application and page I have created does nothing but add a Label component. It cannot be made any simpler. I am not using the quickstart project as a starting point. I just created a blank web project in eclipse, copied the wicket libs and dependancies to the right place and started from scratch. Any help/pointers will be greatly appreciated. I am very keen to get over this hurdle, because it seems like it might be the first component-based web framework I might consider using. After a frustrating start, however, I am close to defaulting back to whatever I used previously, but don't want to give up too quickly, just now I miss out on a possible good thing just because of one frustrating day. I have to at least get my hands dirty on a small app before reaching a verdict. Thanks in advance for feedback - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Velocity rendering
Hi All I have an existing application that uses velocity to render the UI. It would be nice if I can use some of my existing velocity markup in the new app (which will hopefully be written in wicket). Is there any documentation available on how to configure wicket to use velocity, I have read that it is possible? Also, how much of the benefit of using wicket will be lost if I choose to render my ui with velocity? Will I have to manually code some of the rendering logic in velocity for components that otherwise already know how to render themselves when using wicket templates? Is it advisable to rather switch my stuff to the component-based rendering? Some pointers to documentation, or general pro's and con's would be welcomed. Thx again Willie - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Velocity rendering
On our companion website you can find the Velocity integration project, which hosts the VelocityPanel (http://wicket-stuff.sourceforge.net/wicket-velocity-panel/index.html). However the website is severely out of date (the code now lives in subversion for example). Your best bet would be to check out the project from subversion, and build it yourself. You can find the instructions on how to do so on the sourceforge.net pages (http://sourceforge.net/svn/?group_id=134391). The code for Wicket 1.2 lives inside the WICKET_1_2 branch. Typically we encourge people to use Velocity panel for user editable parts of your application. For instance in a CMS or a forum. The main development is best done using Wicket itself. What would be the point of using Wicket when you template everything using velocity? Martijn On 9/16/06, Willie Krause [EMAIL PROTECTED] wrote: Hi All I have an existing application that uses velocity to render the UI. It would be nice if I can use some of my existing velocity markup in the new app (which will hopefully be written in wicket). Is there any documentation available on how to configure wicket to use velocity, I have read that it is possible? Also, how much of the benefit of using wicket will be lost if I choose to render my ui with velocity? Will I have to manually code some of the rendering logic in velocity for components that otherwise already know how to render themselves when using wicket templates? Is it advisable to rather switch my stuff to the component-based rendering? Some pointers to documentation, or general pro's and con's would be welcomed. Thx again Willie - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] constructors and on attach 2
On 9/16/06, Scott Lusebrink [EMAIL PROTECTED] wrote: here is a sample of what i was doing, ( i don't have my code infront of me but i'll try to be close) new BookmarkableLink(new MyPage())new BookmarkableLink(MyPage.class); class MyPage public MyPage() {IModel choiceModel=new LoadableDetachableModel() { Object load() { return List options =DbUtil.getData() }}; List selected = new ArrayList() add(new Palette(palette,new Model(selected),choiceModel...) }now you dont create the page needlessly, and even if you do the data wont be loaded from db until the palette needs it.-Igor so if I have new bookmarkable link in a table wicket will go to the database and get data for every row of the table, instead of only getting the one set of data when you click the link. Hope this clearifize my problem -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Sharing parts of a model between components...
Hi, I am interesting in writing components for editing domain objects. An example of such an object is Employee which has and Address and several other attributes. Also, I have Employer, which also has an Address. Now, if I want to create a component for an address that provide a part of the form, then I would like to be able to write it independent of whether it is the Employer's address or the Employee's address. In other words, I want to see an HTML template of the form: tr tdStreeet:/tdtdinput wicket:id=street type=text//td/tr other fields in a similar way... In other words, I don't want to write wicket:id=address.street because that would mean that the Address always has to be obtained from a model object using getAddress(). In other words, I would lose the ability to edit an address on its own or edit addresses that are retrieved by a different getter. A first solution to solve this is to construct my own AddresPanel (extends Panel) with a reference to an Address object. The panel also creates its own CompoundPropertyModel based on the address. I tried this, and it works, but then again, back button support will be broken because when an old version of the page is requested, the CompoundPropertyModel of the Employer/Employee and Address will have different objects since they made their own copies. It there a way in wicket 1 to share models? I was looking through the wicket 2 code and there seems to be something about shared models there. So what would be the wicket 1 way and what would be the wicket 2 way for doing this properly? Cheers Erik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] PageParameters settings
I need my WebPage to process page parameters in this format ?param1=value1param2=value2etcthe default seems to be /params/value/params/valueif i have to instantiate my WebPage based on a callback means from another external application that will send me parameters via those format options, how do i do it. I used nice url mountingany tips - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] constructors and on attach
PageLink also has constructors for a Class.A bookmarkable page link is what it says it creates a bookmarkable link But maybe you don't want that at allthen you can use a PageLink and the PageLink class with the IPageLink param i the constructor is an easy think for lazy creating pages but directly with state.johanOn 9/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: Why would you even create the page while you're actually linking toit? E.g, when you do ( 2.0 code):because he wants to link to a page, the obvious component is PageLink and it takes a Page instance in its contructor - so its the most obvious way to link to a page for a noob. you guys keep outvoting me on removing that constructor, but its just causing problems :) The whole class is not even necessary. You have Link and BookmarkableLink, implementing the auto-enable is as simple as overriding isenabled(). -Igor -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
here are just some thoughts _off the top of my head_maybe instead of doing this: ModelChange:68+ what we need to do is make our cloning even smarter.as we are cloning the model we need ot check if the internal state contains an instance of IModel - when we see that we need to traverse the upwords hierarchy of the component and check if one of them has this model instance, and if it does we dont need to clone but write in that we need to set it from that component. i dont think it solves 100% usecases, but it will take a good chunk outdoes this make sense? i have a migraine so im trying ot stay away from anything that requires thinking as it makes the pain worse :)P -IgorOn 9/16/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, I am interesting in writing components for editing domain objects. An example of such an object is Employee which has and Address and several other attributes. Also, I have Employer, which also has an Address. Now, if I want to create a component for an address that provide a part of the form, then I would like to be able to write it independent of whether it is the Employer's address or the Employee's address. In other words, I want to see an HTML template of the form: tr tdStreeet:/tdtdinput wicket:id=street type=text//td/tr other fields in a similar way... In other words, I don't want to write wicket:id=address.street because that would mean that the Address always has to be obtained from a model object using getAddress(). In other words, I would lose the ability to edit an address on its own or edit addresses that are retrieved by a different getter. A first solution to solve this is to construct my own AddresPanel (extends Panel) with a reference to an Address object. The panel also creates its own CompoundPropertyModel based on the address. I tried this, and it works, but then again, back button support will be broken because when an old version of the page is requested, the CompoundPropertyModel of the Employer/Employee and Address will have different objects since they made their own copies. It there a way in wicket 1 to share models? I was looking through the wicket 2 code and there seems to be something about shared models there. So what would be the wicket 1 way and what would be the wicket 2 way for doing this properly? Cheers Erik -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
public class AddressPanel extends Panel { public AddressPanel(MarkupContainer parent, String id, IModelAddress AddressModel) { ... } new AddressPanel(this, ap, new AddressModel(employeeModel)); new AddressPanel(this, ap, new AddressModel(employerModel)); And all the other variations you may think of. In Wicket 1.x we don't have strongly typed models (IModelType), but you can force typing in other ways if you want. Basically, the point here is that you can nest IModel instances too. As long as you do that, back button support should be fine. Eelco On 9/16/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, I am interesting in writing components for editing domain objects. An example of such an object is Employee which has and Address and several other attributes. Also, I have Employer, which also has an Address. Now, if I want to create a component for an address that provide a part of the form, then I would like to be able to write it independent of whether it is the Employer's address or the Employee's address. In other words, I want to see an HTML template of the form: tr tdStreeet:/tdtdinput wicket:id=street type=text//td/tr other fields in a similar way... In other words, I don't want to write wicket:id=address.street because that would mean that the Address always has to be obtained from a model object using getAddress(). In other words, I would lose the ability to edit an address on its own or edit addresses that are retrieved by a different getter. A first solution to solve this is to construct my own AddresPanel (extends Panel) with a reference to an Address object. The panel also creates its own CompoundPropertyModel based on the address. I tried this, and it works, but then again, back button support will be broken because when an old version of the page is requested, the CompoundPropertyModel of the Employer/Employee and Address will have different objects since they made their own copies. It there a way in wicket 1 to share models? I was looking through the wicket 2 code and there seems to be something about shared models there. So what would be the wicket 1 way and what would be the wicket 2 way for doing this properly? Cheers Erik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] constructors and on attach
At the very least, I'd be +100 for removing the constructor with the Page. The only thing that constructor does is encourage bad practice. Eelco On 9/16/06, Johan Compagner [EMAIL PROTECTED] wrote: PageLink also has constructors for a Class. A bookmarkable page link is what it says it creates a bookmarkable link But maybe you don't want that at all then you can use a PageLink and the PageLink class with the IPageLink param i the constructor is an easy think for lazy creating pages but directly with state. johan On 9/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: Why would you even create the page while you're actually linking to it? E.g, when you do ( 2.0 code): because he wants to link to a page, the obvious component is PageLink and it takes a Page instance in its contructor - so its the most obvious way to link to a page for a noob. you guys keep outvoting me on removing that constructor, but its just causing problems :) The whole class is not even necessary. You have Link and BookmarkableLink, implementing the auto-enable is as simple as overriding isenabled(). -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
no, this is not what he means. i have these types of panels all the time in my app as well, it works like thisAddressEditor(..., IModel addressModel) { super(...) setModel(new CompoundPropertyModel(addressModel)); that setmodel is what breaks things. you wrap the model you get in a compoundpropertymodel so that your children can inherit.so usually the model chain is like thisC1=CompoundPropertyModel(Person) P=PropertyModel(C1, address) == this is the input to AddressEditor panelC2=CompoundPropertyModel(P) == AdressEditor wrapperso the problem with this is that now ModelChange:79 will fail because C2!=C1 hope this clears some up, im gonna go pass out now for a while-IgorOn 9/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote:public class AddressPanel extends Panel { public AddressPanel(MarkupContainer parent, String id,IModelAddress AddressModel) { ...}new AddressPanel(this, ap, new AddressModel(employeeModel));new AddressPanel(this, ap, new AddressModel(employerModel)); And all the other variations you may think of. In Wicket 1.x we don'thave strongly typed models (IModelType), but you can force typing inother ways if you want.Basically, the point here is that you can nest IModel instances too. As long as you do that, back button support should be fine.EelcoOn 9/16/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, I am interesting in writing components for editing domain objects. An example of such an object is Employee which has and Address and several other attributes. Also, I have Employer, which also has an Address. Now, if I want to create a component for an address that provide a part of the form, then I would like to be able to write it independent of whether it is the Employer's address or the Employee's address. In other words, I want to see an HTML template of the form: tr tdStreeet:/tdtdinput wicket:id=street type=text//td/tr other fields in a similar way... In other words, I don't want to write wicket:id=address.street because that would mean that the Address always has to be obtained from a model object using getAddress(). In other words, I would lose the ability to edit an address on its own or edit addresses that are retrieved by a different getter.A first solution to solve this is to construct my own AddresPanel (extends Panel) with a reference to an Address object. The panel also creates its own CompoundPropertyModel based on the address. I tried this, and it works, but then again, back button support will be broken because when an old version of the page is requested, the CompoundPropertyModel of the Employer/Employee and Address will have different objects since they made their own copies.It there a way in wicket 1 to share models? I was looking through the wicket 2 code and there seems to be something about shared models there. So what would be the wicket 1 way and what would be the wicket 2 way for doing this properly?CheersErik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] constructors and on attach
It does one thing and one thing good: create a link to an already existing page. We use it quite often in our apps. I'm +1(00) for the constructor to stay. Read the docs and understand what you're doing. If we were to remove everything that 'encourages' bad practice we wouldn't have a framework left. Anything can and will be misused. Martijn On 9/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: At the very least, I'd be +100 for removing the constructor with the Page. The only thing that constructor does is encourage bad practice. Eelco On 9/16/06, Johan Compagner [EMAIL PROTECTED] wrote: PageLink also has constructors for a Class. A bookmarkable page link is what it says it creates a bookmarkable link But maybe you don't want that at all then you can use a PageLink and the PageLink class with the IPageLink param i the constructor is an easy think for lazy creating pages but directly with state. johan On 9/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: Why would you even create the page while you're actually linking to it? E.g, when you do ( 2.0 code): because he wants to link to a page, the obvious component is PageLink and it takes a Page instance in its contructor - so its the most obvious way to link to a page for a noob. you guys keep outvoting me on removing that constructor, but its just causing problems :) The whole class is not even necessary. You have Link and BookmarkableLink, implementing the auto-enable is as simple as overriding isenabled(). -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PageParameters settings
Yeah, use QueryStringUrlCodingStrategy, like: String path = /path/to/page2qpencoded/; mount(path, new QueryStringUrlCodingStrategy(path, Page2QP.class)); I'm adding an example of this to wicket-examples. Eelco On 9/16/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I need my WebPage to process page parameters in this format ?param1=value1param2=value2etc the default seems to be /params/value/params/value if i have to instantiate my WebPage based on a callback means from another external application that will send me parameters via those format options, how do i do it. I used nice url mounting any tips - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] constructors and on attach
On 9/16/06, Martijn Dashorst [EMAIL PROTECTED] wrote: It does one thing and one thing good: create a link to an already existing page. We use it quite often in our apps. I'm +1(00) for the constructor to stay. For what are you using it? Hopefully only for things like linking back to a page you passed in earlier. Which would easily be solved by: new Link(this, back) { public void onClick() { setResponsePage(otherPage); } } and if you really use that a lot, create your own component: class MyPageLink extends Link { private final Page page; public MyPageLink(MarkupContainer parent, String id, Page page) { this.page = page; } public void onClick() { setResponsePage(page); } } That's not a lot of work, and at least the user would be fully aware of the consequences. Read the docs and understand what you're doing. If we were to remove everything that 'encourages' bad practice we wouldn't have a framework left. Anything can and will be misused. Yeah, let's forget about private, final and all those things and let's just depend on the documentation. ;) Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] what mail client to you use?
Is there any way in thunderbird to view only the interesting threads Never tried (I don't think Watch Thread and Ignore Thread work outside NNTP?) I simply recognize my interesting threads by color (i.e. label) and then use 'N' to locate/read the next unread message. This works on the thread pane or on a message window, and follows the thread ordering. and interesting threads with new replies? TB underlines the visited thread with unread messages. So the 'interesting threads with new replies' are the colored (labeled) and underlined threads. Note that I never used any other client, so I'd suggest you follow the team members advice (they've used both) and try gmail. - Gustavo. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
how i read his mail is a bit differentDoes he reallyv do it with a inner model?i think he does this:AddressEditor(..., Address address) { super(...) setModel(new CompoundPropertyModel(address)); and address i get from person that is in a CompoundPropertyModel of the addresseditors parent..And i think the fix you propose still doesn't work. Because we still get 2 copies somewhere of Address object don't we? Because 2 times a clone will happen first in the Parent person panel and a second time in the AddressEditor panel itselfSo the link will be gone or i am missing something?.The only thing i can think of is not making a clone. But trying to read in all the fields of the object that is inside the Model (we have to know what that object is then i am affraid so we can only do this for know? models)So that Address object inside the CompoundPropertyModel will be completely read in by getting all the fields of that address object (that we can do with the current clone)But when returning we don't just set the cloned model. We try to reset all the fields of the current object with the cloned object fields.Hmm when typing this i come to the conclusion that this still doesn't work :( (Person object will be reset with its fields so it gets a cloned Address fields and then it is again out of sync.)Maybe your trick can work (going to the original model that is shared by all panels)and clone that one. But that can only happen once (for all the panels for that page version) how are we going to know/do that? And how are we going to set that back in? we can't say then component.setModel()because it is an internal Model of more real models...On 9/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, this is not what he means. i have these types of panels all the time in my app as well, it works like thisAddressEditor(..., IModel addressModel) { super(...) setModel(new CompoundPropertyModel(addressModel)); that setmodel is what breaks things. you wrap the model you get in a compoundpropertymodel so that your children can inherit.so usually the model chain is like thisC1=CompoundPropertyModel(Person) P=PropertyModel(C1, address) == this is the input to AddressEditor panelC2=CompoundPropertyModel(P) == AdressEditor wrapperso the problem with this is that now ModelChange:79 will fail because C2!=C1 hope this clears some up, im gonna go pass out now for a while-IgorOn 9/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote:public class AddressPanel extends Panel { public AddressPanel(MarkupContainer parent, String id,IModelAddress AddressModel) { ...}new AddressPanel(this, ap, new AddressModel(employeeModel));new AddressPanel(this, ap, new AddressModel(employerModel)); And all the other variations you may think of. In Wicket 1.x we don'thave strongly typed models (IModelType), but you can force typing inother ways if you want.Basically, the point here is that you can nest IModel instances too. As long as you do that, back button support should be fine.EelcoOn 9/16/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, I am interesting in writing components for editing domain objects. An example of such an object is Employee which has and Address and several other attributes. Also, I have Employer, which also has an Address. Now, if I want to create a component for an address that provide a part of the form, then I would like to be able to write it independent of whether it is the Employer's address or the Employee's address. In other words, I want to see an HTML template of the form: tr tdStreeet:/tdtdinput wicket:id=street type=text//td/tr other fields in a similar way... In other words, I don't want to write wicket:id=address.street because that would mean that the Address always has to be obtained from a model object using getAddress(). In other words, I would lose the ability to edit an address on its own or edit addresses that are retrieved by a different getter.A first solution to solve this is to construct my own AddresPanel (extends Panel) with a reference to an Address object. The panel also creates its own CompoundPropertyModel based on the address. I tried this, and it works, but then again, back button support will be broken because when an old version of the page is requested, the CompoundPropertyModel of the Employer/Employee and Address will have different objects since they made their own copies.It there a way in wicket 1 to share models? I was looking through the wicket 2 code and there seems to be something about shared models there. So what would be the wicket 1 way and what would be the wicket 2 way for doing this properly?CheersErik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
[Wicket-user] wicket-stuff contrib-gmap-examples won't run
I've installed gmap into Tomcat, but I get: wicket.WicketRuntimeException: Unable to load class with name: wicket.contrib.gmap.GMapInitializer Can anyone help with this? Thanks, -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
On 9/16/06, Johan Compagner [EMAIL PROTECTED] wrote: how i read his mail is a bit differentDoes he reallyv do it with a inner model?i think he does this:AddressEditor(..., Address address) { super(...) setModel(new CompoundPropertyModel(address)); if you do the above then we cannot do much, maintaining object identity would require some serious hackery because in this case the object can be a property of any other object nested x levels deep. so i dont think we should support this usecase. what we should support is model chaining because it is such a common usecase. Maybe your trick can work (going to the original model that is shared by all panels) and clone that one. But that can only happen once (for all the panels for that page version) how are we going to know/do that? And how are we going to set that back in? we can't say then component.setModel()because it is an internal Model of more real models...well, see what happens is that you wouldnt clone the model itself. if you encounter that the model is chaining to a model somewhere higher then what you would write replace it with a locator and its old value- so when deserializing you relink to it and push the old object. will that work? im not sure. that means modelchange has to keep the bytearray instead of the clone so on undo you deserialize. and im sure there can be plenty cases where it wont work.why would we need to keep track of what we already cloned and not cloned? we would do it for every model that was changed.-Igor On 9/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, this is not what he means. i have these types of panels all the time in my app as well, it works like thisAddressEditor(..., IModel addressModel) { super(...) setModel(new CompoundPropertyModel(addressModel)); that setmodel is what breaks things. you wrap the model you get in a compoundpropertymodel so that your children can inherit.so usually the model chain is like thisC1=CompoundPropertyModel(Person) P=PropertyModel(C1, address) == this is the input to AddressEditor panelC2=CompoundPropertyModel(P) == AdressEditor wrapperso the problem with this is that now ModelChange:79 will fail because C2!=C1 hope this clears some up, im gonna go pass out now for a while-IgorOn 9/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote:public class AddressPanel extends Panel { public AddressPanel(MarkupContainer parent, String id,IModelAddress AddressModel) { ...}new AddressPanel(this, ap, new AddressModel(employeeModel));new AddressPanel(this, ap, new AddressModel(employerModel)); And all the other variations you may think of. In Wicket 1.x we don'thave strongly typed models (IModelType), but you can force typing inother ways if you want.Basically, the point here is that you can nest IModel instances too. As long as you do that, back button support should be fine.EelcoOn 9/16/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, I am interesting in writing components for editing domain objects. An example of such an object is Employee which has and Address and several other attributes. Also, I have Employer, which also has an Address. Now, if I want to create a component for an address that provide a part of the form, then I would like to be able to write it independent of whether it is the Employer's address or the Employee's address. In other words, I want to see an HTML template of the form: tr tdStreeet:/tdtdinput wicket:id=street type=text//td/tr other fields in a similar way... In other words, I don't want to write wicket:id=address.street because that would mean that the Address always has to be obtained from a model object using getAddress(). In other words, I would lose the ability to edit an address on its own or edit addresses that are retrieved by a different getter.A first solution to solve this is to construct my own AddresPanel (extends Panel) with a reference to an Address object. The panel also creates its own CompoundPropertyModel based on the address. I tried this, and it works, but then again, back button support will be broken because when an old version of the page is requested, the CompoundPropertyModel of the Employer/Employee and Address will have different objects since they made their own copies.It there a way in wicket 1 to share models? I was looking through the wicket 2 code and there seems to be something about shared models there. So what would be the wicket 1 way and what would be the wicket 2 way for doing this properly?CheersErik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Sharing parts of a model between components...
Lets make an example thenCompoundPropertyModel modelParent = new CompoundPropertyModel(new Person());Panel parent = new Panel(xx, modelParent);CompoundPropertyModel modelChild = new CompoundPropertyModel(new PropertyModel(address,modelParent)); Panel child = new Panel(yy,modelChild);now a change happens on both components:parent.modelChanging()parent.modelChanged()child.modelChanging()child.modelChanged()1 What is exactly the state of the 2 ModelChange undo's that are now created? now an undo/rollback happens2 What exactly is set back into the parent and the child??with 1 for the parent object what do we have there. The byte array of the CompoundPropertyModel(new Person()); i guess? Because it doesn't have any inner models nothingfor the child object what do we have also a byte array of the complete thing?Then with 2I guess we set back on the parent the CompoundPropertyModel we got out of the byte array? So it now had a completely different instance that doesn't have anything to do any more with the child, what ever the child does with its byte array.So for the parent we have to keep the old compoundpropertymodel but we have to rollback the internal object (but how do we know that what the internal object is for sure (we could build this in for know models...)) But how do we do that? i can restore the byte arrayand then get the object from the model and set that to the old compound model? (again we have to know the kind of model that is used) But then for the child? how are we going to do that?The 2 wrapper models (The compound that is direct model is and the property model) dont matter to much if they were rollbackedor the old once are kept. Because the are exactly the same. But the deepest wrapped compound has to be the same and that is just the one we want to have a new one from (just like with the parent)but that can't be because then we go out of sync again..So the question is how can we keep the same deepest model instance but do replace its internalstate.. I don't know currently maybe in my sleep i will have something.. but:protected Object resolveObject(Object obj) throws IOException of the ObjectInputStreamwont help use here..Because that would be called for the deepest CompountPropertyModel that is just deserialized and if we just say ahh replace it with this one (that is the old one that we want to keep)then nothing happens because then we just have the old object instance with all the values that has to be replaced.Because resolveObject is called after the Object is fully reconstructed and then just before it gets assigned to the right internal field of the Object(s) that was(where) refering to him, we can quickly replace it with an other object.That is how we do it with not serializing components. We replace the reference with a string in the byte stream then when we encounter that string again when deserializing we quickly return the real component so that all the references are set to the component instance that we already had and didn't serialize.johan On 9/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 9/16/06, Johan Compagner [EMAIL PROTECTED] wrote: how i read his mail is a bit differentDoes he reallyv do it with a inner model?i think he does this:AddressEditor(..., Address address) { super(...) setModel(new CompoundPropertyModel(address)); if you do the above then we cannot do much, maintaining object identity would require some serious hackery because in this case the object can be a property of any other object nested x levels deep. so i dont think we should support this usecase. what we should support is model chaining because it is such a common usecase. Maybe your trick can work (going to the original model that is shared by all panels) and clone that one. But that can only happen once (for all the panels for that page version) how are we going to know/do that? And how are we going to set that back in? we can't say then component.setModel()because it is an internal Model of more real models...well, see what happens is that you wouldnt clone the model itself. if you encounter that the model is chaining to a model somewhere higher then what you would write replace it with a locator and its old value- so when deserializing you relink to it and push the old object. will that work? im not sure. that means modelchange has to keep the bytearray instead of the clone so on undo you deserialize. and im sure there can be plenty cases where it wont work.why would we need to keep track of what we already cloned and not cloned? we would do it for every model that was changed.-Igor On 9/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, this is not what he means. i have these types of panels all the time in my app as well, it works like thisAddressEditor(..., IModel addressModel) { super(...) setModel(new CompoundPropertyModel(addressModel)); that setmodel is what breaks things. you wrap the model you get in a compoundpropertymodel so that your children can inherit.so usually the
[Wicket-user] DatePicker configuration
Hello, Can somebody tell me how to use setStyle() with a DatePicker ? I tried to use : DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this configuration, when I click on the icon, the DatePicker is not displayed. If I remove the second line, it works. Another problem is to configure the DatePicker in a page which locale is switched through an Ajax link. Although the component containing the DatePicker receives the response, the locale of the DatePicker is not changed. I have to reload the teh page to get it work. Is there a solution to have the DatePicker refreshed so its locale is changed ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to build wicket 2.0 from svn download
I checked out wicket 2.0 from svn. Now I build wicket base (in subdir 'wicket') eith mvn -Dmaven.test.skip=true package to skip the failing tests. This creates a file named wicket-2.0-SNAPSHOT.jar in subdir wicket/target. Now I change to subdir 'wicket-extensions'. I do the same as above but now I get wicket-extensions\src\java\wicket\extensions\markup\html\repeater\ RepeatingView.java:[26,31] cannot find symbol symbol : class AbstractRepeater location: package wicket.markup.html.list But the wicket.markup.html.list.AbstractRepeater class is part of wicket base and it seems to be compiled without any error. What am I doing wrong? How can I build the current wicket extensions? Stefan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
One of the things I was thinking of is actually sharing the same CompoundPropertyModel but then requesting a child model of the CompoundPropertyModel using a new API call, for instance: CompoundPropertyModel personModel = new CompoundPropertyModel(person); CompoundPropertyModel addressModel = personModel.createChildModel(address); AddressPanel addressPanel = new AddressPanel(address, addressModel); So instead of passing the address part to the addresspanel, just pass an appropriate model. In this case, the propertyExpression() for a street text field of the address would get the property _expression_ from the person Model and prefix it with address. So in other words, it would return address.street which is the correct _expression_ for navigating to the street from the Person object. The child model in this case does not do any versioning but leaves this to the parent component. In concrete, we might need to redesign CompoundPropertyModel to separate implementation from interface (because the child will have a quite different implementation. For instance: abstract class AbstractCompoundPropertyModel extends implements ...{ // NEW!!! AbstractCompoundPropertyModel createChildModel(String aChildExpression); ... other methods } class CompoundPropertyModel extends AbstractCompoundPropertyModel { // current implementation with createChildModel() implementation added. } class ChildCompoundPropertyModel extends AbstractCompoundPropertyModel { private AbstractCompoundPropertyModel _parent; // parent to delegate to. } I think something like this would be a clean solution to the problem. No problems with duplicates since the person object is stored in only one model and versioned by only one model instance. It would even work if multiple child models are created that refer to the same object. No interface changes required for custom components since they simply get passed an IModel implementation as done now. In any case, I hope the idea is clear. Cheers ErikOn 9/17/06, Johan Compagner [EMAIL PROTECTED] wrote: Lets make an example thenCompoundPropertyModel modelParent = new CompoundPropertyModel(new Person());Panel parent = new Panel(xx, modelParent);CompoundPropertyModel modelChild = new CompoundPropertyModel(new PropertyModel(address,modelParent)); Panel child = new Panel(yy,modelChild);now a change happens on both components:parent.modelChanging()parent.modelChanged()child.modelChanging()child.modelChanged()1 What is exactly the state of the 2 ModelChange undo's that are now created? now an undo/rollback happens2 What exactly is set back into the parent and the child??with 1 for the parent object what do we have there. The byte array of the CompoundPropertyModel(new Person()); i guess? Because it doesn't have any inner models nothingfor the child object what do we have also a byte array of the complete thing?Then with 2I guess we set back on the parent the CompoundPropertyModel we got out of the byte array? So it now had a completely different instance that doesn't have anything to do any more with the child, what ever the child does with its byte array.So for the parent we have to keep the old compoundpropertymodel but we have to rollback the internal object (but how do we know that what the internal object is for sure (we could build this in for know models...)) But how do we do that? i can restore the byte arrayand then get the object from the model and set that to the old compound model? (again we have to know the kind of model that is used) But then for the child? how are we going to do that?The 2 wrapper models (The compound that is direct model is and the property model) dont matter to much if they were rollbackedor the old once are kept. Because the are exactly the same. But the deepest wrapped compound has to be the same and that is just the one we want to have a new one from (just like with the parent)but that can't be because then we go out of sync again..So the question is how can we keep the same deepest model instance but do replace its internalstate.. I don't know currently maybe in my sleep i will have something.. but:protected Object resolveObject(Object obj) throws IOException of the ObjectInputStreamwont help use here..Because that would be called for the deepest CompountPropertyModel that is just deserialized and if we just say ahh replace it with this one (that is the old one that we want to keep)then nothing happens because then we just have the old object instance with all the values that has to be replaced.Because resolveObject is called after the Object is fully reconstructed and then just before it gets assigned to the right internal field of the Object(s) that was(where) refering to him, we can quickly replace it with an other object.That is how we do it with not serializing components. We replace the reference with a string in the byte stream then when we encounter that string again when deserializing we quickly return the real
Re: [Wicket-user] what mail client to you use?
Hi, On 9/16/06, Gustavo Santucho [EMAIL PROTECTED] wrote: Note that I never used any other client, so I'd suggest you follow theteam members advice (they've used both) and try gmail. I already set up my gmail account and am using it as we speak. As I see it gmail has exactly (!) the right functionality for this mailling list. Gmail is based on the concept of a conversation (thread). Conversations that have new unread mails in them will appear on top. Conversations can be read at once, with a clear indication of read and unread messages. It is also possible to mark ('star') conversations and view starred conversations. I will just use gmail for the wicket list now and read only my private mail with thunderbird. Incredible how far off regular mail readers can be. -Gustavo. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to build wicket 2.0 from svn download
Do mvn install.This will install the package (wicket) into the local repository, which is where maven will look for it when compiling wicket-extensions .On 9/17/06, Stefan Lindner [EMAIL PROTECTED] wrote: I checked out wicket 2.0 from svn. Now I build wicket base (in subdir'wicket') eith mvn -Dmaven.test.skip=true package - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sharing parts of a model between components...
i think all this will do is add a buch of more checks into the core for the ChildCompoundPropertyModel, or whatever it ends up being called. the internal implementation of it will be almost identical to new PropertyModel(compoundmode, foo) the problem is, as i said, that the model is so opaq from the outside, we really need a general solution for chained models.-IgorOn 9/16/06, Erik Brakkee [EMAIL PROTECTED] wrote: One of the things I was thinking of is actually sharing the same CompoundPropertyModel but then requesting a child model of the CompoundPropertyModel using a new API call, for instance: CompoundPropertyModel personModel = new CompoundPropertyModel(person); CompoundPropertyModel addressModel = personModel.createChildModel(address); AddressPanel addressPanel = new AddressPanel(address, addressModel); So instead of passing the address part to the addresspanel, just pass an appropriate model. In this case, the propertyExpression() for a street text field of the address would get the property _expression_ from the person Model and prefix it with address. So in other words, it would return address.street which is the correct _expression_ for navigating to the street from the Person object. The child model in this case does not do any versioning but leaves this to the parent component. In concrete, we might need to redesign CompoundPropertyModel to separate implementation from interface (because the child will have a quite different implementation. For instance: abstract class AbstractCompoundPropertyModel extends implements ...{ // NEW!!! AbstractCompoundPropertyModel createChildModel(String aChildExpression); ... other methods } class CompoundPropertyModel extends AbstractCompoundPropertyModel { // current implementation with createChildModel() implementation added. } class ChildCompoundPropertyModel extends AbstractCompoundPropertyModel { private AbstractCompoundPropertyModel _parent; // parent to delegate to. } I think something like this would be a clean solution to the problem. No problems with duplicates since the person object is stored in only one model and versioned by only one model instance. It would even work if multiple child models are created that refer to the same object. No interface changes required for custom components since they simply get passed an IModel implementation as done now. In any case, I hope the idea is clear. Cheers ErikOn 9/17/06, Johan Compagner [EMAIL PROTECTED] wrote: Lets make an example thenCompoundPropertyModel modelParent = new CompoundPropertyModel(new Person());Panel parent = new Panel(xx, modelParent);CompoundPropertyModel modelChild = new CompoundPropertyModel(new PropertyModel(address,modelParent)); Panel child = new Panel(yy,modelChild);now a change happens on both components:parent.modelChanging()parent.modelChanged()child.modelChanging()child.modelChanged()1 What is exactly the state of the 2 ModelChange undo's that are now created? now an undo/rollback happens2 What exactly is set back into the parent and the child??with 1 for the parent object what do we have there. The byte array of the CompoundPropertyModel(new Person()); i guess? Because it doesn't have any inner models nothingfor the child object what do we have also a byte array of the complete thing?Then with 2I guess we set back on the parent the CompoundPropertyModel we got out of the byte array? So it now had a completely different instance that doesn't have anything to do any more with the child, what ever the child does with its byte array.So for the parent we have to keep the old compoundpropertymodel but we have to rollback the internal object (but how do we know that what the internal object is for sure (we could build this in for know models...)) But how do we do that? i can restore the byte arrayand then get the object from the model and set that to the old compound model? (again we have to know the kind of model that is used) But then for the child? how are we going to do that?The 2 wrapper models (The compound that is direct model is and the property model) dont matter to much if they were rollbackedor the old once are kept. Because the are exactly the same. But the deepest wrapped compound has to be the same and that is just the one we want to have a new one from (just like with the parent)but that can't be because then we go out of sync again..So the question is how can we keep the same deepest model instance but do replace its internalstate.. I don't know currently maybe in my sleep i will have something.. but:protected Object resolveObject(Object obj) throws IOException of the ObjectInputStreamwont help use here..Because that would be called for the deepest CompountPropertyModel that is just deserialized and if we just say ahh replace it with this one (that is the old one that we want to keep)then nothing happens because then we just have the old object instance with all the values that has to be replaced.Because
Re: [Wicket-user] How to build wicket 2.0 from svn download
Always do a clean, like 'mvn clean install -Dmaven.test.skip=true Also, if you check out wicket/-extensions/-auth/-spring/-parent you can go to directory parent and build all of them in one command (./build-all.sh) Eelco On 9/16/06, Stefan Lindner [EMAIL PROTECTED] wrote: I checked out wicket 2.0 from svn. Now I build wicket base (in subdir 'wicket') eith mvn -Dmaven.test.skip=true package to skip the failing tests. This creates a file named wicket-2.0-SNAPSHOT.jar in subdir wicket/target. Now I change to subdir 'wicket-extensions'. I do the same as above but now I get wicket-extensions\src\java\wicket\extensions\markup\html\repeater\ RepeatingView.java:[26,31] cannot find symbol symbol : class AbstractRepeater location: package wicket.markup.html.list But the wicket.markup.html.list.AbstractRepeater class is part of wicket base and it seems to be compiled without any error. What am I doing wrong? How can I build the current wicket extensions? Stefan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SUSPECT: RE: Pro Wicket: Great first book onwicket
I just purchased Pro Wicket today and have made it almost through chapter 3. I've submitted about 4-5 Errata's so far. Just small things that the technical reviewer probably should have caught since most are source code errors. Aside from that, I am enjoying the book. I admit that I haven't looked at wicket in a while. So for me, it's a nice refresher course. I'd agree that there are a lot of instances (so far) where Karthik shows you one way, tells you it's bad, and shows you a better way. But there are few, if any, books that don't do that. It's a way to lead the reader into things. Keep in mind that if you are posting on this mailing list prior to Pro Wicket being released, you will have a different perspective on the book that a reader that hasn't done anything with Wicket. So you have to keep that in mind. Anyway, I am stoked that there is a book on Wicket and I'm sure I'll be posting more on the mailing list in the coming days as I explore it deeper and try and determine if it's worth putting in my toolbox and using. I'll also be posting reviews on Amazon and JavaRanch.com when I am finished going through the book.Gregg BolingerJavaRanch Sheriff.On 9/15/06, Che Schneider [EMAIL PROTECTED] wrote:Hey Pierre-Yves,I absolutely agree with you! But then you actually have to say Not like this! when you do point out an error in your book.I don't know if you have read this book, but in quite a few places the author shows you one (absolutely valid) way of doing something, then another one that is much better, cleaner, neater. That has nothing to do with errors but with design concepts.Additionally, Igor already pointed out earlier that the biggest problem with this is, that the author does not TELL you that he is just gonna do it like this now to demonstrate something. You think Well, that's the way to do it! and then suddenly on the next pages you learn a better way! Forget what you learned before, do it like this...Well, in my other posts I elaborated this a little more and I start to feel that I cannot really express what I am trying to say. *sigh* What I want (:) is examples where the currently demonstrated concept is applicable and produces nice code that you would and should use in a production environment as well. Thus you learn the new concept, feature or whatever and also learn how and where to apply it properly. // Che -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Pierre-Yves Saumont Sent: Friday, September 15, 2006 10:53 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] SUSPECT: RE: Pro Wicket: Great first book onwicket Che, One thing I have learned is that you learn much more from your errors than from your successes. The reason is that when you make an error, you have to figure why it didn't work and how to fix it. When you have success, you already know the reason: it's just because you are very good at what you are doing (which is often an error from which you can learn... much later and at a much higher cost:-( I think showing what not to do is at least as important (and somtimes more important) as showing the right way. It's even more important when the wrong way is the more evident one. As an author, one has to show why the user should not take this route, rather than just forgetting about it and let the user discover it later at higher cost. Even very basic features are concerned. I am sure no one here ever use the default package. However, I think it is good in an introductory Java book to put the first HelloWorld class in the default package. It is then much more evident to explain why one should not do this. Pierre-Yves Che Schneider a écrit : Okay, understood. And you are right, there hopefullt (and luckily, looking back at my code from former days :) always is a progress and you learn (baby-)step by (baby-)step. However, I think that I chose to read a book in order to skip a few of these steps. Basically, I am trying to learn from other peoples mistakes and take advantage of their (superios) knowledge of a subject. So would it not be better instead of letting me go (although guided) through thesame steps I would go through by myself just introducing me to the right way of doing it? Please don't get me wrong: I still think the approach to have an application evolve while you read the book is absolutely fine! However, I would have wished for examples that actually are being written and then used (with only minor modifications) till the end. About your example: Of course you are right. You cannot overload a newbie programmer's brainwith all the features of a language from the start. But you could show him ONE anonymous class. Then another in some other place. When he get's the hang of what it is and how and where to use it, you can use the classes he already wrote and introduce some more going You have already seen how anonymous classes work - now here is another brilliant place where you
[Wicket-user] ModalWindow problems in IE 6
I've ran into a scenario where I can use the ModalWindow in FF 1.5 with no problems, but cannot get it to work in IE. I've ran the samples in both browsers and have had no problems, so I'm really baffled as to why this won't work in my app. In looking at the debugger, there is a difference between the request, here is what comes up in FF which works: INFO: INFO: Initiating Ajax GET request on /ess/app?wicket:interface=:2:adminLink::IBehaviorListenerwicket:behaviorId=0random=0.2309236093421808 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (866 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=adminScreen ![CDATA[div style=display:none id=adminScreen div id=adminScreen_content ul /ul /div /div]]/componentevaluate![CDATA[var element = document.getElementById(adminScreen_content); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=600; settings.height=400; settings.resizable=true; settings.element = element; settings.title=Documents/Links/Reminders Administration; settings.mask=semi-transparent; settings.onClose = function() { var wcall=wicketAjaxGet('/ess/app?wicket:interface=:2:adminScreen::IBehaviorListenerwicket:behaviorId=1', function() { }, function() { }); }; Wicket.Window.create(settings).show(); ]]/evaluate/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... Now here is what I see in IE. The big difference I noticed is the random parameter is not tacked on the URL. I'm not sure if that is the cause of the problem or not. INFO: INFO: initiating ajax GET request with... INFO: url: /ess/app?wicket:interface=:0:adminLink::IBehaviorListenerwicket:behaviorId=0 INFO: successHandler:function() { } INFO: failureHandler:function() { } INFO: received ajax response. 866 characters, envelope following... INFO: INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=adminScreen ![CDATA[div style=display:none id=adminScreen div id=adminScreen_content ul /ul /div /div]]/componentevaluate![CDATA[var element = document.getElementById(adminScreen_content); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=600; settings.height=400; settings.resizable=true; settings.element = element; settings.title=Documents/Links/Reminders Administration; settings.mask=semi-transparent; settings.onClose = function() { var wcall=wicketAjaxGet('/ess/app?wicket:interface=:0:adminScreen::IBehaviorListenerwicket:behaviorId=1', function() { }, function() { }); }; Wicket.Window.create(settings).show(); ]]/evaluate/ajax-response ERROR: error while processing response: [object Error].Object doesn't support this property or method INFO: invoking failure handler... Any help would be appreciated. _ Windows Live Spaces is here! Its easy to create your own personal Web site. http://spaces.live.com/signup.aspx - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker configuration
Can somebody tell me how to use setStyle() with a DatePicker settings.setStyle(settings.newStyleGreen()); or (completely custom style) settings.setStyle(new PackageResourceReference(MyDatePicker.class, myStyle.css)); DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this configuration, when I click on the icon, the DatePicker is not displayed. If I remove the second line, it works. No idea. Please take a look at what jscalendar does/ expects, as many fields are just a means to pass values through to that components. Read about jscalendar here: http://www.dynarch.com/projects/calendar/ Another problem is to configure the DatePicker in a page which locale is switched through an Ajax link. Although the component containing the DatePicker receives the response, the locale of the DatePicker is not changed. I have to reload the teh page to get it work. Is there a solution to have the DatePicker refreshed so its locale is changed ? Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker setting.
Hi I am using datePicker the same way as it is shown in forminput example. but i need to position the bottom of popup at top edge of my textfield. i tried using DatePickerSettings dps = new DatePickerSettings(); dps.setAlign(T); add(new DatePicker(abc,New TextField(a,Date.class),dps)) it gives be script error and datePicker becomes non-active , if i remove align setting then it works fine ..but it is align at the bottomof my page so it is not visible. pls. suggest how to position it. Please take a look at jscalendar's documentation: http://www.dynarch.com/projects/calendar/. Most of the settings are simply pass throughs to the settings of this javascript component. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ModalWindow problems in IE 6
Which version do you use? Did you try with the latest from SVN? Eelco On 9/16/06, Allen James [EMAIL PROTECTED] wrote: I've ran into a scenario where I can use the ModalWindow in FF 1.5 with no problems, but cannot get it to work in IE. I've ran the samples in both browsers and have had no problems, so I'm really baffled as to why this won't work in my app. In looking at the debugger, there is a difference between the request, here is what comes up in FF which works: INFO: INFO: Initiating Ajax GET request on /ess/app?wicket:interface=:2:adminLink::IBehaviorListenerwicket:behaviorId=0random=0.2309236093421808 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (866 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=adminScreen ![CDATA[div style=display:none id=adminScreen div id=adminScreen_content ul /ul /div /div]]/componentevaluate![CDATA[var element = document.getElementById(adminScreen_content); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=600; settings.height=400; settings.resizable=true; settings.element = element; settings.title=Documents/Links/Reminders Administration; settings.mask=semi-transparent; settings.onClose = function() { var wcall=wicketAjaxGet('/ess/app?wicket:interface=:2:adminScreen::IBehaviorListenerwicket:behaviorId=1', function() { }, function() { }); }; Wicket.Window.create(settings).show(); ]]/evaluate/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... Now here is what I see in IE. The big difference I noticed is the random parameter is not tacked on the URL. I'm not sure if that is the cause of the problem or not. INFO: INFO: initiating ajax GET request with... INFO: url: /ess/app?wicket:interface=:0:adminLink::IBehaviorListenerwicket:behaviorId=0 INFO: successHandler:function() { } INFO: failureHandler:function() { } INFO: received ajax response. 866 characters, envelope following... INFO: INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=adminScreen ![CDATA[div style=display:none id=adminScreen div id=adminScreen_content ul /ul /div /div]]/componentevaluate![CDATA[var element = document.getElementById(adminScreen_content); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=600; settings.height=400; settings.resizable=true; settings.element = element; settings.title=Documents/Links/Reminders Administration; settings.mask=semi-transparent; settings.onClose = function() { var wcall=wicketAjaxGet('/ess/app?wicket:interface=:0:adminScreen::IBehaviorListenerwicket:behaviorId=1', function() { }, function() { }); }; Wicket.Window.create(settings).show(); ]]/evaluate/ajax-response ERROR: error while processing response: [object Error].Object doesn't support this property or method INFO: invoking failure handler... Any help would be appreciated. _ Windows Live Spaces is here! It's easy to create your own personal Web site. http://spaces.live.com/signup.aspx - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user