Re: [Wicket-user] Form submit from outside Wicket
in 2.0 you can submit to a stateless form. Then you have all your validation and converting.Maybe we will backport this to 1.3johanOn 8/23/06, Nili Adoram [EMAIL PROTECTED] wrote: But then I would not have the Form.process() method called with all itsbenefits (form validation etc).Is it valid to invoke it from page constructor?Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johanOn 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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 listWicket-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
Re: [Wicket-user] Form submit from outside Wicket
i guess the most pita thing about this would be to properly map your request parameters to component paths of form components so wicket can properly associate request parameters with the proper form components.maybe some util methods in statelessform to help with this somewhoe - since its sucha a damn bare class :) -IgorOn 8/22/06, Johan Compagner [EMAIL PROTECTED] wrote: in 2.0 you can submit to a stateless form. Then you have all your validation and converting.Maybe we will backport this to 1.3johan On 8/23/06, Nili Adoram [EMAIL PROTECTED] wrote: But then I would not have the Form.process() method called with all itsbenefits (form validation etc).Is it valid to invoke it from page constructor?Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johanOn 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: 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 listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using
Re: [Wicket-user] Form submit from outside Wicket
override:FormComponent.getInputName()and make sure they are in sync.johanOn 8/23/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i guess the most pita thing about this would be to properly map your request parameters to component paths of form components so wicket can properly associate request parameters with the proper form components. maybe some util methods in statelessform to help with this somewhoe - since its sucha a damn bare class :) -IgorOn 8/22/06, Johan Compagner [EMAIL PROTECTED] wrote: in 2.0 you can submit to a stateless form. Then you have all your validation and converting.Maybe we will backport this to 1.3johan On 8/23/06, Nili Adoram [EMAIL PROTECTED] wrote: But then I would not have the Form.process() method called with all itsbenefits (form validation etc).Is it valid to invoke it from page constructor?Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johanOn 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: 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 listWicket-user@lists.sourceforge.net
Re: [Wicket-user] best practice for uploading and using content (images) with wicket?
Well, thanks a lot, thats really much more simple then i figured =P. Maybe any pointers why the stream from the file system doesnt work? ;) igor.vaynberg wrote: your problem is not retreiving the data from the db - it is the weird stuff you try to do when stream it back to the browser. why all the awt image stuff? all you have to do is read the byte array from the db and stream it back to the browser. here is some pseudo code add(new Image(myimage) { Resource getResource() { return new ByteArrayResource(getBytesFromDb()); } } if you really want to resize the image to 200x200 before storing it in the db or creating a thumbnail then i would look over that wiki example and extract the resizing logic - but if all you want to do is stream it back then the above will do. -Igor On 8/22/06, Sebastian Pflugbeil [EMAIL PROTECTED] wrote: Hi Wicket Team and Wicket Mailinglist! As this is my first post on this list, I would like to introduce myself. My name is Sebastian and I am working on a university project, comparing Java web frameworks. As you might guess, my primary topic is the Wicket framework ;). I am not what one would call a programmer or coder, I guess. Rather someone familiar with the underling concepts, but sometimes a bit lots with the actual implementations of a certain language. So please excuse me, if my questions are stupid ;). My problem at this moment is the following. I need to implement a feature in wicket that lets me upload images to a webpage and then use those images to be displayed on certain pages. It doesn't really matter if the images are stored on the file system or in a database. I am not looking for a solution to an explicit problem but rather for a best practice that shows how the wicket framework supports such a feature. I have tried to read up on anything I could find addressing such a feature. But everything I got so far is either way beyond my scope of understanding, not offering enough to archive the goal or just not working as I understand it should. I have tried to read the example in the wiki ( http://www.wicket-wiki.org.uk/wiki/index.php/*UploadDownload*http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload), but I can not really follow it. Too many libraries used that are not included and overall to confusing for a non professional like myself. I did understand the example for the upload in the wikiexamples though. No problems writing files to disk or even to database, following that example code. My attempt to store images in the Database is looking something like this: To write to the Database, I use this code sniped: public final void onSubmit() { try { // get the content of the upload field final FileUpload upload_image = upload.getFileUpload(); // create a byte array of the uploaded item byte[] bild = upload_image.getBytes(); if(upload_image != null) { **write byte[] to database** } } catch (Exception e) { } } So far so good. Got my byte array stored. The source file is a jpeg image. I am not sure if I miss some kind cast here to let the system know what *sort* of byte array it should use. When I try to retrieve the image from the database, I use the following code: public ResourceReference getImage() { return new ResourceReference(some.class, bild) { public BufferedDynamicImageResource newResource() { try { // get the byte[] from DB byte[] bild = a.getBild(); // create a buffered image template BufferedDynamicImageResource resource = new BufferedDynamicImageResource(); BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB); // transform the byte[] back to an image (does it work that way? How does // java know it was a jpeg before and not a gif for example?) java.awt.Image i = Toolkit.getDefaultToolkit ().createImage(bild); // convert image to buffered image image.getGraphics().drawImage(i, 0, 0, null); Graphics g = image.getGraphics(); g.drawImage(i, 0, 0, null); g.dispose(); // return the image resource.setImage(image); return resource; } catch
Re: [Wicket-user] creating a javascript prompt component
Okay, that could work, but in my case I'm not wrapping each led-sign element in a form. What I've come up with, after looking at the Link class, is registering a new IRequestListener, my PromptResultListener.Then, when rendering i get the url for the listener and append a parameter, like this: String url = "" Then I get the p value from the request and dispatch that. It feels a bit hacky but it looks like the way the Ajax stuff is working right?Maybe in the end I'll conclude that I need a form element for all of this after all, but so far it seems to be working like I want it :) Thanks,HugoOn 8/21/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably the simplest way to go is to create a panel with a hiddenfield, or a textfield with style='display:none', and a label. the restis left your _javascript_ guru-ness.wicket:panelspan wicket:id=text >'bar');text comes here/spaninput wicket:id=value type=hidden id=foo //wicket:panel MartijnOn 8/20/06, Hugo Visser [EMAIL PROTECTED] wrote: Hi, I'm toying around with wicket some more and I'm working on a kind of editor application for my led-sign which I have at home. Basically it allows you to select a font, color, effect and set some text. For the set text part of it I'd like it to be as simple as clicking on the text, popping up a _javascript_ prompt dialog and then updating the text in the model. Problem is that I cannot seem to find how I should handle the return value from the prompt so that the model/page is updated. Any hints how to create my prompt component for this? Thanks, Hugo - 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.1 now! Embed Wicket components in your portals!-- 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 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] best practice for uploading and using content (images) with wicket?
this is Java - we have no pointers :P basically, if you want to get the data from a file you do it a bit different as from a DB stream, if you look here, youll see the basic behind IO here: http://www.physik.uni-muenchen.de/kurs/Computing/java/node36.html (its german, so u will understand it easily) Regards, Korbinian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Sebastian Pflugbeil Gesendet: Mittwoch, 23. August 2006 11:24 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] best practice for uploading and using content (images) with wicket? Well, thanks a lot, thats really much more simple then i figured =P. Maybe any pointers why the stream from the file system doesnt work? ;) igor.vaynberg wrote: your problem is not retreiving the data from the db - it is the weird stuff you try to do when stream it back to the browser. why all the awt image stuff? all you have to do is read the byte array from the db and stream it back to the browser. here is some pseudo code add(new Image(myimage) { Resource getResource() { return new ByteArrayResource(getBytesFromDb()); } } if you really want to resize the image to 200x200 before storing it in the db or creating a thumbnail then i would look over that wiki example and extract the resizing logic - but if all you want to do is stream it back then the above will do. -Igor On 8/22/06, Sebastian Pflugbeil [EMAIL PROTECTED] wrote: Hi Wicket Team and Wicket Mailinglist! As this is my first post on this list, I would like to introduce myself. My name is Sebastian and I am working on a university project, comparing Java web frameworks. As you might guess, my primary topic is the Wicket framework ;). I am not what one would call a programmer or coder, I guess. Rather someone familiar with the underling concepts, but sometimes a bit lots with the actual implementations of a certain language. So please excuse me, if my questions are stupid ;). My problem at this moment is the following. I need to implement a feature in wicket that lets me upload images to a webpage and then use those images to be displayed on certain pages. It doesn't really matter if the images are stored on the file system or in a database. I am not looking for a solution to an explicit problem but rather for a best practice that shows how the wicket framework supports such a feature. I have tried to read up on anything I could find addressing such a feature. But everything I got so far is either way beyond my scope of understanding, not offering enough to archive the goal or just not working as I understand it should. I have tried to read the example in the wiki ( http://www.wicket-wiki.org.uk/wiki/index.php/*UploadDownload*http:// www.wicket-wiki.org.uk/wiki/index.php/UploadDownload), but I can not really follow it. Too many libraries used that are not included and overall to confusing for a non professional like myself. I did understand the example for the upload in the wikiexamples though. No problems writing files to disk or even to database, following that example code. My attempt to store images in the Database is looking something like this: To write to the Database, I use this code sniped: public final void onSubmit() { try { // get the content of the upload field final FileUpload upload_image = upload.getFileUpload(); // create a byte array of the uploaded item byte[] bild = upload_image.getBytes(); if(upload_image != null) { **write byte[] to database** } } catch (Exception e) { } } So far so good. Got my byte array stored. The source file is a jpeg image. I am not sure if I miss some kind cast here to let the system know what *sort* of byte array it should use. When I try to retrieve the image from the database, I use the following code: public ResourceReference getImage() { return new ResourceReference(some.class, bild) { public BufferedDynamicImageResource newResource() { try { // get the byte[] from DB byte[] bild = a.getBild(); // create a buffered image template BufferedDynamicImageResource resource = new
[Wicket-user] problem with wicket portlets
Hi,I have been trying out the portlet support in wicket, and have the problem that when I press a button or link it seems like the default action is called so that I never sees anything else than the first page. I have tried the portlet example from subversion, and a portlet adapted version of the Navomatic example, both on Jetspeed 2 and BEA Portal, and get the above mentioned behaviour in both portals. Does any one have any experience with this, and maybe a reason why this is happening ? /Steen - 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] problem with wicket portlets
On 23.8.2006, at 13.15, Steen Larsen wrote: Hi, I have been trying out the portlet support in wicket, and have the problem that when I press a button or link it seems like the default action is called so that I never sees anything else than the first page. I have tried the portlet example from subversion, and a portlet adapted version of the Navomatic example, both on Jetspeed 2 and BEA Portal, and get the above mentioned behaviour in both portals. Does any one have any experience with this, and maybe a reason why this is happening ? Hi, Which version of wicket are you using? The portlet support is still highly experimental, and there has been great improvements since wicket 1.2.1 was relased, so the best choice is the current version from the 1.2 branch. Portlet support has not been tested with BEA Portal, but several people has been running it successully with Jetspeed2. Can you send me your navomatic sources, so I can make sure it is working correctly. I'm currently working with the unit tests of the wicket portlet support. Janne - 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 Implement Looping in wicket
Hi, I was going through the repeater examples , i just wanna know how can i implement looping in wicket, for example i have vector populated with some records fetched from a database , now how can loop through the vector and display the records in the html page? I dont understand where exactly is the looping being implemented in any of the examples given under repeaters section..and which is better to implement a list view or Grid View Please help Thanks in Advance. --Sathya -- View this message in context: http://www.nabble.com/How-to-Implement-Looping-in-wicket-tf2152700.html#a5945305 Sent from the Wicket - User forum at Nabble.com. - 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 Implement Looping in wicket
for records in a database it is better to use a Repeater then the Listview.Especially if you have call backs (like edit or delete to it)because you have to specify your own model then that holds the record of the database. On 8/23/06, sathya81 [EMAIL PROTECTED] wrote: Hi,I was going through the repeater examples , i just wanna know how can iimplement looping in wicket, for example i have vector populated with somerecords fetched from a database , now how can loop through the vector and display the records in the html page? I dont understand where exactly isthe looping being implemented in any of the examples given under repeaterssection..and which is better to implement a list view or Grid View Please helpThanks in Advance.--Sathya--View this message in context: http://www.nabble.com/How-to-Implement-Looping-in-wicket-tf2152700.html#a5945305 Sent from the Wicket - User forum at Nabble.com.-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] trying to initialize wickets date picker with server time
why don't you give the model object that the datepicker component has an inital value?(which is new Date())johanOn 8/23/06, Tomer Mevorach [EMAIL PROTECTED] wrote:hi, I have a DatePicker in my application and it works fine when itsinitialized with client machine time.I have problems initializing it with server time.in order to initialize it with server time i use the following DatePickerSettings and DateConverter: private static final DateFormat dateFormat = newSimpleDateFormat(MM/dd/ HH:mm);private static final DatePickerSettings dateSettings = new DatePickerSettings() {public ResourceReference getLanguage(Locale currentLocale) {return DatePickerComponentInitializer.getLanguage(Locale.US);}@Override public String toScript(Locale locale, String format) {StringBuffer script = new StringBuffer(super.toScript(locale,format));//init date picker with server time int last = script.length() - 1;if (',' != script.charAt(last)) {script.append(,);}script.append(\n\tdate : \ + dateFormat.format(newDate()) + \);return script.toString();}};private static final DateConverter dateConverter = new DateConverter() {public DateFormat getDateFormat(Locale locale) { return super.getDateFormat(Locale.US);}};static {dateSettings.setShowsTime(true);dateSettings.setTimeFormat(24);dateSettings.setWeekNumbers (false);dateConverter.setDateFormat(Locale.US, dateFormat);}Here is the rendered JS:Calendar.setup({inputField : 6:provisioningForm:startDateType:startDateTypes:1:startDate, button : 6:provisioningForm:startDateType:startDateTypes:1:startDatePicker:trigger,weekNumbers : false,showsTime : true,timeFormat : 24,ifFormat : %m/%d/%Y %H:%M, date : 08/22/2006 19:06});Can anyone please tell my what is it that I'm doing wrong because thecalendar keeps being initialized with client time.Regards,Tomer -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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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] Javaref.com
Take a look, if you haven't already: it's VERY well done. And it's done in Tapestry. Yay for second-gen Web frameworks, or something. Nathan - 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] best practice for uploading and using content (images) with wicket?
or look at the source of DownloadLink as it streams a file from disk-IgorOn 8/23/06, Korbinian Bachl [EMAIL PROTECTED] wrote:this is Java - we have no pointers :Pbasically, if you want to get the data from a file you do it a bit different as from a DB stream, if you look here, youll see the basic behind IO here:http://www.physik.uni-muenchen.de/kurs/Computing/java/node36.html (its german, so u will understand it easily)Regards,Korbinian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Sebastian Pflugbeil Gesendet: Mittwoch, 23. August 2006 11:24 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] best practice for uploading and using content (images) with wicket? Well, thanks a lot, thats really much more simple then i figured =P. Maybe any pointers why the stream from the file system doesnt work? ;) igor.vaynberg wrote: your problem is not retreiving the data from the db - it is the weird stuff you try to do when stream it back to the browser. why all the awt image stuff? all you have to do is read the byte array from the db and stream it back to the browser. here is some pseudo code add(new Image(myimage) { Resource getResource() { return new ByteArrayResource(getBytesFromDb()); } } if you really want to resize the image to 200x200 before storing it in the db or creating a thumbnail then i would look over that wiki example and extract the resizing logic - but if all you want to do is stream it back then the above will do. -IgorOn 8/22/06, Sebastian Pflugbeil [EMAIL PROTECTED] wrote: Hi Wicket Team and Wicket Mailinglist! As this is my first post on this list, I would like to introduce myself. My name is Sebastian and I am working on a university project, comparing Java web frameworks. As you might guess, my primary topic is the Wicket framework ;). I am not what one would call a programmer or coder, I guess. Rather someone familiar with the underling concepts, but sometimes a bit lots with the actual implementations of a certain language. So please excuse me, if my questions are stupid ;). My problem at this moment is the following. I need to implement a feature in wicket that lets me upload images to a webpage and then use those images to be displayed on certain pages. It doesn't really matter if the images are stored on the file system or in a database. I am not looking for a solution to an explicit problem but rather for a best practice that shows how the wicket framework supports such a feature. I have tried to read up on anything I could find addressing such a feature. But everything I got so far is either way beyond my scope of understanding, not offering enough to archive the goal or just not working as I understand it should. I have tried to read the example in the wiki ( http://www.wicket-wiki.org.uk/wiki/index.php/*UploadDownload*http:// www.wicket-wiki.org.uk/wiki/index.php/UploadDownload), but I can not really follow it. Too many libraries used that are not included and overall to confusing for a non professional like myself. I did understand the example for the upload in the wikiexamples though. No problems writing files to disk or even to database, following that example code. My attempt to store images in the Database is looking something like this: To write to the Database, I use this code sniped: public final void onSubmit() { try { // get the content of the upload field final FileUpload upload_image = upload.getFileUpload(); // create a byte array of the uploaded item byte[] bild = upload_image.getBytes(); if(upload_image != null) { **write byte[] to database** } } catch (Exception e) { } } So far so good. Got my byte array stored. The source file is a jpeg image. I am not sure if I miss some kind cast here to let the system know what *sort* of byte array it should use. When I try to retrieve the image from the database, I use the following code: public ResourceReference getImage() { return new ResourceReference(some.class, bild) { public BufferedDynamicImageResource newResource() { try { // get the byte[] from DB byte[] bild = a.getBild(); // create a buffered image template BufferedDynamicImageResource resource = new BufferedDynamicImageResource(); BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB ); // transform the byte[] back to an image (does it work that way? How does // java know it was a jpeg before and not a gif for example?) java.awt.Image i = Toolkit.getDefaultToolkit ().createImage(bild);// convert image to buffered image image.getGraphics().drawImage(i, 0, 0, null);Graphics g = image.getGraphics (); g.drawImage(i, 0, 0, null); g.dispose(); // return the image resource.setImage(image); return resource; } catch (Exception e) { } } }; } This leads to a
Re: [Wicket-user] How to Implement Looping in wicket
Using the repeater examples, the looping is done by the framework as it walks the Iterator that's returned by the IDataProvider.iterator() implemention (ContactDataProvider). You could have a look at WicketPhonebook, but I think it's very similar to the examples. /Gwyn On 23/08/06, sathya81 [EMAIL PROTECTED] wrote: Hi, I was going through the repeater examples , i just wanna know how can i implement looping in wicket, for example i have vector populated with some records fetched from a database , now how can loop through the vector and display the records in the html page? I dont understand where exactly is the looping being implemented in any of the examples given under repeaters section..and which is better to implement a list view or Grid View Please help Thanks in Advance. --Sathya -- View this message in context: http://www.nabble.com/How-to-Implement-Looping-in-wicket-tf2152700.html#a5945305 Sent from the Wicket - User forum at Nabble.com. - 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.1 now! - 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] How to Implement Looping in wicket
the looping itself is implemented by the repeater component - DataView,GridView,DataTable,RefreshingView,ListView,Loop,etc. the populateItem method is called for every element in the iterator/list and builds the component hierarchy to represent that element. -IgorOn 8/23/06, sathya81 [EMAIL PROTECTED] wrote: Hi,I was going through the repeater examples , i just wanna know how can iimplement looping in wicket, for example i have vector populated with somerecords fetched from a database , now how can loop through the vector and display the records in the html page? I dont understand where exactly isthe looping being implemented in any of the examples given under repeaterssection..and which is better to implement a list view or Grid View Please helpThanks in Advance.--Sathya--View this message in context: http://www.nabble.com/How-to-Implement-Looping-in-wicket-tf2152700.html#a5945305 Sent from the Wicket - User forum at Nabble.com.-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] Javaref.com
I'm just happy I was able to purchase the advertising for Wicket (and Struts). :) On 8/23/06, Nathan Hamblen [EMAIL PROTECTED] wrote:Take a look, if you haven't already: it's VERY well done. And it's done in Tapestry. Yay for second-gen Web frameworks, or something.Nathan-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] Javaref.com
Nathan Hamblen wrote: Take a look, if you haven't already: it's VERY well done. And it's done in Tapestry. Yay for second-gen Web frameworks, or something. Is it? 269 kb of javascript (not even compressed), I can't check limit search to favorites in firefox (because I've different font set)... Sorry, I just couldn't help it ;-) -Matej Nathan - 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] set focus on TextField
Hi, I've got a panel for adding dates with an add link, when the link is clicked I replace it with a small form with a single TextField (input type=text..). What I would like to do is to set focus on the textfield when I switch panels. Is there an easy solution for this? I guess I could add an onLoadEvent but that would imply that my panel would add an onLoad-script to the page, which seems complicated. /Mats - 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] Javaref.com
Matej Knopp wrote: Nathan Hamblen wrote: Take a look, if you haven't already: it's VERY well done. And it's done in Tapestry. Yay for second-gen Web frameworks, or something. Is it? 269 kb of javascript (not even compressed), I can't check limit search to favorites in firefox (because I've different font set)... Sorry, I just couldn't help it ;-) -Matej True, it's mad for javascript. The fancy tabs for the search up top (instead of, duh, radio buttons) add nothing but momentary confusion. But I think that the richness of the interface in general speaks well for component Web frameworks. Nathan - 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] Override RatingPanel Property
In which properties file did you set that? MyRatingPanel.properties or something like that? Eelco On 8/22/06, Joe Toth [EMAIL PROTECTED] wrote: I can't seem override the resource value in the RatingPanel component. Added rating.simple=Please Rate to my properties file, but its not picking it up. Is there something else I have to do? Thanks - 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] HHHHHHHHelp
Hello guysI need a help to startwithwicket, can anybody point me to a tutorials , or a nice free wicket document, my main purpose of looking at wicket is to make a front end.Thanks Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. - 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] problem with wicket portlets
On 23.8.2006, at 13.22, Janne Hietamäki wrote: On 23.8.2006, at 13.15, Steen Larsen wrote: Hi, I have been trying out the portlet support in wicket, and have the problem that when I press a button or link it seems like the default action is called so that I never sees anything else than the first page. I have tried the portlet example from subversion, and a portlet adapted version of the Navomatic example, both on Jetspeed 2 and BEA Portal, and get the above mentioned behaviour in both portals. Does any one have any experience with this, and maybe a reason why this is happening ? Hi, Which version of wicket are you using? The portlet support is still highly experimental, and there has been great improvements since wicket 1.2.1 was relased, so the best choice is the current version from the 1.2 branch. Portlet support has not been tested with BEA Portal, but several people has been running it successully with Jetspeed2. Can you send me your navomatic sources, so I can make sure it is working correctly. I'm currently working with the unit tests of the wicket portlet support. Ok, fixed the problem and committed into svn. Navomatic created bookmarkable links, and they were not supported in the portlet. Janne - 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] HHHHHHHHelp
How about: http://wicketframework.org/Examples.html http://wicketframework.org/wiki http://www.wicket-wiki.org.uk/wiki/index.php/Documentation_Index Martijn On 8/23/06, luc jean [EMAIL PROTECTED] wrote: Hello guys I need a help to start with wicket, can anybody point me to a tutorials , or a nice free wicket document, my main purpose of looking at wicket is to make a front end. Thanks Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. - 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.1 now! Embed Wicket components in your portals! -- 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] problem with wicket portlets
thanks, will try it out tomorrow/SteenOn 8/23/06, Janne Hietamäki [EMAIL PROTECTED] wrote:On 23.8.2006, at 13.22, Janne Hietamäki wrote: On 23.8.2006, at 13.15, Steen Larsen wrote: Hi, I have been trying out the portlet support in wicket, and have the problem that when I press a button or link it seems like the default action is called so that I never sees anything else than the first page. I have tried the portlet example from subversion, and a portlet adapted version of the Navomatic example, both on Jetspeed 2 and BEA Portal, and get the above mentioned behaviour in both portals. Does any one have any experience with this, and maybe a reason why this is happening ? Hi, Which version of wicket are you using? The portlet support is still highly experimental, and there has been great improvements since wicket 1.2.1 was relased, so the best choice is the current version from the 1.2 branch. Portlet support has not been tested with BEA Portal, but several people has been running it successully with Jetspeed2. Can you send me your navomatic sources, so I can make sure it is working correctly. I'm currently working with the unit tests of the wicket portlet support.Ok, fixed the problem and committed into svn. Navomatic createdbookmarkable links, and they were not supported in the portlet. Janne-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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] SharedResources from code
I'm trying to create an Image component with a PackageResourceReference to an actual image in my application. I have something like this: public class Icons { private static Log log = LogFactory.getLog(Icons.class); public static ResourceReference HOUSE_ICON = new PackageResourceReference( MyStreetPage.class, images/house_icon.jpg ); static { HOUSE_ICON.bind( Application.get() ); } } My question is, why is it necessary to call bind().. couldn't this be incorporated in the lazy fetch of the resource? Aaron - 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] SharedResources from code
it isnt - and it is incorporated as of 1.2.1-IgorOn 8/23/06, Aaron Hiniker [EMAIL PROTECTED] wrote: I'm trying to create an Image component with a PackageResourceReference to an actual image in my application. I have something like this: public class Icons { private static Log log = LogFactory.getLog(Icons.class); public static ResourceReference HOUSE_ICON = new PackageResourceReference( MyStreetPage.class, images/house_icon.jpg ); static { HOUSE_ICON.bind( Application.get() ); } } My question is, why is it necessary to call bind().. couldn't this be incorporated in the lazy fetch of the resource? Aaron -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] getParent() is null
I am using a special IFeedbackMessageFilter to basically scope feedback messages to a particular component and all of it's children. The problem I am having (and this problem has existed for quite awhile, I just haven't had the time to look into it all that much) is that in some circumstances the children that are creating the feedback messages cannot resolve the parent that the actual feedback panel is tied to. IE: Parent - ListView - ListItem - Reporter (creates error message via error() call) Parent is the component I assign to the FeedbackPanel to scope all of the displayed messages to the Parent itself and any of it's children via this: @Override protected IFeedbackMessageFilter getFeedbackMessageFilter() { return new IFeedbackMessageFilter() { public boolean accept(FeedbackMessage feedbackMessage) { return parent == feedbackMessage.getReporter() || parent.contains( feedbackMessage.getReporter(), true ); } }; } The problem is that the parent.contains( ... ) is failing. I debugged the component tree by doing this in the debugger: feedbackMessage.getReporter().getParent().getParent().getParent() This returns a ListItem component in which the parent is null. Meaning the reporter - parent link is broken. In what circumstances can a ListItem's (or any component for that matter ) parent be null? Aaron - 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] Javaref.com
I personally dislike their UI. The technology might be nice and well but they need some UI guy to clean things up. Just my 2 cents. Gili Nathan Hamblen wrote: Take a look, if you haven't already: it's VERY well done. And it's done in Tapestry. Yay for second-gen Web frameworks, or something. Nathan - 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 signature.asc Description: OpenPGP digital signature - 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] getParent() is null
I think i've fixed the problem. The problem was I was overriding getVisible() and checking for the presence for feedback messages there, but at that point the hierarchy is already altered. After looking over the source code, I noticed that IFeedback instances get updateFeedback() called before the hierarchy is rebuilt. So I did a setVisible() from within updateFeedback and everything seems to work fine now. Aaron On Wed, 2006-08-23 at 18:28 -0700, Aaron Hiniker wrote: - 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