Re: MenuPanel gets menu item from the .property file
Well it's just java, listview just requires a list or model that contains lists.. So give it a list:) If you are building a menu you can take a look at the accordion menu on wicket stuff... Rick Shen wrote: I am write a MenuPanel using ListView. How can I load the each menu item from .property file (just like ASP.net menu control sitemap)? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: YuiMenuBar in WicketStuff
There should be a method that you can overwrite(although not so pretty but it should work), there were that for the YUI rich editor... Karen Schaper wrote: Hi, I've switched to using the YuiMenuBar in wicket stuff from directly using the Yui javascript. The YuiMenuBar automatically adds this javascript... var oMenu = new YAHOO.widget.MenuBar(webMenuBar, {visible:true,clicktohide:false,autosubmenudisplay: true, hidedelay: 750, lazyload: true}); I need it to look like this? var oMenuBar = new YAHOO.widget.MenuBar( webMenubar, { autosubmenudisplay:false, hidedelay:750, lazyload:true } ); I need to set the autosubmenudisplay to false. This way the user can actually click on the menu... at least I'm pretty sure that is what will happen. Thanks Karen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to register IConverters
Hi Timo, thanks for replying. Normally you can just register converters in init() of your Application subclass. How is this done? What method do I call? The only way I see to add your own converters is the way I described previously or explicitly cast the IConverterLocator an org.apache.wicket.util.convert.ConverterLocator since there is no set method on the IConverterLocator interface that allows to add converters. Or am I overlooking something? Thanks in advance, Lars On Wed, Jul 23, 2008 at 6:16 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 21 Jul 2008, lars vonk wrote: Is it maybe an idea to change this to a registerConverter(IConverter) method that I can call? That saves me a custom IConverterLocator to implement. Normally you can just register converters in init() of your Application subclass. You only need your own IConverterLocator implementation if you want more specialised way of locating converters than the default (for example, to support Hibernate proxies). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to identify if any of a page's components failed validation after a submit
er... form.hasError()? form.onError()? What do you mean by page? - are there lots of forms on the page all with errors? -- View this message in context: http://www.nabble.com/How-to-identify-if-any-of-a-page%27s-components-failed-validation-after-a-submit-tp18599562p18605378.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4M3 migration
I've just converted over a project to 1.4-m3 from m1. I skipped m2 because of the drastic changes between 1, 2 and 3. I must say, I think generics at a component level - when I initially started using it felt like unneeded overhead - but it became more and more useful. now that I've changed to 1.4-m3 - Many parts of the project start to feel like unneeded cast soup - even if it is just reimplementing getModel or getModelObject over and over. It's a change that I found a bit hard to visualise the impact until I made the switch. I must say m1 generics felt more powerful and appropriate for all the circumstances i've come across... with the exception of having to generify things like Label. Anyway, Thats my feedback after the switch. Timo Rantalaiho wrote: On Fri, 18 Jul 2008, Stefan Lindner wrote: Thank you all for your work on wicket! Maybe we can see Wicket 1.4.0 final in the near future? Thanks for the feedback and the thanks! There are still 30+ open issues for 1.4 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310561fixfor=12313295resolution=-1sorter/field=issuekeysorter/order=DESC and besides those, probably many places where raw versions of generic types are used and which should be fixed. So I wouldn't hold my breath :) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wicket-1.4M3-migration-tp18534534p18605674.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MenuPanel gets menu item from the .property file
I wish to store the menu item information in the properties file, so when I add or remove one it is easy. Nino.Martinez wrote: Well it's just java, listview just requires a list or model that contains lists.. So give it a list:) If you are building a menu you can take a look at the accordion menu on wicket stuff... Rick Shen wrote: I am write a MenuPanel using ListView. How can I load the each menu item from .property file (just like ASP.net menu control sitemap)? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/MenuPanel-gets-menu-item-from-the-.property-file-tp18604090p18605693.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4M3 migration
Thinking about this - generifying panel would probably fix it - or i can just make my own base panel with generics. Ned Collyer wrote: I've just converted over a project to 1.4-m3 from m1. I skipped m2 because of the drastic changes between 1, 2 and 3. I must say, I think generics at a component level - when I initially started using it felt like unneeded overhead - but it became more and more useful. now that I've changed to 1.4-m3 - Many parts of the project start to feel like unneeded cast soup - even if it is just reimplementing getModel or getModelObject over and over. It's a change that I found a bit hard to visualise the impact until I made the switch. I must say m1 generics felt more powerful and appropriate for all the circumstances i've come across... with the exception of having to generify things like Label. Anyway, Thats my feedback after the switch. -- View this message in context: http://www.nabble.com/Wicket-1.4M3-migration-tp18534534p18605749.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateTextField question
I solved it on my project. The problem was due to a conflict between inMethod's grid yui and wicket yui. Although I updated both of them to use the same yui version, this didn't fix my problem - the calendar would still not show. Then I moved the code that generated the grid after the one that created the calendar. This did it. I think the real problem is including yui twice. And I think this was discussed a lot in this mailing list. I don't know if a real solution was found though. Cristi Manole On Wed, Jul 16, 2008 at 5:11 AM, Cristi Manole [EMAIL PROTECTED] wrote: I'm running on (quite) the same config. Anyways, I think Serkan is right - if you have an ajax component on the page the date text field will stop working. He has another date text field, I have a single date text field but on a modal window implemented as a panel (if that even matters). I think *the problem is here *: -line 273 DatePicker if (AjaxRequestTarget.get() != null) { final String javascript = var e = Wicket.$(' + getEscapedComponentMarkupId() + Dp + '); if (e != null typeof(e.parentNode) != 'undefined' + typeof(e.parentNode.parentNode != 'undefined')) + e.parentNode.parentNode.removeChild(e.parentNode);; response.renderJavascript(javascript, null); } [javascript = var e = Wicket.$('i1d6Dp'); if (e != null typeof(e.parentNode) != 'undefined' typeof(e.parentNode.parentNode != 'undefined')) e.parentNode.parentNode.removeChild(e.parentNode);] This piece of code gets executed when I'm inside an ajax request (which is our case). I think what it tries to clean is not doing very well. When I have a (one) date text field on a regular page, that code will of course not get executed. So I guess it's erasing yui magic, not cleaning up the html. The only reason for the fact that the examples in wicket work (for modal + date thingy) is because instead of an input tag, the date*field *uses span or div... On Tue, Jul 15, 2008 at 3:53 PM, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: No, my configuration is Tomcat 5.5.23 Jetspeed 2.1.3 Wicket 1.3.4 and Firefox 2.0 on Linux.. Do you know which file was patched for the safari problem? This could be a pointer to find the cause of the problem.. Regards, Ryan Gravener wrote: Are you guys using safari? If so I think this problem is patched in 1.3.4. On 7/15/08, Serkan Camurcuoglu [EMAIL PROTECTED] wrote: I'm not sure about the reason, but in my portlet application, only one of the date pickers is initialized if I add two portlets on the same page containing date pickers, so only one of them works.. also it seems like the date picker doesn't work if there is any other wicket ajax component loaded on the page.. I think it's a problem with the wicketCalendarInits array object which is used for initializing these date pickers, but I haven't found the exact cause yet, I'd like to hear if you find a solution.. Cristi Manole wrote: Hello, Any ideas why the calendar does not show on my modal window? -I've seen the examples and I know it's working. -It is not a problem related to z-index *It seems the yui class does not get appended to the tag so clicking the calendar icon does nothing (i presume that's the reason). *Has anyone by any chance experienced this or something similar? Any suggestion is highly appreciated :). Tks a bunch, Cristi Manole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Components
Hi Sebastian, If you intend to use Wicket's default detachable models to get data from those services, they will be called sequentially. So those are out. I see 2 options: - In the panel constructor get the data in parallel threads through standard java 5 constructs (dump all your Callables in a ExecutorService and when that is done call get() on the returned Futures). When you have the data continue as normal. This approach is a bit easier then the next option, but only works with stateless pages (unless you known the data is not going to change soon anyway). - Write your own model (extend LoadableDetachableModel) that in the constructor will start a new thread to get the data (put a Callable in an ExecutorService and store the Future). Method load() should block until the thread is done (simply call get() on the Future). The base class will clear the data upon detach. Unfortunately, there is no onAttach() method that Wicket calls when the model data is needed again. To remedy this, you could call an onAttach() method yourself from onBeforeRender() in the component that uses the model. The onAttach method should do nothing when the data is already there, or a Future is already present (which means the data is already being retrieved). (I assume you have read a book on concurrency. If not you should, for example Java Threads.) Regards, Erik. Sebastian wrote: Hi, I have not yet looked much into Wicket but am quite interested in the project. We have a specific requirement where I could not yet find the right information/documentation for. We need to put multiple components onto a page receiving data through web services. A single web services call takes some time. In our scenario it would be bad to have the different components of a page to request their data sequentially, therefore we'd like to have components retrieve the required data in parallel by firing the web services call concurrenlty. What is the best approach to achieve this (preferable in a generic, reusable fashion). I do not want to use AJAX for this, the whole page needs to be rendered at once on the server side. Thanks for any hints and thoughts in advance, Seb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to register IConverters
We followed the wiki: http://cwiki.apache.org/WICKET/using-custom-converters.html So in our Application class we have @Override protected IConverterLocator newConverterLocator() { final ConverterLocator converterLocator=new ConverterLocator(); converterLocator.set(Long.class, new MyLongConverter()); converterLocator.set(BigDecimal.class, new MyBigDecimalConverter()); return converterLocator; } We only had to create MyLongConverter and MyBigDecimalConverter, and just used the existing ConverterLocator. We only created the converters so we could have longs and bigdecimals appear with digit groups eg 1,234,567.89 lars vonk wrote: Hi Timo, thanks for replying. Normally you can just register converters in init() of your Application subclass. How is this done? What method do I call? The only way I see to add your own converters is the way I described previously or explicitly cast the IConverterLocator an org.apache.wicket.util.convert.ConverterLocator since there is no set method on the IConverterLocator interface that allows to add converters. Or am I overlooking something? Thanks in advance, Lars On Wed, Jul 23, 2008 at 6:16 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 21 Jul 2008, lars vonk wrote: Is it maybe an idea to change this to a registerConverter(IConverter) method that I can call? That saves me a custom IConverterLocator to implement. Normally you can just register converters in init() of your Application subclass. You only need your own IConverterLocator implementation if you want more specialised way of locating converters than the default (for example, to support Hibernate proxies). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea
DropDownChoice, PropertyModel and stateful pages
Hi everybody, This may be an idiot question, but no matter how many articles and examples I read about this, I seem not to be able to grasp how to use DropDownChoice with PropertyModel. I would very very highly appreciate if someone could point out to me why the code below is not working as I expect it to do: What I expect to happen: when selecting value 3 from the DropDownChoice, the page reloads, having 3 selected. What happens: the page reloads, having 2 selected again (which is assigned by default). I would be happy for any hint on this... Thanks in advance Here comes the code for the page: -- package de.lovelybooks3.presentation; import java.util.Arrays; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.model.PropertyModel; public class TestPage extends WebPage { private String testvalue = 2; public String getTestvalue() { return testvalue; } public void setTestvalue(String testvalue) { this.testvalue = testvalue; } public TestPage() { Form f = new Form(testform); add(f); DropDownChoice d = new DropDownChoice(testselect, new PropertyModel(this,testvalue), Arrays.asList(new String[]{1,2,3})) { @Override protected void onSelectionChanged(Object arg0) { setResponsePage(getPageClass()); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }; f.add(d); } } --- html head /head body form wicket:id=testform select wicket:id=testselect/select /form /body /html -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18606819.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
try using setResponsePage(TestPage.this); the way you did is results in a redirect to a new instance of TestPage regards, Michael pixologe wrote: Hi everybody, This may be an idiot question, but no matter how many articles and examples I read about this, I seem not to be able to grasp how to use DropDownChoice with PropertyModel. I would very very highly appreciate if someone could point out to me why the code below is not working as I expect it to do: What I expect to happen: when selecting value 3 from the DropDownChoice, the page reloads, having 3 selected. What happens: the page reloads, having 2 selected again (which is assigned by default). I would be happy for any hint on this... Thanks in advance Here comes the code for the page: -- package de.lovelybooks3.presentation; import java.util.Arrays; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.model.PropertyModel; public class TestPage extends WebPage { private String testvalue = 2; public String getTestvalue() { return testvalue; } public void setTestvalue(String testvalue) { this.testvalue = testvalue; } public TestPage() { Form f = new Form(testform); add(f); DropDownChoice d = new DropDownChoice(testselect, new PropertyModel(this,testvalue), Arrays.asList(new String[]{1,2,3})) { @Override protected void onSelectionChanged(Object arg0) { setResponsePage(getPageClass()); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }; f.add(d); } } --- html head /head body form wicket:id=testform select wicket:id=testselect/select /form /body /html - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607288.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
setResponsePage(getPage().getClass()) is what you do wrong. This tells wicket to render a bookmarkable response to your page - creates the page again. remove that call and it should work. Martijn On Wed, Jul 23, 2008 at 11:16 AM, pixologe [EMAIL PROTECTED] wrote: Hi everybody, This may be an idiot question, but no matter how many articles and examples I read about this, I seem not to be able to grasp how to use DropDownChoice with PropertyModel. I would very very highly appreciate if someone could point out to me why the code below is not working as I expect it to do: What I expect to happen: when selecting value 3 from the DropDownChoice, the page reloads, having 3 selected. What happens: the page reloads, having 2 selected again (which is assigned by default). I would be happy for any hint on this... Thanks in advance Here comes the code for the page: -- package de.lovelybooks3.presentation; import java.util.Arrays; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.model.PropertyModel; public class TestPage extends WebPage { private String testvalue = 2; public String getTestvalue() { return testvalue; } public void setTestvalue(String testvalue) { this.testvalue = testvalue; } public TestPage() { Form f = new Form(testform); add(f); DropDownChoice d = new DropDownChoice(testselect, new PropertyModel(this,testvalue), Arrays.asList(new String[]{1,2,3})) { @Override protected void onSelectionChanged(Object arg0) { setResponsePage(getPageClass()); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }; f.add(d); } } --- html head /head body form wicket:id=testform select wicket:id=testselect/select /form /body /html -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18606819.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
this call is not necessary. Wicket defaults to rendering the current page when no responsepage was set. Martijn On Wed, Jul 23, 2008 at 11:47 AM, Michael Sparer [EMAIL PROTECTED] wrote: try using setResponsePage(TestPage.this); the way you did is results in a redirect to a new instance of TestPage regards, Michael pixologe wrote: Hi everybody, This may be an idiot question, but no matter how many articles and examples I read about this, I seem not to be able to grasp how to use DropDownChoice with PropertyModel. I would very very highly appreciate if someone could point out to me why the code below is not working as I expect it to do: What I expect to happen: when selecting value 3 from the DropDownChoice, the page reloads, having 3 selected. What happens: the page reloads, having 2 selected again (which is assigned by default). I would be happy for any hint on this... Thanks in advance Here comes the code for the page: -- package de.lovelybooks3.presentation; import java.util.Arrays; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.model.PropertyModel; public class TestPage extends WebPage { private String testvalue = 2; public String getTestvalue() { return testvalue; } public void setTestvalue(String testvalue) { this.testvalue = testvalue; } public TestPage() { Form f = new Form(testform); add(f); DropDownChoice d = new DropDownChoice(testselect, new PropertyModel(this,testvalue), Arrays.asList(new String[]{1,2,3})) { @Override protected void onSelectionChanged(Object arg0) { setResponsePage(getPageClass()); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }; f.add(d); } } --- html head /head body form wicket:id=testform select wicket:id=testselect/select /form /body /html - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607288.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
yes, right, of course, i forgot :-) Martijn Dashorst wrote: this call is not necessary. Wicket defaults to rendering the current page when no responsepage was set. Martijn On Wed, Jul 23, 2008 at 11:47 AM, Michael Sparer [EMAIL PROTECTED] wrote: try using setResponsePage(TestPage.this); the way you did is results in a redirect to a new instance of TestPage regards, Michael pixologe wrote: Hi everybody, This may be an idiot question, but no matter how many articles and examples I read about this, I seem not to be able to grasp how to use DropDownChoice with PropertyModel. I would very very highly appreciate if someone could point out to me why the code below is not working as I expect it to do: What I expect to happen: when selecting value 3 from the DropDownChoice, the page reloads, having 3 selected. What happens: the page reloads, having 2 selected again (which is assigned by default). I would be happy for any hint on this... Thanks in advance Here comes the code for the page: -- package de.lovelybooks3.presentation; import java.util.Arrays; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.model.PropertyModel; public class TestPage extends WebPage { private String testvalue = 2; public String getTestvalue() { return testvalue; } public void setTestvalue(String testvalue) { this.testvalue = testvalue; } public TestPage() { Form f = new Form(testform); add(f); DropDownChoice d = new DropDownChoice(testselect, new PropertyModel(this,testvalue), Arrays.asList(new String[]{1,2,3})) { @Override protected void onSelectionChanged(Object arg0) { setResponsePage(getPageClass()); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }; f.add(d); } } --- html head /head body form wicket:id=testform select wicket:id=testselect/select /form /body /html - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607288.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607411.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Components
O, I forgot, be aware that Wicket does not really tolerate pages that take too long to render. Make sure that the page rendering does not take more then 60 seconds in total. (Luckily the Future#get method accepts a timeout argument.) Erik van Oosten wrote: ...dump all your Callables in a ExecutorService and when that is done call get() on the returned Futures... Regards, Erik. -- View this message in context: http://www.nabble.com/Asynchronous-Components-tp18598968p18607531.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Components
I think users are less forgiving than Wicket :) Martijn On Wed, Jul 23, 2008 at 12:05 PM, Erik van Oosten [EMAIL PROTECTED] wrote: O, I forgot, be aware that Wicket does not really tolerate pages that take too long to render. Make sure that the page rendering does not take more then 60 seconds in total. (Luckily the Future#get method accepts a timeout argument.) Erik van Oosten wrote: ...dump all your Callables in a ExecutorService and when that is done call get() on the returned Futures... Regards, Erik. -- View this message in context: http://www.nabble.com/Asynchronous-Components-tp18598968p18607531.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UrlCodingStrategy and overriding the decodeParamaters()
Maybe I didn't get the point, but why not subclassing and overriding the method? try { super.decodeParameters(...); } catch (... or am I misunderstanding you completely? w_user wrote: hallo, How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception java.lang.IllegalStateException: URL fragment has unmatched key/value pair please help! - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/UrlCodingStrategy-and-overriding-the-decodeParamaters%28%29-tp18585813p18607579.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
Thanks a lot, Michael, that was very helpful :) I have spent quite some time puzzling... unfortunately, this raises another question right away: there are methods: setResponsePage(java.lang.Class cls) setResponsePage(java.lang.Class cls, PageParameters parameters) setResponsePage(Page page) but not: setResponsePage(Page page, PageParameters parameters) is there really no way of passing parameters to an existing instance of a page? does this mean I have choose either the param way or the stateful way? Thanks again... Michael Sparer wrote: try using setResponsePage(TestPage.this); -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607771.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
On Wed, Jul 23, 2008 at 12:25 PM, pixologe [EMAIL PROTECTED] wrote: there are methods: setResponsePage(java.lang.Class cls) setResponsePage(java.lang.Class cls, PageParameters parameters) setResponsePage(Page page) but not: setResponsePage(Page page, PageParameters parameters) correct. is there really no way of passing parameters to an existing instance of a page? does this mean I have choose either the param way or the stateful way? Unless you create that functionality yourself. There is only the bookmarkable or the stateful way. How would you imagine Wicket to handle your state if you don't want to use Wicket's state management? So either setResponsePage(Page pageInstance) giving you full control of how to create that page, or setResponsePage(Class pageClass, PageParameters pars) where you have to work to pass on the state. Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
Thanks Martijn, of course, you are right. I came to put it in there after consulting the example at http://www.wicket-library.com/wicket-examples/forminput/ where this call is inserted to ensure the responding page is still bookmarkable, also I planned to hand over the PageParameters object in the original page. But as I understand things now, it is not possible to hand over PageParameters to a stateful page, right? Thanks a lot again for your help with this. Martijn Dashorst wrote: this call is not necessary. Wicket defaults to rendering the current page when no responsepage was set. -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607950.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
Thanks, please ignore my latest message (I wrote it before seeing yours) Of course, I want to use Wicket's state management, that's why I asked this question in the first place :) Just for explanation: The page I am working on currently is a page that displays a list of products, which displays products of different categories. I am using PageParameters for the categories in order to have those bookmarkable and with mounted URLs. However, I planned to statefully store filter and sorting options for the list, as I do not regard it neccessary for those lists to be bookmarkable in their sorted or filtered versions. I do not think this is a complete senseless scenario, but it would ask for params state combined. However, I can cope with this... I just will stick to the params then... Thanks again for your input on this :) Martijn Dashorst wrote: On Wed, Jul 23, 2008 at 12:25 PM, pixologe [EMAIL PROTECTED] wrote: there are methods: setResponsePage(java.lang.Class cls) setResponsePage(java.lang.Class cls, PageParameters parameters) setResponsePage(Page page) but not: setResponsePage(Page page, PageParameters parameters) correct. is there really no way of passing parameters to an existing instance of a page? does this mean I have choose either the param way or the stateful way? Unless you create that functionality yourself. There is only the bookmarkable or the stateful way. How would you imagine Wicket to handle your state if you don't want to use Wicket's state management? So either setResponsePage(Page pageInstance) giving you full control of how to create that page, or setResponsePage(Class pageClass, PageParameters pars) where you have to work to pass on the state. Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18608007.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
This time last year .... is Wicket really a disappointment?
I've recently found this post on dzone: http://java.dzone.com/news/this-time-last-year This time last year ... What is your oppinion about this? -- View this message in context: http://www.nabble.com/%22This-time-last-year%22--is-Wicket-really-a-disappointment--tp18608440p18608440.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
no not at all. it's great. Alex Objelean wrote: I've recently found this post on dzone: http://java.dzone.com/news/this-time-last-year This time last year ... What is your oppinion about this? -- View this message in context: http://www.nabble.com/%22This-time-last-year%22--is-Wicket-really-a-disappointment--tp18608440p18608652.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
He's uninformed. Nobody is concerned about the future of wicket. At least nobody I know (and I don't know him). He seems to drink the JSF coolaid, and his co-workers the flex coolaid. Good for them, but that doesn't mean a thing about the state of Wicket. Any non-Sun/Adobe/Microsoft project has problems growing their community when put against the millions of marketing $$$. Take a look at JavaOne: we submitted a proposal but were not admitted, however the esplanade was filled with presentations for a technology nobody is using (JavaFX). Martijn On Wed, Jul 23, 2008 at 1:19 PM, Alex Objelean [EMAIL PROTECTED] wrote: I've recently found this post on dzone: http://java.dzone.com/news/this-time-last-year This time last year ... What is your oppinion about this? -- View this message in context: http://www.nabble.com/%22This-time-last-year%22--is-Wicket-really-a-disappointment--tp18608440p18608440.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
For the last 7 months, the project we are working with uses JSF (Icefaces). It indeed have nice features, but still it does not compare at all with Wicket (easy of componet development, flexibility, testability, etc, etc). I do love wicket, but I must agree that ..a lot but corporations still prefer JSF. Big players preffer the standard framework, it is still their strong point. Maybe it is all about marketing? pixologe wrote: no not at all. it's great. Alex Objelean wrote: I've recently found this post on dzone: http://java.dzone.com/news/this-time-last-year This time last year ... What is your oppinion about this? -- View this message in context: http://www.nabble.com/%22This-time-last-year%22--is-Wicket-really-a-disappointment--tp18608440p18608843.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
On Wed, Jul 23, 2008 at 7:32 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Any non-Sun/Adobe/Microsoft project has problems growing their community when put against the millions of marketing $$$. Take a look at JavaOne: we submitted a proposal but were not admitted, however the esplanade was filled with presentations for a technology nobody is using (JavaFX). This really is a shame! I can't believe they wouldn't approve Wicket at JavaOne. I introduced a colleague at work to Wicket the other day. We spent about 1/2 hour going through an example I put together (which included stuff like Fragments). She was able to take that brief introduction and roll with it. Of course, she's no Wicket expert or anything (neither am I), but she got it after a very quick taste of what it's all about. That, to me, is the real power of Wicket! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
On Jul 23, 2008, at 13:19 , Alex Objelean wrote: I've recently found this post on dzone: http://java.dzone.com/news/this-time-last-year This time last year ... What is your oppinion about this? In short, I could compare (partially) it with my feelings about Apple. I was so excited when I abandoned Windows for Mac OS X, but after four years Mac OS X is not up to my expectations; but I consider it still the best of competitors (the parallel stops here: today I'd happily leave Mac OS X and Apple if I could, but I can't; while I'm not willing to abandon Wicket). The v1 of my most strategic web project (a direct customer) has been developed in Wicket (1.3), and now I'm working on v2, which will be developed on Wicket of course. The thing that really frustrates me is the fact you're forcing me to use serializable objects, even if I don't need to (and when I go with clustering, I'll use Terracotta). But I'm confident I'll find some design work-around on that. Also, I appreciated Wicket for its simplicity and control put in my hands in comparison with JSF; but I must say that after two years, I think the simplicity thing is still true, but not to the extent I expected. Given that, I'm still involved in other technologies such as JSF (consulting for customers) and in the comparison Wicket wins hands down. A point worth to be noted, though, is that I was surprised how productive some people is with JSF and the NetBeans Visual Designer, even people that I discovered is not proficient with Java at all (please note that while I'm a member of the NetBeans Dream Team, so you bet I'm a NetBeans enthusiast, I never use JSF and the NetBeans Visual Designer when I make the decision on the framework ant the tool). -- Fabrizio Giudici, Ph.D. - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog [EMAIL PROTECTED] - mobile: +39 348.150.6941 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
The thing that really frustrates me is the fact you're forcing me to use serializable objects, even if I don't need to (and when I go with clustering, I'll use Terracotta). But I'm confident I'll find some design work-around on that. I don't agree with you in this point. The design work-around you're talking about is the proper use of models. We're clustering with Terracotta and none of our model objects actually is Serializable ... regards, Michael Fabrizio Giudici wrote: On Jul 23, 2008, at 13:19 , Alex Objelean wrote: I've recently found this post on dzone: http://java.dzone.com/news/this-time-last-year This time last year ... What is your oppinion about this? In short, I could compare (partially) it with my feelings about Apple. I was so excited when I abandoned Windows for Mac OS X, but after four years Mac OS X is not up to my expectations; but I consider it still the best of competitors (the parallel stops here: today I'd happily leave Mac OS X and Apple if I could, but I can't; while I'm not willing to abandon Wicket). The v1 of my most strategic web project (a direct customer) has been developed in Wicket (1.3), and now I'm working on v2, which will be developed on Wicket of course. The thing that really frustrates me is the fact you're forcing me to use serializable objects, even if I don't need to (and when I go with clustering, I'll use Terracotta). But I'm confident I'll find some design work-around on that. Also, I appreciated Wicket for its simplicity and control put in my hands in comparison with JSF; but I must say that after two years, I think the simplicity thing is still true, but not to the extent I expected. Given that, I'm still involved in other technologies such as JSF (consulting for customers) and in the comparison Wicket wins hands down. A point worth to be noted, though, is that I was surprised how productive some people is with JSF and the NetBeans Visual Designer, even people that I discovered is not proficient with Java at all (please note that while I'm a member of the NetBeans Dream Team, so you bet I'm a NetBeans enthusiast, I never use JSF and the NetBeans Visual Designer when I make the decision on the framework ant the tool). -- Fabrizio Giudici, Ph.D. - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog [EMAIL PROTECTED] - mobile: +39 348.150.6941 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/%22This-time-last-year%22--is-Wicket-really-a-disappointment--tp18608440p18609055.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
On Jul 23, 2008, at 13:52 , Michael Sparer wrote: The thing that really frustrates me is the fact you're forcing me to use serializable objects, even if I don't need to (and when I go with clustering, I'll use Terracotta). But I'm confident I'll find some design work-around on that. I don't agree with you in this point. The design work-around you're talking about is the proper use of models. We're clustering with Terracotta and none of our model objects actually is Serializable ... Well, it just sounds as the point where I want to go :-) At the moment most of my models are not serializable, but I'm still with Wicket 1.3. AFAIK in Wicket 1.4 I'll have problems with that, unless I use the detachable stuff. Or am I wrong? -- Fabrizio Giudici, Ph.D. - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog [EMAIL PROTECTED] - mobile: +39 348.150.6941 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
I must also say that in our company the popularity of wicket is growing up. We completed at least 3 small-medium sized projects using Wicket. There is another project in progress and few prospects. Number of developers who had a contact with wicket grew from 1 to 5 developers. It is not very much, but it is still a progress. Any time the client give us a freedom to choose a technology, Wicket is our first option. But, usually client chooses the technology... and most of the time it is JSF. This happening because the wicket, besides not being a standard technology, suffers from marketability related statistics and is not so popular between developers. Alex Objelean wrote: For the last 7 months I was working on a project using JSF (Icefaces). It indeed have nice features, but still it does not compare at all with Wicket (easy of componet development, flexibility, testability, etc, etc). I do love wicket, but I must agree that ... corporations still prefer JSF. Big players preffer the standard framework, it is still their strong point. Maybe it is all about marketing? -- View this message in context: http://www.nabble.com/%22This-time-last-year%22--is-Wicket-really-a-disappointment--tp18608440p18609155.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange behavior with DropDown
Hello all, I have a class that holds two DropDownChoice object. We have a generic behavior: According to one DropDown value, we set the list to the other. Here's a code snippet of the 1st component: private DropDownChoice createUniverseDropDown() { IModel universesModel = getUniversesmodel(); DropDownChoice uniDropDown = new DropDownChoice(universeSelect, new PropertyModel(this, universeName), universesModel) { private static final long serialVersionUID = 1L; @Override protected boolean localizeDisplayValues() { return true; } }; uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(configurationsDropDown); } }); uniDropDown.setRequired(true); return uniDropDown; } configurationsDropDown is the other one. The situation: We have a page and in that page there's a form with several components, some buttons and the two DropDown from the special class (they have getters of course). The problem: If the user chose a universe but did not choose a configuration (there's still the 'choose one'), none of the buttons is submitted. I have put confDropDown.setNullValid(false); but it did not help. One of the buttons is CANCEL so I don't need any input and don't mind what are the values in the components. Is there any way of a walk through? Please advise, -- Eyal Golan [EMAIL PROTECTED] 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
Re: strange behavior with DropDown
One more thing, If I put a break point in the onSubmit of the Button, the debugger doesn't even reach it if the configuration DropDown is not chosen. On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hello all, I have a class that holds two DropDownChoice object. We have a generic behavior: According to one DropDown value, we set the list to the other. Here's a code snippet of the 1st component: private DropDownChoice createUniverseDropDown() { IModel universesModel = getUniversesmodel(); DropDownChoice uniDropDown = new DropDownChoice(universeSelect, new PropertyModel(this, universeName), universesModel) { private static final long serialVersionUID = 1L; @Override protected boolean localizeDisplayValues() { return true; } }; uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(configurationsDropDown); } }); uniDropDown.setRequired(true); return uniDropDown; } configurationsDropDown is the other one. The situation: We have a page and in that page there's a form with several components, some buttons and the two DropDown from the special class (they have getters of course). The problem: If the user chose a universe but did not choose a configuration (there's still the 'choose one'), none of the buttons is submitted. I have put confDropDown.setNullValid(false); but it did not help. One of the buttons is CANCEL so I don't need any input and don't mind what are the values in the components. Is there any way of a walk through? Please advise, -- Eyal Golan [EMAIL PROTECTED] 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 -- Eyal Golan [EMAIL PROTECTED] 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
Re: strange behavior with DropDown
override onError and set a breakpoint there. And add a feedbackpanel to your page. Martijn On Wed, Jul 23, 2008 at 2:40 PM, Eyal Golan [EMAIL PROTECTED] wrote: One more thing, If I put a break point in the onSubmit of the Button, the debugger doesn't even reach it if the configuration DropDown is not chosen. On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hello all, I have a class that holds two DropDownChoice object. We have a generic behavior: According to one DropDown value, we set the list to the other. Here's a code snippet of the 1st component: private DropDownChoice createUniverseDropDown() { IModel universesModel = getUniversesmodel(); DropDownChoice uniDropDown = new DropDownChoice(universeSelect, new PropertyModel(this, universeName), universesModel) { private static final long serialVersionUID = 1L; @Override protected boolean localizeDisplayValues() { return true; } }; uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(configurationsDropDown); } }); uniDropDown.setRequired(true); return uniDropDown; } configurationsDropDown is the other one. The situation: We have a page and in that page there's a form with several components, some buttons and the two DropDown from the special class (they have getters of course). The problem: If the user chose a universe but did not choose a configuration (there's still the 'choose one'), none of the buttons is submitted. I have put confDropDown.setNullValid(false); but it did not help. One of the buttons is CANCEL so I don't need any input and don't mind what are the values in the components. Is there any way of a walk through? Please advise, -- Eyal Golan [EMAIL PROTECTED] 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 -- Eyal Golan [EMAIL PROTECTED] 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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.4M3 migration
I used M2 and had no problem with it. When I heard talk about decoupling the components and the models, for M3, I thought that seemed a good idea. Now I use M3. It works fine, but I think generics for components is implemented upside down. I think M3 should have been M2 with generics turned off where it wasn't needed. /Anders Ned Collyer wrote: I've just converted over a project to 1.4-m3 from m1. I skipped m2 because of the drastic changes between 1, 2 and 3. I must say, I think generics at a component level - when I initially started using it felt like unneeded overhead - but it became more and more useful. now that I've changed to 1.4-m3 - Many parts of the project start to feel like unneeded cast soup - even if it is just reimplementing getModel or getModelObject over and over. It's a change that I found a bit hard to visualise the impact until I made the switch. I must say m1 generics felt more powerful and appropriate for all the circumstances i've come across... with the exception of having to generify things like Label. Anyway, Thats my feedback after the switch. Timo Rantalaiho wrote: On Fri, 18 Jul 2008, Stefan Lindner wrote: Thank you all for your work on wicket! Maybe we can see Wicket 1.4.0 final in the near future? Thanks for the feedback and the thanks! There are still 30+ open issues for 1.4 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310561fixfor=12313295resolution=-1sorter/field=issuekeysorter/order=DESC and besides those, probably many places where raw versions of generic types are used and which should be fixed. So I wouldn't hold my breath :) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange behavior with DropDown
thanks, It really stopped at the onError. As I understand, and correct me if I'm wrong, I need to implement something in that method. Something like, check if the user pressed cancel, and if so, to continue to whatever I want. BTW, can I force the onSubmit of a button (my CANCEL button) even if there was an error? On Wed, Jul 23, 2008 at 3:42 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: override onError and set a breakpoint there. And add a feedbackpanel to your page. Martijn On Wed, Jul 23, 2008 at 2:40 PM, Eyal Golan [EMAIL PROTECTED] wrote: One more thing, If I put a break point in the onSubmit of the Button, the debugger doesn't even reach it if the configuration DropDown is not chosen. On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hello all, I have a class that holds two DropDownChoice object. We have a generic behavior: According to one DropDown value, we set the list to the other. Here's a code snippet of the 1st component: private DropDownChoice createUniverseDropDown() { IModel universesModel = getUniversesmodel(); DropDownChoice uniDropDown = new DropDownChoice(universeSelect, new PropertyModel(this, universeName), universesModel) { private static final long serialVersionUID = 1L; @Override protected boolean localizeDisplayValues() { return true; } }; uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(configurationsDropDown); } }); uniDropDown.setRequired(true); return uniDropDown; } configurationsDropDown is the other one. The situation: We have a page and in that page there's a form with several components, some buttons and the two DropDown from the special class (they have getters of course). The problem: If the user chose a universe but did not choose a configuration (there's still the 'choose one'), none of the buttons is submitted. I have put confDropDown.setNullValid(false); but it did not help. One of the buttons is CANCEL so I don't need any input and don't mind what are the values in the components. Is there any way of a walk through? Please advise, -- Eyal Golan [EMAIL PROTECTED] 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 -- Eyal Golan [EMAIL PROTECTED] 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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] 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
WebPage: empty response
Hi, I need your advice. I am using wicket for generating VoiceXML for my application. In response my application sends some recorded audio as multipart/form-data content. Another wicket page stores this audio to HDD. The problem is that wicket returns HTTP status code 500, because there was not generated any HTML document that could be returned. But I do not want to return any document. I just want to return HTTP headers with status code 200 (OK), but I do not how to do it. Now I am generating blank html document (just tags html/html) but I think there must be better way. I need something like : getResponse.setResponseCode (200); // this should set the response code getResponse.close(); // close the output stream return; Please can you explin me the wicket way how to do this. Best regards Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebPage: empty response
2 options: 1. don't use Wicket but a normal servlet for this 2. getRequestCycle().setRequestTarget(new EmptyRequestTarget()); #2 should work, but I haven't tried it :) Martijn On Wed, Jul 23, 2008 at 3:03 PM, Milan Křápek [EMAIL PROTECTED] wrote: Hi, I need your advice. I am using wicket for generating VoiceXML for my application. In response my application sends some recorded audio as multipart/form-data content. Another wicket page stores this audio to HDD. The problem is that wicket returns HTTP status code 500, because there was not generated any HTML document that could be returned. But I do not want to return any document. I just want to return HTTP headers with status code 200 (OK), but I do not how to do it. Now I am generating blank html document (just tags html/html) but I think there must be better way. I need something like : getResponse.setResponseCode (200); // this should set the response code getResponse.close(); // close the output stream return; Please can you explin me the wicket way how to do this. Best regards Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
How to render component markup to string?
Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F.
Re: How to render component markup to string?
getRequestCycle().setRequestTarget(new StringRequestTarget()); On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with character encoding of text from data model
Thanks Timo. I'm compiling on a mac using maven. This has not been a problem before, so I simply didn't think of it. My java source files are stored in iso-8859-1 (which gives less problems when interacting with people using windows). I specified the encoding in the maven pom-file, and that solved the problem. It's done like this, in case anyone else has this problem: project.. [...] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-15/encoding /configuration /plugin [...] /project -- View this message in context: http://www.nabble.com/Problems-with-character-encoding-of-text-from-data-model-tp18596015p18611341.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error doesn't seem to work (?)
Hi, We have a page that has a form in it and also a FeedbackPanel. The form has a button that can be pressed only 4 times (never mind why). On the fifth press we call in the onSubmit of the button: error(my message); Break pointing stopped there. The feedback panel wasn't shown. I tried using ContainerFeedbackMessageFilter but it still didn't work. We tried to put the feedback panel in the form and outside (in the page itself) - no difference. Why? -- Eyal Golan [EMAIL PROTECTED] 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
RE: New Wicket Grails Plug-in Available + about the Groovy wicket builder
Anonymous inner classes are nice for their brevity but they are not required. You can declare those as concrete classes. I'm not too sure about Groovy but you should be able to put them in the same file. -Original Message- From: JulianS [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 4:36 PM To: users@wicket.apache.org Subject: Re: New Wicket Grails Plug-in Available + about the Groovy wicket builder I just tried this plugin for the first time and I got the example to run. But as soon as I tried to do something as simple as loop through a list of items, it all came unstuck (code below). It seems to me like the mismatch between Wicket's use of anonymous inner classes and Groovy's lack of support for them is a deal breaker. You either have to reduce your usage of Wicket in Groovy code to preexisting Wicket components that were built in Java (like the Label below), or you have to use a Groovy builder that emits Java code, which then gets compiled. Am I missing something? I hope so, I'd love to use GORM and Wicket together. HomePage.groovy: public class HelloPage extends WebPage { public HelloPage(final PageParameters parameters) { add(new Label(message, If you see this message wicket is properly configured and running!)); add(new Loop(repeat, Book.list( 10 ))) { @Override protected void populateItem(LoopItem item) { Book book = (Book) item.getModelObject(); item.setModel(new CompoundPropertyModel(book)); item.add(new Label(name)); } } } } Julian -- View this message in context: http://www.nabble.com/New-Wicket-Grails-Plug-in-Available-%2B-about-the- Groovy-wicket-builder-tp15828796p18598173.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange behavior with DropDown
Martijn, This is what I was looking for: myButton.setDefaultFormProcessing(false); Thanks On Wed, Jul 23, 2008 at 3:42 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: override onError and set a breakpoint there. And add a feedbackpanel to your page. Martijn On Wed, Jul 23, 2008 at 2:40 PM, Eyal Golan [EMAIL PROTECTED] wrote: One more thing, If I put a break point in the onSubmit of the Button, the debugger doesn't even reach it if the configuration DropDown is not chosen. On Wed, Jul 23, 2008 at 3:34 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hello all, I have a class that holds two DropDownChoice object. We have a generic behavior: According to one DropDown value, we set the list to the other. Here's a code snippet of the 1st component: private DropDownChoice createUniverseDropDown() { IModel universesModel = getUniversesmodel(); DropDownChoice uniDropDown = new DropDownChoice(universeSelect, new PropertyModel(this, universeName), universesModel) { private static final long serialVersionUID = 1L; @Override protected boolean localizeDisplayValues() { return true; } }; uniDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(configurationsDropDown); } }); uniDropDown.setRequired(true); return uniDropDown; } configurationsDropDown is the other one. The situation: We have a page and in that page there's a form with several components, some buttons and the two DropDown from the special class (they have getters of course). The problem: If the user chose a universe but did not choose a configuration (there's still the 'choose one'), none of the buttons is submitted. I have put confDropDown.setNullValid(false); but it did not help. One of the buttons is CANCEL so I don't need any input and don't mind what are the values in the components. Is there any way of a walk through? Please advise, -- Eyal Golan [EMAIL PROTECTED] 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 -- Eyal Golan [EMAIL PROTECTED] 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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] 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
Re: How to identify if any of a page's components failed validation after a submit
Ned Collyer wrote: er... form.hasError()? form.onError()? What do you mean by page? - are there lots of forms on the page all with errors? Thanks Ned for pointing out the form’s hasError() and onError(). I could make use of these wtihin my visitor rather looking at all components. But what if an error is created outside a form component? Such as: if (!isPhoneDirectoryAvailble) { Session.get().error(The phone directory is not available at this time…); } Let me explain my need for this. I’m writing a custom Refreshing view item reuse strategy that will redisplay the items as they were submitted if any page errors occur (such as validation). I know there is already an existing ReuseIfModelsEqual strategy, but I cannot make use of it. The reason is my model is many levels deep and is highly complex (hibernate generated) and has its own equals/hashcode strategy (our custom implementation) which will not work for this case and I don’t want to further override them. My custom reuse strategy is rather simple. If a page error occurred in which the page gets redisplayed, it simply makes use of the existing items (and does not try to make use of any new items like the ReuseIfModelsEqual strategy does). So going back to my original question, what is the best way to determine if ANY error was generated on the page during the page submit? -- View this message in context: http://www.nabble.com/How-to-identify-if-any-of-a-page%27s-components-failed-validation-after-a-submit-tp18599562p18611715.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render component markup to string?
Hello Martijn Dashorst, thank you for your fast response, but I cannot see how this could solve my problem as I do not want to send a String to the browser. I want to store the Markup, which gets rendered by a panel for example, in a String. Thank you in advance for any advice to this topic. With regards, Enes F. On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: getRequestCycle().setRequestTarget(new StringRequestTarget()); On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render component markup to string?
Why do you want to store it in a string? Martijn On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello Martijn Dashorst, thank you for your fast response, but I cannot see how this could solve my problem as I do not want to send a String to the browser. I want to store the Markup, which gets rendered by a panel for example, in a String. Thank you in advance for any advice to this topic. With regards, Enes F. On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: getRequestCycle().setRequestTarget(new StringRequestTarget()); On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [announce] Apache Wicket 1.4-m3 is released
Hi James, Op maandag 14-07-2008 om 11:15 uur [tijdzone -0400], schreef James Carman: It's just in the wicket-spring jar now, since we're JDK5+ But how about the Wicket quickstart archetype? Latest available appears to be 1.4m2 still. regards, -- Reinout van Schouwen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render component markup to string?
I use rome to create Atom feeds and my intention was to use wicket generated markup for the feed entries content. On Wed, Jul 23, 2008 at 4:31 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Why do you want to store it in a string? Martijn On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello Martijn Dashorst, thank you for your fast response, but I cannot see how this could solve my problem as I do not want to send a String to the browser. I want to store the Markup, which gets rendered by a panel for example, in a String. Thank you in advance for any advice to this topic. With regards, Enes F. On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: getRequestCycle().setRequestTarget(new StringRequestTarget()); On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render component markup to string?
Are you using wicketstuff-rome? Or building it yourself? Martijn On Wed, Jul 23, 2008 at 4:39 PM, Enes Fazli [EMAIL PROTECTED] wrote: I use rome to create Atom feeds and my intention was to use wicket generated markup for the feed entries content. On Wed, Jul 23, 2008 at 4:31 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Why do you want to store it in a string? Martijn On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello Martijn Dashorst, thank you for your fast response, but I cannot see how this could solve my problem as I do not want to send a String to the browser. I want to store the Markup, which gets rendered by a panel for example, in a String. Thank you in advance for any advice to this topic. With regards, Enes F. On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: getRequestCycle().setRequestTarget(new StringRequestTarget()); On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render component markup to string?
As I understand wicketstuff- rome it is just used to create a webresource from my feed and it provides a custom listmodel for consuming feeds. The Feed itself gets build by me. On Wed, Jul 23, 2008 at 4:43 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Are you using wicketstuff-rome? Or building it yourself? Martijn On Wed, Jul 23, 2008 at 4:39 PM, Enes Fazli [EMAIL PROTECTED] wrote: I use rome to create Atom feeds and my intention was to use wicket generated markup for the feed entries content. On Wed, Jul 23, 2008 at 4:31 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Why do you want to store it in a string? Martijn On Wed, Jul 23, 2008 at 4:27 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello Martijn Dashorst, thank you for your fast response, but I cannot see how this could solve my problem as I do not want to send a String to the browser. I want to store the Markup, which gets rendered by a panel for example, in a String. Thank you in advance for any advice to this topic. With regards, Enes F. On Wed, Jul 23, 2008 at 3:44 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: getRequestCycle().setRequestTarget(new StringRequestTarget()); On Wed, Jul 23, 2008 at 3:41 PM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting hold of Container's markup
Hi, I have two questions (related) : 1.) Is there a way in wicket to get Not the raw markup but markup *AFTER*the actual data has been inserted? (meaning the final HTML as we see it on the page?). 2.) Similar to above scenario, can you use container to spit out markup in some other form, for example Plain Text or XML form ? (the markup with actual data). I prepared a test case for the same, which used a TestPage and Wicket Tester to start the page and then called testPage.getAssociateMarkup(true); and testPage.getMarkup(). I tried to call it after doing testPage.render() but no change. Regards Vyas, Anirudh
Re: error doesn't seem to work (?)
Is it an AjaxRequest and you're not adding the feedback panel? or provide some code ... would be easier to find the fault ... egolan74 wrote: Hi, We have a page that has a form in it and also a FeedbackPanel. The form has a button that can be pressed only 4 times (never mind why). On the fifth press we call in the onSubmit of the button: error(my message); Break pointing stopped there. The feedback panel wasn't shown. I tried using ContainerFeedbackMessageFilter but it still didn't work. We tried to put the feedback panel in the form and outside (in the page itself) - no difference. Why? -- Eyal Golan [EMAIL PROTECTED] 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 - Eyal Golan [EMAIL PROTECTED] Visit: JVDrums LinkedIn: LinkedIn - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/error-doesn%27t-seem-to-work-%28-%29-tp18611458p18613254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Components
if you want the page to render all at once you have to spin off as many threads as there are components and block rendering until all threads are done. you can do this in page#onbeforerender() which is called before any components start to render. the problem with this is that if it takes a while someone can easily dos your app because you are blocking servlet thread pool. a better way to do this would be to drop each component into an iframe and make it poll for data which is retrieved using some global threadpool. -igor On Tue, Jul 22, 2008 at 2:12 PM, Sebastian [EMAIL PROTECTED] wrote: Hi, I have not yet looked much into Wicket but am quite interested in the project. We have a specific requirement where I could not yet find the right information/documentation for. We need to put multiple components onto a page receiving data through web services. A single web services call takes some time. In our scenario it would be bad to have the different components of a page to request their data sequentially, therefore we'd like to have components retrieve the required data in parallel by firing the web services call concurrenlty. What is the best approach to achieve this (preferable in a generic, reusable fashion). I do not want to use AJAX for this, the whole page needs to be rendered at once on the server side. Thanks for any hints and thoughts in advance, Seb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebPage: empty response
throw new AbortResponseWithStatusCode(HttpServletResponse.SC_OK); should do it -igor 2008/7/23 Martijn Dashorst [EMAIL PROTECTED]: 2 options: 1. don't use Wicket but a normal servlet for this 2. getRequestCycle().setRequestTarget(new EmptyRequestTarget()); #2 should work, but I haven't tried it :) Martijn On Wed, Jul 23, 2008 at 3:03 PM, Milan Křápek [EMAIL PROTECTED] wrote: Hi, I need your advice. I am using wicket for generating VoiceXML for my application. In response my application sends some recorded audio as multipart/form-data content. Another wicket page stores this audio to HDD. The problem is that wicket returns HTTP status code 500, because there was not generated any HTML document that could be returned. But I do not want to return any document. I just want to return HTTP headers with status code 200 (OK), but I do not how to do it. Now I am generating blank html document (just tags html/html) but I think there must be better way. I need something like : getResponse.setResponseCode (200); // this should set the response code getResponse.close(); // close the output stream return; Please can you explin me the wicket way how to do this. Best regards Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
Re: Getting hold of Container's markup
see IResponseFilter. as far as spitting out text, wicket works with xml not plain text. but if you call setrenderbodyonly(true) on all components there wont be any xml tags left in the output. -igor On Wed, Jul 23, 2008 at 8:20 AM, Ricky [EMAIL PROTECTED] wrote: Hi, I have two questions (related) : 1.) Is there a way in wicket to get Not the raw markup but markup *AFTER*the actual data has been inserted? (meaning the final HTML as we see it on the page?). 2.) Similar to above scenario, can you use container to spit out markup in some other form, for example Plain Text or XML form ? (the markup with actual data). I prepared a test case for the same, which used a TestPage and Wicket Tester to start the page and then called testPage.getAssociateMarkup(true); and testPage.getMarkup(). I tried to call it after doing testPage.render() but no change. Regards Vyas, Anirudh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render component markup to string?
myrequestcycle extends requestcycle { onbeginrequest() { setresponse(new stringresponse()); } onendrequest() { string str=((stringresponse)getresponse()).getstring(); // do whatever } } -igor On Wed, Jul 23, 2008 at 6:41 AM, Enes Fazli [EMAIL PROTECTED] wrote: Hello, I want to create markup with wicket components but I do not want to send it to a browser, I want to store it in a String. Is there a way to do so? With regards, Enes F. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: YuiMenuBar in WicketStuff
There should be a method that you can overwrite(although not so pretty but it should work), there were that for the YUI rich editor... I don't see any method to overwrite. These configuration values look like they are in the javascript files. Maybe I am missing something? Karen Schaper wrote: Hi, I've switched to using the YuiMenuBar in wicket stuff from directly using the Yui javascript. The YuiMenuBar automatically adds this javascript... var oMenu = new YAHOO.widget.MenuBar(webMenuBar, {visible:true,clicktohide:false,autosubmenudisplay: true, hidedelay: 750, lazyload: true}); I need it to look like this? var oMenuBar = new YAHOO.widget.MenuBar( webMenubar, { autosubmenudisplay:false, hidedelay:750, lazyload:true } ); I need to set the autosubmenudisplay to false. This way the user can actually click on the menu... at least I'm pretty sure that is what will happen. Thanks Karen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Brix 1.0 beta1
we have released Brix 1.0 beta1 [1] yesterday. for those of you who do not know what Brix is, it is an embeddable CMS for wicket apps based on wicket (of course) and the jcr (jackrabbit). Brix is pretty much feature-complete for 1.0, next we are going to focus on stabilizing it for the 1.0 release. feel free to have a look, we are looking for feedback. [1] http://brix-cms.googlecode.com -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring injection not working
I believe (though I'm clearly wrong in that belief) that I have everything properly configured to allow spring injection along the lines of: import com.foo.dao.UserDAO; @Spring private UserDAO userDAO; Meaning that for a bean defined in the applicationContext as . . . bean id=UserDAO class=com.foo.dao.UserDAO property name=entityManagerFactory ref=entityManagerFactory / /bean . . . I don't have to do anything else to utilize the bean. There is an added complexity in that I am using interfaces for the DAOs, ie. UserDAO implements IUserDAO. I've tried using different combinations of interface and dao, like the following import com.foo.dao.IUserDAO; import com.foo.dao.UserDAO; @Spring(name=userDAO) private IUserDAO userDAO; No matter what I've tried, userDAO remains unitialized. I have to resort to the following to get hold of the DAO... ApplicationContextapplicationContext = ((WicketApplication) Application.get()).getContext(); IUserDAOdao= UserDAO.getFromApplicationContext(applicationContext); Anyone have a guess at what I'm not doing correctly? I should note that in the main application class, the init makes the following call . . . addComponentInstantiationListener(new SpringComponentInjector(this)); And the entity manager is defined as follows . . . bean id=entityManagerFactory class =org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean property name=persistenceUnitManager ref=persistenceUnitManager/ property name=persistenceUnitName value=NetConfPU/ /bean -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
Have you tried using @SpringBean? On Wed, Jul 23, 2008 at 12:04 PM, David Nedrow [EMAIL PROTECTED] wrote: I believe (though I'm clearly wrong in that belief) that I have everything properly configured to allow spring injection along the lines of: import com.foo.dao.UserDAO; @Spring private UserDAO userDAO; Meaning that for a bean defined in the applicationContext as . . . bean id=UserDAO class=com.foo.dao.UserDAO property name=entityManagerFactory ref=entityManagerFactory / /bean . . . I don't have to do anything else to utilize the bean. There is an added complexity in that I am using interfaces for the DAOs, ie. UserDAO implements IUserDAO. I've tried using different combinations of interface and dao, like the following import com.foo.dao.IUserDAO; import com.foo.dao.UserDAO; @Spring(name=userDAO) private IUserDAO userDAO; No matter what I've tried, userDAO remains unitialized. I have to resort to the following to get hold of the DAO... ApplicationContextapplicationContext = ((WicketApplication) Application.get()).getContext(); IUserDAOdao= UserDAO.getFromApplicationContext(applicationContext); Anyone have a guess at what I'm not doing correctly? I should note that in the main application class, the init makes the following call . . . addComponentInstantiationListener(new SpringComponentInjector(this)); And the entity manager is defined as follows . . . bean id=entityManagerFactory class=org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean property name=persistenceUnitManager ref=persistenceUnitManager/ property name=persistenceUnitName value=NetConfPU/ /bean -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [announce] Apache Wicket 1.4-m3 is released
Well, it's easy enough to upgrade once you generate your project. Just change the wicket version. On Wed, Jul 23, 2008 at 10:30 AM, Reinout van Schouwen [EMAIL PROTECTED] wrote: Hi James, Op maandag 14-07-2008 om 11:15 uur [tijdzone -0400], schreef James Carman: It's just in the wicket-spring jar now, since we're JDK5+ But how about the Wicket quickstart archetype? Latest available appears to be 1.4m2 still. regards, -- Reinout van Schouwen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice, PropertyModel and stateful pages
In case anybody is interested in what I ended up with: I defined an inner class within the Page which declares the page state properties (and defines their default values) for the enclosing page. An instance of the state Object is stored in the session using memento pattern (no longer within the page itself). This way the page itself is stateless and thus bookmarkable and pretty-URLed, but can still make use of wicket's PropertyModel-binding. Also, despite being saved to the session, the page itself is the only one to know about the specific state properties it has. B-) -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18615095.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
expires header
A co-worker who is not on the wicket user list asked me to ask: How do you change the expires header being returned by the wicket javascript (e.g. /mytrip/app/resources/org.apache.wicket.markup.html.WebResource/wicket-event.js)? Are there any options for this, or would we have to dig into the shipped js ourselves? Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket position NYC
Hey folks, Teachscape is looking for someone with Wicket experience for a full time position located in downtown New York City. Please see http://newyork.craigslist.org/mnh/sof/759242907.html for details. Hope to get some resumes! :-) Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error doesn't seem to work (?)
thanks, I'll look into it tomorrow On Wed, Jul 23, 2008 at 6:21 PM, Michael Sparer [EMAIL PROTECTED] wrote: Is it an AjaxRequest and you're not adding the feedback panel? or provide some code ... would be easier to find the fault ... egolan74 wrote: Hi, We have a page that has a form in it and also a FeedbackPanel. The form has a button that can be pressed only 4 times (never mind why). On the fifth press we call in the onSubmit of the button: error(my message); Break pointing stopped there. The feedback panel wasn't shown. I tried using ContainerFeedbackMessageFilter but it still didn't work. We tried to put the feedback panel in the form and outside (in the page itself) - no difference. Why? -- Eyal Golan [EMAIL PROTECTED] 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 - Eyal Golan [EMAIL PROTECTED] Visit: JVDrums LinkedIn: LinkedIn - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/error-doesn%27t-seem-to-work-%28-%29-tp18611458p18613254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] 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
Re: [ANN] Brix 1.0 beta1
Igor, This looks like it's fast becoming another high quality and useful piece of well conceived, professional equipment in the Wicket application developer's arsenal. I've been keeping an eye on the project's progress, via SVN, and how fast you guys have got this far has been impressive. If any of the team are (or can be) in London on August 6 or in early October to present your new application I'm sure you'd have a very interested audience at our http://www.jWeekend.co.uk London Wicket Event s, not least myself. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk igor.vaynberg wrote: we have released Brix 1.0 beta1 [1] yesterday. for those of you who do not know what Brix is, it is an embeddable CMS for wicket apps based on wicket (of course) and the jcr (jackrabbit). Brix is pretty much feature-complete for 1.0, next we are going to focus on stabilizing it for the 1.0 release. feel free to have a look, we are looking for feedback. [1] http://brix-cms.googlecode.com -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18617023.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expires header
I think the package resources just does something default. Have to check if this is already configurable. Check resource and resource request target On 7/23/08, Scott Swank [EMAIL PROTECTED] wrote: A co-worker who is not on the wicket user list asked me to ask: How do you change the expires header being returned by the wicket javascript (e.g. /mytrip/app/resources/org.apache.wicket.markup.html.WebResource/wicket-event.js)? Are there any options for this, or would we have to dig into the shipped js ourselves? Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting selections from DropDownChoice and Palette components
I'm new to wicket and although I have seen a bunch of examples using both DropDownChoice and Palette I can not get the selected values from either list. Currently this is what I'm doing: this.setModel(new CompoundPropertyModel(profile)); ListPaletteObject paletteList = new ArrayListPaletteObject(); IChoiceRenderer renderer = new ChoiceRenderer(name, name); Palette palette = new Palette(disabledAttributes, new Model(new ArrayList()), new Model((Serializable) paletteList), renderer, 10, false); DropDownChoice perPageField = new DropDownChoice(perPageRows, perPageChoices); AjaxLink close = new AjaxLink(close) { public void onClick(AjaxRequestTarget target) { System.out.println(profile.getDisabledAttributes()); System.out.println(profile.getTotalRows()); } }; add(palette); add(perPageField); public class Profile implements Serializable { public String perPageRows; public ListString disabledAttributes; //getters and setters removed so this isn't huge. } I have also tried omitting the compoundPropertyModel and just using normal PropertyModels on the individual fields but that also didn't work, I have spent hours on this and haven't gotten anywhere. Thanks for your help, Kim -- View this message in context: http://www.nabble.com/Getting-selections-from-DropDownChoice-and-Palette-components-tp18617786p18617786.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
On Jul 23, 2008, at 12:10 PM, James Carman wrote: Have you tried using @SpringBean? On Wed, Jul 23, 2008 at 12:04 PM, David Nedrow [EMAIL PROTECTED] wrote: I believe (though I'm clearly wrong in that belief) that I have everything properly configured to allow spring injection along the lines of: import com.foo.dao.UserDAO; @Spring private UserDAO userDAO; D'oh! Yes, I'm using @SpringBean. I wish it was that simple. ;) I was typing the examples I included in my original message, rather than copy and paste and flubbed it. Wherever @Spring is in my example, read @SpringBean. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Spring injection not working
Should UserDAO in the XML be userDAO? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 3:14 PM To: users@wicket.apache.org Subject: Re: Spring injection not working On Jul 23, 2008, at 12:10 PM, James Carman wrote: Have you tried using @SpringBean? On Wed, Jul 23, 2008 at 12:04 PM, David Nedrow [EMAIL PROTECTED] wrote: I believe (though I'm clearly wrong in that belief) that I have everything properly configured to allow spring injection along the lines of: import com.foo.dao.UserDAO; @Spring private UserDAO userDAO; D'oh! Yes, I'm using @SpringBean. I wish it was that simple. ;) I was typing the examples I included in my original message, rather than copy and paste and flubbed it. Wherever @Spring is in my example, read @SpringBean. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
Try downloading my example code from: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ See if there's anything you're doing differently. On Wed, Jul 23, 2008 at 3:13 PM, David Nedrow [EMAIL PROTECTED] wrote: On Jul 23, 2008, at 12:10 PM, James Carman wrote: Have you tried using @SpringBean? On Wed, Jul 23, 2008 at 12:04 PM, David Nedrow [EMAIL PROTECTED] wrote: I believe (though I'm clearly wrong in that belief) that I have everything properly configured to allow spring injection along the lines of: import com.foo.dao.UserDAO; @Spring private UserDAO userDAO; D'oh! Yes, I'm using @SpringBean. I wish it was that simple. ;) I was typing the examples I included in my original message, rather than copy and paste and flubbed it. Wherever @Spring is in my example, read @SpringBean. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expires header
Thank you Johan. On Wed, Jul 23, 2008 at 11:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I think the package resources just does something default. Have to check if this is already configurable. Check resource and resource request target On 7/23/08, Scott Swank [EMAIL PROTECTED] wrote: A co-worker who is not on the wicket user list asked me to ask: How do you change the expires header being returned by the wicket javascript (e.g. /mytrip/app/resources/org.apache.wicket.markup.html.WebResource/wicket-event.js)? Are there any options for this, or would we have to dig into the shipped js ourselves? Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
Actually, if the class using userDAO doesn't extend Component, you have to add InjectorHolder.getInjector().inject(this) in the constructor of the calling class. David Nedrow wrote: I believe (though I'm clearly wrong in that belief) that I have everything properly configured to allow spring injection along the lines of: import com.foo.dao.UserDAO; @Spring private UserDAO userDAO; Meaning that for a bean defined in the applicationContext as . . . bean id=UserDAO class=com.foo.dao.UserDAO property name=entityManagerFactory ref=entityManagerFactory / /bean . . . I don't have to do anything else to utilize the bean. There is an added complexity in that I am using interfaces for the DAOs, ie. UserDAO implements IUserDAO. I've tried using different combinations of interface and dao, like the following import com.foo.dao.IUserDAO; import com.foo.dao.UserDAO; @Spring(name=userDAO) private IUserDAO userDAO; No matter what I've tried, userDAO remains unitialized. I have to resort to the following to get hold of the DAO... ApplicationContextapplicationContext = ((WicketApplication) Application.get()).getContext(); IUserDAOdao= UserDAO.getFromApplicationContext(applicationContext); Anyone have a guess at what I'm not doing correctly? I should note that in the main application class, the init makes the following call . . . addComponentInstantiationListener(new SpringComponentInjector(this)); And the entity manager is defined as follows . . . bean id=entityManagerFactory class=org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean property name=persistenceUnitManager ref=persistenceUnitManager/ property name=persistenceUnitName value=NetConfPU/ /bean -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting selections from DropDownChoice and Palette components
I'm new to wicket and although I have seen a bunch of examples using both DropDownChoice and Palette I can not get the selected values from either list. Currently this is what I'm doing: this.setModel(new CompoundPropertyModel(profile)); ListPaletteObject paletteList = new ArrayListPaletteObject(); IChoiceRenderer renderer = new ChoiceRenderer(name, name); Palette palette = new Palette(disabledAttributes, new Model(new ArrayList()), new Model((Serializable) paletteList), renderer, 10, false); DropDownChoice perPageField = new DropDownChoice(perPageRows, perPageChoices); AjaxLink close = new AjaxLink(close) { public void onClick(AjaxRequestTarget target) { System.out.println(profile.getDisabledAttributes()); System.out.println(profile.getTotalRows()); } }; add(palette); add(perPageField); public class Profile implements Serializable { public String perPageRows; public ListString disabledAttributes; //getters and setters removed so this isn't huge. } I have also tried omitting the compoundPropertyModel and just using normal PropertyModels on the individual fields but that also didn't work, I have spent hours on this and haven't gotten anywhere. Thanks for any help you can give me, Kim -- View this message in context: http://www.nabble.com/Getting-selections-from-DropDownChoice-and-Palette-components-tp18618072p18618072.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Brix 1.0 beta1
cemal, thanks. unfortunately i cant be in london at that time, so you will have to see if matej can make it out. its a lot closer for him anyways :) -igor On Wed, Jul 23, 2008 at 11:08 AM, jWeekend [EMAIL PROTECTED] wrote: Igor, This looks like it's fast becoming another high quality and useful piece of well conceived, professional equipment in the Wicket application developer's arsenal. I've been keeping an eye on the project's progress, via SVN, and how fast you guys have got this far has been impressive. If any of the team are (or can be) in London on August 6 or in early October to present your new application I'm sure you'd have a very interested audience at our http://www.jWeekend.co.uk London Wicket Event s, not least myself. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk igor.vaynberg wrote: we have released Brix 1.0 beta1 [1] yesterday. for those of you who do not know what Brix is, it is an embeddable CMS for wicket apps based on wicket (of course) and the jcr (jackrabbit). Brix is pretty much feature-complete for 1.0, next we are going to focus on stabilizing it for the 1.0 release. feel free to have a look, we are looking for feedback. [1] http://brix-cms.googlecode.com -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18617023.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asynchronous Components
you may also consider using a portal framework and portlets, for example apache jetspeed portal (and possibly others) has parallel portlet rendering option.. Igor Vaynberg wrote: if you want the page to render all at once you have to spin off as many threads as there are components and block rendering until all threads are done. you can do this in page#onbeforerender() which is called before any components start to render. the problem with this is that if it takes a while someone can easily dos your app because you are blocking servlet thread pool. a better way to do this would be to drop each component into an iframe and make it poll for data which is retrieved using some global threadpool. -igor On Tue, Jul 22, 2008 at 2:12 PM, Sebastian [EMAIL PROTECTED] wrote: Hi, I have not yet looked much into Wicket but am quite interested in the project. We have a specific requirement where I could not yet find the right information/documentation for. We need to put multiple components onto a page receiving data through web services. A single web services call takes some time. In our scenario it would be bad to have the different components of a page to request their data sequentially, therefore we'd like to have components retrieve the required data in parallel by firing the web services call concurrenlty. What is the best approach to achieve this (preferable in a generic, reusable fashion). I do not want to use AJAX for this, the whole page needs to be rendered at once on the server side. Thanks for any hints and thoughts in advance, Seb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UrlCodingStrategy and overriding the decodeParamaters()
yes, that exactly what i wont to catch the exception. The problem is that i have only wicket pages with some parameters and the exception occurs befor the constructor in the page instance is called. so I wont to catch this exception but i dont find the way or the position where to write the catch code! w_user wrote: hallo, How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception java.lang.IllegalStateException: URL fragment has unmatched key/value pair please help! -- View this message in context: http://www.nabble.com/UrlCodingStrategy-and-overriding-the-decodeParamaters%28%29-tp18585813p18619646.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
Oops! Yeah non-component classes aren't injected automatically. In this case, you might be able to use @configurable, as long as you don't need to pass the reference to anyone else. But, what you're doing might be easier. On 7/23/08, David Nedrow [EMAIL PROTECTED] wrote: On Jul 23, 2008, at 3:23 PM, James Carman wrote: Try downloading my example code from: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ James, I've been using your examples and they've been really helpful, with the exception of this. ;) As it turns out, Landry provided the answer re: InjectorHolder. The class that wasn't working didn't extend Component, so the injection didn't work. Adding InjectorHolder.getInjector().inject(this) to the init of my calling class fixed it up. The class in question was basically a utility class that inserts initial data into my database. Might be worth putting something similar into your example. Give my boneheadedness meaning, please. ;) -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sent from my mobile device - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UrlCodingStrategy and overriding the decodeParamaters()
Another thing is that i have a wicket application and i would like to know how to explitely assign the subclassed class that i override to the application? thanks for help!! w_user wrote: hallo, How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception java.lang.IllegalStateException: URL fragment has unmatched key/value pair please help! -- View this message in context: http://www.nabble.com/UrlCodingStrategy-and-overriding-the-decodeParamaters%28%29-tp18585813p18619652.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: This time last year .... is Wicket really a disappointment?
On Wed, Jul 23, 2008 at 4:40 AM, James Carman [EMAIL PROTECTED] wrote: On Wed, Jul 23, 2008 at 7:32 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Any non-Sun/Adobe/Microsoft project has problems growing their community when put against the millions of marketing $$$. Take a look at JavaOne: we submitted a proposal but were not admitted, however the esplanade was filled with presentations for a technology nobody is using (JavaFX). This really is a shame! I can't believe they wouldn't approve Wicket at JavaOne. They actually put us on the standby list. But I decided it wasn't worth it for me to travel to SF, pay for a hotel and take leave for maybe giving a talk. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
On Jul 23, 2008, at 3:27 PM, landry soules wrote: Actually, if the class using userDAO doesn't extend Component, you have to add InjectorHolder.getInjector().inject(this) in the constructor of the calling class. Is that in addition to addComponentInstantiationListener(), or in place of? Is order important if both are needed? -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring injection not working
The TestDataLoader is configured in the META-INF/beans.xml file: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/resources/META-INF/beans.xml It's injected that way On Wed, Jul 23, 2008 at 5:10 PM, David Nedrow [EMAIL PROTECTED] wrote: On Jul 23, 2008, at 3:23 PM, James Carman wrote: Try downloading my example code from: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ See if there's anything you're doing differently. Hmm, I spoke too soon in my earlier reply. My AppSetup class is doing what your TestDataLoader class does. I don't see, however, in the TestDataLoader where you're injecting any SpringBeans via annotation. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PageableListView + AJax and loading DB contents
Hi all, im from a JSF background and so far ive been really impressed with what ive seen on the Wicket side of things. Im a little confused on the pagable lists, pagable datatables, ajax navigators etc. It seems that when retrieving records, the 'paging' is more client-side. By that i mean it they load the ENTIRE query contents and page though a list - this is fine when dealing with very few number of records, however my app will potentially return 1,000 of records which is impractical if you then scale that by 100s of users. Is there a way to get these 'pagable' components to retrieve from the DB a pageful or records at a time as opposed to the entire search results. So, if ive sent the max page display to 10, and want to retreive the next 10, then its another call to the DB and not simply a arraylist - subList(from, to) ?? I hope this is reasonably clear. -- View this message in context: http://www.nabble.com/PageableListView-%2B-AJax-and-loading-DB-contents-tp18622171p18622171.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageableListView + AJax and loading DB contents
Some of the components require you to pass in a list of objects to page through (ListView for example). Others, like DataTable, etc., let you use an IDataProvider instance which allows you to let the database do the paging. Take a look at my StudentDataProvider implementation (an inner class): http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story3/page/Home.java On Wed, Jul 23, 2008 at 6:44 PM, ej595 [EMAIL PROTECTED] wrote: Hi all, im from a JSF background and so far ive been really impressed with what ive seen on the Wicket side of things. Im a little confused on the pagable lists, pagable datatables, ajax navigators etc. It seems that when retrieving records, the 'paging' is more client-side. By that i mean it they load the ENTIRE query contents and page though a list - this is fine when dealing with very few number of records, however my app will potentially return 1,000 of records which is impractical if you then scale that by 100s of users. Is there a way to get these 'pagable' components to retrieve from the DB a pageful or records at a time as opposed to the entire search results. So, if ive sent the max page display to 10, and want to retreive the next 10, then its another call to the DB and not simply a arraylist - subList(from, to) ?? I hope this is reasonably clear. -- View this message in context: http://www.nabble.com/PageableListView-%2B-AJax-and-loading-DB-contents-tp18622171p18622171.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expires header
My coworker says: I see that one of the headers is being added from WebRequestCycleProcessor but the other headers must be added using something other than setHeader. Where else might headers originate? Thank you. On Wed, Jul 23, 2008 at 11:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I think the package resources just does something default. Have to check if this is already configurable. Check resource and resource request target On 7/23/08, Scott Swank [EMAIL PROTECTED] wrote: A co-worker who is not on the wicket user list asked me to ask: How do you change the expires header being returned by the wicket javascript (e.g. /mytrip/app/resources/org.apache.wicket.markup.html.WebResource/wicket-event.js)? Are there any options for this, or would we have to dig into the shipped js ourselves? Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expires header
https://issues.apache.org/jira/browse/WICKET-1602 http://www.nabble.com/Wicket-javascripts---reloading-every-one-hour-to17117009.html#a17137997 Hope this helps. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jul 23, 2008 at 5:58 PM, Scott Swank [EMAIL PROTECTED] wrote: My coworker says: I see that one of the headers is being added from WebRequestCycleProcessor but the other headers must be added using something other than setHeader. Where else might headers originate? Thank you. On Wed, Jul 23, 2008 at 11:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I think the package resources just does something default. Have to check if this is already configurable. Check resource and resource request target On 7/23/08, Scott Swank [EMAIL PROTECTED] wrote: A co-worker who is not on the wicket user list asked me to ask: How do you change the expires header being returned by the wicket javascript (e.g. /mytrip/app/resources/org.apache.wicket.markup.html.WebResource/wicket-event.js)? Are there any options for this, or would we have to dig into the shipped js ourselves? Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: expires header
Thank you Jeremy. On Wed, Jul 23, 2008 at 4:17 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/WICKET-1602 http://www.nabble.com/Wicket-javascripts---reloading-every-one-hour-to17117009.html#a17137997 Hope this helps. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jul 23, 2008 at 5:58 PM, Scott Swank [EMAIL PROTECTED] wrote: My coworker says: I see that one of the headers is being added from WebRequestCycleProcessor but the other headers must be added using something other than setHeader. Where else might headers originate? Thank you. On Wed, Jul 23, 2008 at 11:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I think the package resources just does something default. Have to check if this is already configurable. Check resource and resource request target On 7/23/08, Scott Swank [EMAIL PROTECTED] wrote: A co-worker who is not on the wicket user list asked me to ask: How do you change the expires header being returned by the wicket javascript (e.g. /mytrip/app/resources/org.apache.wicket.markup.html.WebResource/wicket-event.js)? Are there any options for this, or would we have to dig into the shipped js ourselves? Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]