Re: [Wicket-user] programmatic access to a wicket site
Lowell, Yes, it matters a great deal. The class java.net.HttpURLConnection does not give you return codes, it just throws an exception. You need to use something like apache commons HttpClient. Btw, if you can not massage Wicket into doing what you want, you can always add a self-written servlet (or a servlet from any other web-framework) in the same web-application. Regards, Erik. Lowell Kirsh wrote: I think they will be using a java.net.HttpURLConnection. Does it matter? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] programmatic access to a wicket site
Really? What about the getResponseCode() method? http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#getResponseCode() But I'm sure if you are right about not being able to get it from that class, my clients will use the jakarta (or other) client instead. So the idea of using a POS (plain old servlet ;-) did cross my mind, but I was hoping to make my web page serve both purposes so that I could minimize the amount of coding I would have to do. Hopefully I can actually use the AbortWithWebErrorCodeException to serve this purpose. On 5/9/07, Erik van Oosten [EMAIL PROTECTED] wrote: Lowell, Yes, it matters a great deal. The class java.net.HttpURLConnection does not give you return codes, it just throws an exception. You need to use something like apache commons HttpClient. Btw, if you can not massage Wicket into doing what you want, you can always add a self-written servlet (or a servlet from any other web-framework) in the same web-application. Regards, Erik. Lowell Kirsh wrote: I think they will be using a java.net.HttpURLConnection. Does it matter? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-stuff GMAP
Hi Iulian I'll start to upgrade the current 1.2 branch to be using the newest version of googlemaps. That will mean that I'll add support for these controls(I think two of them are already supported): * |GLargeMapControl| - a large pan/zoom control used on Google Maps. Appears in the top left corner of the map. * |GSmallMapControl| - a smaller pan/zoom control used on Google Maps. Appears in the top left corner of the map. * |GSmallZoomControl| - a small zoom control (no panning controls) used in the small map blowup windows used to display driving directions steps on Google Maps. * |GScaleControl| - a map scale * |GMapTypeControl| - buttons that let the user toggle between map types (such as Map and Satellite) * |GOverviewMapControl| - a collapsible overview map in the corner of the screen Also I'll be looking into markers manager and see if I can add that. I plan todo this before you come back from your vacation, so that you may continue upgrading to the 1.3 branch. regards Nino Iulian Costan wrote: On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ok:) I think we need to have a GMarker constructor that takes a GIcon also, I can see that you have already prepared the GMarker class for this. We could also create some off the shelf GIcons and package them, that might come in handy? I could do this, as the project Im on now needs some basic ones. So when I go over them I could just add em. need to add JS code as well to support custom GIcons About the the List containing the overlays. Would it work if I cleared the list, added some new overlays and re rendered? well, i've never tried, not sure what to say, but the generated JS code is part of the outer gmap panel, the entry point is initGMAP() method that get called on page's onLoad event. as well in 1.3 on ajax event we can call that method to re-init entire map, maybe a cleanup map is needed before. please try and see if it works. How do we proceed, I guess we should be working on the 1.2 branch as the 1.3 are still beta? as eelco said 1.3 for sure, maybe both. regards Nino Iulian Costan wrote: On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think its a pretty useful component, also very cool for wicket to have these kinds of components it makes it more complete. I could help if you want to, I saw some places where I could get an idea on howto add the slider, or we could just get the google one. But I do think I would need your help in order to continue in the same mindstream. sure, we can work together and see what needs to be done. I think you could use templating some of the places where you now use string buffer, but im not sure. yes, JS templating fits better here, rather than concatenating strings again and again. As the component are now, could'nt I add gmap markers via ajax? well, you can do it somehow, there is a list that contains all overlays to be displayed, as long as you add new items to that list and re-render the entire panel and it should work. Are there any way to display a custom gIcon instead of the standard one? as far as i remember there is a GIcon class that is supposed to do this but was never used till know. just the concept is there. regards Nino /iulian Iulian Costan wrote: On 5/7/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Iulian Are you still the sole contibutor behind this component? well, it seems so but i didnt really maintain this project for quite a while. Are you planing any new features? Would be nice to have a slider on the map aswell. i dont know what to say about new features, there were one more person who asked for dynamically added gmap markers. the component itself needs big refactoring to be able to add new google map features. Im currently getting familiar with the component.
Re: [Wicket-user] programmatic access to a wicket site
Yeah, weird it is. Perhaps that method only returns something when there was a result code representing a successful retrieval, so anything in the 200-299 range. I am positively very sure that non-2XX codes will trigger an IOException. Regards, Erik. Lowell Kirsh wrote: Really? What about the getResponseCode() method? http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#getResponseCode() But I'm sure if you are right about not being able to get it from that class, my clients will use the jakarta (or other) client instead. So the idea of using a POS (plain old servlet ;-) did cross my mind, but I was hoping to make my web page serve both purposes so that I could minimize the amount of coding I would have to do. Hopefully I can actually use the AbortWithWebErrorCodeException to serve this purpose. -- Erik van Oosten http://2007.rubyenrails.nl/ http://www.day-to-day-stuff.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] programmatic access to a wicket site
Strange, it says in the javadoc that it can return 404, for example. But it also says it'll throw an exception on a bad connection. Confusing indeed. On 5/10/07, Erik van Oosten [EMAIL PROTECTED] wrote: Yeah, weird it is. Perhaps that method only returns something when there was a result code representing a successful retrieval, so anything in the 200-299 range. I am positively very sure that non-2XX codes will trigger an IOException. Regards, Erik. Lowell Kirsh wrote: Really? What about the getResponseCode() method? http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#getResponseCode() But I'm sure if you are right about not being able to get it from that class, my clients will use the jakarta (or other) client instead. So the idea of using a POS (plain old servlet ;-) did cross my mind, but I was hoping to make my web page serve both purposes so that I could minimize the amount of coding I would have to do. Hopefully I can actually use the AbortWithWebErrorCodeException to serve this purpose. -- Erik van Oosten http://2007.rubyenrails.nl/ http://www.day-to-day-stuff.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-dojo for wicket 1.3.0
Dragos Bobes a écrit : Thanks Vincent but unfortunately it doesn't work for me. I get the same exceptions when I try to use the drag-n-drop feature and I'm sure I'm using the latest jar. Please let me know if you need more info about the errors. Ok, so can you give me a little code snippet, or a mini sample code where I can reproduce that? Do you use firebug(https://addons.mozilla.org/fr/firefox/addon/1843)? If you do, can you copy paste the trace in it? Thanks -- Vincent Demay http://www.demay-fr.net/blog Thanks Dragos Vincent Demay wrote: Dragos Bobes a écrit : Thanks Jean-Baptiste, now it's compiling successfully. But when I tried to use it for a drag-n-drop example I've ran into some 'FATAL' errors. FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDropContainer'; last tried '__package__.js' FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDragContainer'; last tried '__package__.js' FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDragCopyContainer'; last tried '__package__.js' DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for link in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for link in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for message in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for message in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for link in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 Is this version in a good state or is it my fault? Are there any prerequisites for using wicketstuff-dojo? Thanks, Dragos Dragos, This Error has been fixed but build failed since a long time. Try to get the last jar in the maven repo http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/ (from today ;) ) I think the problem has been solved Cheers -- Vincent Demay http://www.demay-fr.net/blog Jean-Baptiste Quenot wrote: * Dragos Bobes: Is there any version of wicket-contrib-dojo that works with wicket 1.3.0-incubating-SNAPSHOT and where can I find it? I tried to use the corresponding version (1.3.0-incubating-SNAPSHOT) from http://wicketstuff.org/maven/repository/wicket-stuff/wicket-contrib-dojo/1.3.0-incubating-SNAPSHOT/ but it seems is still referencing the old package names (without 'org.apache' prefix). The right location is: http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/ One day we'll need to clean the Maven repo! Several users are confused with the various leftovers. Should we just wipe out the whole stuff? Then we can fire Bamboo to rebuild everything. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored
Re: [Wicket-user] Wicket-stuff GMAP
Eeek. I have to use java 1.4, we need to have a branch for 1.4 and aswell for it to work for me. I've already managed to update to gmap2 and add below features in the 1.5 version. I've also converted the 1.5 to an 1.4 so when I get commit access I will make the to versions. Currently Im looking at making custom GIcons, this feature fill come into the 1.4 first as this is my primary focus. When I've added the gmarkermanager aswell I'll convert the stuff to 1.5 regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Iulian I'll start to upgrade the current 1.2 branch to be using the newest version of googlemaps. That will mean that I'll add support for these controls(I think two of them are already supported): * |GLargeMapControl| - a large pan/zoom control used on Google Maps. Appears in the top left corner of the map. * |GSmallMapControl| - a smaller pan/zoom control used on Google Maps. Appears in the top left corner of the map. * |GSmallZoomControl| - a small zoom control (no panning controls) used in the small map blowup windows used to display driving directions steps on Google Maps. * |GScaleControl| - a map scale * |GMapTypeControl| - buttons that let the user toggle between map types (such as Map and Satellite) * |GOverviewMapControl| - a collapsible overview map in the corner of the screen Also I'll be looking into markers manager and see if I can add that. I plan todo this before you come back from your vacation, so that you may continue upgrading to the 1.3 branch. regards Nino Iulian Costan wrote: On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ok:) I think we need to have a GMarker constructor that takes a GIcon also, I can see that you have already prepared the GMarker class for this. We could also create some off the shelf GIcons and package them, that might come in handy? I could do this, as the project Im on now needs some basic ones. So when I go over them I could just add em. need to add JS code as well to support custom GIcons About the the List containing the overlays. Would it work if I cleared the list, added some new overlays and re rendered? well, i've never tried, not sure what to say, but the generated JS code is part of the outer gmap panel, the entry point is initGMAP() method that get called on page's onLoad event. as well in 1.3 on ajax event we can call that method to re-init entire map, maybe a cleanup map is needed before. please try and see if it works. How do we proceed, I guess we should be working on the 1.2 branch as the 1.3 are still beta? as eelco said 1.3 for sure, maybe both. regards Nino Iulian Costan wrote: On 5/8/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think its a pretty useful component, also very cool for wicket to have these kinds of components it makes it more complete. I could help if you want to, I saw some places where I could get an idea on howto add the slider, or we could just get the google one. But I do think I would need your help in order to continue in the same mindstream. sure, we can work together and see what needs to be done. I think you could use templating some of the places where you now use string buffer, but im not sure. yes, JS templating fits better here, rather than concatenating strings again and again. As the component are now, could'nt I add gmap markers via ajax? well, you can do it somehow, there is a list that contains all overlays to be displayed, as long as you add new items to that list and re-render the entire panel and it should work. Are there any way to display a custom gIcon instead of the standard one? as far as i remember there is a GIcon class that is supposed to do this but was never used till know. just the concept is there. regards Nino /iulian Iulian Costan wrote: On 5/7/07, *Nino Saturnino Martinez Vazquez Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Iulian Are you still the sole contibutor behind this component? well, it seems so but i didnt really maintain this project for quite a while.
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
* JulianS: If you mount a package e.g. mount(/pages, PackageName.forClass(Index.class)); You will run into a RuntimeException if you type in a url like http://localhost:8081/quickstart/app/pages; (I'm using Wicket 1.2.5): WicketMessage: Unable to load class with name: wicket.quickstart. Root cause: wicket.WicketRuntimeException: Unable to load class with name: wicket.quickstart. at wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:66) at wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode(PackageRequestTargetUrlCodingStrategy.java:82) ... This seems wrong to me. The user should never see a RuntimeException no matter what they type in. That's very true, and there is a JIRA issue for this: PackageRequestTargetUrlCodingStrategy should interrupts the cycle and sends a 404 when a page/class cannot be found https://issues.apache.org/jira/browse/WICKET-293 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
who is making a patch :) On 5/10/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * JulianS: If you mount a package e.g. mount(/pages, PackageName.forClass(Index.class)); You will run into a RuntimeException if you type in a url like http://localhost:8081/quickstart/app/pages; (I'm using Wicket 1.2.5): WicketMessage: Unable to load class with name: wicket.quickstart. Root cause: wicket.WicketRuntimeException: Unable to load class with name: wicket.quickstart. at wicket.application.DefaultClassResolver.resolveClass( DefaultClassResolver.java:66) at wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode( PackageRequestTargetUrlCodingStrategy.java:82) ... This seems wrong to me. The user should never see a RuntimeException no matter what they type in. That's very true, and there is a JIRA issue for this: PackageRequestTargetUrlCodingStrategy should interrupts the cycle and sends a 404 when a page/class cannot be found https://issues.apache.org/jira/browse/WICKET-293 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected
See https://issues.apache.org/jira/browse/WICKET-552 On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: I easily reproduced this problem. I did not use svn access, but instead went to the wicket main page and downloaded the 1.2.6 quickstart. I ran it and it worked. Then I went to the Index.java and inserted the following line in the constructor: throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_BAD_REQUEST, FOOBAR); I went to my web browser, and again, blank page. Then I went to the command line and typed: $ wget http://localhost:8081/quickstart/app I get a 200 status code, with empty body: --14:50:42-- http://localhost:8081/quickstart/app = `app.1' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [ = ] 0 --.--K/s 14:50:42 (0.00 B/s) - `app.1' saved [0] So do you think this is a bug? Lowell On 5/9/07, Johan Compagner [EMAIL PROTECTED] wrote: yes see our quickstart project in svn i can try to build an example for this for example if i change one of the wicket examples homepages that it throws such an exception does it fail then? johan On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: do you have a quickstart that you can attach to a jira issue? What do you mean by this? Is a quickstart some sort of self-contained minimal jar? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] getVariation and extended panels
Hi I have got a SuperPanel class that extends Panel, I have a few variations of html for this SuperPanel and am overriding the getVariation() method for to get what I want ...that's all good. Then I wanted to add a ChildPanel extending SuperPanel. and also I would like to have ChildPanel to have also a few variations hence giving me more flexibility in generating dynamic panels as a result... getVariation() gets resolved at the ChildPanel level only. since overriding the getVariation on ChildPanel hides SuperPanel.getVariation(). Am I stretching this too far?? :p and should just work with one variation per component hierarchy Joshua - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] programmatic access to a wicket site
Perhaps take a look at: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/pages/InternalErrorPage.java?view=co specially in the configureResponse section. Frank On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: Strange, it says in the javadoc that it can return 404, for example. But it also says it'll throw an exception on a bad connection. Confusing indeed. On 5/10/07, Erik van Oosten [EMAIL PROTECTED] wrote: Yeah, weird it is. Perhaps that method only returns something when there was a result code representing a successful retrieval, so anything in the 200-299 range. I am positively very sure that non-2XX codes will trigger an IOException. Regards, Erik. Lowell Kirsh wrote: Really? What about the getResponseCode() method? http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#getResponseCode() But I'm sure if you are right about not being able to get it from that class, my clients will use the jakarta (or other) client instead. So the idea of using a POS (plain old servlet ;-) did cross my mind, but I was hoping to make my web page serve both purposes so that I could minimize the amount of coding I would have to do. Hopefully I can actually use the AbortWithWebErrorCodeException to serve this purpose. -- Erik van Oosten http://2007.rubyenrails.nl/ http://www.day-to-day-stuff.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] XML Parsing
Hi Wicket Experts, I have one xml file, like Personal Information usernameDavid/username addressUSA/address /Personal Information I want to parse username and its value and address value. Is it possible in wicket? If Yes How? Thanking You Edward -- View this message in context: http://www.nabble.com/XML-Parsing-tf3721455.html#a10412772 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Query String passing
Hi, I am newbie of wicket, in jsp, consider one.jsp contains username field. When I click submit button goto another page that is two.jsp. I can get username field using request.getParameter(username); But In Wicket, How can I do it the same process? Please explain. Thanking You. -- View this message in context: http://www.nabble.com/Query-String-passing-tf3721482.html#a10412858 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-dojo for wicket 1.3.0
Hi Vincent, Thanks again for your interest in helping me. I think I found the problem. I started a new project and the dojo stuff was working there. When I compared the two projects one of the differences was that in one of them (where dojo wasn't working) I was mounting the application's pages to a specific url: mount(/pages, PackageName.forPackage(Home.class.getPackage())); When I removed the mount line dojo stuff worked fine. I've attached a small project in a working state. If you uncomment the mount line in the MyApplication.java you'll see that the dojo page doesn't work anymore. I hope this helps, Dragos Vincent Demay wrote: Dragos Bobes a écrit : Thanks Vincent but unfortunately it doesn't work for me. I get the same exceptions when I try to use the drag-n-drop feature and I'm sure I'm using the latest jar. Please let me know if you need more info about the errors. Ok, so can you give me a little code snippet, or a mini sample code where I can reproduce that? Do you use firebug(https://addons.mozilla.org/fr/firefox/addon/1843)? If you do, can you copy paste the trace in it? Thanks -- Vincent Demay http://www.demay-fr.net/blog Thanks Dragos Vincent Demay wrote: Dragos Bobes a écrit : Thanks Jean-Baptiste, now it's compiling successfully. But when I tried to use it for a drag-n-drop example I've ran into some 'FATAL' errors. FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDropContainer'; last tried '__package__.js' FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDragContainer'; last tried '__package__.js' FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDragCopyContainer'; last tried '__package__.js' DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for panel in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for panel in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for link in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for link in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for message in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 DEBUG: dojo.widget.Parse: error:Error: Could not locate widget implementation for message in wicket.widget registered to namespace wicket DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for link in wicket.widget registered to namespace wicket. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 Is this version in a good state or is it my fault? Are there any prerequisites for using wicketstuff-dojo? Thanks, Dragos Dragos, This Error has been fixed but build failed since a long time. Try to get the last jar in the maven repo http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/ (from today ;) ) I think the problem has been solved Cheers -- Vincent Demay http://www.demay-fr.net/blog Jean-Baptiste Quenot wrote: * Dragos Bobes: Is there any version of wicket-contrib-dojo that works with wicket 1.3.0-incubating-SNAPSHOT and where can I find it? I tried to use the corresponding version (1.3.0-incubating-SNAPSHOT) from http://wicketstuff.org/maven/repository/wicket-stuff/wicket-contrib-dojo/1.3.0-incubating-SNAPSHOT/ but it seems is still referencing the old package names (without 'org.apache' prefix). The right location is: http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/ One day we'll need to clean the Maven repo! Several users are confused with the various leftovers. Should we just wipe out the whole stuff? Then we can fire Bamboo to rebuild everything. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
[Wicket-user] How to pass the values from one page another page in wicket?
Hi, I am newbie of wicket, in jsp, consider one.jsp contains username field. When I click submit button goto another page that is two.jsp. I can get username field using request.getParameter(username); But In Wicket, How can I do it the same process? Please explain me. Thanking You. -- View this message in context: http://www.nabble.com/How-to-pass-the-values-from-one-page-another-page-in-wicket--tf3721484.html#a10412860 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to pass the values from one page another page in wicket?
Hi, I am newbie of wicket, in jsp, consider one.jsp contains username field. When I click submit button goto another page that is two.jsp. I can get username field using request.getParameter(username); But In Wicket, How can I do it the same process? Please explain. Thanking You. -- View this message in context: http://www.nabble.com/How-to-pass-the-values-from-one-page-another-page-in-wicket--tf3721486.html#a10412862 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] div id problem
Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / span wicket:id=navigator class=navigator[agents navigator]/span /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java: public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-contrib-push: bad dependency
Hi, I think there is a problem with the current wicket-contrib-push pom: the dependency on dojo is: dependency groupIdorg.wicketstuff/groupId artifactIddojo/artifactId version1.3.0-SNAPSHOT/version /dependency but I think it should be: dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-dojo/artifactId version1.3.0-SNAPSHOT/version /dependency according to current wicket-contrib-dojo pom. Or am I missing something? Xavier -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: bad dependency
BTW, there is the same kind of problem on wicket-contrib-push-examples, for the dependency on WCD and WCP. Xavier On 5/10/07, Xavier Hanin [EMAIL PROTECTED] wrote: Hi, I think there is a problem with the current wicket-contrib-push pom: the dependency on dojo is: dependency groupIdorg.wicketstuff/groupId artifactIddojo/artifactId version1.3.0-SNAPSHOT/version /dependency but I think it should be: dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-dojo/artifactId version1.3.0-SNAPSHOT /version /dependency according to current wicket-contrib-dojo pom. Or am I missing something? Xavier -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] XML Parsing
Hello Edward, I am new to wicket myself and wouldn't be surprised if it contained it's own XML parsing and binding library. But you probably don't want to rely on it, as it the wicket developers may decide to go for another library. You could look into: - jdom (haven't used this, but it looks quite easy to use from the FAQ) - Java DOM API (the w3c standardized way of reading XML files) - jaxb (generates marshalling/unmarshalling code from an XML schema. You unmarshall an XML file and then you get to access the information as PersonalInformation.getUserName() ). edward durai wrote: Hi Wicket Experts, I have one xml file, like Personal Information usernameDavid/username addressUSA/address /Personal Information I want to parse username and its value and address value. Is it possible in wicket? If Yes How? Thanking You Edward -- Lennaert van der Linden Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] webPages variableFlow, backButton, theSmartAndCorrectWay?
in 1.2 you really need to hold on to the pages else the can fall out of the page map and then you can never restore them Ofcourse if the state is just some data you could keep the model and rebuild the page with that model if needed? johan On 5/10/07, manuel barzi [EMAIL PROTECTED] wrote: Thanks, Johan. I am on wicket 1.2.6, so I guess there's no other choice for the moment, till I upgrade to 1.3, right? On 5/9/07, Johan Compagner [EMAIL PROTECTED] wrote: in 1.3 what you could do is only remember the pageid and pagemap just aks the session for the pagemap/page when you need it. Then you don't have to have references that you maybe never need. johan On 5/9/07, manu [EMAIL PROTECTED] wrote: Hi, Sirs, I have the following webPages variableFlow: Flow1: Page1 Page2 Page3 Page4 Page5 Page6 Flow2: Page1 Page3 Page4 Page6 As expressed in this flows, sometimes, depending on internal conditions, Page1 flows directly to Page3, jumping over Page2, and so it happens with Page4 to Page6, avoiding Page5. Then I have to return back using a button on each page, let's call it, back-button ;) As I need to keep state on all pages, when going back from PageN, I have to retrieve PageN-1, from inside a List (custom object) that I use to save flow history. But I guess there might be a much better and smart way to do this in Wicket. I haven't seen good examples of it, other than saving in PageN a reference to PageN-1, and then flowing using this internal references. So, is there any better way to threat with page history (back-button) and conserving state? Thanks ;) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to find pages where we forgot to use detachable models?
what you can do is in detach you try to serialize all the pages that you render and test if it serializes. Or test if there are no special objects being written that you don't expect to be written (have a custom ObjectOutputStream for that) als wicket 1.3 does have now a special object output stream checker which points you exactly what field of what object is not serializeable johan On 5/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm still a noobie with regard to Wicket so my apologies if this is a dumb question. Currently all my Wicket pages are using chained property models + detachable models for dynamic content. This works great. However, recently I discovered that one of my pages was getting a serialization error. Turns out that the page in question was not using a detachable property model, and so its object graph was being serialized. The default Wicket serialization was failing and causing an exception and backtrace. My question for the list is this: Is there a Wicket feature that can identify which pages are NOT using detachable models for dynamic content? It would be nice if there was a way that Wicket could flag whenever we're serializing model objects (possibly big object graphs of model objects). In other words, it would be handy to find non-detachable dynamic models without reading line-by-line through the source code of every single Wicket page. Thanks for any help/info. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to find pages where we forgot to use detachable models?
You do that with org.apache.wicket.util.lang.Objects.cloneObject(yourPage) Eelco On 5/10/07, Johan Compagner [EMAIL PROTECTED] wrote: what you can do is in detach you try to serialize all the pages that you render and test if it serializes. Or test if there are no special objects being written that you don't expect to be written (have a custom ObjectOutputStream for that) als wicket 1.3 does have now a special object output stream checker which points you exactly what field of what object is not serializeable johan On 5/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm still a noobie with regard to Wicket so my apologies if this is a dumb question. Currently all my Wicket pages are using chained property models + detachable models for dynamic content. This works great. However, recently I discovered that one of my pages was getting a serialization error. Turns out that the page in question was not using a detachable property model, and so its object graph was being serialized. The default Wicket serialization was failing and causing an exception and backtrace. My question for the list is this: Is there a Wicket feature that can identify which pages are NOT using detachable models for dynamic content? It would be nice if there was a way that Wicket could flag whenever we're serializing model objects (possibly big object graphs of model objects). In other words, it would be handy to find non-detachable dynamic models without reading line-by-line through the source code of every single Wicket page. Thanks for any help/info. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] div id problem
Right now, when you set outputmarkupid on component wicket doesn't honor the id specified in markup. One of the reasons is that when you use the component twice, the id is no longer unique. In you case I suggest you use css class instead of id to assign stylesheet to your elements. -Matej On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / span wicket:id=navigator class=navigator[agents navigator]/span /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java: public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: bad dependency
* Xavier Hanin: BTW, there is the same kind of problem on wicket-contrib-push-examples, for the dependency on WCD and WCP. Hey Xavier, Do you already have a SourceForge account? Would you be interested in joining the team? ;-) -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to pass the values from one page another page in wicket?
http://wicketstuff.org/wicket13/signin/ On 5/10/07, edward durai [EMAIL PROTECTED] wrote: Hi, I am newbie of wicket, in jsp, consider one.jsp contains username field. When I click submit button goto another page that is two.jsp. I can get username field using request.getParameter(username); But In Wicket, How can I do it the same process? Please explain. Thanking You. -- View this message in context: http://www.nabble.com/How-to-pass-the-values-from-one-page-another-page-in-wicket--tf3721486.html#a10412862 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: bad dependency
On 5/10/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Xavier Hanin: BTW, there is the same kind of problem on wicket-contrib-push-examples, for the dependency on WCD and WCP. Hey Xavier, Do you already have a SourceForge account? Sure: xhanin Would you be interested in joining the team? ;-) I don't know if I'll have much time to contribute, but I'd be happy to join though. I can also provide patches, it's just more work for you :-) Xavier -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] newbie creating an expandable tree node with no children
How can I create an expandable node when the node doesn't have any children. it seems as if the '+' sign is added automatically only when children exist (I am implementing a lazy loading tree, the children will be added only when the user expands the node)? Thanks Shula -- View this message in context: http://www.nabble.com/newbie-creating-an-expandable-tree-node-with-no-children-tf3722311.html#a10415653 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: bad dependency
* Xavier Hanin: On 5/10/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: Would you be interested in joining the team? ;-) I don't know if I'll have much time to contribute, but I'd be happy to join though. Congratulations, you're in! I can also provide patches, it's just more work for you :-) Well, I already know that you provide valuable patches, so let's keep my copious free time for something else ;-) -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-contrib-push: design discussion
Hey WCP folks, I've just started using wicket-contrib-push, and I feel a bit at home with all these comments with my name as the author :-) I would like to discuss the design with you. For the moment there interfaces implemented by both timer and comet implementations, but it's not that easy to switch. Indeed if you look at the examples they are very implementation dependent. So my proposition is to introduce another interface, called IPushService, which would allow both to publish and receive events. You would have a timer and cometd based implementations for the moment, but you could rely on the interface only the interface for push related operations. I attach a patch on current code base with an implementation of what I'm thinking about, it may help you better see what I mean. WDYT? Xavier -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ Index: D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/.project === --- D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/.project (revision 2113) +++ D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/.project (working copy) @@ -1,5 +1,5 @@ projectDescription - namepush/name + namewicketstuff-push/name commentAn integration project for server side pushing in Wicket/comment projects/ buildSpec Index: D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/src/main/java/org/wicketstuff/push/timer/TimerPushService.java === --- D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/src/main/java/org/wicketstuff/push/timer/TimerPushService.java (revision 0) +++ D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/src/main/java/org/wicketstuff/push/timer/TimerPushService.java (revision 0) @@ -0,0 +1,35 @@ +package org.wicketstuff.push.timer; + +import java.util.Map; + +import org.apache.wicket.Component; +import org.apache.wicket.util.time.Duration; +import org.wicketstuff.push.IPushBehavior; +import org.wicketstuff.push.IPushPublisher; +import org.wicketstuff.push.IPushService; +import org.wicketstuff.push.IPushTarget; +import org.wicketstuff.push.PushEvent; + +public class TimerPushService implements IPushService { + private Duration duration; + private IPushPublisher publisher = new TimerPushPublisher(); + + public TimerPushService(Duration duration) { + this.duration = duration; + } + + public void addPushBehavior(Component component, String channel, final IPushBehavior delegate) { + component.add(new TimerPushBehavior(duration, channel) { + private static final long serialVersionUID = 1L; + + public void onEvent(String channel, MapString, String datas, IPushTarget target) { +delegate.onEvent(channel, datas, target); + } + }); + } + + public void publish(PushEvent event) { + publisher.publish(event); + } + +} Property changes on: D:\users\xavier\documents\wkspace\sourceforge\wicket-stuff\wicket-contrib-push\src\main\java\org\wicketstuff\push\timer\TimerPushService.java ___ Name: svn:eol-style + native Index: D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/src/main/java/org/wicketstuff/push/IPushService.java === --- D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/src/main/java/org/wicketstuff/push/IPushService.java (revision 0) +++ D:/users/xavier/documents/wkspace/sourceforge/wicket-stuff/wicket-contrib-push/src/main/java/org/wicketstuff/push/IPushService.java (revision 0) @@ -0,0 +1,57 @@ +package org.wicketstuff.push; + +import org.apache.wicket.Component; +import org.apache.wicket.Page; +import org.wicketstuff.push.cometd.CometdPushService; +import org.wicketstuff.push.timer.TimerPushService; + +/** + * A service providing push facility in wicket based applications. + * p + * Implementation of this interface are the basis of a push implementation. + * You usually store one IPushService implementation in your application instance, + * and then delegate all your push related operations to this service, + * allowing very easy switching between push implementations. + * p + * Here is how you usually use an IPushService implementation: + * pre + * IPushService pushService = MyApplication.get().getPushService(); + * // I want to send an event when i click a button + * [...] + * onClick(AjaxRequestTarget target){ + * pushService.publish(new PushEvent(channel)); + * } + * [...] + * + * // All pages listening this event should add + * [...] + * pushService.addPushBehavior(this, channel, new IPushBehavior() { + * public void onEvent(String channel, Map datas, IPushTarget target){ +
Re: [Wicket-user] wicket-contrib-push: bad dependency
On 5/10/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Xavier Hanin: On 5/10/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: Would you be interested in joining the team? ;-) I don't know if I'll have much time to contribute, but I'd be happy to join though. Congratulations, you're in! Thanks! I've just posted another mail discussing a patch to apply, it seems I'll be able to apply it myself if you think it's a good idea :-) Xavier I can also provide patches, it's just more work for you :-) Well, I already know that you provide valuable patches, so let's keep my copious free time for something else ;-) -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: bad dependency
Jean-Baptiste Quenot a écrit : * Xavier Hanin: On 5/10/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: Would you be interested in joining the team? ;-) I don't know if I'll have much time to contribute, but I'd be happy to join though. Congratulations, you're in! Welcome in! ;) I can also provide patches, it's just more work for you :-) Well, I already know that you provide valuable patches, so let's keep my copious free time for something else ;-) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] div id problem
2007/5/10, Matej Knopp [EMAIL PROTECTED]: Right now, when you set outputmarkupid on component wicket doesn't honor the id specified in markup. One of the reasons is that when you use the component twice, the id is no longer unique. I understand that if the id is specified in the panel markup (ViewPanel.html) , but it is not the case here. In you case I suggest you use css class instead of id to assign stylesheet to your elements. ok, I didn't use a class attribute for my div so I can use it now. Thanks Mathieu -Matej On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / span wicket:id=navigator class=navigator[agents navigator]/span /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java: public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] (no subject)
尊敬的负责人(经理/财务):您好! 深圳万利豪商贸发展有限公司:在我公司持续稳定的发展中实业雄厚;有着一定的 社会关系。在我公司每月进项多销项少,每月有余额发票。对外联系些业务贵公司 在平时作帐及销售方面是需要用些票据可在我公司代开。如商品销售、地税建筑安 装、其它服务、运输、广告发票等……收费1.5%左右;还可代办海关缴款书。 在我公司成立多年一直坚持以信用,所开绝对真票;更希望贵公司共同合作快乐! 本公司的承诺:以最优惠的价格和最及时的服务满足你的要求;提供到位。如 贵公司有些担心,可在电脑网上查证或确认后再付款。 以真诚的服务合作一次,必成永久的朋友! 欢迎来电联系! 联 系 人 :谢先生 电 话 :135102224450755-81934682 [EMAIL PROTECTED] 本公司是群发的如带来不便请多包涵 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] newbie creating an expandable tree node with no children
Hi Shula, You need to override isLeaf() in your TreeNode impl to return true. best, jim On 5/10/07, sf [EMAIL PROTECTED] wrote: How can I create an expandable node when the node doesn't have any children. it seems as if the '+' sign is added automatically only when children exist (I am implementing a lazy loading tree, the children will be added only when the user expands the node)? Thanks Shula -- View this message in context: http://www.nabble.com/newbie-creating-an-expandable-tree-node-with-no-children-tf3722311.html#a10415653 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Query String passing
Check out the examples http://wicketstuff.org/wicket13/index.html in particular echo. N.b. there is a view source link in the top right corner that shows you the underlying html java. Scott On 5/10/07, edward durai [EMAIL PROTECTED] wrote: Hi, I am newbie of wicket, in jsp, consider one.jsp contains username field. When I click submit button goto another page that is two.jsp. I can get username field using request.getParameter(username); But In Wicket, How can I do it the same process? Please explain. Thanking You. -- View this message in context: http://www.nabble.com/Query-String-passing-tf3721482.html#a10412858 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Query String passing
You need to grasp the concept of models, please see http://cwiki.apache.org/WICKET/working-with-wicket-models.html and this for an example. http://wicketstuff.org/wicket13/forminput/ edward durai wrote: Hi, I am newbie of wicket, in jsp, consider one.jsp contains username field. When I click submit button goto another page that is two.jsp. I can get username field using request.getParameter(username); But In Wicket, How can I do it the same process? Please explain. Thanking You. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] XML Parsing
I think I would check xstream out. http://xstream.codehaus.org/ edward durai wrote: Hi Wicket Experts, I have one xml file, like Personal Information usernameDavid/username addressUSA/address /Personal Information I want to parse username and its value and address value. Is it possible in wicket? If Yes How? Thanking You Edward - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DataView: fixed number of items per page
Hi, I'm using dataView, and for design issues I want 5 items per pages even if they are empty whereas setItemPerPage() method only defines a maximum number of items to be displayed. Any suggestions? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
The only thing that mildly bothers me is that the 'Push' sounds like on-way-traffic to me. Can we come up with additional ideas? Something with Channel in it maybe? Or am I the only one feeling uneasy with the name? Eelco On 5/10/07, Xavier Hanin [EMAIL PROTECTED] wrote: Hey WCP folks, I've just started using wicket-contrib-push, and I feel a bit at home with all these comments with my name as the author :-) I would like to discuss the design with you. For the moment there interfaces implemented by both timer and comet implementations, but it's not that easy to switch. Indeed if you look at the examples they are very implementation dependent. So my proposition is to introduce another interface, called IPushService, which would allow both to publish and receive events. You would have a timer and cometd based implementations for the moment, but you could rely on the interface only the interface for push related operations. I attach a patch on current code base with an implementation of what I'm thinking about, it may help you better see what I mean. WDYT? Xavier -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DataView: fixed number of items per page
I think I could use the IDataProvider.iterator(first, count) and always returns an iterator of which size is count. Any other suggestions? Mathieu 2007/5/10, Bernatet Mathieu [EMAIL PROTECTED]: Hi, I'm using dataView, and for design issues I want 5 items per pages even if they are empty whereas setItemPerPage() method only defines a maximum number of items to be displayed. Any suggestions? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
Eelco Hillenius a écrit : The only thing that mildly bothers me is that the 'Push' sounds like on-way-traffic to me. Can we come up with additional ideas? Something with Channel in it maybe? Or am I the only one feeling uneasy with the name? Xavier Hanin a écrit : So I suggest to remove this interface impl from the two behavior implementation, rename IPushBehavior in IPushListener, and rename #addPushBehavior(Component component, String channel, IPushBehavior behavior) in #addPushListener(Component component, String channel, IPushListener listener) WDYT? Right, so what do you think of addChannelEventListener and IChannelEventListener ? -- Vincent - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] getVariation and extended panels
could you more clearly define what you think the behavior should be, and what it is now? -igor On 5/10/07, Joshua Lim [EMAIL PROTECTED] wrote: Hi I have got a SuperPanel class that extends Panel, I have a few variations of html for this SuperPanel and am overriding the getVariation() method for to get what I want ...that's all good. Then I wanted to add a ChildPanel extending SuperPanel. and also I would like to have ChildPanel to have also a few variations hence giving me more flexibility in generating dynamic panels as a result... getVariation() gets resolved at the ChildPanel level only. since overriding the getVariation on ChildPanel hides SuperPanel.getVariation(). Am I stretching this too far?? :p and should just work with one variation per component hierarchy Joshua - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] programmatic access to a wicket site
https://issues.apache.org/jira/browse/WICKET-552 -igor On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: One of the requirements of the site that I'm building is that oneof the pages be exposed programatically so that other programs can 'call' it. They would know whether they'd succeeded or not by inspecting the http status code returned. Since this is just a regular page of the site, when the call is successful a web page is rendered and returned. In this case it would be ignored. But when there is an error, I'd like to relay that to clients. One thing I've been trying to do (without any success) is to throw an AbortWithWebErrorCodeException from my constructor with a non-200 code and a message. Now supposing that it works, I'd like to know how a client could extract the message from the response. Is it sent as a header, the entire body, or part of the body? And if there is another approach that would work in my case, I'd love to hear about it. Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
On 5/10/07, Vincent Demay [EMAIL PROTECTED] wrote: Eelco Hillenius a écrit : The only thing that mildly bothers me is that the 'Push' sounds like on-way-traffic to me. Can we come up with additional ideas? Something with Channel in it maybe? Or am I the only one feeling uneasy with the name? Xavier Hanin a écrit : So I suggest to remove this interface impl from the two behavior implementation, rename IPushBehavior in IPushListener, and rename #addPushBehavior(Component component, String channel, IPushBehavior behavior) in #addPushListener(Component component, String channel, IPushListener listener) WDYT? Right, so what do you think of addChannelEventListener and IChannelEventListener ? Indeed, it makes more sense like that. To be consistent, should we change all Push* in Channel*? Xavier -- Vincent - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Force page refresh after Ajax request completes?
Yup. That's why I was trying to do it using target.appendJavascript(window.location.reload()) instead of doing the setResponsePage server side...? Since I'm appending that Javascript AFTER the 'close modal window' call, it seems like it should be able to close the modal window client side, THEN call my javascript to refresh the page, without the warning, since the modal has been closed.. ? Matej Knopp-2 wrote: The problem is that when setResponsePage() is called, no appended Javascript is evaluated. In fact, wicket doesn't process the ajax response at all. Just sets window.location. -Matej On 5/9/07, dukejansen [EMAIL PROTECTED] wrote: Yeah, but I don't want to disable that warning. That warning is valid if the user really does try to navigate away while the modal is still being displayed. The problem is that I am actually closing the modal before I do the redirect, so it shouldn't show the warning at all. -Jason Matej Knopp-2 wrote: There is a way that should also work in recent 1.x. To disable the confirmation dialog you need to put this inside the page with modal window: script type=text/javascript Wicket.Window.unloadConfirmation=false; /script -Matej On 5/9/07, Arnout Engelen [EMAIL PROTECTED] wrote: dukejansen schreef: My Ajax event handler needs to first close the current modal window and then refresh the entire page. Is there a better way to do this? I once worked around something like this by putting the redirect in the windowClosedCallback of the ModalWindow. That was sufficient in our case, but I too would be interested in some more enlightenment in this area :). Arnout - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10400468 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10417476 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit
ichoicerenderer needs an id and a display value, the converter only has a single tostring - would that be used for id or for display value? -igor On 5/10/07, Dimitrio [EMAIL PROTECTED] wrote: Thanks to everybody the replies! I played with form components for awhile and in particular with DropDownChoice and could get it to do exactly what I needed. Just to remind -- I wanted to prevent the DropDownChoice from loading the entire list of choices ( countries) on submit, but to only load the entity selected by the user by some indexed unique field and assign it to the object being edited ( city). DropDownChoice loads the list of choices in the AbstractSingleSelectChoice.convertValue(String[]) method which is final. That method is called from FormComponent's convert() which is also final. However, if a form component has been provided with a type, convertValue() is not called, and instead a converter is used. So, here is what I did: 1. Wrote a CountryConverter: public class CountryConverter extends SimpleConverterAdapter { public Object toObject(String value) { return ServiceUtils.getAddressService().getCountryByCode(value); } public String toString(Object value) { return String.valueOf(value); } } Not sure about the purpose of toString method here. Initially I thought it would be passed a Country instance and would return a String to be rendered as the value for option (an ISO code), but it looks like an IChoiceRenderer is used for this purpose. toString was being invoked with String representations of my countries. 2. Wrote a CountryChoiceRenderer: public class CountryChoiceRenderer implements IChoiceRenderer { public String getIdValue(Object object, int index) { Country country = (Country) object; return country.getIsoCode(); } public Object getDisplayValue(Object object) { Country country = (Country) object; return country.getName(); } } 3. Implemented a DropDownChoice as an inner class of my panel: class CountryChoice extends DropDownChoice { public CountryChoice(String id) { super(id); setChoices(new LoadableDetachableModel() { protected Object load() { return ServiceUtils.getAddressService ().getAllCountries(); } }); setRequired(true); setChoiceRenderer(new CountryChoiceRenderer()); setType(Country.class); } public IConverter getConverter() { return new CountryConverter(); } } Here is what happens on submit: 1. Form processing begins and eventually FormComponent.convert() is called on my CountryChoice. 2. FormComponent.convert() sees that the component has a type ( Country.class) and instead of calling convertValue() calls my converter. 3. My converter selects a country by ISO code. 4. The City instance is assigned the selected country and then saveOrUpdate()'d. 5. If I redisplay my panel, the country list will, of course, be loaded during the rendering phase. If I redirect to some other page, the country list will not be loaded -- just as I needed. I would like to see some comments regarding this approach. What do you think about it? Can you suggest any improvements? Would consider using it in your Wicket application? Is it the Wicket way of doing things? Best regards, Dimitrio On 5/9/07, Igor Vaynberg [EMAIL PROTECTED] wrote: there is wicket-phonebook project in wicket-stuff that shows wicket+spring+hibernate your dropdownchoice should use a loadable detachable model, that way the list is loaded once per request add(new dropdownchoice(city, new loadabledetachablemodel() { load() { return dao.listcities(); }})); that answers question 1 and question 2 - the data will be reloaded in onsubmit() since that is a new request, but that same data will be used for rendering as well. -igor On 5/9/07, Dimitrio [EMAIL PROTECTED] wrote: Hello All, I am evaluating the possibility to use the Wicket / Spring / Hibernate stack for my next project (Spring / Hibernate being used for the middle tier + OpenSessionInViewFilter). Let me describe a simple test scenario that I am trying to implement - a City Editor panel. The panel contains a text field with a city name and a drop down choice with the available countries. The domain model (mapped to the DB via Hibernate) is the following: City - Long id; String name; @Cascade(SAVE_UPDATE) Country country; Country Long id; String isoCode; String name; Upon construction, the Country drop down choice for the panel is provided with a LoadableDetachableModel that loads a list of all available countries from a CountryDao. The form itself has a CompoundPropertyModel for the city being edited. The page renders just fine, the country list is correctly reloaded upon F5 - everything as expected.
Re: [Wicket-user] wicket-contrib-push: design discussion
Xavier Hanin a écrit : On 5/10/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Eelco Hillenius a écrit : The only thing that mildly bothers me is that the 'Push' sounds like on-way-traffic to me. Can we come up with additional ideas? Something with Channel in it maybe? Or am I the only one feeling uneasy with the name? Xavier Hanin a écrit : So I suggest to remove this interface impl from the two behavior implementation, rename IPushBehavior in IPushListener, and rename #addPushBehavior(Component component, String channel, IPushBehavior behavior) in #addPushListener(Component component, String channel, IPushListener listener) WDYT? Right, so what do you think of addChannelEventListener and IChannelEventListener ? Indeed, it makes more sense like that. To be consistent, should we change all Push* in Channel*? I think so yes, moreover one of the both implementations do not really use pushing ;) -- Vincent Xavier -- Vincent - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
On 5/10/07, Vincent Demay [EMAIL PROTECTED] wrote: Xavier Hanin a écrit : On 5/10/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Eelco Hillenius a écrit : The only thing that mildly bothers me is that the 'Push' sounds like on-way-traffic to me. Can we come up with additional ideas? Something with Channel in it maybe? Or am I the only one feeling uneasy with the name? Xavier Hanin a écrit : So I suggest to remove this interface impl from the two behavior implementation, rename IPushBehavior in IPushListener, and rename #addPushBehavior(Component component, String channel, IPushBehavior behavior) in #addPushListener(Component component, String channel, IPushListener listener) WDYT? Right, so what do you think of addChannelEventListener and IChannelEventListener ? Indeed, it makes more sense like that. To be consistent, should we change all Push* in Channel*? I think so yes, moreover one of the both implementations do not really use pushing ;) OK, so I'll make the change with the other suggested ones if nobody's objects. Xavier -- Vincent Xavier -- Vincent - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to find pages where we forgot to use detachable models?
make sure you call super.detach() first though -igor On 5/10/07, Johan Compagner [EMAIL PROTECTED] wrote: what you can do is in detach you try to serialize all the pages that you render and test if it serializes. Or test if there are no special objects being written that you don't expect to be written (have a custom ObjectOutputStream for that) als wicket 1.3 does have now a special object output stream checker which points you exactly what field of what object is not serializeable johan On 5/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm still a noobie with regard to Wicket so my apologies if this is a dumb question. Currently all my Wicket pages are using chained property models + detachable models for dynamic content. This works great. However, recently I discovered that one of my pages was getting a serialization error. Turns out that the page in question was not using a detachable property model, and so its object graph was being serialized. The default Wicket serialization was failing and causing an exception and backtrace. My question for the list is this: Is there a Wicket feature that can identify which pages are NOT using detachable models for dynamic content? It would be nice if there was a way that Wicket could flag whenever we're serializing model objects (possibly big object graphs of model objects). In other words, it would be handy to find non-detachable dynamic models without reading line-by-line through the source code of every single Wicket page. Thanks for any help/info. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
Right, so what do you think of addChannelEventListener and IChannelEventListener ? Better, but the nitpicker in me says that 'Listeners' wouldn't typically participate in the channel, whereas that what the implementations are supposed to do, right? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
Btw, for a next design discussion, we'd better use the dev list. Eelco On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Right, so what do you think of addChannelEventListener and IChannelEventListener ? Better, but the nitpicker in me says that 'Listeners' wouldn't typically participate in the channel, whereas that what the implementations are supposed to do, right? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] div id problem
On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: 2007/5/10, Matej Knopp [EMAIL PROTECTED]: Right now, when you set outputmarkupid on component wicket doesn't honor the id specified in markup. One of the reasons is that when you use the component twice, the id is no longer unique. I understand that if the id is specified in the panel markup (ViewPanel.html) , but it is not the case here. it might not be the case, but how is wicket supposed to know that? also what if you put that component into a repeater? it will also have non unique ids. i think there are so many different ways to break this that i always advocated of never honoring markup's id attr if setoutputmarkupid is called. but thats just me. -igor In you case I suggest you use css class instead of id to assign stylesheet to your elements. ok, I didn't use a class attribute for my div so I can use it now. Thanks Mathieu -Matej On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / span wicket:id=navigator class=navigator[agents navigator]/span /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java: public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Right, so what do you think of addChannelEventListener and IChannelEventListener ? Better, but the nitpicker in me says that 'Listeners' wouldn't typically participate in the channel, whereas that what the implementations are supposed to do, right? What do you mean by participate? My proposition is to make listeners only listeners, doing nothing but listening to events and reacting, by for example sending javascript to the client. Here is a sample use in a page: pushService.addChannelListener(this, channel, new IChannelListener() { public void onEvent(String channel, MapString, String datas, IChannelTarget target) { target.addComponent(container); } }); The two current implementation of IPushBehavior would stay behaviors, used by the IChannelService implementation, but not visible to the API user. Does it make sense? Xavier Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DataView: fixed number of items per page
that will work. or you can create your own dataview :) look at DataViewBase, its only a few lines of code, so you can create your own subclass of AbstractPageableView where setitemsperpage works like you want. -igor On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: I think I could use the IDataProvider.iterator(first, count) and always returns an iterator of which size is count. Any other suggestions? Mathieu 2007/5/10, Bernatet Mathieu [EMAIL PROTECTED]: Hi, I'm using dataView, and for design issues I want 5 items per pages even if they are empty whereas setItemPerPage() method only defines a maximum number of items to be displayed. Any suggestions? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Btw, for a next design discussion, we'd better use the dev list. Right, sorry about that. Xavier Eelco On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Right, so what do you think of addChannelEventListener and IChannelEventListener ? Better, but the nitpicker in me says that 'Listeners' wouldn't typically participate in the channel, whereas that what the implementations are supposed to do, right? Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] div id problem
On 5/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: 2007/5/10, Matej Knopp [EMAIL PROTECTED]: Right now, when you set outputmarkupid on component wicket doesn't honor the id specified in markup. One of the reasons is that when you use the component twice, the id is no longer unique. I understand that if the id is specified in the panel markup (ViewPanel.html) , but it is not the case here. it might not be the case, but how is wicket supposed to know that? also what if you put that component into a repeater? it will also have non unique ids. i think there are so many different ways to break this that i always advocated of never honoring markup's id attr if setoutputmarkupid is called. but thats just me. So what is the recommended best practice: ask web designers to use class instead of ids on dynamic components (maybe not always possible), or encapsulate a dynamic component in a static one with an id under control of the web designer? Xavier -igor In you case I suggest you use css class instead of id to assign stylesheet to your elements. ok, I didn't use a class attribute for my div so I can use it now. Thanks Mathieu -Matej On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / span wicket:id=navigator class=navigator[agents navigator]/span /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java : public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
[Wicket-user] session authentication
Hi there! I having a bit of trouble implementing session authentication in my application. That is, I haven't quite figured out how to control authentication page access. I would really appreciate if someone could send me a simple application with a Login Page that provides access to a Welcome Page and a log out link - not allowing further access to the Welcome Page. Maybe the Login Page could have a link to the Welcome Page without submitting login/password (just for testing purpose). I hope I explained my problem well. Thanks in advance, Edd -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10418039 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-push: design discussion
The two current implementation of IPushBehavior would stay behaviors, used by the IChannelService implementation, but not visible to the API user. Does it make sense? Yup. Agreed. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] session authentication
http://wicketstuff.org/wicket13/signin and http://wicketstuff.org/wicket13/signin2 These are the best place to look! Marc On 5/10/07, eddmosphere [EMAIL PROTECTED] wrote: Hi there! I having a bit of trouble implementing session authentication in my application. That is, I haven't quite figured out how to control authentication page access. I would really appreciate if someone could send me a simple application with a Login Page that provides access to a Welcome Page and a log out link - not allowing further access to the Welcome Page. Maybe the Login Page could have a link to the Welcome Page without submitting login/password (just for testing purpose). I hope I explained my problem well. Thanks in advance, Edd -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10418039 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Serious problem w/ Glassfish V2 Beta 2 Wicket
I'm attempting to test against the latest Glassfish app server (V2 b41, a.k.a. Beta 2) and there seems to be an issue with wicket that didn't arise when I had tested it in earlier versions of Glassfish. I realize the app server may be to blame but that may not be entirely true, I'm just trying to figure out what might be happening...since wicket seems to be the only thing involved w/ the exception...nothing else in the app is causing any problems. I built an enterprise app in Netbeans 5.5.1, using Java EE 5 as the target platform and Glassfish V2 Beta 2 as the app server. I'm trying to (once again) move our storefront application to Glassfish, which was built using Wicket 1.2.x and JPA/EJB3. On my local dev box, everything seems to work as expected. I can build, deploy, and run the app. On the staging box I've installed Glassfish exactly like I did locally and can deploy the application, and it runs. However, if I restart the app server, when the app comes back up I'm unable to pull it up, I get the following exception: com.myapp.abcommerce.ui.admin.UserSession cannot be cast to com.myapp.abcommerce.ui.admin.UserSession at com.myapp.abcommerce.ui.panel.HeaderPanel.(HeaderPanel.java:38) at com.myapp.abcommerce.ui.ProductCatalog.(ProductCatalog.java:57) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:267) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205) at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:705) at javax.servlet.http.HttpServlet.service(HttpServlet.java:818) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248) at
Re: [Wicket-user] Serious problem w/ Glassfish V2 Beta 2 Wicket
On 5/10/07, V. Jenks [EMAIL PROTECTED] wrote: com.myapp.abcommerce.ui.admin.UserSession cannot be cast to com.myapp.abcommerce.ui.admin.UserSession ...oh REALLY now? this is a classloader problem. UserSession loaded by classloader A cannot be cast to UserSession loaded by classloader B -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serious problem w/ Glassfish V2 Beta 2 Wicket
Thanks for the insight Igor, very interesting, and it makes sense. However, it doesn't make sense. :P This has never happened to this application running on JBoss 4.0.x in over a yearand never happened when I tested it against Glassfish V1. Any idea what might be causing this? Both the source code and version of Wicket I'm using remains unchanged in the entire time it has been in production...so I'm very skeptical that this is anything *other* than an issue w/ Glassfish. I've actually been unable to reproduce the error in the last hour, vigorously testing by restarting the app server AND undeploying, redeploying, etc. the application. This makes me even more nervous. :S igor.vaynberg wrote: On 5/10/07, V. Jenks [EMAIL PROTECTED] wrote: com.myapp.abcommerce.ui.admin.UserSession cannot be cast to com.myapp.abcommerce.ui.admin.UserSession ...oh REALLY now? this is a classloader problem. UserSession loaded by classloader A cannot be cast to UserSession loaded by classloader B -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Serious-problem-w--Glassfish-V2-Beta-2---Wicket-tf3723270.html#a10419545 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serious problem w/ Glassfish V2 Beta 2 Wicket
i dont use glassfish. just pointing out what can cause the problem. -igor On 5/10/07, V. Jenks [EMAIL PROTECTED] wrote: Thanks for the insight Igor, very interesting, and it makes sense. However, it doesn't make sense. :P This has never happened to this application running on JBoss 4.0.x in over a yearand never happened when I tested it against Glassfish V1. Any idea what might be causing this? Both the source code and version of Wicket I'm using remains unchanged in the entire time it has been in production...so I'm very skeptical that this is anything *other* than an issue w/ Glassfish. I've actually been unable to reproduce the error in the last hour, vigorously testing by restarting the app server AND undeploying, redeploying, etc. the application. This makes me even more nervous. :S igor.vaynberg wrote: On 5/10/07, V. Jenks [EMAIL PROTECTED] wrote: com.myapp.abcommerce.ui.admin.UserSession cannot be cast to com.myapp.abcommerce.ui.admin.UserSession ...oh REALLY now? this is a classloader problem. UserSession loaded by classloader A cannot be cast to UserSession loaded by classloader B -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Serious-problem-w--Glassfish-V2-Beta-2---Wicket-tf3723270.html#a10419545 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] div id problem
Would this solution work better for you? body wicket:extend div id=projects-panel div wicket:id=projects-panel/div /div div id=agents-panel div wicket:id=agents-panel/div /div div id=builds-panel div wicket:id=builds-panel / div /wicket:extend /body Xavier Hanin wrote: On 5/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: 2007/5/10, Matej Knopp [EMAIL PROTECTED]: Right now, when you set outputmarkupid on component wicket doesn't honor the id specified in markup. One of the reasons is that when you use the component twice, the id is no longer unique. I understand that if the id is specified in the panel markup (ViewPanel.html) , but it is not the case here. it might not be the case, but how is wicket supposed to know that? also what if you put that component into a repeater? it will also have non unique ids. i think there are so many different ways to break this that i always advocated of never honoring markup's id attr if setoutputmarkupid is called. but thats just me. So what is the recommended best practice: ask web designers to use class instead of ids on dynamic components (maybe not always possible), or encapsulate a dynamic component in a static one with an id under control of the web designer? Xavier -igor In you case I suggest you use css class instead of id to assign stylesheet to your elements. ok, I didn't use a class attribute for my div so I can use it now. Thanks Mathieu -Matej On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / class=navigator[agents navigator] /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java : public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
Re: [Wicket-user] Problem with concurren ajax requests on page
I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
Johan Compagner wrote: who is making a patch :) I don't know what the process is to submit patches, so I have attached them to this message. Julian http://www.nabble.com/file/8304/WebApplication.diff WebApplication.diff http://www.nabble.com/file/8305/PackageRequestTargetUrlCodingStrategy.diff PackageRequestTargetUrlCodingStrategy.diff -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a10420562 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Template Pages and Wicket: Best Way?
Hi Everyone, Well, I´m a newbie in Wicket framework and had some difficulty to figure out how is the best way to make a template page where all areas defined in this template could be changed for Pages that use it. I read many topics about template, layout in mail-list, some examples in Wicket Wiki e some others of Panels/Borders ( http://www.wicket-wiki.org.uk/wiki/index.php/Panels_and_borders) and the correct way isn´t clearly for me. Somebody has any suggestion or example to do this: For example, if a have a main Template page that define some containers, like header1, header2, content1: Template.html: html head /head body div id=mainheader !-- Every page could change this content -- /div div id=header1 !-- Every page could change this content -- /div div id=header2 !-- Every page could change this content -- /div div id=content3 !-- Every page could change this content -- /div div id=maincontent !-- Every page could change this content -- /div div id=content1 !-- Every page could change this content -- /div div id=content2 !-- Every page could change this content -- /div /body /html And Pages that use this template and change the contents of this containers, like: MainPage.html html head /head body div id=mainheader !-- no component here -- /div div id=header1 !-- My Login Component -- /div div id=header2 !-- Navigation Component -- /div div id=content3 !-- Last News Component -- !-- Blogs Listing Component -- !-- Last Forum Messages Component -- /div div id=maincontent !-- News Component -- /div div id=content1 !-- Some User News Component -- /div div id=content2 !-- Search Component -- !-- Ads Component -- /div /body /html And other Page, using the same Template but change the content, like: SignInPage.html: html head /head body div id=mainheader !-- no component here -- /div div id=header1 !-- no component here -- /div div id=header2 !-- Navigation Component -- /div div id=content3 !-- Last Registered Users Component -- /div div id=maincontent !-- User Sign In Component -- /div div id=content1 !-- no component here -- /div div id=content2 !-- Search Component -- /div /body /html Thanks for any help! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] div id problem
answers follow ... 2007/5/10, Alex Objelean [EMAIL PROTECTED]: Would this solution work better for you? body wicket:extend div id=projects-panel div wicket:id=projects-panel/div /div div id=agents-panel div wicket:id=agents-panel/div /div div id=builds-panel div wicket:id=builds-panel / div /wicket:extend /body Yes, here the additional divs are not wicket components, so wicket don't change theirs ids (in spite of wicket could repeat them) and I can apply stylesheet on it but it adds a level in markup, I don't really like it but it works. (Xavier already suggests it :) ) Thanks Xavier Hanin wrote: On 5/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: 2007/5/10, Matej Knopp [EMAIL PROTECTED]: Right now, when you set outputmarkupid on component wicket doesn't honor the id specified in markup. One of the reasons is that when you use the component twice, the id is no longer unique. I understand that if the id is specified in the panel markup (ViewPanel.html) , but it is not the case here. it might not be the case, but how is wicket supposed to know that? also what if you put that component into a repeater? it will also have non unique ids. i think there are so many different ways to break this that i always advocated of never honoring markup's id attr if setoutputmarkupid is called. but thats just me. So what is the recommended best practice: ask web designers to use class instead of ids on dynamic components (maybe not always possible), or encapsulate a dynamic component in a static one with an id under control of the web designer? Xavier -igor Yes, div could already have a class attribute, e.g. the same for each ViewPanel, and class could be not used to reference one of them. But I don't have a pretty solution. Wicket guarantees each component have a unique id, I understand igor's position. The best way, I think, is encapsulate a dynamic component in a static one as Xavier said. Mathieu In you case I suggest you use css class instead of id to assign stylesheet to your elements. ok, I didn't use a class attribute for my div so I can use it now. Thanks Mathieu -Matej On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: Hi, I try to apply css style on several div but wicket changes their id attributes defined in the html file. I have 3 custom panels that contain a DataView and I want to refresh them with ajax, so I make a call to setOutputMarkupId() method. This call changes the id defined in html file. I add an AttributeModifier to force the use of the defined id, that works but now ajax refresh don't work. What I'm doing wrong? code: dashboard.html: ... body wicket:extend div wicket:id=projects-panel id=projects-panel / div wicket:id=agents-panel id=agents-panel / div wicket:id=builds-panel id=builds-panel / /wicket:extend /body --- viewPanel.html: wicket:panel wicket:child / class=navigator[agents navigator] /wicket:panel ViewPanel.java: public class ViewPanel extends Panel { private static final long serialVersionUID = 1L; public ViewPanel(String id, DataView dataView, int itemsPerPage) { super(id); setOutputMarkupId(true); add(dataView); dataView.setItemsPerPage(itemsPerPage); add(new AttributeModifier(id, true, new Model(id))); add(new FancyPagingNavigator(navigator, dataView)); } } - Dashboard.java : public class Dashboard extends WebPage { public Dashboard() { ... add(new ProjectsPanel(projects-panel, projects, 5)); add(new AgentsPanel(agents-panel, scheduler, 5)); add(new QueuePanel(builds-panel, scheduler, 5)); } } Mathieu - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list
Re: [Wicket-user] DataView: fixed number of items per page
ok, I will take a look on it later Thanks Mathieu 2007/5/10, Igor Vaynberg [EMAIL PROTECTED]: that will work. or you can create your own dataview :) look at DataViewBase, its only a few lines of code, so you can create your own subclass of AbstractPageableView where setitemsperpage works like you want. -igor On 5/10/07, Bernatet Mathieu [EMAIL PROTECTED] wrote: I think I could use the IDataProvider.iterator(first, count) and always returns an iterator of which size is count. Any other suggestions? Mathieu 2007/5/10, Bernatet Mathieu [EMAIL PROTECTED]: Hi, I'm using dataView, and for design issues I want 5 items per pages even if they are empty whereas setItemPerPage() method only defines a maximum number of items to be displayed. Any suggestions? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] session authentication
Thanks for the reply, Marc I've seen the examples, but didn't understand what were the basic steps to take..I'm confused whether to use wicket auth-roles, annotations, SignInPanel, SignInPage, etc etc.. :/ I'll take a better look ate the examples ;) Thanks again, Edd Marc-Andre Houle wrote: http://wicketstuff.org/wicket13/signin and http://wicketstuff.org/wicket13/signin2 These are the best place to look! Marc On 5/10/07, eddmosphere [EMAIL PROTECTED] wrote: Hi there! I having a bit of trouble implementing session authentication in my application. That is, I haven't quite figured out how to control authentication page access. I would really appreciate if someone could send me a simple application with a Login Page that provides access to a Welcome Page and a log out link - not allowing further access to the Welcome Page. Maybe the Login Page could have a link to the Welcome Page without submitting login/password (just for testing purpose). I hope I explained my problem well. Thanks in advance, Edd -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10418039 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10421069 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] session authentication
You can also download the source code of the examples to make some modification to see exactly what is happening... There not that much, I'm sure you'll get it... Marc On 5/10/07, eddmosphere [EMAIL PROTECTED] wrote: Thanks for the reply, Marc I've seen the examples, but didn't understand what were the basic steps to take..I'm confused whether to use wicket auth-roles, annotations, SignInPanel, SignInPage, etc etc.. :/ I'll take a better look ate the examples ;) Thanks again, Edd Marc-Andre Houle wrote: http://wicketstuff.org/wicket13/signin and http://wicketstuff.org/wicket13/signin2 These are the best place to look! Marc On 5/10/07, eddmosphere [EMAIL PROTECTED] wrote: Hi there! I having a bit of trouble implementing session authentication in my application. That is, I haven't quite figured out how to control authentication page access. I would really appreciate if someone could send me a simple application with a Login Page that provides access to a Welcome Page and a log out link - not allowing further access to the Welcome Page. Maybe the Login Page could have a link to the Welcome Page without submitting login/password (just for testing purpose). I hope I explained my problem well. Thanks in advance, Edd -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10418039 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10421069 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected
The solution you posted there looks workable. Instead of throwing an AbortException, I'd just call RequestCycle.get().setRequestTarget(...). However, it seems that to prevent the rest of my constructor from running (due to the error), I have to explicitly call 'return' (ie. can't use exception to get out of constructor). Is there any way I could exit without calling 'return'? Ok, if that wasn't clear, what I'd like to do is to have a method requireParameter(PageParams pp, String paramName) in my BasePage, so that if the paramName value is missing, the constructor would exit immediately with a redirect or error page. Using exceptions, I'd be able to simply call: requireParameter(...) and it could throw an exception which would take care of the control flow of the program. But instead, what I seem to be doing now is: if (isMissingParameter(params, paramName)) return; which is more verbose, but definitely not hideous. On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: See https://issues.apache.org/jira/browse/WICKET-552 On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: I easily reproduced this problem. I did not use svn access, but instead went to the wicket main page and downloaded the 1.2.6 quickstart. I ran it and it worked. Then I went to the Index.java and inserted the following line in the constructor: throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_BAD_REQUEST, FOOBAR); I went to my web browser, and again, blank page. Then I went to the command line and typed: $ wget http://localhost:8081/quickstart/app I get a 200 status code, with empty body: --14:50:42-- http://localhost:8081/quickstart/app = `app.1' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [ = ] 0 --.--K/s 14:50:42 (0.00 B/s) - `app.1' saved [0] So do you think this is a bug? Lowell On 5/9/07, Johan Compagner [EMAIL PROTECTED] wrote: yes see our quickstart project in svn i can try to build an example for this for example if i change one of the wicket examples homepages that it throws such an exception does it fail then? johan On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: do you have a quickstart that you can attach to a jira issue? What do you mean by this? Is a quickstart some sort of self-contained minimal jar? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel
Hi All I had some problem with ajax when using wicket 1.2.6. I read the thread with the following subject: Problem with concurren ajax requests on page Matej suggested that a upgrade to wicket 1.3 would solve the ajax problem. So i upgraded the application to wicket-1.3.0-incubating-SNAPSHOT. Now I have problems with AjaxSelfUpdatingTimerBehavior when using it together with AjaxTabbedPanel. Panel 1 includes a subpanel which has an AjaxSelfUpdatingTimerBehavior. Panel 2 has another subpanel and it doesnt include the subpanel from panel 1. When swithing page from panel 1 to panel 2 then after 5 seconds which is the duration of the first subpanel then i get the following error: org.apache.wicket.WicketRuntimeException: component contentpanel:menu:panel:showthreads not found on page dk.team.ninan.web.wicket.BasePage[id = 1], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget (AbstractRequestCycleProcessor.java:394) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage( AbstractRequestCycleProcessor.java:440) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:137) The error message is correct because the panel showthreads is no longer a part of BasePage, but why doesnt the behaviour disappear when replacing panels? What am i doing wrong? :) /Murat - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
make a jira issue for this https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=12310561sorter/order=DESCsorter/field=priorityresolution=-1component=12311420 On 5/10/07, JulianS [EMAIL PROTECTED] wrote: Johan Compagner wrote: who is making a patch :) I don't know what the process is to submit patches, so I have attached them to this message. Julian http://www.nabble.com/file/8304/WebApplication.diff WebApplication.diff http://www.nabble.com/file/8305/PackageRequestTargetUrlCodingStrategy.diff PackageRequestTargetUrlCodingStrategy.diff -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a10420562 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel
Hi Murat, I posted a hack to fix this several months back: http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559 Essentially, I have the timer check if the markup for the component it was bound to is still in the page, and return without firing if it is not. Hope this helps. best, jim On 5/10/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi All I had some problem with ajax when using wicket 1.2.6. I read the thread with the following subject: Problem with concurren ajax requests on page Matej suggested that a upgrade to wicket 1.3 would solve the ajax problem. So i upgraded the application to wicket-1.3.0-incubating-SNAPSHOT. Now I have problems with AjaxSelfUpdatingTimerBehavior when using it together with AjaxTabbedPanel. Panel 1 includes a subpanel which has an AjaxSelfUpdatingTimerBehavior. Panel 2 has another subpanel and it doesnt include the subpanel from panel 1. When swithing page from panel 1 to panel 2 then after 5 seconds which is the duration of the first subpanel then i get the following error: org.apache.wicket.WicketRuntimeException: component contentpanel:menu:panel:showthreads not found on page dk.team.ninan.web.wicket.BasePage[id = 1], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget (AbstractRequestCycleProcessor.java:394) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage( AbstractRequestCycleProcessor.java:440) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:137) The error message is correct because the panel showthreads is no longer a part of BasePage, but why doesnt the behaviour disappear when replacing panels? What am i doing wrong? :) /Murat - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel
erm, sorry that was: http://www.nabble.com/Re%3A-AjaxTimer-clearTimeout-p9401965.html On 5/10/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Murat, I posted a hack to fix this several months back: http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559 Essentially, I have the timer check if the markup for the component it was bound to is still in the page, and return without firing if it is not. Hope this helps. best, jim On 5/10/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi All I had some problem with ajax when using wicket 1.2.6. I read the thread with the following subject: Problem with concurren ajax requests on page Matej suggested that a upgrade to wicket 1.3 would solve the ajax problem. So i upgraded the application to wicket-1.3.0-incubating-SNAPSHOT. Now I have problems with AjaxSelfUpdatingTimerBehavior when using it together with AjaxTabbedPanel. Panel 1 includes a subpanel which has an AjaxSelfUpdatingTimerBehavior. Panel 2 has another subpanel and it doesnt include the subpanel from panel 1. When swithing page from panel 1 to panel 2 then after 5 seconds which is the duration of the first subpanel then i get the following error: org.apache.wicket.WicketRuntimeException: component contentpanel:menu:panel:showthreads not found on page dk.team.ninan.web.wicket.BasePage[id = 1], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget (AbstractRequestCycleProcessor.java:394) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage( AbstractRequestCycleProcessor.java:440) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:137) The error message is correct because the panel showthreads is no longer a part of BasePage, but why doesnt the behaviour disappear when replacing panels? What am i doing wrong? :) /Murat - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serious problem w/ Glassfish V2 Beta 2 Wicket
It's cool, I got someone on the Glassfish forums to confirm that it's most likely an issue w/ the app server. I fell back to a prior version and the problem has disappeared completely. Thanks for the help, guys! Johan Compagner wrote: igor is right these are just 2 classloaders if you know the place where it does goes wrong now and then output/log the 2 classloaders: log.debug(usersession.getClass ().getClassLoader()) johan On 5/10/07, V. Jenks [EMAIL PROTECTED] wrote: Thanks for the insight Igor, very interesting, and it makes sense. However, it doesn't make sense. :P This has never happened to this application running on JBoss 4.0.x in over a yearand never happened when I tested it against Glassfish V1. Any idea what might be causing this? Both the source code and version of Wicket I'm using remains unchanged in the entire time it has been in production...so I'm very skeptical that this is anything *other* than an issue w/ Glassfish. I've actually been unable to reproduce the error in the last hour, vigorously testing by restarting the app server AND undeploying, redeploying, etc. the application. This makes me even more nervous. :S igor.vaynberg wrote: On 5/10/07, V. Jenks [EMAIL PROTECTED] wrote: com.myapp.abcommerce.ui.admin.UserSession cannot be cast to com.myapp.abcommerce.ui.admin.UserSession ...oh REALLY now? this is a classloader problem. UserSession loaded by classloader A cannot be cast to UserSession loaded by classloader B -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Serious-problem-w--Glassfish-V2-Beta-2---Wicket-tf3723270.html#a10419545 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Serious-problem-w--Glassfish-V2-Beta-2---Wicket-tf3723270.html#a10421703 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
I'll add a quickstart as soon as possible... (tomorrow by noon) Thank you! Matej Knopp-2 wrote: Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel
Hi James Thanks for the fix. It works like a charm :)... Is this something that wicket will solve in a future release? /Murat 2007/5/10, James McLaughlin [EMAIL PROTECTED]: erm, sorry that was: http://www.nabble.com/Re%3A-AjaxTimer-clearTimeout-p9401965.html On 5/10/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Murat, I posted a hack to fix this several months back: http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559 Essentially, I have the timer check if the markup for the component it was bound to is still in the page, and return without firing if it is not. Hope this helps. best, jim On 5/10/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi All I had some problem with ajax when using wicket 1.2.6. I read the thread with the following subject: Problem with concurren ajax requests on page Matej suggested that a upgrade to wicket 1.3 would solve the ajax problem. So i upgraded the application to wicket-1.3.0-incubating-SNAPSHOT. Now I have problems with AjaxSelfUpdatingTimerBehavior when using it together with AjaxTabbedPanel. Panel 1 includes a subpanel which has an AjaxSelfUpdatingTimerBehavior. Panel 2 has another subpanel and it doesnt include the subpanel from panel 1. When swithing page from panel 1 to panel 2 then after 5 seconds which is the duration of the first subpanel then i get the following error: org.apache.wicket.WicketRuntimeException: component contentpanel:menu:panel:showthreads not found on page dk.team.ninan.web.wicket.BasePage[id = 1], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget (AbstractRequestCycleProcessor.java:394) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage( AbstractRequestCycleProcessor.java:440) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:137) The error message is correct because the panel showthreads is no longer a part of BasePage, but why doesnt the behaviour disappear when replacing panels? What am i doing wrong? :) /Murat - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)
Done: WICKET-554 Johan Compagner wrote: make a jira issue for this https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=12310561sorter/order=DESCsorter/field=priorityresolution=-1component=12311420 On 5/10/07, JulianS [EMAIL PROTECTED] wrote: Johan Compagner wrote: who is making a patch :) I don't know what the process is to submit patches, so I have attached them to this message. Julian http://www.nabble.com/file/8304/WebApplication.diff WebApplication.diff http://www.nabble.com/file/8305/PackageRequestTargetUrlCodingStrategy.diff PackageRequestTargetUrlCodingStrategy.diff -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a10420562 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Question-about-WebApplication.mount%28String-path%2C-PackageName-packageName%29-tf3717806.html#a1040 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] session authentication
I'm doing just that ;) let's see if I figure it out! Once again, thanks! Edd Marc-Andre Houle wrote: You can also download the source code of the examples to make some modification to see exactly what is happening... There not that much, I'm sure you'll get it... Marc On 5/10/07, eddmosphere [EMAIL PROTECTED] wrote: Thanks for the reply, Marc I've seen the examples, but didn't understand what were the basic steps to take..I'm confused whether to use wicket auth-roles, annotations, SignInPanel, SignInPage, etc etc.. :/ I'll take a better look ate the examples ;) Thanks again, Edd Marc-Andre Houle wrote: http://wicketstuff.org/wicket13/signin and http://wicketstuff.org/wicket13/signin2 These are the best place to look! Marc On 5/10/07, eddmosphere [EMAIL PROTECTED] wrote: Hi there! I having a bit of trouble implementing session authentication in my application. That is, I haven't quite figured out how to control authentication page access. I would really appreciate if someone could send me a simple application with a Login Page that provides access to a Welcome Page and a log out link - not allowing further access to the Welcome Page. Maybe the Login Page could have a link to the Welcome Page without submitting login/password (just for testing purpose). I hope I explained my problem well. Thanks in advance, Edd -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10418039 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10421069 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/session-authentication-tf3723063.html#a10422725 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected
It was a bug we didn't support it properly, and in trunk it's fixed now (note that the issue is set to 'resolved'). So put in that exception again, and you should be good. Eelco On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: The solution you posted there looks workable. Instead of throwing an AbortException, I'd just call RequestCycle.get().setRequestTarget(...). However, it seems that to prevent the rest of my constructor from running (due to the error), I have to explicitly call 'return' (ie. can't use exception to get out of constructor). Is there any way I could exit without calling 'return'? Ok, if that wasn't clear, what I'd like to do is to have a method requireParameter(PageParams pp, String paramName) in my BasePage, so that if the paramName value is missing, the constructor would exit immediately with a redirect or error page. Using exceptions, I'd be able to simply call: requireParameter(...) and it could throw an exception which would take care of the control flow of the program. But instead, what I seem to be doing now is: if (isMissingParameter(params, paramName)) return; which is more verbose, but definitely not hideous. On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: See https://issues.apache.org/jira/browse/WICKET-552 On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: I easily reproduced this problem. I did not use svn access, but instead went to the wicket main page and downloaded the 1.2.6 quickstart. I ran it and it worked. Then I went to the Index.java and inserted the following line in the constructor: throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_BAD_REQUEST, FOOBAR); I went to my web browser, and again, blank page. Then I went to the command line and typed: $ wget http://localhost:8081/quickstart/app I get a 200 status code, with empty body: --14:50:42-- http://localhost:8081/quickstart/app = `app.1' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [ = ] 0 --.--K/s 14:50:42 (0.00 B/s) - `app.1' saved [0] So do you think this is a bug? Lowell On 5/9/07, Johan Compagner [EMAIL PROTECTED] wrote: yes see our quickstart project in svn i can try to build an example for this for example if i change one of the wicket examples homepages that it throws such an exception does it fail then? johan On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: do you have a quickstart that you can attach to a jira issue? What do you mean by this? Is a quickstart some sort of self-contained minimal jar? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version
Re: [Wicket-user] RedirectPage and expiration
What version of Wicket are you using? Eelco On 5/9/07, Carlos Pita [EMAIL PROTECTED] wrote: Hi all, I have a page with a number of Links, some of them internal (to the wicket application), some of them external (to RedirectPages). If I follow one of the externals (opening it into a different tab/window) something like a cache clean up seems to happen, because after that any of the internal links give a page expiration error. Is this normal? Note that I can't use an ExternalLink because I need to track the click count server-side. Any help would be appreciated. TIA. Cheers, Carlos - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected
Thanks for your attention to this. Is there a roadmap of when 1.2.7 will be out? Or is 1.3.0 the next version? On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It was a bug we didn't support it properly, and in trunk it's fixed now (note that the issue is set to 'resolved'). So put in that exception again, and you should be good. Eelco On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: The solution you posted there looks workable. Instead of throwing an AbortException, I'd just call RequestCycle.get().setRequestTarget(...). However, it seems that to prevent the rest of my constructor from running (due to the error), I have to explicitly call 'return' (ie. can't use exception to get out of constructor). Is there any way I could exit without calling 'return'? Ok, if that wasn't clear, what I'd like to do is to have a method requireParameter(PageParams pp, String paramName) in my BasePage, so that if the paramName value is missing, the constructor would exit immediately with a redirect or error page. Using exceptions, I'd be able to simply call: requireParameter(...) and it could throw an exception which would take care of the control flow of the program. But instead, what I seem to be doing now is: if (isMissingParameter(params, paramName)) return; which is more verbose, but definitely not hideous. On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: See https://issues.apache.org/jira/browse/WICKET-552 On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: I easily reproduced this problem. I did not use svn access, but instead went to the wicket main page and downloaded the 1.2.6 quickstart. I ran it and it worked. Then I went to the Index.java and inserted the following line in the constructor: throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_BAD_REQUEST, FOOBAR); I went to my web browser, and again, blank page. Then I went to the command line and typed: $ wget http://localhost:8081/quickstart/app I get a 200 status code, with empty body: --14:50:42-- http://localhost:8081/quickstart/app = `app.1' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [ = ] 0 --.--K/s 14:50:42 (0.00 B/s) - `app.1' saved [0] So do you think this is a bug? Lowell On 5/9/07, Johan Compagner [EMAIL PROTECTED] wrote: yes see our quickstart project in svn i can try to build an example for this for example if i change one of the wicket examples homepages that it throws such an exception does it fail then? johan On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: do you have a quickstart that you can attach to a jira issue? What do you mean by this? Is a quickstart some sort of self-contained minimal jar? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected
1.3.x is the next version, and this is in trunk. I've only fixed it for that. If you really need it for 1.2.7, please re-open the issue and state that and selected 1.2.7 in the list. There's no roadmap for 1.2.7. It depends on severity of the bugs we fix for it and how badly people (tell us they) need it. But we're advising people to upgrade to 1.3.x if they can. In your case, if you're working on 1.2.x, the workaround is to create your own AbortWithWebErrorCodeException implementation, but now let it extend AbstractRestartResponseException (like the fix did). Nothing wrong with doing that, and it should work without having to upgrade. Eelco On 5/11/07, Lowell Kirsh [EMAIL PROTECTED] wrote: Thanks for your attention to this. Is there a roadmap of when 1.2.7 will be out? Or is 1.3.0 the next version? On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It was a bug we didn't support it properly, and in trunk it's fixed now (note that the issue is set to 'resolved'). So put in that exception again, and you should be good. Eelco On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: The solution you posted there looks workable. Instead of throwing an AbortException, I'd just call RequestCycle.get().setRequestTarget(...). However, it seems that to prevent the rest of my constructor from running (due to the error), I have to explicitly call 'return' (ie. can't use exception to get out of constructor). Is there any way I could exit without calling 'return'? Ok, if that wasn't clear, what I'd like to do is to have a method requireParameter(PageParams pp, String paramName) in my BasePage, so that if the paramName value is missing, the constructor would exit immediately with a redirect or error page. Using exceptions, I'd be able to simply call: requireParameter(...) and it could throw an exception which would take care of the control flow of the program. But instead, what I seem to be doing now is: if (isMissingParameter(params, paramName)) return; which is more verbose, but definitely not hideous. On 5/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: See https://issues.apache.org/jira/browse/WICKET-552 On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: I easily reproduced this problem. I did not use svn access, but instead went to the wicket main page and downloaded the 1.2.6 quickstart. I ran it and it worked. Then I went to the Index.java and inserted the following line in the constructor: throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_BAD_REQUEST, FOOBAR); I went to my web browser, and again, blank page. Then I went to the command line and typed: $ wget http://localhost:8081/quickstart/app I get a 200 status code, with empty body: --14:50:42-- http://localhost:8081/quickstart/app = `app.1' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [ = ] 0 --.--K/s 14:50:42 (0.00 B/s) - `app.1' saved [0] So do you think this is a bug? Lowell On 5/9/07, Johan Compagner [EMAIL PROTECTED] wrote: yes see our quickstart project in svn i can try to build an example for this for example if i change one of the wicket examples homepages that it throws such an exception does it fail then? johan On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: do you have a quickstart that you can attach to a jira issue? What do you mean by this? Is a quickstart some sort of self-contained minimal jar? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] WicketFilter doesn't work in Weblogic [Wicket 1.3]
I believe I have identified a rather serious bug in WicketFilter. I'm using a recent 1.3 snapshot, and I have recently updated our application to leverage the WicketFilter instead of WicketServlet. This is working great in Tomcat, but when we deploy to our Weblogic server, Wicket dies an ugly death. After a lot of debugging in both Weblogic and Tomcat, I was able to track down the source of the problem. The problematic method is WicketFilter.getRelativePath. The method uses request.getServletPath to return the relative path. This works in Tomcat, because Tomcat is nice enough to return the the relative request URL when you call request.getServletPath, even if it is not technically mapped as a servlet in web.xml. But Weblogic is more strict, and so because the URL is not technically a real servlet, it just returns . This causes the Wicket code to think the URL is for the root path, and so it tries to append the relative path to the registered home page. Since the method always returns , Wicket does this forever, continuing to append the home page path, redirect, then get confused, again and again. Wanted to post a message to warn others and to find out if anyone was already aware of this. I was able to code up a workaround, since the method was public, copying most of the original logic into my overridden method. But it got a bit hacky since I didn't have access to private members of WicketFilter. Essentially, I replaced the malfunctioning first line: String path = request.getServletPath(); With something that seems to work better: String contextPath = StringUtils.nullToEmpty(request.getContextPath()); String path = request.getRequestURI(); if (path.startsWith(contextPath)) { path = path.substring(contextPath.length()); } -Jason -- View this message in context: http://www.nabble.com/WicketFilter-doesn%27t-work-in-Weblogic--Wicket-1.3--tf3724994.html#a10424457 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] getVariation and extended panels
Ok I'll try... I was experimenting with the following with 2 panels... bascially ChildPanel.getVariation() will override the SuperPanel.getVariation() so I cannot have say a Blue SuperPanel and a Red ChildPanel... which would then make it possible to have flexible combination of layouts by extending the panels... I am not sure if this is the right approach, so would like some advice. right now I have move to just sticking to 1 variation to 1 hierachy thanks Joshua // SuperPanel // // SuperPanel.Html wicket:panel DIV style=border:1px solid #000 This is Super Panel wicket:child/ /DIV /wicket:panel // SuperPanel_Red.html wicket:panel DIV style=border:1px solid #F00 This is Red Super Panel wicket:child / /DIV /wicket:panel // SuperPanel.java public class SuperPanel extends Panel { public String getVariation() { return Red; } } // ChildPanel // // ChildPanel.html wicket:extend DIV style=border:1px solid #000 This is Child Panel /DIV /wicket:extend // ChildPanel_Blue.html wicket:extend DIV style=border:1px solid #00F This is Blue Child Panel /DIV /wicket:extend // ChildPanel.java public class ChildPanel extends SuperPanel { public String getVariation() { return Blue; } } On 5/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote: could you more clearly define what you think the behavior should be, and what it is now? -igor On 5/10/07, Joshua Lim [EMAIL PROTECTED] wrote: Hi I have got a SuperPanel class that extends Panel, I have a few variations of html for this SuperPanel and am overriding the getVariation() method for to get what I want ...that's all good. Then I wanted to add a ChildPanel extending SuperPanel. and also I would like to have ChildPanel to have also a few variations hence giving me more flexibility in generating dynamic panels as a result... getVariation() gets resolved at the ChildPanel level only. since overriding the getVariation on ChildPanel hides SuperPanel.getVariation (). Am I stretching this too far?? :p and should just work with one variation per component hierarchy Joshua - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketFilter doesn't work in Weblogic [Wicket 1.3]
Probably would be wise to look at all calls to HttpServletRequest.getServletPath. -- View this message in context: http://www.nabble.com/WicketFilter-doesn%27t-work-in-Weblogic--Wicket-1.3--tf3724994.html#a10424543 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] inspecting model from IComponentInstantiationListener
What exactly should a component instantiation listener be able to do? I'm trying to build one that will inspect the model of every component, but the model is not yet bound. is there a way to register a listener that is notified once the model is bound? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] POST form submissions being converted to GETs
I have a wicket form which is supposed to be POSTing its data. Looking at the generated page, it is indeed method=post. But the page that it redirects to thinks that it is a GET. I found this information by doing: WebRequest request = (WebRequest) RequestCycle.get().getRequest(); String method = request.getHttpServletRequest().getMethod(); In this case, method is GET. I don't get why this is not POST. So right now I'm not sure if it's mistakenly thinking it's a GET when it is indeed a POST, or if it's really a GET. Does anyone have any recommendation on how I can figure this out (eg. some tool not associated with wicket)? Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user