Re: cryptomapper uses the same wicket-crypt params for each user
Thanks for the confirmation, Martin. Regards. On Sat, Jul 4, 2015 at 4:32 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Yes. This is the correct way. It is the default in 6.19.0 On Jul 4, 2015 2:51 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: OK solved: getSecuritySettings().setCryptFactory(new KeyInSessionSunJceCryptFactory()); //diff key per user final IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); On Fri, Jul 3, 2015 at 9:58 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I am using the cryptomapper to encrypt some URLs and am finding that every logged in user is getting the same encrypted URL for the same pages. ie to go to x page is http://url?wicket-crypt=Uqcgp... for both user A and user B. Is there any way to make this unique for each user? In my Application class I have: IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); Wicket 6.18.0 Thanks, Steve
Re: cryptomapper uses the same wicket-crypt params for each user
OK solved: getSecuritySettings().setCryptFactory(new KeyInSessionSunJceCryptFactory()); //diff key per user final IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); On Fri, Jul 3, 2015 at 9:58 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I am using the cryptomapper to encrypt some URLs and am finding that every logged in user is getting the same encrypted URL for the same pages. ie to go to x page is http://url?wicket-crypt=Uqcgp... for both user A and user B. Is there any way to make this unique for each user? In my Application class I have: IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); Wicket 6.18.0 Thanks, Steve
cryptomapper uses the same wicket-crypt params for each user
Hi all, I am using the cryptomapper to encrypt some URLs and am finding that every logged in user is getting the same encrypted URL for the same pages. ie to go to x page is http://url?wicket-crypt=Uqcgp... for both user A and user B. Is there any way to make this unique for each user? In my Application class I have: IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); Wicket 6.18.0 Thanks, Steve
Re: Making a datatable more accessible
Thanks very much, I'll give it a try. sent from my mobile device On 19 Jun 2015 4:34 am, Sven Meier s...@meiers.net wrote: Hi, it's a little bit finicky, but it can be done: DataTable dataTable = new DefaultDataTableContact, String(table, columns, new SortableContactDataProvider(), 8) { protected ItemIColumnContact, String newCellItem(final String id, final int index, final IModelIColumnContact, String model) { return new ItemIColumnContact, String(id, index, model) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); // parent is the repeater for the cells, its parent is the row Contact contact = (Contact) getParent().getParent().getDefaultModelObject(); if (contact.isSpecíal()) { tag.setName(th); } } }; } }; In a future version we might want to change #newCellItem() to get a reference to the row's model - that would remove the need to lookup the row object from the grandparent. Have fun Sven On 18.06.2015 14:15, Steve Swinsburg wrote: Hi all, I have a datatable and need to make it more accessible for screenreaders. I am using an AbstractColumn and setting the getHeader and populateItem methods with the contents. In a particular row I want to change the markup of the cells from TD to TH, as they are header type content. Is this possible in Wicket, to change the HTML tag? This is generated markup within the DataTable component so I'm wondering if we can influence the HTML tag that is output. The second issue is that when using getHeader to set the header cell contents, it outputs this into a span within the TH, not directly within the TH itself. I need to add the 'scope=col' ARIA attribute to the TH but cannot access it (even via getParent()). Again, generated markup. Thanks for any assistance. regards, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Making a datatable more accessible
Hi all, I have a datatable and need to make it more accessible for screenreaders. I am using an AbstractColumn and setting the getHeader and populateItem methods with the contents. In a particular row I want to change the markup of the cells from TD to TH, as they are header type content. Is this possible in Wicket, to change the HTML tag? This is generated markup within the DataTable component so I'm wondering if we can influence the HTML tag that is output. The second issue is that when using getHeader to set the header cell contents, it outputs this into a span within the TH, not directly within the TH itself. I need to add the 'scope=col' ARIA attribute to the TH but cannot access it (even via getParent()). Again, generated markup. Thanks for any assistance. regards, Steve
EditablePropertyColumn and a callback to save
I am using the inmethodgrid EditablePropertyColumn to allow inline edits of a datatable. What I want to do is have some sort of callback method registered on a cell so that when a user edits it then tabs or clicks away, the method is fired, so that I can immediately do something with the contents of the cell. Is there a way to do this? Thanks, Steve
Re: EditablePropertyColumn and a callback to save
Perfect, thanks guys. cheers, Steve On Thu, Oct 23, 2014 at 10:27 PM, Martin Grigorov mgrigo...@apache.org wrote: Right! You have to override https://github.com/wicketstuff/core/blob/master/jdk-1.7-parent/inmethod-grid-parent/inmethod-grid/src/main/java/com/inmethod/grid/column/editable/EditablePropertyColumn.java#L107 and attach such ajax behavior to the textfield on 'change' Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 23, 2014 at 2:22 PM, lucast lucastol...@hotmail.com wrote: Hi Steve, If I understand correctly, you would like to catch an ajax event fired from the cell when you click away. There are two ways you can do this, you can add an OnChangeAjaxBehavior() class to the file: Alternatively, you can add an AjaxEventBehavior to your object: I hope that helps, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EditablePropertyColumn-and-a-callback-to-save-tp4668048p4668049.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to get this URL pattern working in newer versions of Wicket?
I just wanted to circle back on this as I have an update. I haven't created any special mappers for the URLs and they are now working within my framework with the inmethod grid component. I built an app from the ground up rather than modifying the quickstart. I am not currently mounting any pages since I don't expose the pages directly and I feel that was the issue. I may need to fix this eventually if I start mounting pages and will post an update if I need to fix anything. Thanks for the pointers. cheers, Steve On Wed, Oct 8, 2014 at 4:32 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Tue, Oct 7, 2014 at 10:14 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi Martin, The context bits of /portal/tool/UUID are added by the framework that I am using. All webapps are addressable in this way since the webapps are all registered with the framework. You then add placements of the webapps onto pages and they get the UUID. This used to work fine in Wicket 1.4 but with the changes in 1.5 and up it no longer works, for some components. The servlet context path of this particular webapp is /inmethod-grid-examples, and we need to use the WicketServlet, not the WicketFilter. You can't get to a webapp directly, it all goes through the portal framework as there are filters that inject things like authorisation etc. I'm afraid you are on your own here. We don't know how your framework works and what exactly breaks. Fire the debugger and let us know when you have more information. cheers, Steve On Tue, Oct 7, 2014 at 8:06 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, Oct 6, 2014 at 6:31 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I've been working on Wicket 1.4 for a while and in upgrading to Wicket 6 I've found an inconsistency in the way URLs are handled, specifically in the inmethod data grid but also the editable data grid. I have a particular context path that I need to maintain as the webapp rendering is inside a portal type framework. I have taken the example webapps from both 1.4 and 6 and customised them so they run in the framework. In Wicket 1.4, the page is mounted like: mount(new HybridUrlCodingStrategy(/data-grid/editable, EditableDataGridPage.class)); and works fine. The URL is: http://localhost:8080/portal/tool/a79c7348-6c8b-4912-8cc7-3b4419344f7f/data-grid/editable.3 In Wicket 6, the page is mounted as: mount(/data-grid/editable, EditableDataGridPage.class); The line above will not compile! ... getRootRequestMapperAsCompound().add(new MountedMapper(mountPath, pageClass)); This is equivalent to: mountPage(mountPath, pageClass) and it does not work. It strips my leading context bits (/portal/tool/UUID). How do you set these context bits ? I tried to mount it myself: mountPage(/a79c7348-6c8b-4912-8cc7-3b4419344f7f, EditableDataGridPage.class); But that goes into an infinite redirect loop if I mount it to the webapp I want. If I mount it to a non wicket webapp, then that mount works fine. I am not sure how to restore the old URL mapping strategy. Give us more information about your setup to be able to help you. Especially what is the value of ServletContext#getContextPath() and what is the value of WicketFilter#getFilterPath(). These two bits are used as prefixes for the mount paths you use for your pages. Can anyone help? thanks, Steve
Re: How to get this URL pattern working in newer versions of Wicket?
Hi Paul, Yeah the UUID will change in different placements of the app, I was just trying to get this particular instance working :) Just wondering why it didn't work, given that UUID? The UUID is correct for this placement and the URL it generated was correct though it kept redirecting until the browser stopped it. cheers, Steve On Tue, Oct 7, 2014 at 3:49 AM, Paul Bors p...@bors.ws wrote: Hey Steve, You should not mount it yourself given the long session ID of 'a79c7348-6c8b- 4912-8cc7-3b4419344f7f' since that will change anyhow. To understand how Wicket handles the URL mapping see the user guide's Chapter 10 Wicket Links and URL generation at: http://wicket.apache.org/guide/guide/single.html#urls I guess you want to provide your own IMapperContext? On Mon, Oct 6, 2014 at 12:31 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I've been working on Wicket 1.4 for a while and in upgrading to Wicket 6 I've found an inconsistency in the way URLs are handled, specifically in the inmethod data grid but also the editable data grid. I have a particular context path that I need to maintain as the webapp rendering is inside a portal type framework. I have taken the example webapps from both 1.4 and 6 and customised them so they run in the framework. In Wicket 1.4, the page is mounted like: mount(new HybridUrlCodingStrategy(/data-grid/editable, EditableDataGridPage.class)); and works fine. The URL is: http://localhost:8080/portal/tool/a79c7348-6c8b-4912-8cc7-3b4419344f7f/data-grid/editable.3 In Wicket 6, the page is mounted as: mount(/data-grid/editable, EditableDataGridPage.class); ... getRootRequestMapperAsCompound().add(new MountedMapper(mountPath, pageClass)); and it does not work. It strips my leading context bits (/portal/tool/UUID). I tried to mount it myself: mountPage(/a79c7348-6c8b-4912-8cc7-3b4419344f7f, EditableDataGridPage.class); But that goes into an infinite redirect loop if I mount it to the webapp I want. If I mount it to a non wicket webapp, then that mount works fine. I am not sure how to restore the old URL mapping strategy. Can anyone help? thanks, Steve
Re: How to get this URL pattern working in newer versions of Wicket?
Hi Martin, The context bits of /portal/tool/UUID are added by the framework that I am using. All webapps are addressable in this way since the webapps are all registered with the framework. You then add placements of the webapps onto pages and they get the UUID. This used to work fine in Wicket 1.4 but with the changes in 1.5 and up it no longer works, for some components. The servlet context path of this particular webapp is /inmethod-grid-examples, and we need to use the WicketServlet, not the WicketFilter. You can't get to a webapp directly, it all goes through the portal framework as there are filters that inject things like authorisation etc. cheers, Steve On Tue, Oct 7, 2014 at 8:06 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, Oct 6, 2014 at 6:31 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I've been working on Wicket 1.4 for a while and in upgrading to Wicket 6 I've found an inconsistency in the way URLs are handled, specifically in the inmethod data grid but also the editable data grid. I have a particular context path that I need to maintain as the webapp rendering is inside a portal type framework. I have taken the example webapps from both 1.4 and 6 and customised them so they run in the framework. In Wicket 1.4, the page is mounted like: mount(new HybridUrlCodingStrategy(/data-grid/editable, EditableDataGridPage.class)); and works fine. The URL is: http://localhost:8080/portal/tool/a79c7348-6c8b-4912-8cc7-3b4419344f7f/data-grid/editable.3 In Wicket 6, the page is mounted as: mount(/data-grid/editable, EditableDataGridPage.class); The line above will not compile! ... getRootRequestMapperAsCompound().add(new MountedMapper(mountPath, pageClass)); This is equivalent to: mountPage(mountPath, pageClass) and it does not work. It strips my leading context bits (/portal/tool/UUID). How do you set these context bits ? I tried to mount it myself: mountPage(/a79c7348-6c8b-4912-8cc7-3b4419344f7f, EditableDataGridPage.class); But that goes into an infinite redirect loop if I mount it to the webapp I want. If I mount it to a non wicket webapp, then that mount works fine. I am not sure how to restore the old URL mapping strategy. Give us more information about your setup to be able to help you. Especially what is the value of ServletContext#getContextPath() and what is the value of WicketFilter#getFilterPath(). These two bits are used as prefixes for the mount paths you use for your pages. Can anyone help? thanks, Steve
How to get this URL pattern working in newer versions of Wicket?
Hi all, I've been working on Wicket 1.4 for a while and in upgrading to Wicket 6 I've found an inconsistency in the way URLs are handled, specifically in the inmethod data grid but also the editable data grid. I have a particular context path that I need to maintain as the webapp rendering is inside a portal type framework. I have taken the example webapps from both 1.4 and 6 and customised them so they run in the framework. In Wicket 1.4, the page is mounted like: mount(new HybridUrlCodingStrategy(/data-grid/editable, EditableDataGridPage.class)); and works fine. The URL is: http://localhost:8080/portal/tool/a79c7348-6c8b-4912-8cc7-3b4419344f7f/data-grid/editable.3 In Wicket 6, the page is mounted as: mount(/data-grid/editable, EditableDataGridPage.class); ... getRootRequestMapperAsCompound().add(new MountedMapper(mountPath, pageClass)); and it does not work. It strips my leading context bits (/portal/tool/UUID). I tried to mount it myself: mountPage(/a79c7348-6c8b-4912-8cc7-3b4419344f7f, EditableDataGridPage.class); But that goes into an infinite redirect loop if I mount it to the webapp I want. If I mount it to a non wicket webapp, then that mount works fine. I am not sure how to restore the old URL mapping strategy. Can anyone help? thanks, Steve
Re: [Building Sakai] Charts Wicket Sakai
Looks like your dependencies are wrong. Check the 1.5 migration guide, it should list the correct Maven coordinates to use. On Fri, Feb 8, 2013 at 7:51 AM, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: When I change the version from 1.5 wicket gives me an error. You can use the examples of http://www.highcharts.com/demo/(javascritp) and pass data from wicket and invoke the example.¿? -- CC: users@wicket.apache.org; sakai-...@collab.sakaiproject.org; tom.hombe...@gmail.com From: steve.swinsb...@gmail.com Subject: Re: [Building Sakai] Charts Wicket Sakai Date: Fri, 8 Feb 2013 07:04:21 +1100 To: antoniovalenciasp...@hotmail.com Change the poms to list the correct dependencies for what you need, then adjust any compilation issues since things have changed between wicket 1.4 and 1.5 or 6. By patch I mean send the differences in the code produced by the archetype and what you change so I can update the archetype. Gesendent von meinem iPhone On 07/02/2013, at 2:05, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: Hi. Yes, I Use https://confluence.sakaiproject.org/display/BOOT/Sakai+Wicket+Maven+Archetype . but not update it, I have changed the repositories of pom.xml to 1.5 but it gives me error. What do you mean with patch???. I'm trying to run this: ://code.google.com/p/wicked-charts/https://code.google.com/p/wicked-charts/ , http://wicked-charts.appspot.com//start/?0 fails to execute me, guess it will be the version of wicket. My wicket version is 1.4.17 and this repository use: Wicket 6.x dependency groupIdcom.googlecode.wicked-charts/groupId artifactIdwicked-charts-wicket6/artifactId version1.4.2/version /dependency Wicket 1.5.x dependency groupIdcom.googlecode.wicked-charts/groupId artifactIdwicked-charts-wicket15/artifactId version1.4.2/version /dependency Thanks. -- Date: Wed, 6 Feb 2013 10:51:49 +1100 From: steve.swinsb...@gmail.com To: users@wicket.apache.org; sakai-...@collab.sakaiproject.org Subject: Re: [Building Sakai] Charts Wicket Sakai Hi, I wrote the Sakai Wicket Maven Archetype: https://confluence.sakaiproject.org/display/BOOT/Sakai+Wicket+Maven+Archetype Yes, you can upgrade the version of Wicket, but you'll need to adjust code as per the 1.5 or 1.6 upgrade guide for Wicket: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html https://cwiki.apache.org/WICKET/migration-to-wicket-60.html If you do it, please send a patch and I'll update the archetype. cheers, Steve On Wed, Feb 6, 2013 at 10:42 AM, Paul Bors p...@bors.ws wrote: I'm not sure whick Sakai Archetype you're reffering to. Perhaps you can provide the maven coordinates you're using or tyring to use? However, if you're interested in charts and wicket take a look at the following or google for more: Open Flash: https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html jqPlot: https://github.com/wicketstuff/core/tree/core-1.5.x/jdk-1.5-parent/jqplot-parent Or if you can afford the license for HighCharts then try Wicked-Charts https://code.google.com/p/wicked-charts/ ~ Thank you, Paul Bors On Tue, Feb 5, 2013 at 6:05 PM, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: Hi. I use Sakai Archetype based in wicket 1.4.17.I can update the version of wicket?? I need to use charts, and most API are from 1.5 or 6 Someone I can help? thanks. ___ sakai-dev mailing list sakai-...@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscr...@collab.sakaiproject.org with a subject of unsubscribe
Re: [Building Sakai] Charts Wicket Sakai
Change the poms to list the correct dependencies for what you need, then adjust any compilation issues since things have changed between wicket 1.4 and 1.5 or 6. By patch I mean send the differences in the code produced by the archetype and what you change so I can update the archetype. Gesendent von meinem iPhone On 07/02/2013, at 2:05, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: Hi. Yes, I Use https://confluence.sakaiproject.org/display/BOOT/Sakai+Wicket+Maven+Archetype. but not update it, I have changed the repositories of pom.xml to 1.5 but it gives me error. What do you mean with patch???. I'm trying to run this: ://code.google.com/p/wicked-charts/ , http://wicked-charts.appspot.com//start/?0 fails to execute me, guess it will be the version of wicket. My wicket version is 1.4.17 and this repository use: Wicket 6.x dependency groupIdcom.googlecode.wicked-charts/groupId artifactIdwicked-charts-wicket6/artifactId version1.4.2/version /dependency Wicket 1.5.x dependency groupIdcom.googlecode.wicked-charts/groupId artifactIdwicked-charts-wicket15/artifactId version1.4.2/version /dependency Thanks. Date: Wed, 6 Feb 2013 10:51:49 +1100 From: steve.swinsb...@gmail.com To: users@wicket.apache.org; sakai-...@collab.sakaiproject.org Subject: Re: [Building Sakai] Charts Wicket Sakai Hi, I wrote the Sakai Wicket Maven Archetype: https://confluence.sakaiproject.org/display/BOOT/Sakai+Wicket+Maven+Archetype Yes, you can upgrade the version of Wicket, but you'll need to adjust code as per the 1.5 or 1.6 upgrade guide for Wicket: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html https://cwiki.apache.org/WICKET/migration-to-wicket-60.html If you do it, please send a patch and I'll update the archetype. cheers, Steve On Wed, Feb 6, 2013 at 10:42 AM, Paul Bors p...@bors.ws wrote: I'm not sure whick Sakai Archetype you're reffering to. Perhaps you can provide the maven coordinates you're using or tyring to use? However, if you're interested in charts and wicket take a look at the following or google for more: Open Flash: https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html jqPlot: https://github.com/wicketstuff/core/tree/core-1.5.x/jdk-1.5-parent/jqplot-parent Or if you can afford the license for HighCharts then try Wicked-Charts https://code.google.com/p/wicked-charts/ ~ Thank you, Paul Bors On Tue, Feb 5, 2013 at 6:05 PM, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: Hi. I use Sakai Archetype based in wicket 1.4.17.I can update the version of wicket?? I need to use charts, and most API are from 1.5 or 6 Someone I can help? thanks. ___ sakai-dev mailing list sakai-...@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscr...@collab.sakaiproject.org with a subject of unsubscribe
Re: Charts Wicket Sakai
Hi, I wrote the Sakai Wicket Maven Archetype: https://confluence.sakaiproject.org/display/BOOT/Sakai+Wicket+Maven+Archetype Yes, you can upgrade the version of Wicket, but you'll need to adjust code as per the 1.5 or 1.6 upgrade guide for Wicket: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html https://cwiki.apache.org/WICKET/migration-to-wicket-60.html If you do it, please send a patch and I'll update the archetype. cheers, Steve On Wed, Feb 6, 2013 at 10:42 AM, Paul Bors p...@bors.ws wrote: I'm not sure whick Sakai Archetype you're reffering to. Perhaps you can provide the maven coordinates you're using or tyring to use? However, if you're interested in charts and wicket take a look at the following or google for more: Open Flash: https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html jqPlot: https://github.com/wicketstuff/core/tree/core-1.5.x/jdk-1.5-parent/jqplot-parent Or if you can afford the license for HighCharts then try Wicked-Charts https://code.google.com/p/wicked-charts/ ~ Thank you, Paul Bors On Tue, Feb 5, 2013 at 6:05 PM, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: Hi. I use Sakai Archetype based in wicket 1.4.17.I can update the version of wicket?? I need to use charts, and most API are from 1.5 or 6 Someone I can help? thanks.
Re: wicketstuff poms still depend on wicketstuff repo which no longer exists
Hi, This is for a piece of software that has thousands of users building it (Sakai CLE), so asking everyone to build their own copy isn't a feasible request. For now we just grabbed the POMs, edited them and put them in our own repository. I note that this was fixed in later versions, perhaps at some stage we can upgrade :) cheers, Steve On 01/11/2012, at 7:20 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You better build the projects locally. On Thu, Nov 1, 2012 at 1:31 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi, Some artifacts in wicketstuff still mention the old wicketstuff repo, i.e.: http://repo1.maven.org/maven2/org/wicketstuff/tinymce-parent/1.4.21/tinymce-parent-1.4.21.pom And on Maven2 that is causing the build to fail: Downloading: http://repo1.maven.org/maven2/org/wicketstuff/tinymce-parent/1.4.21/tinymce-parent-1.4.21.pom 3K downloaded (tinymce-parent-1.4.21.pom) Downloading: http://wicketstuff.org/maven/repository/org/wicketstuff/jdk-1.5-parent/1.4.21/jdk-1.5-parent-1.4.21.pom [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/wicketstuff/jdk-1.5-parent/1.4.21/jdk-1.5-parent-1.4.21.pom - IGNORING [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: null:tinymce-parent:pom:null Reason: Cannot find parent: org.wicketstuff:jdk-1.5-parent for project: null:tinymce-parent:pom:null for project null:tinymce-parent:pom:null Any chance a new release can be pushed that doesn't refer to that repo? It is not possible to upgrade to Maven 3 for some versions of software at this time so the build is effectively broken until this is fixed. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff poms still depend on wicketstuff repo which no longer exists
Hi, Some artifacts in wicketstuff still mention the old wicketstuff repo, i.e.: http://repo1.maven.org/maven2/org/wicketstuff/tinymce-parent/1.4.21/tinymce-parent-1.4.21.pom And on Maven2 that is causing the build to fail: Downloading: http://repo1.maven.org/maven2/org/wicketstuff/tinymce-parent/1.4.21/tinymce-parent-1.4.21.pom 3K downloaded (tinymce-parent-1.4.21.pom) Downloading: http://wicketstuff.org/maven/repository/org/wicketstuff/jdk-1.5-parent/1.4.21/jdk-1.5-parent-1.4.21.pom [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/wicketstuff/jdk-1.5-parent/1.4.21/jdk-1.5-parent-1.4.21.pom - IGNORING [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: null:tinymce-parent:pom:null Reason: Cannot find parent: org.wicketstuff:jdk-1.5-parent for project: null:tinymce-parent:pom:null for project null:tinymce-parent:pom:null Any chance a new release can be pushed that doesn't refer to that repo? It is not possible to upgrade to Maven 3 for some versions of software at this time so the build is effectively broken until this is fixed. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form with arbitrary number of fields
Hi, Thanks, I have a repeater already and have the form components, but the part I am unsure about is how those form components map to a model. So when the person clicks submit, how do I get the arbitrary number of fields of data that were submitted? Is there an example of this? cheers, Steve On 29/09/2012, at 2:39 PM, Ondrej Zizka ozi...@redhat.com wrote: On Fri, 2012-09-28 at 13:37 +0530, vineet semwal wrote: sorry somehow i didn't type last message correctly :) use a repeater and you can add your formcoponents to its items ,see listview/dataview FYC, http://wicket.apache.org/apidocs/1.5/org/apache/wicket/markup/repeater/RepeatingView.html On Fri, Sep 28, 2012 at 1:35 PM, vineet semwal vineetsemwa...@gmail.com wrote: use a repeater which and yo can attach your formcomponents to items On Fri, Sep 28, 2012 at 8:18 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a form that allows users to add an arbitrary number of fields, for example keywords for an item where there could be multiple. Up until now I have been processing my form where the fields are known and map directly to a model. However I'm unsure as to how this mapping works, for example having two or more keywords for one item. Would the property in the backing model be a list for this item? Rather than a string for example? Are there any examples of a similar dynamic form? cheers, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
form with arbitrary number of fields
Hi all, I have a form that allows users to add an arbitrary number of fields, for example keywords for an item where there could be multiple. Up until now I have been processing my form where the fields are known and map directly to a model. However I'm unsure as to how this mapping works, for example having two or more keywords for one item. Would the property in the backing model be a list for this item? Rather than a string for example? Are there any examples of a similar dynamic form? cheers, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to build a hudson/jenkins like live log viewer?
I've done something similar to this using the Tailer class from commons-io. cheers, Steve On 21/11/2011, at 12:59 PM, James wrote: Dear wicket community, In a project that I'm working on, I need to build a live log viewer or dynamic log viewer or refreshable log viewer. Much like how hudson/jenkins displays the console output. The idea is to dynamically display the new data added to a log file along with the existing content. How to go about doing this? Please throw some light on this. I searched about this in the web, mailing lists but couldn't find what I was looking for, so I'm posting it here. If this is asked elsewhere, kindly re-direct me to the respective resource. -- Thanks Regards, James A happy Wicket user - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to build a hudson/jenkins like live log viewer?
For the backend, I have the Tailer running in a Thread, and keep a reference to it. The you can interrupt the thread as desired by calling thread.interrupt(). Some backend code you might find useful: private Thread thread; public void destroy() { //set the flag to tell our listener to shutdown stopListener(); } public void startListener(File f) { if(thread == null) { //setup the listener and start the thread TailerListener listener = new LogTailListener(); Tailer tailer = new Tailer(f, listener, 1000, true); thread = new Thread(tailer, THREAD_NAME); thread.start(); } } public void stopListener() { thread.interrupt(); } Interested to see your UI when you are done, please share! cheers, Steve On 21/11/2011, at 3:10 PM, James wrote: Clint, Thanks for this idea. Let me give a try to it. Pondering whether the Tailer would introduce any memory leaks if we navigate to a different page. On Mon, Nov 21, 2011 at 11:46 AM, Clint Checketts checke...@gmail.comwrote: I'd need to look at Tailer to see how it operates. But here is how I'd try it (it is quick and I don't like the markup, but we'll optimize it later: Create a panel that looks like so (we'll call it LoggingPanel): wicket:panel div wicket:id=logDatalog contents/div div wicket:id=nextLognext log call/div /wicket:panel Add a self updating timer behavior so the panel check the Tailer for output, if there is data, then update the logData label with it, make the nextLog component be another LoggingPanel with a SelfUpdatingTImerBehavior, and stop the timerbehavior on the current panel. Drawbacks are: the divs keep getting nested, so the markup isn't the most beautiful, so setRenderBodyOnly(true) might make it nicer. -Clint On Sun, Nov 20, 2011 at 9:27 PM, James james.eliye...@gmail.com wrote: Thanks Steve. I'll look into the commons-io Tailer. But any idea on how to use this with wicket? On Mon, Nov 21, 2011 at 11:10 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: I've done something similar to this using the Tailer class from commons-io. cheers, Steve On 21/11/2011, at 12:59 PM, James wrote: Dear wicket community, In a project that I'm working on, I need to build a live log viewer or dynamic log viewer or refreshable log viewer. Much like how hudson/jenkins displays the console output. The idea is to dynamically display the new data added to a log file along with the existing content. How to go about doing this? Please throw some light on this. I searched about this in the web, mailing lists but couldn't find what I was looking for, so I'm posting it here. If this is asked elsewhere, kindly re-direct me to the respective resource. -- Thanks Regards, James A happy Wicket user - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks Regards, James -- Thanks Regards, James
Re: What is the difference between Model , PropertyModel,CompoundPropertyModel?
Hi, There is some documentation about models on the wiki: https://cwiki.apache.org/WICKET/working-with-wicket-models.html cheers, Steve On 11/11/2011, at 3:33 PM, raju.ch wrote: Could someone please explain me the difference between Model , PropertyModel,CompoundPropertyModel? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-is-the-difference-between-Model-PropertyModel-CompoundPropertyModel-tp4030452p4030452.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket - TinyMCE/FckEditor
I created a Wicket FCKEditor component some time back. It takes care of rendering the javascripts and all the rest for you and you just instantiate it like: add(new FCKTextArea(id)); If you would like this, drop me a line and I'll dig out the code. cheers. Steve On 02/08/2011, at 3:53 PM, Chris Colman wrote: Unfortunately we're using some features of FckEditor that don't seem to be supported by Visural. The main one is the support of images and being able to specify an image provider that can provide the user with a list of images available to choose from. The developer can define virtually any implementation they want of the image provider. If that sort of thing were available today we'd really like to move to Visural. -Original Message- From: Josh Kamau [mailto:joshnet2...@gmail.com] Sent: Tuesday, 2 August 2011 3:34 PM To: users@wicket.apache.org Subject: Re: Wicket - TinyMCE/FckEditor Hi Michal, If you want a really nice and simple Rich Text Editor, take a look at visural-wicket project. Here is the link to the demos - http://wicket.visural.net/examples/app/ regards. Josh. On Tue, Aug 2, 2011 at 8:27 AM, Chris Colman chr...@stepaheadsoftware.comwrote: Are there any examples of Wicket integrated with FckEditor (the one before CkEditor)? -Original Message- From: Michal Letynski [mailto:m...@consol.ae] Sent: Tuesday, 2 August 2011 3:25 PM To: users@wicket.apache.org Subject: Re: Wicket - TinyMCE Hi. W dniu 2011-08-02 04:29, ramazan pekin pisze: Hi to everyone, I am looking for rich text editor and I found TinyMCE. But I couldnt find any document/example page how can I integrate wicket and TinyMCE explained detailed. Do you know is there any documentation or example about this subject? There are some examples for it: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/tinymce- parent/tinymce-examples Thanks, br. Ramazan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff site down
Hi all, The wicketstuff site is down http://wicketstuff.org/wicket/ Safari can’t open the page “http://wicketstuff.org/wicket/” because Safari can’t connect to the server “wicketstuff.org”.
Re: What is the status of wicketstuff dojo?
Ok, but even in that 1.4 branch it is missing dozens of classes that were present in the 1.3 version. They are also missing in the release artifacts. Can someone please migrate them from 1.3 to 1.4? Thanks, Steve On 01/07/2011, at 15:30, Attila Király kiralyattila...@gmail.com wrote: That is the 1.5 branch of wicketstuff. The 1.4 is in https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Dojo is disabled in the 1.5 branch (enabled in 1.4), probably because there was noone to maintain it. Attila 2011/7/1 Steve Swinsburg steve.swinsb...@gmail.com I found the old source. There is a LOT of stuff missing in the 1.4 release compared to the 1.3 release. 1.3: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/ 1.4: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is someone able to migrate that and push a release? cheers, Steve On 01/07/2011, at 11:51 AM, Steve Swinsburg wrote: Hi, Does anyone know what the status of wicketstuff dojo is? I have an application that was written in Wicket 1.3 which I have converted to 1.4, likewise for dojo. However there are classes missing from the 1.4 release that were being used in the 1.3 release, specifically: org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer; org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView; It seems that there is only 'toaster' in the org/wicketstuff/dojo/markup/html directory: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is the 1.3 source available anywhere? Is anyone maintaining dojo? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is the status of wicketstuff dojo?
I don't use the library, I'm just converting a tool from 1.3 to 1.4 that someone else wrote. I have no idea how wicketstuff-dojo works. If Wicketstuff still used SVN I'd just merge it in and make sure it compiled, but I have no experience in git and no time to learn a new source control system that I don't use in my everyday work. So, hopefully someone that works on wicketstuff can! thanks, Steve On 01/07/2011, at 9:51 PM, Martin Grigorov wrote: How much ? :-) What's the problem you to do it ? You already use this library so you know how it works. On Fri, Jul 1, 2011 at 2:48 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Ok, but even in that 1.4 branch it is missing dozens of classes that were present in the 1.3 version. They are also missing in the release artifacts. Can someone please migrate them from 1.3 to 1.4? Thanks, Steve On 01/07/2011, at 15:30, Attila Király kiralyattila...@gmail.com wrote: That is the 1.5 branch of wicketstuff. The 1.4 is in https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Dojo is disabled in the 1.5 branch (enabled in 1.4), probably because there was noone to maintain it. Attila 2011/7/1 Steve Swinsburg steve.swinsb...@gmail.com I found the old source. There is a LOT of stuff missing in the 1.4 release compared to the 1.3 release. 1.3: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/ 1.4: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is someone able to migrate that and push a release? cheers, Steve On 01/07/2011, at 11:51 AM, Steve Swinsburg wrote: Hi, Does anyone know what the status of wicketstuff dojo is? I have an application that was written in Wicket 1.3 which I have converted to 1.4, likewise for dojo. However there are classes missing from the 1.4 release that were being used in the 1.3 release, specifically: org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer; org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView; It seems that there is only 'toaster' in the org/wicketstuff/dojo/markup/html directory: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is the 1.3 source available anywhere? Is anyone maintaining dojo? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is the status of wicketstuff dojo?
Hi Bruno, Thanks, I wasn't aware that the project was actually disabled, since there are still releases going out (albeit non functional ones). Perhaps we'll just stick with 1.3 for now. If I get some time I'll get in touch to get a wicketstuff account. cheers, Steve On 01/07/2011, at 11:21 PM, Bruno Borges wrote: Steve, it may take less time to merge the code by yourself, learn the basics of git to push that into github than to wait somebody that contributes to wicketstuff to do that to you, because unfortunately, if I'm not wrong, there's no one right now at wicketstuff doing things with dojo. And that's why the project is disabled. I'm sorry, *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Fri, Jul 1, 2011 at 9:59 AM, Steve Swinsburg steve.swinsb...@gmail.comwrote: I don't use the library, I'm just converting a tool from 1.3 to 1.4 that someone else wrote. I have no idea how wicketstuff-dojo works. If Wicketstuff still used SVN I'd just merge it in and make sure it compiled, but I have no experience in git and no time to learn a new source control system that I don't use in my everyday work. So, hopefully someone that works on wicketstuff can! thanks, Steve On 01/07/2011, at 9:51 PM, Martin Grigorov wrote: How much ? :-) What's the problem you to do it ? You already use this library so you know how it works. On Fri, Jul 1, 2011 at 2:48 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Ok, but even in that 1.4 branch it is missing dozens of classes that were present in the 1.3 version. They are also missing in the release artifacts. Can someone please migrate them from 1.3 to 1.4? Thanks, Steve On 01/07/2011, at 15:30, Attila Király kiralyattila...@gmail.com wrote: That is the 1.5 branch of wicketstuff. The 1.4 is in https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Dojo is disabled in the 1.5 branch (enabled in 1.4), probably because there was noone to maintain it. Attila 2011/7/1 Steve Swinsburg steve.swinsb...@gmail.com I found the old source. There is a LOT of stuff missing in the 1.4 release compared to the 1.3 release. 1.3: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/ 1.4: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is someone able to migrate that and push a release? cheers, Steve On 01/07/2011, at 11:51 AM, Steve Swinsburg wrote: Hi, Does anyone know what the status of wicketstuff dojo is? I have an application that was written in Wicket 1.3 which I have converted to 1.4, likewise for dojo. However there are classes missing from the 1.4 release that were being used in the 1.3 release, specifically: org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer; org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView; It seems that there is only 'toaster' in the org/wicketstuff/dojo/markup/html directory: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is the 1.3 source available anywhere? Is anyone maintaining dojo? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What is the status of wicketstuff dojo?
Hi, Does anyone know what the status of wicketstuff dojo is? I have an application that was written in Wicket 1.3 which I have converted to 1.4, likewise for dojo. However there are classes missing from the 1.4 release that were being used in the 1.3 release, specifically: org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer; org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView; It seems that there is only 'toaster' in the org/wicketstuff/dojo/markup/html directory: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is the 1.3 source available anywhere? Is anyone maintaining dojo? thanks, Steve
Re: What is the status of wicketstuff dojo?
I found the old source. There is a LOT of stuff missing in the 1.4 release compared to the 1.3 release. 1.3: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/ 1.4: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is someone able to migrate that and push a release? cheers, Steve On 01/07/2011, at 11:51 AM, Steve Swinsburg wrote: Hi, Does anyone know what the status of wicketstuff dojo is? I have an application that was written in Wicket 1.3 which I have converted to 1.4, likewise for dojo. However there are classes missing from the 1.4 release that were being used in the 1.3 release, specifically: org.wicketstuff.dojo.markup.html.list.DojoOrderableListContainer; org.wicketstuff.dojo.markup.html.list.DojoOrderableRepeatingView; It seems that there is only 'toaster' in the org/wicketstuff/dojo/markup/html directory: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Is the 1.3 source available anywhere? Is anyone maintaining dojo? thanks, Steve
Re: Issue with internationalising the MultiFileUploadField component
Thanks, I can reproduce it in a quickstart using 1.4.17 as well.Attached tohttps://issues.apache.org/jira/browse/WICKET-3727Reproduced the snippets here:---HomePage.java:add(new Label("message", new ResourceModel("some.label")));Form form = new Form("form");form.setMultiPart(true);form.add(new MultiFileUploadField("multi", 5));add(form);---HomePage.htmlspanwicket:id="message"message will be here/spanformwicket:id="form"spanwicket:id="multi"/span/form---WicketApplication.properties:some.label=this is a message from our properties fileorg.apache.wicket.mfu.caption.unlimited=blah:org.apache.wicket.mfu.caption.limited=test123 (${max}):org.apache.wicket.mfu.delete=BorrarAnd I get the label translated from the properties file, but not the MultiUploadFieldComponent. Screenshot:On 18/05/2011, at 3:51 PM, Martin Grigorov wrote:Please create a quickstart app and attach it to a ticket.Test the quickstart with 1.4.17 too.On Wed, May 18, 2011 at 1:41 AM, Steve Swinsburgsteve.swinsb...@gmail.comwrote:Ok I've done that and when the webapp starts up I get this:INFO: 2011-05-18 09:36:53,246 Loading properties files fromjar:file:/pah/to/my/app/WEB-INF/lib/wicket-1.4.13.jar!/org/apache/wicket/Application.properties[http-8081-Processor24]Accessing pages I see things like:DEBUG: 2011-05-18 09:38:27,823 Property found in cache:'link.my.profile.tooltip'; Component: '[MarkupContainer [Component id =myProfileLink]]'; value: 'Ver y editar tu perfil' [http-8081-Processor19]Which all looks good.Then, when I access the panel that has the MultiFileUploadField component,I see no reference at all to any of the properties.In contrast, when I access a panel that has the phone number validator,which actually works in terms of internationalisation, I get:DEBUG: 2011-05-18 09:40:06,655 Property found in cache:'homephone.PhoneNumberValidator'; Component: '[MarkupContainer [Component id= homephone]]'; value: 'N?mero de tel?fono no v?lido'[http-8081-Processor19]Does that give you an idea of where the issue might be?thanks,SteveOn 17/05/2011, at 10:26 PM, Martin Grigorov wrote:Enable debug level logging for org.apache.wicket.Localizer and see whatisattempted.On Tue, May 17, 2011 at 1:37 PM, Steve Swinsburgsteve.swinsb...@gmail.comwrote:Yeah, that's where I have them and its not working. Its the same spot wehave the ones that do work too.We do use a custom resource loader but I don't understand why it wouldallow us to override some properties from Wicket components, and notothers.Does the property need to be prefixed with the wicket id or something?Any ideas?ThanksSteveSent from my iPhoneOn 17/05/2011, at 17:37, Martin Grigorov mgrigo...@apache.org wrote:Looking at MultiFileUploadField.java these are exactly the keys youhavetouse.Try to put them in MyApp_es.propertiesOn Tue, May 17, 2011 at 9:31 AM, Steve Swinsburgsteve.swinsb...@gmail.comwrote:Hi,We are having an issue setting some properties to override the defaulttextfor the MultiFileUploadField component. As per the docs, we have setthefollowing in our local properties file:org.apache.wicket.mfu.caption.unlimited=Ficheros:org.apache.wicket.mfu.caption.limited=Ficheros (m\u00E1ximo ${max}):org.apache.wicket.mfu.delete=Borrarhowever they are not being overridden. We know our properties file isworking because we can override other properties, like:workphone.PhoneNumberValidator = N\u00FAmero de tel\u00E9fono nov\u00E1lidoand those come up correctly.Is this a bug? If not, what might we be missing?Wicket 1.4.13thanks,steve--Martin GrigorovjWeekendTraining, Consulting, Developmenthttp://jWeekend.com http://jweekend.com/-To unsubscribe, e-mail: users-unsubscr...@wicket.apache.orgFor additional commands, e-mail: users-h...@wicket.apache.org--Martin GrigorovjWeekendTraining, Consulting, Developmenthttp://jWeekend.com http://jweekend.com/-To unsubscribe, e-mail: users-unsubscr...@wicket.apache.orgFor additional commands, e-mail: users-h...@wicket.apache.org-- Martin GrigorovjWeekendTraining, Consulting, Developmenthttp://jWeekend.com http://jweekend.com/
Issue with internationalising the MultiFileUploadField component
Hi, We are having an issue setting some properties to override the default text for the MultiFileUploadField component. As per the docs, we have set the following in our local properties file: org.apache.wicket.mfu.caption.unlimited=Ficheros: org.apache.wicket.mfu.caption.limited=Ficheros (m\u00E1ximo ${max}): org.apache.wicket.mfu.delete=Borrar however they are not being overridden. We know our properties file is working because we can override other properties, like: workphone.PhoneNumberValidator = N\u00FAmero de tel\u00E9fono no v\u00E1lido and those come up correctly. Is this a bug? If not, what might we be missing? Wicket 1.4.13 thanks, steve
Re: Issue with internationalising the MultiFileUploadField component
Yeah, that's where I have them and its not working. Its the same spot we have the ones that do work too. We do use a custom resource loader but I don't understand why it would allow us to override some properties from Wicket components, and not others. Does the property need to be prefixed with the wicket id or something? Any ideas? Thanks Steve Sent from my iPhone On 17/05/2011, at 17:37, Martin Grigorov mgrigo...@apache.org wrote: Looking at MultiFileUploadField.java these are exactly the keys you have to use. Try to put them in MyApp_es.properties On Tue, May 17, 2011 at 9:31 AM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Hi, We are having an issue setting some properties to override the default text for the MultiFileUploadField component. As per the docs, we have set the following in our local properties file: org.apache.wicket.mfu.caption.unlimited=Ficheros: org.apache.wicket.mfu.caption.limited=Ficheros (m\u00E1ximo ${max}): org.apache.wicket.mfu.delete=Borrar however they are not being overridden. We know our properties file is working because we can override other properties, like: workphone.PhoneNumberValidator = N\u00FAmero de tel\u00E9fono no v\u00E1lido and those come up correctly. Is this a bug? If not, what might we be missing? Wicket 1.4.13 thanks, steve -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Issue with internationalising the MultiFileUploadField component
Ok I've done that and when the webapp starts up I get this: INFO: 2011-05-18 09:36:53,246 Loading properties files from jar:file:/pah/to/my/app/WEB-INF/lib/wicket-1.4.13.jar!/org/apache/wicket/Application.properties [http-8081-Processor24] Accessing pages I see things like: DEBUG: 2011-05-18 09:38:27,823 Property found in cache: 'link.my.profile.tooltip'; Component: '[MarkupContainer [Component id = myProfileLink]]'; value: 'Ver y editar tu perfil' [http-8081-Processor19] Which all looks good. Then, when I access the panel that has the MultiFileUploadField component, I see no reference at all to any of the properties. In contrast, when I access a panel that has the phone number validator, which actually works in terms of internationalisation, I get: DEBUG: 2011-05-18 09:40:06,655 Property found in cache: 'homephone.PhoneNumberValidator'; Component: '[MarkupContainer [Component id = homephone]]'; value: 'N?mero de tel?fono no v?lido' [http-8081-Processor19] Does that give you an idea of where the issue might be? thanks, Steve On 17/05/2011, at 10:26 PM, Martin Grigorov wrote: Enable debug level logging for org.apache.wicket.Localizer and see what is attempted. On Tue, May 17, 2011 at 1:37 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Yeah, that's where I have them and its not working. Its the same spot we have the ones that do work too. We do use a custom resource loader but I don't understand why it would allow us to override some properties from Wicket components, and not others. Does the property need to be prefixed with the wicket id or something? Any ideas? Thanks Steve Sent from my iPhone On 17/05/2011, at 17:37, Martin Grigorov mgrigo...@apache.org wrote: Looking at MultiFileUploadField.java these are exactly the keys you have to use. Try to put them in MyApp_es.properties On Tue, May 17, 2011 at 9:31 AM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Hi, We are having an issue setting some properties to override the default text for the MultiFileUploadField component. As per the docs, we have set the following in our local properties file: org.apache.wicket.mfu.caption.unlimited=Ficheros: org.apache.wicket.mfu.caption.limited=Ficheros (m\u00E1ximo ${max}): org.apache.wicket.mfu.delete=Borrar however they are not being overridden. We know our properties file is working because we can override other properties, like: workphone.PhoneNumberValidator = N\u00FAmero de tel\u00E9fono no v\u00E1lido and those come up correctly. Is this a bug? If not, what might we be missing? Wicket 1.4.13 thanks, steve -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5.x javadoc
Wicket By Example has a section for the Javadocs, but it needs a refresh. http://wicketbyexample.com/api/ cheers, Steve On 28/01/2011, at 10:36 AM, Todd Wolff wrote: Hi, Is there a URL where I can pull up javadoc for latest 1.5 RC without having to checkout source and generate myself? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ModalWindow update size
I just noticed that autosizing ModalWindows has made it into Wicket 1.5, heres the JIRA: https://issues.apache.org/jira/secure/attachment/12456436/fix-WICKET-1.4.x.patch Take a look at the patches, there is a method that sets the size of the window, might be something to borrow. cheers, Steve On 19/11/2010, at 8:52 AM, andrea del bene wrote: Hi meduolis, in order to resize modal window you could try to use some JavaScript. Wicket keeps track of modal window on client side with variable Wicket.Window.current. To resize modal window you could write something like: var targetWindow = Wicket.Window.current.window; var targetContent = Wicket.Window.current.content; targetContent.style.height = '120px'; targetWindow.style.width = '200px'; You can run this script using appendJavascript method of ajax target. Just remember that this script could not work with IE 6 (sigh!) and that the actual window height is the sum of content height and caption height. You coul access to caption's fields through variable Wicket.Window.current.caption Bye. I have tried it already, but it does not help. on my panel I do this: modal.setInitialWidth(image.getWidth()); modal.setInitialHeight(image.getHeigth()); target.addComponent(modal); but on click nothing happens, no exceptions - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
objectautocomplete with first item selected
Hi all, Using the ObjectAutocompleteTextField from Wicketstuff on a form. When the user starts typing they are given a list of choices, and I would like the first item in that list to always be selected by default. They can obviously choose a different one but the issue is that presently, if they move away from that field, the input is lost. I would like the first one to be chosen in that case. Has anyone does this already? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
where is the wicketstuff JIRA?
Hi all, I noticed that the wicketstuff JIRA has disappeared. It was taken down in April but has it come back, possibly in a new location? That XSS issue in JIRA was fixed quite some time ago. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: objectautocomplete with first item selected
Ok this code allows a preselect: builder.preselect(); But tabbing away clears the field. I would like the selected option to be filled into the text field. thanks, Steve On 08/11/2010, at 10:14 AM, Steve Swinsburg wrote: Hi all, Using the ObjectAutocompleteTextField from Wicketstuff on a form. When the user starts typing they are given a list of choices, and I would like the first item in that list to always be selected by default. They can obviously choose a different one but the issue is that presently, if they move away from that field, the input is lost. I would like the first one to be chosen in that case. Has anyone does this already? thanks, Steve
Re: wicketstuff repo down again
Hi Mike, Excellent, thanks for the info. I was still on older versions of those artifacts (1.4.1). Will see about upgrading. regards, Steve On 08/09/2010, at 11:44 AM, Michael O'Cleirigh wrote: Hi Steve, Wicketstuff-core artifacts have been released through the oss.sonatype.org repository and into central since version 1.4.7. (with the latest being 1.4.10.1) See: http://repo2.maven.org/maven2/org/wicketstuff/ Snapshots are here: https://oss.sonatype.org/content/repositories/snapshots/org/wicketstuff/ This is only the wicketstuff-core artifacts. If you are using non core artifacts then more work is going to be involved. Regards, Mike Hi all, The wicketstuff repo is down again. Is there any chance the tagged artifacts from the wicketstuff repo can be synced to a more reliable Maven repo (central even)? I have the ones I need in my own remote repo but this doesn't work for others that build my project. Thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
wicketstuff repo down again
Hi all, The wicketstuff repo is down again. Is there any chance the tagged artifacts from the wicketstuff repo can be synced to a more reliable Maven repo (central even)? I have the ones I need in my own remote repo but this doesn't work for others that build my project. Thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: Remove support for Portlets in Wicket 1.5
-1 to removing it As soon as uPortal supports JSR-286 (and it does, just not in a release yet) I'll be using Wicket for my portlet development and have been training my team in readiness. At a minimum move it to wicketstuff. thanks, Steve On 12/08/2010, at 5:19 AM, Rodolfo Hansen wrote: I used wikcet 1.4 inside Liferay 5.2 and sent a tiny patch that was implemented in 1.4.7 I no longer use wicket inside a portlet container, but I can help support it. On Wed, 2010-08-11 at 14:45 -0400, James Carman wrote: I'd say at least move it to wicketstuff, so that if there's some other person out there with the will and means to take the project on, they can do so. On Wed, Aug 11, 2010 at 2:35 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976) to remove the support for Portlets in Wicket 1.5. It is currently broken because of the re-work of WicketFilter and request processing. Since none of the active core developers use this technology in his daily job it is hard for us to support it. Now is the time to vote against this decision and give us a hand to improve it or just silently agree. martin-g P.S. I sent this email earlier today but for some reason it was rejected. Excuse me if you receive it for second time. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
StringHeaderContributor from a panel added by AJAX
Hi, I have a panel that I add via AJAX to my page. On this panel I have a StringHeaderContributor block that I want to add. It's not doing anything. Does this not work when added via AJAX? The same code works fine when on a normal page. String altText = some value from an i18n properties file; StringHeaderContributor initJavascript = new StringHeaderContributor( script type=\text/javascript\ + $(document).ready( function(){ + initDatePickerAltText(' + altText + '); + }); + /script); add(initJavascript); The reason I need to do this is because I need to send an internationalised string to a javascript function to set up it's alt text which I retrieve from the message bundle. I can't do this on the base page because the javascript component hasn't been added to the page at this stage. thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: StringHeaderContributor from a panel added by AJAX
Thanks, but the ajax component is actually just a datepicker from jQuery so it's not Wicket related. I think I'll need to get my Javascript to load the message bundle directly so it doesn't need to go via Wicket. cheers, Steve On 02/07/2010, at 6:46 PM, nino martinez wael wrote: Im have you tried implementing the headercontributor Interface in your ajax component instead of using the headercontributor directly? regards Nino 2010/7/2 Steve Swinsburg steve.swinsb...@gmail.com Hi, I have a panel that I add via AJAX to my page. On this panel I have a StringHeaderContributor block that I want to add. It's not doing anything. Does this not work when added via AJAX? The same code works fine when on a normal page. String altText = some value from an i18n properties file; StringHeaderContributor initJavascript = new StringHeaderContributor( script type=\text/javascript\ + $(document).ready( function(){ + initDatePickerAltText(' + altText + '); + }); + /script); add(initJavascript); The reason I need to do this is because I need to send an internationalised string to a javascript function to set up it's alt text which I retrieve from the message bundle. I can't do this on the base page because the javascript component hasn't been added to the page at this stage. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxEditableLabel unicode issue
Hi, Is this after the value has been submitted and perhaps stored in a database, then retrieved and displayed again? If so, is your database setup as UTF-8? Also, if using Tomcat, is the connector setup as UTF-8 also? For Wicket, try setting this *: getRequestCycleSettings().setResponseRequestEncoding(UTF-8); getMarkupSettings().setDefaultMarkupEncoding(UTF-8); in your Application#init If you don't set the default markup encoding explicitly, the default for it is the 'os provided encoding' (see: IMarkupSettings#getDefaultMarkupEncoding) If Tomcat, add URIEncoding=UTF-8 to your connector. See if that helps. cheers, Steve * came up on list back in early 2009. On 11/05/2010, at 9:16 PM, Jens Zastrow wrote: Hi, I cannot enter/save unicode chars with a AjaxEditableLabel (e.g. german/arabic). Enter: 'ü' Value: 'ü' All unicode-chars seems to be converted to utf-8 since the single char ü is converter to double-bytes? Thanks Jens - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: close a modal window and setResponsePage
Hi, close the modal, then do the setResponsePage in the window closed callback that you can provide. cheers, Steve On 29/04/2010, at 7:53 AM, Fernando Wermus wrote: Hi all, I have a modal window. There are some image avatars in it, and the user could click on them. In case the user click it, it should close the modal window an redirect to antoher page. But, I get the redirected page into the modal window instead. I am not findind any to solution to this situation. How come? myModalWindo.close(target); getPage().setResponsePage(PaginaAmistades.class); ps: getPage() returns not the modal window page, but the one which is under. thanks -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Back button
Looks like an issue with Firefox only though, as per the JIRA [1]. If you follow the recommendation in the JIRA, does that fix the problem? cheers, Steve [1] https://issues.apache.org/jira/browse/WICKET-923 On 26/04/2010, at 5:56 PM, Pointbreak wrote: That browser cache issue is what I suggested as the culprit earlier on in this thread, for which Igor replied: that doesnt matter because the url of the link you click contains the version number of the page Apparently it does matter? Or am I missing something? On Mon, 26 Apr 2010 10:21 +0300, Martin Asenov mase...@velti.com wrote: I found the solution https://issues.apache.org/jira/browse/WICKET-923 Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form submit with tinymce
Whats the raw content behind the text containing the emoticon when you submit? Is the emoticon represented as just a :) for example? If so you'll need to parse the output and render as the images. A graphical editor is just a fancy wrapper around text. cheers, Steve On 26/04/2010, at 10:03 PM, Robert Kimotho wrote: Hello guys, I'm trying to submit a form (including tinymce content and an emoticon). The problem I'm having is that the emoticon does not get displayed at the destination only some text. does anyone know what to do. Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: better way setting up ID for a Wicket component?
If you just want to do this so you can style your markup, use the class attribute in your markup and convert your CSS #id's to .classes, if that's possible. cheers, Steve On 31/03/2010, at 12:03 PM, David Chang wrote: Boris, thanks for sharing your thoughts: IDs are needed for e.g. AJAX functionality. I cannot agree on this. In the context of wicket for the web framework, you actually dont need to create ID. Let Wicket to create whatever ID wicket deems right. In my understanding, and actually in my case that initiated this thread, is to style certain elements and I hope to have meaningful markup IDs. I have meaningful wicket IDs in my case, and I simply want to do the same for markup IDs. Thanks, David --- On Tue, 3/30/10, Boris Goldowsky bgoldow...@cast.org wrote: From: Boris Goldowsky bgoldow...@cast.org Subject: Re: better way setting up ID for a Wicket component? To: users@wicket.apache.org Date: Tuesday, March 30, 2010, 5:06 PM IDs are needed for e.g. AJAX functionality. The default Wicket implementation of markup IDs will create them smartly, never creating duplicate ids even in the case of multiple instances of panels, repeaters, etc. As I understand Wicket best practice, it is never to call setMarkupId() at all, and just let the smart default thing happen. If you *must* call it because you have some special requirement for particular IDs, then you take on the responsibility for making sure your IDs are unique yourself. In this light, a setMarkupIdToWicketId() method is a dangerous thing. Bng David Chang wrote: Craig, I really appreciate your input. If a panel is reused more than one time on the same page, then the panel's components should not use IDs in the first place. It would always violate valid HTML. Correct? Regards. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: PROBLEM WITH PAY PAL INTEGRATION
Why not process your form normally via Wicket, then make a POST request to PayPal? cheers, Steve On 29/03/2010, at 4:49 PM, victorTrapiello wrote: Yes I use POST, I´m not using any wicket form, I just set to my value a Tesxt fiels and then I add the wicket in this form, but as I said bfore it seems the wicket is lost by the way to pay pal because I appears empty, I´m thinking now maybe is something related with the pay pal´s encryption. form action=https://www.paypal.com/cgi-bin/webscr; method=post !-- Identify your business so that you can collect the payments. -- input type=hidden name=business value=herschelgo...@xyzzyu.com !-- Specify a Buy Now button. -- input type=hidden name=cmd value=_xclick !-- Specify details about the item that buyers will purchase. -- input type=text name=item_name value=Hot Sauce-12 oz. Bottle input type=text name=item_name wicket:id=product !-- in the java file Model value=new Model(); value.setObject(My Product); Textfield product=new TextField (product, value); -- input type=hidden name=amount value=5.95 input type=hidden name=currency_code value=USD !-- Display the payment button. -- input type=image name=submit border=0 src=https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif; alt=PayPal - The safer, easier way to pay online https://www.paypal.com/en_US/i/scr/pixel.gif /form MartinM wrote: Do you use POST or GET ? ** Martin 2010/3/29 victorTrapiello vic...@trapiello.net: hahahha it is not as easy as you think, I just put these 2 lines to show how it is in the reallity and how I´m trying to do with wickets, I only have this one on in my progrmam input type=text name=item_name wicket:id=itemName msc65jap wrote: It not a wicket issue. You have two input elements with the same name: 1.input type=text name=item_name 2.input type=text name=item_name wicket:id=itemName Remove the line 1 and voila! Best, James. On 28 March 2010 22:06, victorTrapiello vic...@trapiello.net wrote: Hello guys! I´m trying to implement a simple buy now action with pay pal: with the code: # xxx form action=https://www.paypal.com/cgi-bin/webscr; method=post !-- Identify your business so that you can collect the payments. -- input type=hidden name=business value=herschelgo...@xyzzyu.com !-- Specify a Buy Now button. -- input type=hidden name=cmd value=_xclick !-- Specify details about the item that buyers will purchase. -- input type=hidden name=amount value=5.95 input type=hidden name=currency_code value=USD !-- Display the payment button. -- input type=image name=submit border=0 src=styles/images/comprar.jpg alt=PayPal - The safer, easier way to pay online styles/images/comprar.gif /form if for example I excute input type=text name=item_name wicket:id=itemName it appears on the scream the text box filled with my item_name but when you press the form´s button it sends you to a paypal web page in which the field item_name appears empty, it is like the wicket is lost by the way any help¿? Thanks guys!!! jwcarman wrote: Does anyone have a required border class (something that automatically puts a little red * next to a required field)? I have one that I'm using, but it doesn't work under ajax! When the component gets updated via ajax, it keeps appending little red *s to the markup. Don't get me wrong, it's quite funny, but I just don't think my users will get it. I've tried using a border and I've also tried doing it as a behavior. Either way I get the endless string if *s. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Required-Border...-tp28006887p28062450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best, James. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Required-Border...-tp28006887p28065083.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --
Re: Image that loads from a database, and use a default when no data exists
Hi Esteban, Make a component which takes a parameter and performs the appropriate action for its logic, then displays the image. I do this is an app of mine, where the image comes from one of several sources. cheers, Steve On 16/02/2010, at 6:30 AM, Esteban Masoero wrote: Hi there: I know how to instanciate an image component that loads the image from a database, and I know how to make an image component that loads an image from a static resource. Can I make a single image component that upon some condition, uses the database and upon another uses the static resource? Thanks, Esteban - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
wicket app over https but renders some images as http
Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve -- Jason Lea smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
Note that this also happens for resources that Wicket serves, eg: resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif and ContextImages. Can I detect HTTPS and force Wicket to serve content over HTTPS? thanks, Steve On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote: The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve -- Jason Lea smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
Hi Jeremy, For resources its rendered as http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif For a ContextImage its: img src=images/no_image.gif/ For the CSS include its: link rel=stylesheet type=text/css href=css/styles.css / It all looks fine except the styles.css that has the classes are sending the images over HTTP, and they declare like: .someClass { background-image: url(/library/image/silk/icon.png); } cheers, Steve On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote: What URL does Wicket generate in your HTML? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Note that this also happens for resources that Wicket serves, eg: resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif and ContextImages. Can I detect HTTPS and force Wicket to serve content over HTTPS? thanks, Steve On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote: The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve -- Jason Lea smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
What I meant to say was that the ContextImage and CSS looks fine, however the actual URLs it renders are all HTTP, not HTTPS when they should be. The first resource link is clearly broken. cheers, Steve On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote: Hi Jeremy, For resources its rendered as http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif For a ContextImage its: img src=images/no_image.gif/ For the CSS include its: link rel=stylesheet type=text/css href=css/styles.css / It all looks fine except the styles.css that has the classes are sending the images over HTTP, and they declare like: .someClass { background-image: url(/library/image/silk/icon.png); } cheers, Steve On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote: What URL does Wicket generate in your HTML? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Note that this also happens for resources that Wicket serves, eg: resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif and ContextImages. Can I detect HTTPS and force Wicket to serve content over HTTPS? thanks, Steve On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote: The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve -- Jason Lea smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
Yes. And thats how I can confirm it breaks when I change the address to just http. Both http and https work on this particular site which makes it easy for testing. The address is https and then it renders the content in an iframe with source attribute that is also https (I'm working in a portal framework). On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote: and the URL for your page in the Location bar *is* https? On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote: What I meant to say was that the ContextImage and CSS looks fine, however the actual URLs it renders are all HTTP, not HTTPS when they should be. The first resource link is clearly broken. cheers, Steve On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote: Hi Jeremy, For resources its rendered as http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif For a ContextImage its: img src=images/no_image.gif/ For the CSS include its: link rel=stylesheet type=text/css href=css/styles.css / It all looks fine except the styles.css that has the classes are sending the images over HTTP, and they declare like: .someClass { background-image: url(/library/image/silk/icon.png); } cheers, Steve On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote: What URL does Wicket generate in your HTML? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Note that this also happens for resources that Wicket serves, eg: resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif and ContextImages. Can I detect HTTPS and force Wicket to serve content over HTTPS? thanks, Steve On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote: The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve -- Jason Lea To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
Edit: ... thats how I can confirm it was broken, because when I change it to http it works. On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote: Yes. And thats how I can confirm it breaks when I change the address to just http. Both http and https work on this particular site which makes it easy for testing. The address is https and then it renders the content in an iframe with source attribute that is also https (I'm working in a portal framework). On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote: and the URL for your page in the Location bar *is* https? On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote: What I meant to say was that the ContextImage and CSS looks fine, however the actual URLs it renders are all HTTP, not HTTPS when they should be. The first resource link is clearly broken. cheers, Steve On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote: Hi Jeremy, For resources its rendered as http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif For a ContextImage its: img src=images/no_image.gif/ For the CSS include its: link rel=stylesheet type=text/css href=css/styles.css / It all looks fine except the styles.css that has the classes are sending the images over HTTP, and they declare like: .someClass { background-image: url(/library/image/silk/icon.png); } cheers, Steve On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote: What URL does Wicket generate in your HTML? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Note that this also happens for resources that Wicket serves, eg: resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif and ContextImages. Can I detect HTTPS and force Wicket to serve content over HTTPS? thanks, Steve On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote: The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only, as this application is deployed in many different contexts by many different institutions and they may be running it over HTTP only. So can I force Wicket to render everything via HTTPS if its running over HTTPS and just normal HTTP if its running as such? Note that I have things like: .someClass { background-image: url(/library/image/silk/icon.png); } so I can't just prefix all URL links since most of them come from the CSS. thanks, Steve -- Jason Lea To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. smime.p7s Description: S/MIME cryptographic signature
Re: wicket app over https but renders some images as http
Exactly. So why are they coming up as HTTP when both the URL and iframe src are both HTTPS. All resources that Wicket sends from this application are coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS. I'll add some logging to the Application init() to figure out if Wicket thinks its on HTTP or HTTPS. Could be the iframe? thanks, Steve On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote: your paste does not contain any absolute urls, only relative ones... -igor On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Yes, the app is rendered in an iframe as my app is deployed into a portal container. I pasted that HTML from the iframe source, but here is the whole lot: http://pastie.org/819416 Line 21 has the import for the css. Line 55 is a ContextImage The iframe source is: src=https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main; and that renders the tool. Using the padlock in the bottom right of Firefox, and analysing the Media, gives all images that are loaded on the page, and all of those that come from this app are http only, the rest that come from the portal container are https as normal. Changing the address to http and refreshing makes the portal container urls change to http as expected. thanks, Steve On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote: Well, can you paste the actual html that is generated that links to your stylesheet on the https page? Because what you pasted earlier was a relative URL, which would mean that the browser would make it https as well. So, they're some piece of the puzzle we haven't received yet. Perhaps you could browse to the https page, view source, copy the whole source into pastebin and send it? Are you using iframes or anything? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Edit: ... thats how I can confirm it was broken, because when I change it to http it works. On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote: Yes. And thats how I can confirm it breaks when I change the address to just http. Both http and https work on this particular site which makes it easy for testing. The address is https and then it renders the content in an iframe with source attribute that is also https (I'm working in a portal framework). On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote: and the URL for your page in the Location bar *is* https? On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote: What I meant to say was that the ContextImage and CSS looks fine, however the actual URLs it renders are all HTTP, not HTTPS when they should be. The first resource link is clearly broken. cheers, Steve On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote: Hi Jeremy, For resources its rendered as http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif For a ContextImage its: img src=images/no_image.gif/ For the CSS include its: link rel=stylesheet type=text/css href=css/styles.css / It all looks fine except the styles.css that has the classes are sending the images over HTTP, and they declare like: .someClass { background-image: url(/library/image/silk/icon.png); } cheers, Steve On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote: What URL does Wicket generate in your HTML? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Note that this also happens for resources that Wicket serves, eg: resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif and ContextImages. Can I detect HTTPS and force Wicket to serve content over HTTPS? thanks, Steve On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote: The request for the CSS is a renderCssReference call: response.renderCSSReference(css/styles.css); So it should be relative to what ever protocol is being used? On 11/02/2010, at 10:58 AM, jason lea wrote: The background image url is relative to the css file. Is the request for the css file https? On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a Wicket application that is running over HTTPS but is rendering some images (like background images from css) over HTTP only. This causes the 'This page contains unsecure items' type warning and inspecting the Page Info from Firefox shows they are indeed being served over HTTP only. Luckily I can switch this particular site to be just HTTP and as soon as I do that, the issues go away (obviously since its all just HTTP now). However I cannot just run the entire app over HTTPS only
Re: wicket app over https but renders some images as http
Ok I did that, the Wicket app comes up as as HTTP, however if I do the same thing to any that renders in the same style of iframe, it's HTTPS. these tools are other display technologies, like JSF, Velocity, etc. Here's the first Wicket app: http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main Here's a Velocity app in in the same page: https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main The URL of the entire site is: https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0 I have another Wicket app that another developer wrote, same thing, HTTP only. So it's only Wicket tools that are doing this. thanks, Steve On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote: What I've suspected all along is that your main page MAY be loaded https, but that your iframe src is actually ending up http. do this (in firefox): pull up the app in https, right click in the iframe, click this frame, click show only this frame. is the url that appears with the iframe content https? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Exactly. So why are they coming up as HTTP when both the URL and iframe src are both HTTPS. All resources that Wicket sends from this application are coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS. I'll add some logging to the Application init() to figure out if Wicket thinks its on HTTP or HTTPS. Could be the iframe? thanks, Steve On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote: your paste does not contain any absolute urls, only relative ones... -igor On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Yes, the app is rendered in an iframe as my app is deployed into a portal container. I pasted that HTML from the iframe source, but here is the whole lot: http://pastie.org/819416 Line 21 has the import for the css. Line 55 is a ContextImage The iframe source is: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main and that renders the tool. Using the padlock in the bottom right of Firefox, and analysing the Media, gives all images that are loaded on the page, and all of those that come from this app are http only, the rest that come from the portal container are https as normal. Changing the address to http and refreshing makes the portal container urls change to http as expected. thanks, Steve On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote: Well, can you paste the actual html that is generated that links to your stylesheet on the https page? Because what you pasted earlier was a relative URL, which would mean that the browser would make it https as well. So, they're some piece of the puzzle we haven't received yet. Perhaps you could browse to the https page, view source, copy the whole source into pastebin and send it? Are you using iframes or anything? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Edit: ... thats how I can confirm it was broken, because when I change it to http it works. On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote: Yes. And thats how I can confirm it breaks when I change the address to just http. Both http and https work on this particular site which makes it easy for testing. The address is https and then it renders the content in an iframe with source attribute that is also https (I'm working in a portal framework). On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote: and the URL for your page in the Location bar *is* https? On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote: What I meant to say was that the ContextImage and CSS looks fine, however the actual URLs it renders are all HTTP, not HTTPS when they should be. The first resource link is clearly broken. cheers, Steve On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote: Hi Jeremy, For resources its rendered as http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif For a ContextImage its: img src=images/no_image.gif/ For the CSS include its: link rel=stylesheet type=text/css href=css/styles.css / It all looks fine except the styles.css that has the classes are sending the images over HTTP, and they declare like: .someClass { background-image: url(/library/image/silk/icon.png); } cheers, Steve On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote: What URL does Wicket generate in your HTML? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Note that this also happens for resources that Wicket
Re: wicket app over https but renders some images as http
Ok the web.xml http://pastie.org/819535 Note that requests ARE filtered through the portal's request filter, however one would assume that if it's going to change HTTPS to HTTP, it would do so for ALL tools, not just Wicket ones. The rest is all standard stuff extending WebApplication and the Application.init() is pretty much empty except for things like setting the expired page, stripping the Wicket tags, etc etc, a couple of snippets on how it gets from the Application to the first page: http://pastie.org/819541 And the BasePage: http://pastie.org/819544 thanks, Steve On 11/02/2010, at 3:57 PM, Jeremy Thomerson wrote: okay, so now at least we know what's causing it. the frame is redirected to http. now, we have to determine what's making your wicket request redirect to http. you might supply a couple things: - your web.xml for the wicket app - any customized code you have in the request cycle processor - an idea of what kind of app - i.e. are you inheriting from a non-standard application class (say, spring*application, brix*application, etc...) that might be controlling the request cycle? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 10:49 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: It's done by the portal, but it renders an iframe of source: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea Which is the direct link to the tool instance. So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go to that URL in my browser, with HTTPS intact, it will revert to HTTP in front of me. If I grab the iframe source for another tool, say a Velocity based tool, the url is similar, still HTTPS, and stays HTTPS when viewing it. thanks, Steve On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote: what's the code you're using to render the link for the iframe in wicket? have you pasted that yet? On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote: Ok I did that, the Wicket app comes up as as HTTP, however if I do the same thing to any that renders in the same style of iframe, it's HTTPS. these tools are other display technologies, like JSF, Velocity, etc. Here's the first Wicket app: http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main Here's a Velocity app in in the same page: https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main The URL of the entire site is: https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0 I have another Wicket app that another developer wrote, same thing, HTTP only. So it's only Wicket tools that are doing this. thanks, Steve On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote: What I've suspected all along is that your main page MAY be loaded https, but that your iframe src is actually ending up http. do this (in firefox): pull up the app in https, right click in the iframe, click this frame, click show only this frame. is the url that appears with the iframe content https? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Exactly. So why are they coming up as HTTP when both the URL and iframe src are both HTTPS. All resources that Wicket sends from this application are coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS. I'll add some logging to the Application init() to figure out if Wicket thinks its on HTTP or HTTPS. Could be the iframe? thanks, Steve On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote: your paste does not contain any absolute urls, only relative ones... -igor On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Yes, the app is rendered in an iframe as my app is deployed into a portal container. I pasted that HTML from the iframe source, but here is the whole lot: http://pastie.org/819416 Line 21 has the import for the css. Line 55 is a ContextImage The iframe source is: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main and that renders the tool. Using the padlock in the bottom right of Firefox, and analysing the Media, gives all images that are loaded on the page, and all of those that come from this app are http only, the rest that come from the portal container are https as normal. Changing the address to http and refreshing makes the portal container urls change to http as expected. thanks, Steve On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote: Well, can you paste the actual html that is generated that links to your stylesheet on the https page? Because what you pasted earlier was a relative URL, which would mean
Re: wicket app over https but renders some images as http
The interesting thing is that I am unable to reproduce this locally, the iframe is served over HTTPS in my local instance but broken in production. So I'm starting to think it's a Tomcat config issue. I've sent a note out to the sysadmin to check the Tomcat connector settings. One thing is that the prod instance is using Apache in front of Tomcat, but I am just using an SSL enabled Tomcat. I'mm bring up an Apache instance and see if I can break it. Igor how do I change the rendering pattern? I will try that locally. thanks. Steve On 11/02/2010, at 6:11 PM, Igor Vaynberg wrote: it may be that this servlet filter is rewriting any redirects. by default wicket uses redirect to buffer pattern, i doubt velocity or your other tools are doing something similar. try changing the rendering pattern in wicket to direct_to_render and see if that helps. -igor On Wed, Feb 10, 2010 at 8:49 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: It's done by the portal, but it renders an iframe of source: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea Which is the direct link to the tool instance. So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go to that URL in my browser, with HTTPS intact, it will revert to HTTP in front of me. If I grab the iframe source for another tool, say a Velocity based tool, the url is similar, still HTTPS, and stays HTTPS when viewing it. thanks, Steve On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote: what's the code you're using to render the link for the iframe in wicket? have you pasted that yet? On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote: Ok I did that, the Wicket app comes up as as HTTP, however if I do the same thing to any that renders in the same style of iframe, it's HTTPS. these tools are other display technologies, like JSF, Velocity, etc. Here's the first Wicket app: http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main Here's a Velocity app in in the same page: https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main The URL of the entire site is: https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0 I have another Wicket app that another developer wrote, same thing, HTTP only. So it's only Wicket tools that are doing this. thanks, Steve On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote: What I've suspected all along is that your main page MAY be loaded https, but that your iframe src is actually ending up http. do this (in firefox): pull up the app in https, right click in the iframe, click this frame, click show only this frame. is the url that appears with the iframe content https? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Exactly. So why are they coming up as HTTP when both the URL and iframe src are both HTTPS. All resources that Wicket sends from this application are coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS. I'll add some logging to the Application init() to figure out if Wicket thinks its on HTTP or HTTPS. Could be the iframe? thanks, Steve On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote: your paste does not contain any absolute urls, only relative ones... -igor On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Yes, the app is rendered in an iframe as my app is deployed into a portal container. I pasted that HTML from the iframe source, but here is the whole lot: http://pastie.org/819416 Line 21 has the import for the css. Line 55 is a ContextImage The iframe source is: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main and that renders the tool. Using the padlock in the bottom right of Firefox, and analysing the Media, gives all images that are loaded on the page, and all of those that come from this app are http only, the rest that come from the portal container are https as normal. Changing the address to http and refreshing makes the portal container urls change to http as expected. thanks, Steve On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote: Well, can you paste the actual html that is generated that links to your stylesheet on the https page? Because what you pasted earlier was a relative URL, which would mean that the browser would make it https as well. So, they're some piece of the puzzle we haven't received yet. Perhaps you could browse to the https page, view source, copy the whole source into pastebin and send it? Are you using iframes or anything? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
Re: wicket app over https but renders some images as http
I think I may have this sorted. It seems localised to one production instance only and an acceptance machine with a similar setup to the production machine is not showing the symptoms (and I can't reproduce in dev). It certainly was an odd one. Must be the server configuration. Thanks for all the replies, I think we've all learned something today ;) cheers, Steve On 11/02/2010, at 6:20 PM, Steve Swinsburg wrote: The interesting thing is that I am unable to reproduce this locally, the iframe is served over HTTPS in my local instance but broken in production. So I'm starting to think it's a Tomcat config issue. I've sent a note out to the sysadmin to check the Tomcat connector settings. One thing is that the prod instance is using Apache in front of Tomcat, but I am just using an SSL enabled Tomcat. I'mm bring up an Apache instance and see if I can break it. Igor how do I change the rendering pattern? I will try that locally. thanks. Steve On 11/02/2010, at 6:11 PM, Igor Vaynberg wrote: it may be that this servlet filter is rewriting any redirects. by default wicket uses redirect to buffer pattern, i doubt velocity or your other tools are doing something similar. try changing the rendering pattern in wicket to direct_to_render and see if that helps. -igor On Wed, Feb 10, 2010 at 8:49 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: It's done by the portal, but it renders an iframe of source: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea Which is the direct link to the tool instance. So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go to that URL in my browser, with HTTPS intact, it will revert to HTTP in front of me. If I grab the iframe source for another tool, say a Velocity based tool, the url is similar, still HTTPS, and stays HTTPS when viewing it. thanks, Steve On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote: what's the code you're using to render the link for the iframe in wicket? have you pasted that yet? On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote: Ok I did that, the Wicket app comes up as as HTTP, however if I do the same thing to any that renders in the same style of iframe, it's HTTPS. these tools are other display technologies, like JSF, Velocity, etc. Here's the first Wicket app: http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main Here's a Velocity app in in the same page: https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main The URL of the entire site is: https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0 I have another Wicket app that another developer wrote, same thing, HTTP only. So it's only Wicket tools that are doing this. thanks, Steve On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote: What I've suspected all along is that your main page MAY be loaded https, but that your iframe src is actually ending up http. do this (in firefox): pull up the app in https, right click in the iframe, click this frame, click show only this frame. is the url that appears with the iframe content https? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Exactly. So why are they coming up as HTTP when both the URL and iframe src are both HTTPS. All resources that Wicket sends from this application are coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS. I'll add some logging to the Application init() to figure out if Wicket thinks its on HTTP or HTTPS. Could be the iframe? thanks, Steve On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote: your paste does not contain any absolute urls, only relative ones... -igor On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Yes, the app is rendered in an iframe as my app is deployed into a portal container. I pasted that HTML from the iframe source, but here is the whole lot: http://pastie.org/819416 Line 21 has the import for the css. Line 55 is a ContextImage The iframe source is: src= https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main and that renders the tool. Using the padlock in the bottom right of Firefox, and analysing the Media, gives all images that are loaded on the page, and all of those that come from this app are http only, the rest that come from the portal container are https as normal. Changing the address to http and refreshing makes the portal container urls change to http as expected. thanks, Steve On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote: Well, can you paste the actual html that is generated that links to your stylesheet on the https page? Because what you
Re: Wicket best practice
Another example of an app builder is the Sakai App Builder, which is an Eclipse plugin for quickly creating an example tool/app integrated into the Sakai Framework. http://confluence.sakaiproject.org/display/BOOT/Sakai+App+Builder It allows you to select from a number of view technologies (JSF,JSP etc) and I added the Wicket components to allow it to generate a Sakai Wicket app. It could probably do with an overhaul from the things I've learned in the past year or so ;) It can create just the basic skeleton or a working app using the Sakai API, so we use it a lot for new developers to Sakai as a launchpad app. The working app is still quite basic though since we want the developers to follow established best practices in extending it and creating their own Sakai tool. cheers, Steve On 08/02/2010, at 3:19 PM, Jeremy Thomerson wrote: Look at jWeekend's LegUp as an example of a working app: http://www.jweekend.com/dev/LegUp However, with no offense intended, here's my $0.02 Creating a Wicket app for people from a spec file is a great idea. But doing it without understanding how Wicket works is a bad idea. You'll likely end up introducing more bad practices to people who are new to Wicket. It's a great idea - and I think it could be a great thing for Wicket, but I'd highly suggest that you team up with some Wicket professionals so that you write it the right way. There are a few key things to understand about Wicket that most newcomers don't just get until they've used it for a while. -- Jeremy Thomerson http://www.wickettraining.com On Sat, Feb 6, 2010 at 3:27 PM, Vineet Manohar vineet.mano...@gmail.comwrote: Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use a href= in the HTML, or I can use Wicket link component model, what's the difference and which one should I use? Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla rka...@gmail.com wrote: Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main packages together. On Feb 6, 2010 1:33 PM, Vineet Manohar vineet.mano...@gmail.com wrote: Hi, I am trying to write a code generator (using Clickframes code generation framework) which would generate a fully working Wicket project directly from the Spec. Is there a document which describes the best practice for folder/package structure in a wicket project. To write the code generator, the only thing I need to know is the Wicket project structure that I should be created. For example: 1) should html files be colocated in src/main/java/com/mypackage/ along with Java files (as in the helloworld example) or in src/main/webapp. 2) should there be one html file per page (I am assuming yes) ... and other such questions related to folder structure I am the lead developer of open source code generation framework Clickframes (http://www.clickframes.org) and have written a similar code generator for JSF/Seam which instantly gives you a working app directly from the spec which the developer can then customize. I think a similar approach for Wicket would be very helpful to Wicket users who are trying to start a brand new project. Here's what I have so far. http://code.google.com/p/clickframes-wicket-plugin/ I am a Wicket novice, so any help or direction is appreciated. Thanks, Vineet Manohar http://www.vineetmanohar.com smime.p7s Description: S/MIME cryptographic signature
Re: setResponsePage in the beggining of a constructor does not work
They don't need to be bookmarkable. You can call specific constructors of a class if you want: throw new RestartResponseException(new MyClass(something)); cheers, Steve On 05/02/2010, at 10:59 AM, Chris Colman wrote: Could I use RestartResponseException to redirect to a URL instead of a bookmarkable page? My problem is that all of my pages require a parameter (even the home page but that's fine because the Tomcat container server.xml configures the appropriate redirection for me - users never have to enter the parameters in the address bar) but the Expired Page page contains a link that does not contain any parameters. When a session expires the page that appears attempts to go to the 'home' page without any parameters. If I could either change the expired page's link or do a redirect in the home page's constructor that redirect's to / then this would work fine. Unfortunately the RestartResponseException seems to only want to redirect to bookmarkable pages. Is there an alternative I could use to redirect to the / URL? -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, 5 February 2010 12:30 AM To: users@wicket.apache.org Subject: RE: setResponsePage in the beggining of a constructor does not work Thanks friend! Works great! You saved me a lot of time! Best regards, Martin -Original Message- From: Major Péter [mailto:majorpe...@sch.bme.hu] Sent: Thursday, February 04, 2010 3:21 PM To: users@wicket.apache.org Subject: Re: setResponsePage in the beggining of a constructor does not work Hi, the setresponsepage only marks, that the pagetarget is something else on the end of the cycle, but it isn't stopping the execution of the current page. If you want that, then use: throw new RestartResponseException(getApplication().getHomePage()); Regards, Peter 2010-02-04 14:16 keltezéssel, Martin Asenov írta: Hello guys! I've got three pages, where I do certain check in the beginning and if the criteria is not met, I redirect to home page. I make it that way: public MyPageClass { if (something) { system.out.println(mypageclass - we're in); setResponsePage(getApplication().getHomePage()); } page initialization afterwards } The strange thing is that it works for one of the pages, for another two - it does not - there is no redirection at all; it goes on with further initializing. The criteria check block is the very same one in each of the pages. Appreciate if someone helps! Regards, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: Save a form's markup
Why don't you just have two pages, one that is the HTML form and submits the data, one that gets the data and displays it back again depending on that data. Saving the markup is a bad IMO, if the original form needs to change, even slightly, you are still using the old markup on the other side. Best to just use the data from that form. cheers, Steve On 03/02/2010, at 11:51 AM, Branden Tanga wrote: Hello, This particular form is dynamic, in that it may be different for each user. As a business rule, I have to be able to build back this exact form as read only in another part of the application. What I was doing originally, was parsing all of the wicket components on the java side, extracting their objectModelAsString and id, and putting those into an xml. Then when I needed to build the form back as read only, I would parse the xml and build back the markup. The other day I had an epiphany and realized, why don't I just store the markup from the original form, it would be much simpler and less prone to errors. The only catch is that I have to get the markup with the user input (checkboxes checked, textboxes with text, etc.). So I need to capture the state of the markup at the moment that the user hits the submit button on the form. To All: As soon as I'm back to my regular desktop I'll work on your suggestions. Thanks! Thanks, Branden Tanga Programmer / EHR Systems Engineer On Tue, Feb 2, 2010 at 5:57 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: why? -igor On Mon, Feb 1, 2010 at 3:41 AM, Branden Tanga branden.ta...@gmail.com wrote: Hello, I would like to save a form's markup as a string when the form's submit button is pressed. The part that I am having difficulty with is understanding how to use wicket to grab a form's rendered markup. I have a feeling it must be pretty simple, but I'm getting lost in the wicket documentation. Any tips? Thanks, Branden Tanga Programmer / EHR Systems Engineer - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Image auto-resize in browser
The autoresize can be turned off in IE so a longer term solution might be to add some onHover/onClick handlers to do what you require, rather than making the resize behaviour IE specific. http://www.microsoft.com/windows/ie/ie6/using/howto/customizing/autoresize.mspx cheers, Steve On 31/01/2010, at 2:08 PM, Matt Zemeck wrote: Wicket Servlet. Its a big image but in the end thats what the use case calls for. From: Andrew Lombardi and...@mysticcoders.com To: users@wicket.apache.org users@wicket.apache.org Cc: users@wicket.apache.org users@wicket.apache.org Sent: Sat, January 30, 2010 9:45:19 PM Subject: Re: Image auto-resize in browser Is wicket somehow inhibiting this functionality? I would think it's not the best user experience to force a user to download something larger than the viewing image. Is this being served through wicket filter inside the webapp? Sent from my iPhone On Jan 30, 2010, at 6:15 PM, Matt Zemeck mattyz...@yahoo.com wrote: There is a feature of IE that resizes large images automatically. When you hover over the image you can click to expand it to actual size. This feature is not working for my images. imgsrc=filename.jpg alt=Some Text height=3000 width=2000/ From: Andrew Lombardi and...@mysticcoders.com To: users@wicket.apache.org Sent: Sat, January 30, 2010 9:04:26 PM Subject: Re: Image auto-resize in browser Can you be a little more specific? Are you resizing using a resource? What does your img tag look like in HTML? On Jan 30, 2010, at 4:27 PM, Matt Zemeck wrote: The images rendered by my page don't auto-resize (very large image) in the browser. I have the setting enabled in IE and if I manually go to the generated src value url they do auto-resize. The generated img tags looks fine. Any ideas? To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com Apache Wicket Training to get your team off on the right start! ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: Nasty problem with component not found and images [solved]
Thomas, Thanks for this. I may also have run into the multiple page load you say this might cause. Can you confirm if this is the case for any img src=# / and goes away when its just img / ? cheers, Steve On 28/01/2010, at 2:54 AM, Riyad Kalla wrote: Thomas, as someone who frequently likes trying really dumb things -- I appreciate you giving a heads up on this issue. I was likely going to run into this at some point anyway ;) On Wed, Jan 27, 2010 at 3:46 AM, Thomas Kappler thomas.kapp...@isb-sib.chwrote: Earlier this month, there was a thread [1] about the component not found problem. I can't reply as I wasn't subscribed yet. [1] http://old.nabble.com/component-xxx:yyy:zzz-not-found-on-page-td27080437.html I had the same problem recently, and after banging my head against the wall for a while, I figured it out. I had a RepeatingView on the page that consisted of markup containers that had some text, and some had an external image (hosted outside the wicket app), while others did not. I tought I'd keep it simple and wrote img src=# / in the markup. In the Java code, I'd check each item whether it had a URL to an image, and if so, would insert that into the src attribute with an AttributeModifier. For the other items it just stayed at the # value. Now # means the current page, so for each page load, the browser would actually load the page several times, once for each empty img. When using ajax, this completely breaks things, of course (besides making the page really slow). Note that an empty value of src= can also cause this at least with older versions of Firefox. Making it so that the img markup is only inserted for actual images solved it. Maybe that was really dumb, but I thought I'd share it for the mailing list archive. -- Thomas -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland http://www.uniprot.org --- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: How to change content in ModalWindow - minor success!
You could just have the ModalWindow's contents be set in the onClick of the button that shows the window. Then you know if the checkbox has been checked or not and you can add in the appropriate panel, then just show the window. In my app I have any number of modal windows that might show depending on the state of the page so I just construct it when I need it. cheers, Steve On 26/01/2010, at 5:30 AM, Chris Colman wrote: Also, it seems like ModalWindow.setTitle will not update the title after the initial ModalWindow.show has been called. Is there any way to trigger a title update after show has been called? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 5:15 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow - minor success! Well I managed to get the panels to replace without adding a new ModalWindow to the stack each time: replacePanel(Panel existingPanel, Panel newPanel, String title, AjaxRequestTarget target) { existingPanel.replaceWith(newPanel); newPanel.setOutputMarkupId(true); modalContentWindow.setTitle(title); target.addComponent(newPanel); } This appears to work wonderfully - it allows me to toggle the ModalWindow content between two different PanelS and it does so cleanly with no flicker. However the 'Close' button that I added to each Panel will only work if no content toggling has taken place. Once the content has been toggled the Close button doesn't trigger a modal close. The 'X' in the top right of the Modal still works fine. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 4:27 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow For this to work can I use Panels for the Modal content or do I need to use Pages for the content and set up a PageCreator? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 4:03 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow My use case might explain the situation better: User visits a page that needs authentication. A ModalWindow appears with a username/password field pair and a 'sign in' button. In case they are a new user it also contains a 'create account' button. If they click this then the contents of the ModalWindow changes to hold more fields, name, email, password, confirm password etc., sufficient to creating a new account. I wanted to do a nice smooth switch from the 'sign in' presentation to the 'create account' presentation without the flicker of closing the form and bringing up a new form. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 3:58 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow I tried that initially but calling modalContentWindow.show when there already is a ModalWindow being displayed creates a new ModalWindow that sits over the top of the original one meaning I now have 2 windows that the user has to close. My aim is to have only one ModalWindow but just switch its contents. Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when clicked, should cause PanelB to display in the same ModalWindow (PanelB replaced PanelA). The onClick event handler does something like the following: add ( new AjaxLink(selectionLink) { public void onClick(AjaxRequestTarget target) { PanelB panelB = new PanelB(modalContentWindow.getContentId()); modalContentWindow.setContent(panelB); modalContentWindow.setTitle(Hi, I'm PanelB); target.addComponent(panelB); } } ); When the link is pressed the panel A content disappears (popup content goes blank) but the panel B content does not appear. Should this work or have I missed something? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to change content in ModalWindow - minor success!
Ah I thought the 'create new account' check box was on the parent page and checked before the Window was opened. But its in the window itself. Right so you want to replace a panel in the page. In that case: I do this as well as I have a form in my ModalWindow that allows a user to confirm an action and then a message is displayed. The content of the ModalWindow is just a Panel, the components of which you can just replace normally via the AjaxRequestTarget. cheers, Steve On 27/01/2010, at 4:33 PM, Chris Colman wrote: You could just have the ModalWindow's contents be set in the onClick of the button that shows the window. That's how I'm opening them but that's not the problem. The problem is once I have a ModalWindow open I want to switch the contents without the 'flicker' of shutting down the ModalWindow and opening up another one. Although I tried doing the shut down/reopen and didn't have much success with that either. Maybe that's not possible with Wicket/AJAX - it might want to do only major action for any AJAX event i.e. either close or open a modal but not both together. Then you know if the checkbox has been checked or not and you can add in the appropriate panel, then just show the window. In my app I have any number of modal windows that might show depending on the state of the page so I just construct it when I need it. cheers, Steve On 26/01/2010, at 5:30 AM, Chris Colman wrote: Also, it seems like ModalWindow.setTitle will not update the title after the initial ModalWindow.show has been called. Is there any way to trigger a title update after show has been called? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 5:15 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow - minor success! Well I managed to get the panels to replace without adding a new ModalWindow to the stack each time: replacePanel(Panel existingPanel, Panel newPanel, String title, AjaxRequestTarget target) { existingPanel.replaceWith(newPanel); newPanel.setOutputMarkupId(true); modalContentWindow.setTitle(title); target.addComponent(newPanel); } This appears to work wonderfully - it allows me to toggle the ModalWindow content between two different PanelS and it does so cleanly with no flicker. However the 'Close' button that I added to each Panel will only work if no content toggling has taken place. Once the content has been toggled the Close button doesn't trigger a modal close. The 'X' in the top right of the Modal still works fine. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 4:27 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow For this to work can I use Panels for the Modal content or do I need to use Pages for the content and set up a PageCreator? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 4:03 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow My use case might explain the situation better: User visits a page that needs authentication. A ModalWindow appears with a username/password field pair and a 'sign in' button. In case they are a new user it also contains a 'create account' button. If they click this then the contents of the ModalWindow changes to hold more fields, name, email, password, confirm password etc., sufficient to creating a new account. I wanted to do a nice smooth switch from the 'sign in' presentation to the 'create account' presentation without the flicker of closing the form and bringing up a new form. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 3:58 AM To: users@wicket.apache.org Subject: RE: How to change content in ModalWindow I tried that initially but calling modalContentWindow.show when there already is a ModalWindow being displayed creates a new ModalWindow that sits over the top of the original one meaning I now have 2 windows that the user has to close. My aim is to have only one ModalWindow but just switch its contents. Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when clicked, should cause PanelB to display in the same ModalWindow (PanelB replaced PanelA). The onClick event handler does something like the following: add ( new AjaxLink(selectionLink) { public void onClick(AjaxRequestTarget target) { PanelB panelB = new
Re: add javascript after AjaxLazyLoadPanel finishes rendering - (was: onAfterRender called twice in AjaxLazyLoadPanel)
If it was my own Panel class then I would add the extra markup. But I am using the built in AjaxLazyLoadPanel class and was hoping to just override it easily. Looks like I'll extend it as per Sven's suggestion below. cheers, Steve On 21/01/2010, at 6:37 PM, svenmeier wrote: class SomePanel extends Panel implements IHeaderContributor { public SomePanel(String id) { super(id); } public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript(alert('hello');); } } Sven Steve Swinsburg-3 wrote: Hi Lionel, Thanks and yes, thats what I am trying to do, attach some javascript after something has rendered. So I attached an AjaxEventBehaviour to it and now have this: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) { return new SomePanel(markupId); } }.add(new AjaxEventBehavior(onload){ protected void onEvent(AjaxRequestTarget target){ target.appendJavascript(alert('hello)';); } })); but the javascript is never fired. Any more ideas? cheers, Steve On 21/01/2010, at 3:09 PM, Lionel Port wrote: Hi Steve, Are you trying to do this.. http://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html with an onload event instead of onblur, or do I misunderstand. regards, Lionel On Thu, Jan 21, 2010 at 2:56 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: So overriding onAfterRender for a component doesn't just override it for that instance of the component? Also I can see the markup is being added to the end of the page after the closing HTML. However, the Javadocs say it is meant to be called after after the actual component is finished rendering. So it look s like onAfterRender is not what I need. Can I attach to a different phase in the render lifecycle to call the javascript when that specific panel has just finished rendering? thanks, Steve On 21/01/2010, at 2:52 PM, Igor Vaynberg wrote: you are writing out javascript after every component render... perhaps you should keep a boolean flag that marks if you rendered the js yet or not. alternatively you can add a behavior to the panel with istemporary() { return true; } -igor On Wed, Jan 20, 2010 at 7:24 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: I have an AjaxLazyLoadPanel and want some javascript to fire after its loaded it's contents: I assumed I could override onAfterRender and add my javascript like so: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) { return new SomePamel(markupId); } @Override protected void onAfterRender() { JavascriptUtils.writeJavascript(getResponse(), alert('hello');); super.onAfterRender(); } }); Except it is called twice, it looks like once when the page is loading and then again when the actual panel has been loaded. Is there another way to achieve what I want? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/onAfterRender-called-twice-in-AjaxLazyLoadPanel-tp27252299p27253924.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: add javascript after AjaxLazyLoadPanel finishes rendering - (was: onAfterRender called twice in AjaxLazyLoadPanel)
Thanks Sven, that works nicely. Now if only the iframe this panel loads in was in was being resized appropriately after the panel loads its contents cheers, Steve On 21/01/2010, at 10:55 PM, Steve Swinsburg wrote: If it was my own Panel class then I would add the extra markup. But I am using the built in AjaxLazyLoadPanel class and was hoping to just override it easily. Looks like I'll extend it as per Sven's suggestion below. cheers, Steve On 21/01/2010, at 6:37 PM, svenmeier wrote: class SomePanel extends Panel implements IHeaderContributor { public SomePanel(String id) { super(id); } public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript(alert('hello');); } } Sven Steve Swinsburg-3 wrote: Hi Lionel, Thanks and yes, thats what I am trying to do, attach some javascript after something has rendered. So I attached an AjaxEventBehaviour to it and now have this: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) { return new SomePanel(markupId); } }.add(new AjaxEventBehavior(onload){ protected void onEvent(AjaxRequestTarget target){ target.appendJavascript(alert('hello)';); } })); but the javascript is never fired. Any more ideas? cheers, Steve On 21/01/2010, at 3:09 PM, Lionel Port wrote: Hi Steve, Are you trying to do this.. http://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html with an onload event instead of onblur, or do I misunderstand. regards, Lionel On Thu, Jan 21, 2010 at 2:56 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: So overriding onAfterRender for a component doesn't just override it for that instance of the component? Also I can see the markup is being added to the end of the page after the closing HTML. However, the Javadocs say it is meant to be called after after the actual component is finished rendering. So it look s like onAfterRender is not what I need. Can I attach to a different phase in the render lifecycle to call the javascript when that specific panel has just finished rendering? thanks, Steve On 21/01/2010, at 2:52 PM, Igor Vaynberg wrote: you are writing out javascript after every component render... perhaps you should keep a boolean flag that marks if you rendered the js yet or not. alternatively you can add a behavior to the panel with istemporary() { return true; } -igor On Wed, Jan 20, 2010 at 7:24 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: I have an AjaxLazyLoadPanel and want some javascript to fire after its loaded it's contents: I assumed I could override onAfterRender and add my javascript like so: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) { return new SomePamel(markupId); } @Override protected void onAfterRender() { JavascriptUtils.writeJavascript(getResponse(), alert('hello');); super.onAfterRender(); } }); Except it is called twice, it looks like once when the page is loading and then again when the actual panel has been loaded. Is there another way to achieve what I want? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/onAfterRender-called-twice-in-AjaxLazyLoadPanel-tp27252299p27253924.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
onAfterRender called twice in AjaxLazyLoadPanel
I have an AjaxLazyLoadPanel and want some javascript to fire after its loaded it's contents: I assumed I could override onAfterRender and add my javascript like so: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) { return new SomePamel(markupId); } @Override protected void onAfterRender() { JavascriptUtils.writeJavascript(getResponse(), alert('hello');); super.onAfterRender(); } }); Except it is called twice, it looks like once when the page is loading and then again when the actual panel has been loaded. Is there another way to achieve what I want? thanks, Steve
Re: onAfterRender called twice in AjaxLazyLoadPanel
So overriding onAfterRender for a component doesn't just override it for that instance of the component? Also I can see the markup is being added to the end of the page after the closing HTML. However, the Javadocs say it is meant to be called after after the actual component is finished rendering. So it look s like onAfterRender is not what I need. Can I attach to a different phase in the render lifecycle to call the javascript when that specific panel has just finished rendering? thanks, Steve On 21/01/2010, at 2:52 PM, Igor Vaynberg wrote: you are writing out javascript after every component render... perhaps you should keep a boolean flag that marks if you rendered the js yet or not. alternatively you can add a behavior to the panel with istemporary() { return true; } -igor On Wed, Jan 20, 2010 at 7:24 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: I have an AjaxLazyLoadPanel and want some javascript to fire after its loaded it's contents: I assumed I could override onAfterRender and add my javascript like so: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) { return new SomePamel(markupId); } @Override protected void onAfterRender() { JavascriptUtils.writeJavascript(getResponse(), alert('hello');); super.onAfterRender(); } }); Except it is called twice, it looks like once when the page is loading and then again when the actual panel has been loaded. Is there another way to achieve what I want? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Image name changing in dev server
Can you use a ContextImage? On 20/01/2010, at 6:07 AM, vg...@osc.state.ny.us wrote: We do not need any naming rules. Thats why I am confused. My code is this inside a reating view. Image image = new Image(circle+i, /images/circlegray.JPG) In local enviornment it works fine but in Dev Server image name is changed with us local appended. Thanks and Regards, Vandana Goel Pedro Santos pedros...@gmail.com 01/19/2010 01:58 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Image name changing in dev server You can use an ResourceReference to implement any naming rule you need. On Tue, Jan 19, 2010 at 4:51 PM, vg...@osc.state.ny.us wrote: Is it expected behaviour in wicket. Why wicket is changing the name of the image ? Thanks and Regards, Vandana Goel Igor Vaynberg igor.vaynb...@gmail.com 01/19/2010 01:31 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Image name changing in dev server even though the name of the image is changed to _en_US the original image should still be tried if wicket cannot find the more specific one. please debug and see where it goes wrong. -igor On Tue, Jan 19, 2010 at 9:49 AM, vg...@osc.state.ny.us wrote: All our other images works fine in dev server. In local environment image in wizard also works but not in dev. The name of image is change from circlegray.JPG to circlegray_en_US.JPG. Its happening in wizard component only. Our environment is Websphere 6.1 and we are using Wicket Servlet. Any help will be appreciated. Thanks and Regards, Vandana Goel Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. -- Pedro Henrique Oliveira dos Santos Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor works, but combined with mountBookmarkablePage it doesn't
Hi, Thanks for the tips. Unfortunately, the container I am deploying into is stripping the request parameters. I've had to code my own bookmarkable page link method for this container. cheers, Steve On 16/01/2010, at 12:36 AM, Martin Grigorov wrote: On Fri, 2010-01-15 at 22:29 +1100, Steve Swinsburg wrote: Hi all, I have the following code which generates a URL to a page with some parameters: String url = urlFor(MyMessageView.class, new PageParameters(thread= + ad9697d2-8328-43b4-be28-ee677a88bc9a)).toString(); This generates a URL like so: ?wicket:bookmarkablePage=:org.mypackage.pages.MyMessageViewthread=ad9697d2-8328-43b4-be28-ee677a88bc9a which works, it takes me to the right page and everything is constructed correctly. However, if I then mount that page as a bookmarkable page: mountBookmarkablePage(/messages, MyMessageView.class); then the URL created by the same urlFor method above is: /messages/thread/ad9697d2-8328-43b4-be28-ee677a88bc9a Looking it I would say it should work but I am not that familiar with it. Try with mount(new SomeUrlCodingStrategy(/messages, MyMessageView.class)) e.g. IndexedParamUrlCodingStrategy, IndexedHybridUrlCodingStrategy, ... and this does not work. Any ideas? thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
urlFor works, but combined with mountBookmarkablePage it doesn't
Hi all, I have the following code which generates a URL to a page with some parameters: String url = urlFor(MyMessageView.class, new PageParameters(thread= + ad9697d2-8328-43b4-be28-ee677a88bc9a)).toString(); This generates a URL like so: ?wicket:bookmarkablePage=:org.mypackage.pages.MyMessageViewthread=ad9697d2-8328-43b4-be28-ee677a88bc9a which works, it takes me to the right page and everything is constructed correctly. However, if I then mount that page as a bookmarkable page: mountBookmarkablePage(/messages, MyMessageView.class); then the URL created by the same urlFor method above is: /messages/thread/ad9697d2-8328-43b4-be28-ee677a88bc9a and this does not work. Any ideas? thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: Wicket Wizards and Hibernate
Hi, Once you have the object built up, you could reattach it to the session with saveOrUpdate() which will figure out if it needs to insert or update. This assumes you are using the Spring Hibernate wrapper templates. cheers, Steve On 14/01/2010, at 9:47 PM, Rodolfo Cartas wrote: Hi! I'm currently working on a wizard to modify a pojo extracted from a database with Hibernate. I don't want to commit any changes to the db before the user finishes the wizard, but the pojo loses reference to the original session. Shall I eagerly fetch the object to avoid any hibernate session reference exceptions? Thanks, Rodolfo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
clearing a TextField
Hello all, I have a list of items and an ajax form at the bottom so you can add items to the list, containing a single textfield and a submit button. On successful submit, the item is saved and the list is redrawn. Great! I want to clear the textfield though so new items can be added, since the textfield and form stays on page at all times. I tried: textField.clearInput(); target.addComponent(textField); and form.clearInput(); target.addComponent(form); and a few combinations of the above (!) but to no avail. Are these methods meant to clear the raw input from either the FormComponent or the Form itself? I would have thought so. The only way I could get it cleared was: textField.setModelObject(null); Is this how its meant to be or a bug? Just double checking. cheers, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: clearing a TextField
Thanks, it does work, I was just clarifying whether the other methods should work as well. I am using a simple property model that contains one field (the string that is entered). cheers, Steve On 14/01/2010, at 4:14 PM, Eyal Golan wrote: If you are working with PropertyModel / CompoundPropertyModel, then just set your field to null. Add the textField (or its container) to the Ajax-Target. That should work. Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Jan 14, 2010 at 6:55 AM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Hello all, I have a list of items and an ajax form at the bottom so you can add items to the list, containing a single textfield and a submit button. On successful submit, the item is saved and the list is redrawn. Great! I want to clear the textfield though so new items can be added, since the textfield and form stays on page at all times. I tried: textField.clearInput(); target.addComponent(textField); and form.clearInput(); target.addComponent(form); and a few combinations of the above (!) but to no avail. Are these methods meant to clear the raw input from either the FormComponent or the Form itself? I would have thought so. The only way I could get it cleared was: textField.setModelObject(null); Is this how its meant to be or a bug? Just double checking. cheers, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JVM crash, Wicket class mentioned
For the rare JVM crash in the past this is what I've done also, however _17 is the latest so there is no upgrade. Still, we would really like to know what caused this. A Wicket class is referenced in the error. thanks, Steve On 12/01/2010, at 12:07 AM, Martin Makundi wrote: Hi! No, I remember having similar problems before and they were fixed by upgarding jvm (1.6.0_17 - 1.6.0_18 for example). ** Martin 2010/1/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi Martin, I'll pass that on, but the JRE version is 1.6.0_17-b04 unless you mean the 14.3-b01 VM version? Heres the system info from the log: OS:SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 2 uname:Linux 2.6.16.60-0.42.5-smp #1 SMP Mon Aug 24 09:41:41 UTC 2009 x86_64 libc:glibc 2.4 NPTL 2.4 rlimit: STACK 8192k, CORE 0k, NPROC 69119, NOFILE 10, AS infinity load average:0.32 1.14 0.74 CPU:total 4 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht Memory: 4k page, physical 8118936k(50388k free), swap 5242872k(5179744k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (14.3-b01) for linux-amd64 JRE (1.6.0_17-b04), built on Oct 11 2009 01:08:48 by java_re with gcc 3.2.2 (SuSE Linux) time: Sat Jan 9 18:54:46 2010 elapsed time: 536 seconds cheers, Steve On 11/01/2010, at 11:54 PM, Martin Makundi wrote: Hi! Did you try newer jvm build? ** Martin 2010/1/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi, This came up on another list I am part of, and being a member of this list, thought I'd ask here to see if this is a known fixed issue. This is with an app written using Wicket 1.3.0. Essentially, the JVM crashed with this error under Java 1.6, the same app runs fine under Java 1.5: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x2b5fa7fb, pid=21669, tid=1218128192 # # JRE version: 6.0_17-b04 # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 ) # Problematic frame: # J org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V Some relevant parts from the log: Stack: [0x488b2000,0x489b3000], sp=0x489af470, free space=1013k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V 2aac13c5d000-2aac13c81000 r-xs 0017e000 fd:01 1204727 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-1.3.0.jar 2aac13c81000-2aac13c83000 r-xs 0002d000 fd:01 1204728 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-datetime-1.3.0.jar 2aac13c83000-2aac13c8e000 r-xs 0004e000 fd:01 1204719 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-extensions-1.3.0.jar 2aac13c8e000-2aac13c9 r-xs 4000 fd:01 1204722 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-ioc-1.3.0.jar 2aac13c9-2aac13c92000 r-xs 3000 fd:01 1204729 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-1.3.0.jar 2aac13c92000-2aac13c93000 r-xs 3000 fd:01 1204724 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-annot-1.3.0.jar I can send the log to interest parties, but there is only this reference to the Wicket class, as well as a few Wicket jars on the classpath, unless there is more you need to see. So, any known issues? An upgrade is required of course, but we'd like to resolve what the problem was to start with. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: making tinyMce TextArea readonly
Here's a class I created which extends the default TinyMCESettings class. I use this as my configuration and can customise it to my hearts content, adding and removing buttons: /** * A configuration class for the TinyMCE Wicket component, used by textareas. * If more are required for different purposes, create a new class. */ public class TextareaTinyMceSettings extends TinyMCESettings { private static final long serialVersionUID = 1L; public TextareaTinyMceSettings () { super(TinyMCESettings.Theme.advanced); /* add(Button.bullist, TinyMCESettings.Toolbar.first, TinyMCESettings.Position.after); add(Button.numlist, TinyMCESettings.Toolbar.first, TinyMCESettings.Position.after); disableButton(Button.styleselect); disableButton(Button.sub); disableButton(Button.sup); disableButton(Button.charmap); disableButton(Button.image); disableButton(Button.anchor); disableButton(Button.help); disableButton(Button.code); disableButton(Button.link); disableButton(Button.unlink); disableButton(Button.formatselect); disableButton(Button.indent); disableButton(Button.outdent); disableButton(Button.undo); disableButton(Button.redo); disableButton(Button.cleanup); disableButton(Button.hr); disableButton(Button.visualaid); disableButton(Button.separator); disableButton(Button.formatselect); disableButton(Button.removeformat); */ ListButton firstRowButtons = new ArrayListButton(); firstRowButtons.add(Button.bold); firstRowButtons.add(Button.italic); firstRowButtons.add(Button.underline); firstRowButtons.add(Button.strikethrough); firstRowButtons.add(Button.separator); firstRowButtons.add(Button.sub); firstRowButtons.add(Button.sup); firstRowButtons.add(Button.separator); firstRowButtons.add(Button.link); firstRowButtons.add(Button.unlink); firstRowButtons.add(Button.separator); firstRowButtons.add(Button.bullist); firstRowButtons.add(Button.numlist); firstRowButtons.add(Button.separator); firstRowButtons.add(Button.code); //set first toolbar setToolbarButtons(TinyMCESettings.Toolbar.first, firstRowButtons); //remove the second and third toolbars setToolbarButtons(TinyMCESettings.Toolbar.second, new ArrayListButton()); setToolbarButtons(TinyMCESettings.Toolbar.third, new ArrayListButton()); setToolbarButtons(TinyMCESettings.Toolbar.fourth, new ArrayListButton()); setToolbarAlign(TinyMCESettings.Align.center); setToolbarLocation(TinyMCESettings.Location.top); setStatusbarLocation(null); setResizing(true); setHorizontalResizing(true); } } It's then used like so: TextArea otherInformation = new TextArea(otherInformation, new PropertyModel(userProfile, otherInformation)); //add TinyMCE control otherInformation.add(new TinyMceBehavior(new TextareaTinyMceSettings())); You might be able to play with the settings above to find what you need. Check out the settings available in the base class. cheers, Steve On 13/01/2010, at 9:43 AM, fachhoch wrote: I did as you said , recreated , the jar using latest js files . Please tell me what setting I should add to add spell checker and to make copy from word and paste to tinymce ? Linkan wrote: You have to download the source and repack it with new javascripts to make it work. http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821 //Swanthe tubin gen wrote: I ma trying to make TextArea with TinyMce behaviour readonly , I added the following custom settings but it did not work tinyMCESettings.addCustomSetting(readonly : true); tinyMCESettings.addCustomSetting(mode : textareas); please suggest me how to make it readonly ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/making-tinyMce-TextArea-readonly-tp26611935p27136175.html Sent from the Wicket - User mailing list archive at Nabble.com. -
JVM crash, Wicket class mentioned
Hi, This came up on another list I am part of, and being a member of this list, thought I'd ask here to see if this is a known fixed issue. This is with an app written using Wicket 1.3.0. Essentially, the JVM crashed with this error under Java 1.6, the same app runs fine under Java 1.5: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x2b5fa7fb, pid=21669, tid=1218128192 # # JRE version: 6.0_17-b04 # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 ) # Problematic frame: # J org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V Some relevant parts from the log: Stack: [0x488b2000,0x489b3000], sp=0x489af470, free space=1013k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V 2aac13c5d000-2aac13c81000 r-xs 0017e000 fd:01 1204727 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-1.3.0.jar 2aac13c81000-2aac13c83000 r-xs 0002d000 fd:01 1204728 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-datetime-1.3.0.jar 2aac13c83000-2aac13c8e000 r-xs 0004e000 fd:01 1204719 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-extensions-1.3.0.jar 2aac13c8e000-2aac13c9 r-xs 4000 fd:01 1204722 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-ioc-1.3.0.jar 2aac13c9-2aac13c92000 r-xs 3000 fd:01 1204729 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-1.3.0.jar 2aac13c92000-2aac13c93000 r-xs 3000 fd:01 1204724 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-annot-1.3.0.jar I can send the log to interest parties, but there is only this reference to the Wicket class, as well as a few Wicket jars on the classpath, unless there is more you need to see. So, any known issues? An upgrade is required of course, but we'd like to resolve what the problem was to start with. thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: JVM crash, Wicket class mentioned
Hi Martin, I'll pass that on, but the JRE version is 1.6.0_17-b04 unless you mean the 14.3-b01 VM version? Heres the system info from the log: OS:SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 2 uname:Linux 2.6.16.60-0.42.5-smp #1 SMP Mon Aug 24 09:41:41 UTC 2009 x86_64 libc:glibc 2.4 NPTL 2.4 rlimit: STACK 8192k, CORE 0k, NPROC 69119, NOFILE 10, AS infinity load average:0.32 1.14 0.74 CPU:total 4 (1 cores per cpu, 2 threads per core) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht Memory: 4k page, physical 8118936k(50388k free), swap 5242872k(5179744k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (14.3-b01) for linux-amd64 JRE (1.6.0_17-b04), built on Oct 11 2009 01:08:48 by java_re with gcc 3.2.2 (SuSE Linux) time: Sat Jan 9 18:54:46 2010 elapsed time: 536 seconds cheers, Steve On 11/01/2010, at 11:54 PM, Martin Makundi wrote: Hi! Did you try newer jvm build? ** Martin 2010/1/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi, This came up on another list I am part of, and being a member of this list, thought I'd ask here to see if this is a known fixed issue. This is with an app written using Wicket 1.3.0. Essentially, the JVM crashed with this error under Java 1.6, the same app runs fine under Java 1.5: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x2b5fa7fb, pid=21669, tid=1218128192 # # JRE version: 6.0_17-b04 # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 ) # Problematic frame: # J org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V Some relevant parts from the log: Stack: [0x488b2000,0x489b3000], sp=0x489af470, free space=1013k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V 2aac13c5d000-2aac13c81000 r-xs 0017e000 fd:01 1204727 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-1.3.0.jar 2aac13c81000-2aac13c83000 r-xs 0002d000 fd:01 1204728 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-datetime-1.3.0.jar 2aac13c83000-2aac13c8e000 r-xs 0004e000 fd:01 1204719 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-extensions-1.3.0.jar 2aac13c8e000-2aac13c9 r-xs 4000 fd:01 1204722 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-ioc-1.3.0.jar 2aac13c9-2aac13c92000 r-xs 3000 fd:01 1204729 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-1.3.0.jar 2aac13c92000-2aac13c93000 r-xs 3000 fd:01 1204724 /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-annot-1.3.0.jar I can send the log to interest parties, but there is only this reference to the Wicket class, as well as a few Wicket jars on the classpath, unless there is more you need to see. So, any known issues? An upgrade is required of course, but we'd like to resolve what the problem was to start with. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: Wicket session not threadsafe?
The first thing to do would be to reproduce the issue in a dev environment, then try upgrading that environment to 1.3.7 and see if that solves the problem. There shouldn't be any API breaks in the 1.3 series so this should be a simple POM dependency version update. It might also be your Hibernate implementation caching and returning the wrong object as well. Steve On 08/01/2010, at 11:21 PM, allgo wrote: 1.3.0-beta3 actually. Copied it from the Manifest file Martijn Dashorst wrote: 1.3.0? Martijn On Fri, Jan 8, 2010 at 1:12 PM, allgo soumya_...@yahoo.co.in wrote: Hi, The wicket version is 1.3. Sorry should have mentioned that. As such the User A, after he logs on is getting assigned the Account object of User B. And after soem logs we can see that User B had logged on a while before. Hence that Accoutn object was definitely fetched a whiel before. I did see a few threads which say Hibernate may eb a culprit but am not sure thats the case here. Please do let me know if you need any more info. Thanks, SSP Martijn Dashorst wrote: A wicket version number would be helpful... Martijn On Fri, Jan 8, 2010 at 12:17 PM, Soumya soumya_...@yahoo.co.in wrote: Hi all, I am fairly a newbie in wicket and would appreciate your help! I have a wicket application which are used on Live by more than 500 users. Now the problem which has arisen is - say User A logs on - he is able to view details of User B. It has happened for different users and I am trying to dig the real reason. Here is my code details - 1) I use Hibernate to fetch 'Account' objects from backend passing on the username/password. 2) I use MyAppSession extends WebSession { private Account account; public InboundSession(Request request) { super(request); } public void setAccount(Account account) { this.account = account; } public Account getAccount() { return account; } public boolean isUserLoggedIn() { return account !=null; } } So effectively I check if the Account object in session is null or not and accordingly decide whether a user is logged in or not. 2) In Login class I pass on the username/password to HibernateAccountDao and fetch the Account object. Account account = accountDao.getAccount(username, password) MyAppSession session = (MyAppSession )getSession(); session.setAccount(account); setResponsePage(Home.class); So effectively I fetch the accout object using hibernate and store it in wicket session. But I am not sure how these account objects are getting mixed up between users. Please can someone lead me to the route cause of the issue? Thanks in advance! SSP The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicket-session-not-threadsafe--tp27074491p27075050.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicket-session-not-threadsafe--tp27074491p27075144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: Wicket session not threadsafe?
Are there any issues reported in the Wicket JIRA [1] that affect the 1.3 series in this way? Can you just upgrade Wicket version to 1.3.7 to see if that resolves your issue? Then you can keep digging. [1] http://issues.apache.org/jira/browse/WICKET On 08/01/2010, at 11:40 PM, allgo wrote: unfortunately it is extremely difficult to reproduce in dev. Have tried it a lot. but the issue seems to happen vaer rare in a multi-user env. Thing is though ti happens rarely... it is a client facing issue and data integrity as promised is challenged. Steve Swinsburg-3 wrote: The first thing to do would be to reproduce the issue in a dev environment, then try upgrading that environment to 1.3.7 and see if that solves the problem. There shouldn't be any API breaks in the 1.3 series so this should be a simple POM dependency version update. It might also be your Hibernate implementation caching and returning the wrong object as well. Steve On 08/01/2010, at 11:21 PM, allgo wrote: 1.3.0-beta3 actually. Copied it from the Manifest file Martijn Dashorst wrote: 1.3.0? Martijn On Fri, Jan 8, 2010 at 1:12 PM, allgo soumya_...@yahoo.co.in wrote: Hi, The wicket version is 1.3. Sorry should have mentioned that. As such the User A, after he logs on is getting assigned the Account object of User B. And after soem logs we can see that User B had logged on a while before. Hence that Accoutn object was definitely fetched a whiel before. I did see a few threads which say Hibernate may eb a culprit but am not sure thats the case here. Please do let me know if you need any more info. Thanks, SSP Martijn Dashorst wrote: A wicket version number would be helpful... Martijn On Fri, Jan 8, 2010 at 12:17 PM, Soumya soumya_...@yahoo.co.in wrote: Hi all, I am fairly a newbie in wicket and would appreciate your help! I have a wicket application which are used on Live by more than 500 users. Now the problem which has arisen is - say User A logs on - he is able to view details of User B. It has happened for different users and I am trying to dig the real reason. Here is my code details - 1) I use Hibernate to fetch 'Account' objects from backend passing on the username/password. 2) I use MyAppSession extends WebSession { private Account account; public InboundSession(Request request) { super(request); } public void setAccount(Account account) { this.account = account; } public Account getAccount() { return account; } public boolean isUserLoggedIn() { return account !=null; } } So effectively I check if the Account object in session is null or not and accordingly decide whether a user is logged in or not. 2) In Login class I pass on the username/password to HibernateAccountDao and fetch the Account object. Account account = accountDao.getAccount(username, password) MyAppSession session = (MyAppSession )getSession(); session.setAccount(account); setResponsePage(Home.class); So effectively I fetch the accout object using hibernate and store it in wicket session. But I am not sure how these account objects are getting mixed up between users. Please can someone lead me to the route cause of the issue? Thanks in advance! SSP The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicket-session-not-threadsafe--tp27074491p27075050.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Wicket-session-not-threadsafe--tp27074491p27075144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail
Re: Help with Wicket Adoption Numbers
On the wiki there are some pages to help your cause: http://cwiki.apache.org/WICKET/websites-based-on-wicket.html http://cwiki.apache.org/WICKET/products-based-on-wicket.html as well as blogs talking about Wicket, and lots more useful PR info: http://cwiki.apache.org/WICKET/index.html All the best! cheers, Steve On 08/01/2010, at 11:43 AM, Lester Chua wrote: Hi, I am facing a hurdle that need crossing in my final attempt to push Wicket for use in an organization. I have: 1) Prototyped a small size module 2) Did 2-3 presentations on the key features and advantages of wicket No one is disputing my claims about productivity and good OO code that was the result. BUT, the technology evaluation committee is NOT recommending Wicket because of. of all things. - Wicket's Low Adoption Rate Can I find any numbers to blow this away? My alternative is to accept the finding and work with Struts 2. Which will mean the stack will need to expand to DWR (for security). I REALLY don't want to go there, and am even considering not taking part in this project due to the high risk involved, only 9 months to introduce huge changes to a system that has lots of legacy problems (took about 3 years to build). I think a lot of those years were spent wrestling with the monster that is EJB 1.1. The only way I thought the project can even be on time is to scrap the entire presentation layer (aka Struts) and redo it in Wicket with 1 dedicated developer while the rest of the team work on killing the beast that is EJB 1.1 by refactoring the biz code. Sigh, my choices are stark. It's either to keep the job and plough ahead and probably fail spectacularly 9 months later or go hungry and explain to my wife why we need to spend less on the kid.. It's easy to blame the tech committee but they did help me find wicket by rejecting my initial proposal to build the new system on a (JQuery+JSON+REST) framework, which can be very productive as well, if not as clean as Wicket. Sorry for rambling so much. Is there any way I can demolish the silly low adoption rate argument (omg I still don't believe it can be so lame)? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RadioGroup with radio objects with same values
Hi, If its the first item in the list, set it to be selected one. A simple boolean could work here. cheers, Steve On 07/01/2010, at 2:04 AM, Kogel, Jonck-van-der wrote: Hi, I have a radiogroup that is built up dynamically, so I don't know ahead of time what the choices are going to be. Now I noticed that if I have 3 radio buttons in a RadioGroup and let's say they all have the same value (are all empty for example), the selected radio button will be the last one in the group. Let me give an example: RadioGroup * value1 = foo * value2 = foo * value3 = foo So all 3 radio choices have the value foo. The persisted value is also foo, so all are valid so to speak and therefore the one that gets selected is the 3d one. However, I would like it to be the first. Could someone point me in the right direction how I should go about overriding this behavior so it takes the first value it encounters instead of the last? Thanks, Jonck - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Detecting an external change to the ModelObject of a Form
Good stuff, can you put this up on in Confluence with some code samples? http://cwiki.apache.org/WICKET/reference-library.html cheers, Steve On 05/01/2010, at 10:31 PM, Stijn Maller wrote: Oooops, in case some of you are baffled that this code would work, let me put your mind at ease, it doesn't. :o) I overlooked the fact that a plain Model does not have the ability to chain another Model. (ie a constructor accepting another Model) So the code sample I gave wouldn't work, in my real code I actually used a CompoundPropertyModel, which does have this ability, so it worked for me. If you don't want to use CompoundPropertyModel you can still use the code below, but you'll have to use an implementation of IChainingModel instead of a plain Model. Kind regards, Stijn 2010/1/5 Stijn Maller stijn.mal...@gmail.com Hi Janning, That's definately better then exposing the form, but it still makes me have to insert an extra methodcall everywhere I update the modelobject. Here's what I implemented a couple of seconds ago and it seems to be doing what I wanted just fine, and no listener needed either. Instead of: Form detailForm = new Form(detailForm, model); I do: Form detailForm = new Form(detailForm); IModel wrappingModel = new Model(model) { private Object previousModelObject = null; @Override public Object getObject() { if (previousModelObject != super.getObject()) { detailForm.modelChanged(); previousModelObject = super.getObject(); } return super.getObject(); } }; } detailForm.setModel(wrappingModel); 2010/1/5 Janning Vygen vy...@kicktipp.de your master knows about your detail panel. so why don't you call detail.modelChanged(); and in your DetailPanel: onModelChanged() { form.modelChanged(); // or whatever is needed... form.clearInput(); super.onModelChanged() } Your form is still managed by your detail panel only. kind regards Janning On Tuesday 05 January 2010 11:03:59 Stijn Maller wrote: Thanks Martin, You're right, a Model that calls ModelObjectChangedListener is basically what I am looking for, but I don't think it exists. I'll write one myself, but I just wanted to check first to make sure I wasn't reinventing the wheel or missing something obvious. Kind regards, Stijn 2010/1/4 Martin Makundi martin.maku...@koodaripalvelut.com Hi! clearinput is right. don't know if there is a IModel that has change listener, but sure you can make your own that detects when the master changes. You need to repaint the components anyways (target.addComponents), so why not clear input at the same time? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: Hello World Portlet
Hi Mansour, Thats just the Tomcat log, you should have a portal log that has the actual exception or error that occurred? cheers, Steve On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote: Sorry, Forgot to include the error message: Found web.xml Found WEB-INF/portlet.xml Attempting to add portlet_2_0.tld to war... Adding portlet_2_0.tld to war... Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ... War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/reports-0.5.4] Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive reports-0.5.4.war Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/reports-0.5.4] startup failed due to previous errors On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel mansour.alak...@gmail.com wrote: Thank you Tor: Here's what I have. this is copied from the web.xml from the wicket maven project : web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameReports/display-name filter filter-namewicket.report/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.example.automotive.Application/param-value /init-param init-param param-namedetectPortletContext/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-namewicket.report/filter-name url-pattern/report/*/url-pattern /filter-mapping /web-app Here's my portlet.xml : portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd; version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd; portlet descriptionMy Wicket portlet examples/description portlet-nameWicketExamplesMenuApplication/portlet-name display-namewicket examples/display-name portlet-classcom.example.automotive.BirtPortlet/portlet-class init-param namewicketFilterPath/name value/report/value /init-param init-param nameviewPage/name value/report/view/value /init-param init-param nameeditPage/name value/report/edit/value /init-param supports mime-type*/*/mime-type portlet-modeVIEW/portlet-mode portlet-modeEDIT/portlet-mode /supports supported-localeen/supported-locale portlet-info titleWicket Birt Portlet Examples/title keywordsWicket/keywords /portlet-info /portlet /portlet-app And my WebApplication class: import javax.servlet.ServletContext; import org.apache.wicket.Page; import org.apache.wicket.protocol.http.WebApplication; public class Application extends WebApplication { @Override public Class? extends Page getHomePage() { return ViewReport.class; } @Override protected void init() { mountBookmarkablePage(/view, ViewReport.class); mountBookmarkablePage(/edit, EditReport.class); servletContext = getWicketFilter().getFilterConfig() .getServletContext(); } private static ServletContext servletContext; } Now, when I deploy to Jetspeed I get this error in catalina.out, and I was not able to find any relevant exception in the logs. I will change the log level and dig further. but I don't know, if there's something wrong with the web.xml or portlet.xml ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:
Re: Hello World Portlet
Absolutely that would be great. BTW I assume this is Jetspeed 2 since its JSR286? On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote: I checked jetspeed.log it but no luck. I was going to change the log level to see what's going on. However, I decided to run my wicket pages as a web application, and found that I was missing the binding for slf4j. I added this to the pom and it worked: dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.5.8/version /dependency I am not sure if that's what fixed the issue, or something else when I was trying to run it as a web app. It's working anyway. Would it be a good idea to provide a maven archetype for wicket portlets ? On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi Mansour, Thats just the Tomcat log, you should have a portal log that has the actual exception or error that occurred? cheers, Steve On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote: Sorry, Forgot to include the error message: Found web.xml Found WEB-INF/portlet.xml Attempting to add portlet_2_0.tld to war... Adding portlet_2_0.tld to war... Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ... War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/reports-0.5.4] Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive reports-0.5.4.war Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/reports-0.5.4] startup failed due to previous errors On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel mansour.alak...@gmail.com wrote: Thank you Tor: Here's what I have. this is copied from the web.xml from the wicket maven project : web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameReports/display-name filter filter-namewicket.report/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.example.automotive.Application/param-value /init-param init-param param-namedetectPortletContext/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-namewicket.report/filter-name url-pattern/report/*/url-pattern /filter-mapping /web-app Here's my portlet.xml : portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd; version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd; portlet descriptionMy Wicket portlet examples/description portlet-nameWicketExamplesMenuApplication/portlet-name display-namewicket examples/display-name portlet-classcom.example.automotive.BirtPortlet/portlet-class init-param namewicketFilterPath/name value/report/value /init-param init-param nameviewPage/name value/report/view/value /init-param init-param nameeditPage/name value/report/edit/value /init-param supports mime-type*/*/mime-type portlet-modeVIEW/portlet-mode portlet-modeEDIT/portlet-mode /supports supported-localeen/supported-locale portlet-info titleWicket Birt Portlet Examples/title keywordsWicket/keywords /portlet-info /portlet /portlet-app And my WebApplication class: import javax.servlet.ServletContext; import org.apache.wicket.Page; import org.apache.wicket.protocol.http.WebApplication; public class Application extends WebApplication { @Override public Class? extends Page getHomePage() { return ViewReport.class; } @Override protected void init() { mountBookmarkablePage(/view
Re: Hello World Portlet
You said in your first post it was JSR286 and Jetspeed 2 implements that spec, whereas Jetspeed 1 is JSR-168. I am glad you have Wicket based portlets working in a JSR-286 container, shame the same can't be said for a JSR-168 container, ie Pluto :( cheers, Steve On 04/01/2010, at 5:17 PM, Mansour Al Akeel wrote: Yes, this is JS2.2, but how where you able to tell it it's JSR286 ? In fact this was going to be my next step, to do interportlet communication. If you work with JS, I have to tell you that wicket with JS is amazingly col. You have all the pages you need where they sould be. I am still new to wicket, but enjoying it already :) On Mon Jan 04,2010 04:52 pm, Steve Swinsburg wrote: Absolutely that would be great. BTW I assume this is Jetspeed 2 since its JSR286? On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote: I checked jetspeed.log it but no luck. I was going to change the log level to see what's going on. However, I decided to run my wicket pages as a web application, and found that I was missing the binding for slf4j. I added this to the pom and it worked: dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.5.8/version /dependency I am not sure if that's what fixed the issue, or something else when I was trying to run it as a web app. It's working anyway. Would it be a good idea to provide a maven archetype for wicket portlets ? On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi Mansour, Thats just the Tomcat log, you should have a portal log that has the actual exception or error that occurred? cheers, Steve On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote: Sorry, Forgot to include the error message: Found web.xml Found WEB-INF/portlet.xml Attempting to add portlet_2_0.tld to war... Adding portlet_2_0.tld to war... Creating war /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war ... War /opt/Programs/apache-tomcat-6.0.14/webapps/reports-0.5.4.war created Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/reports-0.5.4] Jan 4, 2010 12:03:47 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive reports-0.5.4.war Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jan 4, 2010 12:03:47 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/reports-0.5.4] startup failed due to previous errors On Mon, Jan 4, 2010 at 12:27 AM, Mansour Al Akeel mansour.alak...@gmail.com wrote: Thank you Tor: Here's what I have. this is copied from the web.xml from the wicket maven project : web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameReports/display-name filter filter-namewicket.report/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.example.automotive.Application/param-value /init-param init-param param-namedetectPortletContext/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-namewicket.report/filter-name url-pattern/report/*/url-pattern /filter-mapping /web-app Here's my portlet.xml : portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd; version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd; portlet descriptionMy Wicket portlet examples/description portlet-nameWicketExamplesMenuApplication/portlet-name display-namewicket examples/display-name portlet-classcom.example.automotive.BirtPortlet/portlet-class init-param namewicketFilterPath/name value/report/value /init-param init-param nameviewPage/name value/report/view/value /init-param init-param nameeditPage/name value/report/edit/value /init-param supports mime-type*/*/mime-type portlet-modeVIEW/portlet-mode portlet-modeEDIT/portlet-mode
Re: SV: wicketstuff portlets - where did it go?
Right I thought as much once I found the source. Unfortunately it doesn't provide the actual JSR168 implementations from Apache Portals Bridges Common which I was hoping for. Cheers ~ steve (sent from my ipod) On 31/12/2009, at 7:48 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: Ah looks like I may have found it: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket- stuff/attic/wicket-portlets/ probably put in the attic because Wicket has supported portlets natively since 1.4-m3 or thereabouts. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff portlets - where did it go?
Hi all, The link from this page: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-portlets references this spot in SVN: http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-13/wicket-portlets which doesn't exist. Anyone know where it went or have a copy of it? It's not here: http://wicketstuff.org/maven/repository/ thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: wicketstuff portlets - where did it go?
Ah looks like I may have found it: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/attic/wicket-portlets/ On 31/12/2009, at 5:18 PM, Steve Swinsburg wrote: Hi all, The link from this page: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-portlets references this spot in SVN: http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-13/wicket-portlets which doesn't exist. Anyone know where it went or have a copy of it? It's not here: http://wicketstuff.org/maven/repository/ thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: Location of css and js files
None of these solutions are going to do what the OP really needs since they all assume an app server is serving the pages. Presumably he wants the designer to be able to run up the static HTML in the browser, without running in a web application. You have a few options: 1. link the files as siggested before, ie the HTML knows where the CSS lives and references it normally. If you don't want to have to adjust it later, put it in the same directory as the classes and HTML. You won't need to start the webapp to modify it. 2. Do it in a normal webapp structure as you suggested with the javascript and css directories, and use the Wicket provided HeaderContributor to load it. You'll need to deploy the webapp, but your designer can edit the HTML live if he edits the deployed structure. This approach isn't the greatest since if the webapp is redeployed it will be overwritten. I dont think there is a neat way to do it offline but still in the Wicket way, without having it all with the classes. cheers, Steve On 21/12/2009, at 8:19 PM, Alex Objelean wrote: Hi! You can use wro4j to load css js resources from anywhere (even from classpath, servlet context relative location or disc location). Another advantage is that the resources are merged and minified, thus greatly improving the response time: http://code.google.com/p/wro4j/wiki/GettingStarted Alex Objelean dale77 wrote: Hi Alex, I'm after best practice for css/img and js locations. I know there are many ways to do something, I'm after a recommendation as to what is the best way to do this in wicket. The way that allows the html markup to be opened by the web designer showing the same page view that appears at runtime. Thanks Dale -Original Message- From: Alex Rass [mailto:a...@itbsllc.com] Sent: Monday, 21 December 2009 5:03 p.m. To: users@wicket.apache.org Subject: RE: Location of css and js files Global resources you can reference globally. Use can use the non-wicket links. Container hosts folders you can use. Idea behind this is to use components which are fully contained. Hence (all in one place). If this doesn't suit you - there are bunch of tutorials on how to load resources from elsewhere. - Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/-announce--wicket-1.4.5-released-tp26868988p26871530.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: ObjectAutoCompleteField and specifying the fields from the object to use
On further investigation, the values aren't being separated after all. What is added to the textfield is what is submitted in the form. Is it possible to submit a different value than just the display text? thanks, Steve On 21/12/2009, at 1:54 PM, Steve Swinsburg wrote: Nevermind. I ended up going with this approach where I could separate the values: http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html I will add my code snippet to the page. cheers, Steve On 21/12/2009, at 11:57 AM, Steve Swinsburg wrote: Hi, I am using ObjectAutoCompleteField from WicketStuff and it looks like what I need for my scenario: I have an object list with a bunch of fields and when the user searches, it needs to match on a certain field and display the list of matches. The examples do this with a Car object with an Integer field for the ID and a String for the car name. However, there seems to be no way to tell it *what* fields to use in the supplied object. You can only give the component the Type of fields to look up, and it gets the field to use by reflection. This assumes only one field in that object will be of that Type. ie How could I make it would with a list of these objects: class Person { String userId; String displayName; ... } Giving the ObjectAutoCompleteField the types Person,String won't work, it won't know what field to use. ListPerson persons = getPersons(); ObjectAutoCompleteBuilderPerson,String builder = new ObjectAutoCompleteBuilderPerson,String( new AutoCompletionChoicesProviderUser() { public IteratorPerson getChoices(String input) { ListPerson subSet = getPersonSubSet(persons, input); return subSet.iterator(); } } ); ObjectAutoCompleteField toField = builder.build(toField, new ModelString()); form.add(toField); Any ideas? thanks, Steve smime.p7s Description: S/MIME cryptographic signature
opening modelwindow freezes IE8
Hi everyone, I've had a report from a user of a Wicket app, that when the AjaxLink to open a ModalWindow is clicked, the ModalWindow opens and the browser freezes. This is on IE8 and in Windows 7 or XP. However, running it in Compatibility Mode it seemed to work. Works ok in other browsers. Has anyone experienced this? The code is nothing out of the ordinary I don't think: Unless its the getParent() calls to get the ModelObject for this list item? Could I do that another way? final AjaxLink connectionLink = new AjaxLink(connectionLink) { public void onClick(AjaxRequestTarget target) { //get this item, reinit some values and set content for modal SearchResult this_searchResult = (SearchResult)getParent().getParent().getDefaultModelObject(); final String userUuid = this_searchResult.getUserUuid(); connectionWindow.setContent(new AddFriend(connectionWindow.getContentId(), userUuid, some more params…)); // connection modal window handler connectionWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target){ //update some labels } }); connectionWindow.show(target); } }; thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Re: ObjectAutoCompleteField and specifying the fields from the object to use
I decided against using the ObjectAutoCompleteTextField because it was too restrictive in the Object you supply. I went with the component on the wiki and ended up adding another getter/setter to my page to separate the value from the display when it gets the object selected. However, I revisited the Wicketstuff component with your suggestion, and adding: builder.idProperty(userId); works to set the value for the field that is submitted. However, there is no way to tell it the value to use for the display! It's just serializing the Object I give it as the display (ie my.package.model.per...@77aa0759]) What I need is to give it a list of objects and to be able to specify what properties to use for the display value and the submit value. It needs something like: builder.displayProperty(displayName); thanks, Steve On 22/12/2009, at 10:00 AM, Albert Romanius wrote: I am not sure, but you could try to set idProperty in ObjectAutoCompleteBuilder On Mon, Dec 21, 2009 at 10:54 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: On further investigation, the values aren't being separated after all. What is added to the textfield is what is submitted in the form. Is it possible to submit a different value than just the display text? thanks, Steve On 21/12/2009, at 1:54 PM, Steve Swinsburg wrote: Nevermind. I ended up going with this approach where I could separate the values: http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html I will add my code snippet to the page. cheers, Steve On 21/12/2009, at 11:57 AM, Steve Swinsburg wrote: Hi, I am using ObjectAutoCompleteField from WicketStuff and it looks like what I need for my scenario: I have an object list with a bunch of fields and when the user searches, it needs to match on a certain field and display the list of matches. The examples do this with a Car object with an Integer field for the ID and a String for the car name. However, there seems to be no way to tell it *what* fields to use in the supplied object. You can only give the component the Type of fields to look up, and it gets the field to use by reflection. This assumes only one field in that object will be of that Type. ie How could I make it would with a list of these objects: class Person { String userId; String displayName; ... } Giving the ObjectAutoCompleteField the types Person,String won't work, it won't know what field to use. ListPerson persons = getPersons(); ObjectAutoCompleteBuilderPerson,String builder = new ObjectAutoCompleteBuilderPerson,String( new AutoCompletionChoicesProviderUser() { public IteratorPerson getChoices(String input) { ListPerson subSet = getPersonSubSet(persons, input); return subSet.iterator(); } } ); ObjectAutoCompleteField toField = builder.build(toField, new ModelString()); form.add(toField); Any ideas? thanks, Steve -- Albert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: ObjectAutoCompleteField and specifying the fields from the object to use
Actually I have just found in the javadocs the AbstractObjectAutoCompleteRenderer which does the separation. I'll give that a go. cheers, Steve On 22/12/2009, at 10:54 AM, Steve Swinsburg wrote: I decided against using the ObjectAutoCompleteTextField because it was too restrictive in the Object you supply. I went with the component on the wiki and ended up adding another getter/setter to my page to separate the value from the display when it gets the object selected. However, I revisited the Wicketstuff component with your suggestion, and adding: builder.idProperty(userId); works to set the value for the field that is submitted. However, there is no way to tell it the value to use for the display! It's just serializing the Object I give it as the display (ie my.package.model.per...@77aa0759]) What I need is to give it a list of objects and to be able to specify what properties to use for the display value and the submit value. It needs something like: builder.displayProperty(displayName); thanks, Steve On 22/12/2009, at 10:00 AM, Albert Romanius wrote: I am not sure, but you could try to set idProperty in ObjectAutoCompleteBuilder On Mon, Dec 21, 2009 at 10:54 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: On further investigation, the values aren't being separated after all. What is added to the textfield is what is submitted in the form. Is it possible to submit a different value than just the display text? thanks, Steve On 21/12/2009, at 1:54 PM, Steve Swinsburg wrote: Nevermind. I ended up going with this approach where I could separate the values: http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html I will add my code snippet to the page. cheers, Steve On 21/12/2009, at 11:57 AM, Steve Swinsburg wrote: Hi, I am using ObjectAutoCompleteField from WicketStuff and it looks like what I need for my scenario: I have an object list with a bunch of fields and when the user searches, it needs to match on a certain field and display the list of matches. The examples do this with a Car object with an Integer field for the ID and a String for the car name. However, there seems to be no way to tell it *what* fields to use in the supplied object. You can only give the component the Type of fields to look up, and it gets the field to use by reflection. This assumes only one field in that object will be of that Type. ie How could I make it would with a list of these objects: class Person { String userId; String displayName; ... } Giving the ObjectAutoCompleteField the types Person,String won't work, it won't know what field to use. ListPerson persons = getPersons(); ObjectAutoCompleteBuilderPerson,String builder = new ObjectAutoCompleteBuilderPerson,String( new AutoCompletionChoicesProviderUser() { public IteratorPerson getChoices(String input) { ListPerson subSet = getPersonSubSet(persons, input); return subSet.iterator(); } } ); ObjectAutoCompleteField toField = builder.build(toField, new ModelString()); form.add(toField); Any ideas? thanks, Steve -- Albert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: ObjectAutoCompleteField and specifying the fields from the object to use
For reference, adding this: ObjectAutoCompleteRendererPerson renderer = new ObjectAutoCompleteRendererPerson(){ protected String getIdValue(Person p) { return p.getUuid(); } protected String getTextValue(Person p) { return p.getDisplayName(); } }; and then: builder.autoCompleteRenderer(renderer); Does what I want. Thanks for the tip! cheers, Steve On 22/12/2009, at 10:57 AM, Steve Swinsburg wrote: Actually I have just found in the javadocs the AbstractObjectAutoCompleteRenderer which does the separation. I'll give that a go. cheers, Steve On 22/12/2009, at 10:54 AM, Steve Swinsburg wrote: I decided against using the ObjectAutoCompleteTextField because it was too restrictive in the Object you supply. I went with the component on the wiki and ended up adding another getter/setter to my page to separate the value from the display when it gets the object selected. However, I revisited the Wicketstuff component with your suggestion, and adding: builder.idProperty(userId); works to set the value for the field that is submitted. However, there is no way to tell it the value to use for the display! It's just serializing the Object I give it as the display (ie my.package.model.per...@77aa0759]) What I need is to give it a list of objects and to be able to specify what properties to use for the display value and the submit value. It needs something like: builder.displayProperty(displayName); thanks, Steve On 22/12/2009, at 10:00 AM, Albert Romanius wrote: I am not sure, but you could try to set idProperty in ObjectAutoCompleteBuilder On Mon, Dec 21, 2009 at 10:54 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: On further investigation, the values aren't being separated after all. What is added to the textfield is what is submitted in the form. Is it possible to submit a different value than just the display text? thanks, Steve On 21/12/2009, at 1:54 PM, Steve Swinsburg wrote: Nevermind. I ended up going with this approach where I could separate the values: http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html I will add my code snippet to the page. cheers, Steve On 21/12/2009, at 11:57 AM, Steve Swinsburg wrote: Hi, I am using ObjectAutoCompleteField from WicketStuff and it looks like what I need for my scenario: I have an object list with a bunch of fields and when the user searches, it needs to match on a certain field and display the list of matches. The examples do this with a Car object with an Integer field for the ID and a String for the car name. However, there seems to be no way to tell it *what* fields to use in the supplied object. You can only give the component the Type of fields to look up, and it gets the field to use by reflection. This assumes only one field in that object will be of that Type. ie How could I make it would with a list of these objects: class Person { String userId; String displayName; ... } Giving the ObjectAutoCompleteField the types Person,String won't work, it won't know what field to use. ListPerson persons = getPersons(); ObjectAutoCompleteBuilderPerson,String builder = new ObjectAutoCompleteBuilderPerson,String( new AutoCompletionChoicesProviderUser() { public IteratorPerson getChoices(String input) { ListPerson subSet = getPersonSubSet(persons, input); return subSet.iterator(); } } ); ObjectAutoCompleteField toField = builder.build(toField, new ModelString()); form.add(toField); Any ideas? thanks, Steve -- Albert - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
ObjectAutoCompleteField and specifying the fields from the object to use
Hi, I am using ObjectAutoCompleteField from WicketStuff and it looks like what I need for my scenario: I have an object list with a bunch of fields and when the user searches, it needs to match on a certain field and display the list of matches. The examples do this with a Car object with an Integer field for the ID and a String for the car name. However, there seems to be no way to tell it *what* fields to use in the supplied object. You can only give the component the Type of fields to look up, and it gets the field to use by reflection. This assumes only one field in that object will be of that Type. ie How could I make it would with a list of these objects: class Person { String userId; String displayName; ... } Giving the ObjectAutoCompleteField the types Person,String won't work, it won't know what field to use. ListPerson persons = getPersons(); ObjectAutoCompleteBuilderPerson,String builder = new ObjectAutoCompleteBuilderPerson,String( new AutoCompletionChoicesProviderUser() { public IteratorPerson getChoices(String input) { ListPerson subSet = getPersonSubSet(persons, input); return subSet.iterator(); } } ); ObjectAutoCompleteField toField = builder.build(toField, new ModelString()); form.add(toField); Any ideas? thanks, Steve