Re: alphabetical paging navigator
it wouldnt be worth overriding one, you are better off creating one from scratch. listview and paging navigator are decoupled, so you can use your own impl to page the listview without problems. -igor On Thu, Sep 30, 2010 at 10:21 PM, elesi jsar...@gmail.com wrote: is it possible to override the PagingNavigator and give it the letters A-Z as links? and add filtering behavior so that it only shows ListView items that starts with/matches the active letter link? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/alphabetical-paging-navigator-tp2837010p2837010.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Guys, Finally managed to display the tooltip generated by JFreeChart in the wicket page by following these instructionshttp://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Had only an example markup been given in that post, it would have saved lots of frustrating hours I spent. :-( For anyone looking forward for showing the tooltips in a chart generated by JFreeChart, here is the markup you might need. code img wicket:id=chart usemap=#tooltip/img /code For the java part, use this codehttp://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Your output should look something like this.. code img wicket:id=chart usemap=#tooltip src=blah blah/img map id=tooltip name=tooltip area/ /map /code NOTE: - You must use code img wicket:id=chart usemap=#tooltip/img /code and not code img wicket:id=chart usemap=#tooltip/ /code - You must use the # symbol before the usemap id. - The image map related html markup is generated by the api provided by JFreeChart. On Fri, Oct 1, 2010 at 10:34 AM, James james.eliye...@gmail.com wrote: Hi Peter, Thanks for your prompt reply. I don't know how I missed this wonderful mailing list for this long.. ;-( I have tried passing models to constructImageMap (wrapping the chart image object as a model) but somehow the map was not updated. I checked jetwick and it looks cool. ;-) Do you use JFreeChart to create those charts? I'm willing to try that option as well. Kindly blog about it! Thanks once again for taking your time to reply. On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich peat...@yahoo.de wrote: Hi James, In the constructImageMap you whill have to pass a model as well, but I'm not sure how :-( Another way would be to adapt constructImageMap to updateImageMap so that you can call it in ChartImage.createBufferedImage (or every time the model updates) BTW: For jetwick I used an html solution with div's to display bar charts. which is customizable by the designer (if any ;-)), readable by spiders etc and didn't need those imagemaps. Are you interested in this solution? I could blog about it. Regards, Peter (aka timetabling on twitter ;-)). Hi Guys, I followed the instructions in the wiki JFreeChart with clickable imagemap https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html to create a chart. I have a requirement whereby the chart has to be generated dynamically based on certain inputs. I managed to create the chart image by using LoadableDetachableModel but struggling to get the imagemap updated as the chart image changes. Kindly give your valuable suggestions. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks Regards, James -- Thanks Regards, James
Workflow diagrams in wicket?
Hi, Does anyone know how to use IBM iLOG JViews with wicket framework? Can someone refer me some examples? I want to show a work-flow diagram based on the inputs. Regards, Subbu.
Re: JFreeChart with clickable imagemap
James, why not add this bit to the wiki page you mentioned? So that others can avoid loosing the hours you lost;-) Cheers, Ernesto On Fri, Oct 1, 2010 at 8:18 AM, James james.eliye...@gmail.com wrote: Guys, Finally managed to display the tooltip generated by JFreeChart in the wicket page by following these instructionshttp://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Had only an example markup been given in that post, it would have saved lots of frustrating hours I spent. :-( For anyone looking forward for showing the tooltips in a chart generated by JFreeChart, here is the markup you might need. code img wicket:id=chart usemap=#tooltip/img /code For the java part, use this codehttp://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Your output should look something like this.. code img wicket:id=chart usemap=#tooltip src=blah blah/img map id=tooltip name=tooltip area/ /map /code NOTE: - You must use code img wicket:id=chart usemap=#tooltip/img /code and not code img wicket:id=chart usemap=#tooltip/ /code - You must use the # symbol before the usemap id. - The image map related html markup is generated by the api provided by JFreeChart. On Fri, Oct 1, 2010 at 10:34 AM, James james.eliye...@gmail.com wrote: Hi Peter, Thanks for your prompt reply. I don't know how I missed this wonderful mailing list for this long.. ;-( I have tried passing models to constructImageMap (wrapping the chart image object as a model) but somehow the map was not updated. I checked jetwick and it looks cool. ;-) Do you use JFreeChart to create those charts? I'm willing to try that option as well. Kindly blog about it! Thanks once again for taking your time to reply. On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich peat...@yahoo.de wrote: Hi James, In the constructImageMap you whill have to pass a model as well, but I'm not sure how :-( Another way would be to adapt constructImageMap to updateImageMap so that you can call it in ChartImage.createBufferedImage (or every time the model updates) BTW: For jetwick I used an html solution with div's to display bar charts. which is customizable by the designer (if any ;-)), readable by spiders etc and didn't need those imagemaps. Are you interested in this solution? I could blog about it. Regards, Peter (aka timetabling on twitter ;-)). Hi Guys, I followed the instructions in the wiki JFreeChart with clickable imagemap https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html to create a chart. I have a requirement whereby the chart has to be generated dynamically based on certain inputs. I managed to create the chart image by using LoadableDetachableModel but struggling to get the imagemap updated as the chart image changes. Kindly give your valuable suggestions. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks Regards, James -- Thanks Regards, James - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 1.5 and OSGi
Hello! I developed a wicket app using OSGi (felix) where different bundles may contribute content to the wicket bundle. It works really nice using wicket 1.4.9+. Now I want to upgrade to wicket 1.5 and I run in problems starting the osgi container. It complains with the good-known classnotfound-exception for classes like IClusterable and AuthenticatedWebapplication which all are classes in packages exported by more than one bundle (for example org.apache.wicket or org.apache.wicket.authentication). Earlier I found this was a problem or at least a not-good for OSGi bundles. But as am using OSGi 4.2 this may work with some special treatment (I'v never tried this though). Do you think I'm doing something wrong or is this something on the road for 1.5? Also, since I have implemented ..UrlCodingStrategy and a custom RequestTarget I'm studying the new request handling in 1.5 sources to find out where to plugin my stuff. Are there any documentation besides source and javadoc for the new concepts? The code is good to read but if there are some pictures and text available it would be of great help. Thanks in advance! Eike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JFreeChart with clickable imagemap
Thanks Ernesto. I'll do the same. On Fri, Oct 1, 2010 at 2:24 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: James, why not add this bit to the wiki page you mentioned? So that others can avoid loosing the hours you lost;-) Cheers, Ernesto On Fri, Oct 1, 2010 at 8:18 AM, James james.eliye...@gmail.com wrote: Guys, Finally managed to display the tooltip generated by JFreeChart in the wicket page by following these instructions http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Had only an example markup been given in that post, it would have saved lots of frustrating hours I spent. :-( For anyone looking forward for showing the tooltips in a chart generated by JFreeChart, here is the markup you might need. code img wicket:id=chart usemap=#tooltip/img /code For the java part, use this code http://markmail.org/message/r36cvdt2o3c4pki6#query:wicket%20jfreechart%20tooltips+page:1+mid:xqpnjdsj2lnkoinq+state:results . Your output should look something like this.. code img wicket:id=chart usemap=#tooltip src=blah blah/img map id=tooltip name=tooltip area/ /map /code NOTE: - You must use code img wicket:id=chart usemap=#tooltip/img /code and not code img wicket:id=chart usemap=#tooltip/ /code - You must use the # symbol before the usemap id. - The image map related html markup is generated by the api provided by JFreeChart. On Fri, Oct 1, 2010 at 10:34 AM, James james.eliye...@gmail.com wrote: Hi Peter, Thanks for your prompt reply. I don't know how I missed this wonderful mailing list for this long.. ;-( I have tried passing models to constructImageMap (wrapping the chart image object as a model) but somehow the map was not updated. I checked jetwick and it looks cool. ;-) Do you use JFreeChart to create those charts? I'm willing to try that option as well. Kindly blog about it! Thanks once again for taking your time to reply. On Thu, Sep 30, 2010 at 7:27 PM, Peter Karich peat...@yahoo.de wrote: Hi James, In the constructImageMap you whill have to pass a model as well, but I'm not sure how :-( Another way would be to adapt constructImageMap to updateImageMap so that you can call it in ChartImage.createBufferedImage (or every time the model updates) BTW: For jetwick I used an html solution with div's to display bar charts. which is customizable by the designer (if any ;-)), readable by spiders etc and didn't need those imagemaps. Are you interested in this solution? I could blog about it. Regards, Peter (aka timetabling on twitter ;-)). Hi Guys, I followed the instructions in the wiki JFreeChart with clickable imagemap https://cwiki.apache.org/WICKET/jfreechart-with-clickable-imagemap.html to create a chart. I have a requirement whereby the chart has to be generated dynamically based on certain inputs. I managed to create the chart image by using LoadableDetachableModel but struggling to get the imagemap updated as the chart image changes. Kindly give your valuable suggestions. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks Regards, James -- Thanks Regards, James - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks Regards, James
Re: alphabetical paging navigator
can you give an idea on how to do that? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/alphabetical-paging-navigator-tp2837010p2853331.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Forms ajax doesn't update components models
How it currently must work? Example: Your open the page - change your Combo to 'AUTO' - input data to AutoInfoPanel and press 'Registrar' OR Your open the page - change your Combo to 'AUTO' - input data to AutoInfoPanel - change your Combo to 'PERSONA' - input data to PersonaInfoPanel and press 'Registrar'. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Forms-ajax-doesn-t-update-components-models-tp2730857p2854298.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Coding - On Software Design Process
Great. I will surely get a copy. I have so many design related issues in my mind. Josh On Thu, Sep 30, 2010 at 5:22 PM, Jonathan Locke jonathan.lo...@gmail.comwrote: Hello Wicketeers! I recently finished writing a short book (less than 70 pages) on software design process. I wrote this book because I wanted a place to put down some of the most interesting ideas and things I've learned about software design over the years that have been too long for everyday conversations and emails. If you have worked with me or are familiar with my work through Wicket, you will find a lot of things that feel familiar in this book and it may shed some light on some aspects of Wicket's design for you. It's also my hope that it will help people who read it carefully to improve their software design process. You can get it for Kindle using the link below (or better yet, get your pointy-haired boss to get it for you) or if you prefer dead trees, there will be a paperback available on Amazon in a few days. As I say in the introduction, this book is a conversation starter, so I'd be very interested to hear thoughts and reactions from readers. Enjoy! http://www.amazon.com/Coding-Software-Design-Process-ebook/dp/B0042X99SA Best, Jon - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicketstuff DataGrid by inmethod - how to download it?
http://repo2.maven.org/maven2/org/wicketstuff/inmethod-grid/1.4.12/ On Thu, Sep 30, 2010 at 11:05 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I'm currently contracting to a company that has very strict controls over the development desktops and a very thorough firewall which does not allow SVN connections in or out. How can we get the latest inmethod DataGrid without svn access? Is there a nightly build available somewhere? Chris
Re: alphabetical paging navigator
This can be implemented in a better way. See source code for navigation in wicket. But here is a simple example // Create a panel import java.util.LinkedList; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.model.IModel; import org.apache.wicket.model.LoadableDetachableModel; public abstract class AlphabeticalPanel extends Panel{ private static final long serialVersionUID = 1L; public AlphabeticalPanel(String id) { super(id); IModelListString alphabeticalModel = new LoadableDetachableModelListString(){ private static final long serialVersionUID = 1L; @Override protected ListString load() { ListString alphabet = new LinkedListString(); char letter; for(letter = 'A'; letter = 'Z'; letter++) { alphabet.add( + letter ); } return alphabet; } }; ListViewString alphabeticalView = new ListViewString( alphabeticalView,alphabeticalModel ){ private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItemString item) { final String character = item.getModelObject(); AjaxLinkVoid link = new AjaxLinkVoid( link ){ private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { onCharacterClicked(character,target); } }; link.add( new Label( character , character )); item.add( link ); } }; add( alphabeticalView ); } public abstract void onCharacterClicked( String character, AjaxRequestTarget target ); } // Add the panel to a page add( new AlphabeticalPanel( panel ){ private static final long serialVersionUID = 1L; @Override public void onCharacterClicked(String character,AjaxRequestTarget target) { // Here you get the char. Get the data from database and add another view with the data } }); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/alphabetical-paging-navigator-tp2837010p2859832.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 and OSGi
Hi Elke, On Fri, Oct 1, 2010 at 8:34 AM, Eike Kettner n...@eknet.org wrote: Hello! I developed a wicket app using OSGi (felix) where different bundles may contribute content to the wicket bundle. It works really nice using wicket 1.4.9+. Now I want to upgrade to wicket 1.5 and I run in problems starting the osgi container. It complains with the good-known classnotfound-exception for classes like IClusterable and AuthenticatedWebapplication which all are classes in packages exported by more than one bundle (for example org.apache.wicket or org.apache.wicket.authentication). Earlier I found this was a problem or at least a not-good for OSGi bundles. But as am using OSGi 4.2 this may work with some special treatment (I'v never tried this though). Do you think I'm doing something wrong or is this something on the road for 1.5? I don't have much experience with OSGi so can you give more details what exactly is the problem ? I think there is no difference in these two classes between 1.4.x and 1.5.x. They are packed the same way. There is no difference in the bnd-maven-plugin configuration as well. If you can find where the problem comes from then we can improve it. Also, since I have implemented ..UrlCodingStrategy and a custom RequestTarget I'm studying the new request handling in 1.5 sources to find out where to plugin my stuff. Are there any documentation besides source and javadoc for the new concepts? The code is good to read but if there are some pictures and text available it would be of great help. Unfortunately there is other documentation yet. The idea is: with application.getRootRequestMapperAsCompound().add(myMapper) you can add a IRequestMapper to the list of mappers. When a request comes Wicket asks all registered mappers whether they are able to process the request. Mappers with bigger org.apache.wicket.request.IRequestMapper.getCompatibilityScore(Request) are asked first. So Wicket calls org.apache.wicket.request.IRequestMapper.mapRequest(Request) for each mapper and if it returns non-null IRequestHandler then this is the handler which will be used. In #mapRequest(Request) use have to check request's segments (this is similar to httpServletRequest#getPath()) and request's parameters (get and post) and decide whether they match to your logic. After the handling of the request (org.apache.wicket.request.IRequestHandler.respond(IRequestCycle)) Wicket will ask the mapper to create a Url which will be used for all urlFor() calls, i.e. to create the urls for all links, form action, etc. via org.apache.wicket.request.IRequestMapper.mapHandler(IRequestHandler) There are IRequestMapper implementations for all url coding strategies from 1.4.x so you can use them as examples. Let us know if you need more help. Thanks in advance! Eike martin-g - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 and OSGi
Hi Martin, On [Fri, 01.10.2010 10:05], Martin Grigorov wrote: Hi Elke, On Fri, Oct 1, 2010 at 8:34 AM, Eike Kettner n...@eknet.org wrote: Hello! I developed a wicket app using OSGi (felix) where different bundles may contribute content to the wicket bundle. It works really nice using wicket 1.4.9+. Now I want to upgrade to wicket 1.5 and I run in problems starting the osgi container. It complains with the good-known classnotfound-exception for classes like IClusterable and AuthenticatedWebapplication which all are classes in packages exported by more than one bundle (for example org.apache.wicket or org.apache.wicket.authentication). Earlier I found this was a problem or at least a not-good for OSGi bundles. But as am using OSGi 4.2 this may work with some special treatment (I'v never tried this though). Do you think I'm doing something wrong or is this something on the road for 1.5? I don't have much experience with OSGi so can you give more details what exactly is the problem ? I think there is no difference in these two classes between 1.4.x and 1.5.x. They are packed the same way. There is no difference in the bnd-maven-plugin configuration as well. If you can find where the problem comes from then we can improve it. thank you for the quick reply. As you said, there shouldn't be any difference from 1.4 to 1.5 as the packaging remained the same. That sounds like a problem on my side. I will look into this more this evening. But to tell you the steps I took: I replaced the wicket-version in the poms, removed the resulting compile errors by rudely deleting everything... until I ended up with one application class (extending AuthenticatedWebApplication). And I maked sure the packages are properly stated in the Import-Package header. I put the wicket-request and wicket-util bundles in the container and tried to startup. Now, one thing I forgot to mention: I use spring (spring-dm) and have my web application created by the spring osgi extender. This means, my MyWebApplication class is declared as a spring bean and the spring extender cannot instantiate the class because it cannot find org.apache.wicket.authentication.AuthenticatedWebapplication. This is most detail I can give for now, I will give more later. Also, since I have implemented ..UrlCodingStrategy and a custom RequestTarget I'm studying the new request handling in 1.5 sources to find out where to plugin my stuff. Are there any documentation besides source and javadoc for the new concepts? The code is good to read but if there are some pictures and text available it would be of great help. Unfortunately there is other documentation yet. The idea is: with application.getRootRequestMapperAsCompound().add(myMapper) you can add a IRequestMapper to the list of mappers. When a request comes Wicket asks all registered mappers whether they are able to process the request. Mappers with bigger org.apache.wicket.request.IRequestMapper.getCompatibilityScore(Request) are asked first. So Wicket calls org.apache.wicket.request.IRequestMapper.mapRequest(Request) for each mapper and if it returns non-null IRequestHandler then this is the handler which will be used. In #mapRequest(Request) use have to check request's segments (this is similar to httpServletRequest#getPath()) and request's parameters (get and post) and decide whether they match to your logic. After the handling of the request (org.apache.wicket.request.IRequestHandler.respond(IRequestCycle)) Wicket will ask the mapper to create a Url which will be used for all urlFor() calls, i.e. to create the urls for all links, form action, etc. via org.apache.wicket.request.IRequestMapper.mapHandler(IRequestHandler) There are IRequestMapper implementations for all url coding strategies from 1.4.x so you can use them as examples. Let us know if you need more help. Thank you! This already helps me alot. Once I get the main idea, the code is alot easier to read! I will gladly ask questions here when they come. Eike Thanks in advance! Eike martin-g - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
legup / guic 2.0 + warp persist missing filter?
Hi Are there any reason why the legup archetyp are missing the persistence filter declaration? Like belov? filter filter-namewarpPersistFilter/filter-name filter-classcom.wideplay.warp.persist.PersistenceFilter/filter-class /filter filter-mapping filter-namewarpPersistFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 and OSGi
On Fri, Oct 1, 2010 at 10:05 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi Elke, On Fri, Oct 1, 2010 at 8:34 AM, Eike Kettner n...@eknet.org wrote: Hello! I developed a wicket app using OSGi (felix) where different bundles may contribute content to the wicket bundle. It works really nice using wicket 1.4.9+. Now I want to upgrade to wicket 1.5 and I run in problems starting the osgi container. It complains with the good-known classnotfound-exception for classes like IClusterable and AuthenticatedWebapplication which all are classes in packages exported by more than one bundle (for example org.apache.wicket or org.apache.wicket.authentication). Earlier I found this was a problem or at least a not-good for OSGi bundles. But as am using OSGi 4.2 this may work with some special treatment (I'v never tried this though). Do you think I'm doing something wrong or is this something on the road for 1.5? I don't have much experience with OSGi so can you give more details what exactly is the problem ? I think there is no difference in these two classes between 1.4.x and 1.5.x. They are packed the same way. There is no difference in the bnd-maven-plugin configuration as well. If you can find where the problem comes from then we can improve it. Also, since I have implemented ..UrlCodingStrategy and a custom RequestTarget I'm studying the new request handling in 1.5 sources to find out where to plugin my stuff. Are there any documentation besides source and javadoc for the new concepts? The code is good to read but if there are some pictures and text available it would be of great help. Unfortunately there is other documentation yet. Here I wanted to say ...there is *no*... :-) The idea is: with application.getRootRequestMapperAsCompound().add(myMapper) you can add a IRequestMapper to the list of mappers. When a request comes Wicket asks all registered mappers whether they are able to process the request. Mappers with bigger org.apache.wicket.request.IRequestMapper.getCompatibilityScore(Request) are asked first. So Wicket calls org.apache.wicket.request.IRequestMapper.mapRequest(Request) for each mapper and if it returns non-null IRequestHandler then this is the handler which will be used. In #mapRequest(Request) use have to check request's segments (this is similar to httpServletRequest#getPath()) and request's parameters (get and post) and decide whether they match to your logic. After the handling of the request (org.apache.wicket.request.IRequestHandler.respond(IRequestCycle)) Wicket will ask the mapper to create a Url which will be used for all urlFor() calls, i.e. to create the urls for all links, form action, etc. via org.apache.wicket.request.IRequestMapper.mapHandler(IRequestHandler) There are IRequestMapper implementations for all url coding strategies from 1.4.x so you can use them as examples. Let us know if you need more help. Thanks in advance! Eike martin-g - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 1.5 PageMap, accessStack, pageMapEvictionStrategy
Hi, I'm playing with wicket 1.5-M2.1 and i couldn't find PageMap. Problem is not in PageMap itself, but I have used operations on PageMap which I couldn't find in wicket 1.5. For example we used accessStack to find page of certain class and response with that page: Session.get().getDefaultPageMap().getAccessStack(); We have also created special eviction strategy (OneInstancePerClassEvictionStrategy implements IPageMapEvictionStrategy) that stores only one page instance from certain class. Is it possible to get list of pages for a certain window (former pagemap) in wicket 1.5? Is it possible to define eviction strategy in wicket 1.5? Maybe i was looking at wrong places. Am i missing something? Thanks. BR, Michal Kurtak - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 1.5 Ajax issue?
Hi I've possibly encountered an issue with the AjaxSelfUpdatingTimerBehavior. Suddently Ajax stops working, a browser refresh fixes the problem. If you need more details please tell. Snip from code: webMarkupContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration .seconds(2))); Cut from Console: 11:24:36.561 [31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692] DEBUG o.a.w.page.PageAccessSynchronizer - 31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692 acquired lock to page 11 11:24:36.561 [31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692] ERROR o.a.w.request.cycle.RequestCycle - Error during processing error message java.lang.IllegalStateException: Header was already written to response! at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:62) at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.setDateHeader(HeaderBufferingWebResponse.java:131) at org.apache.wicket.protocol.http.BufferedWebResponse$SetDateHeaderAction.invoke(BufferedWebResponse.java:193) at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:203) at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147) at org.apache.wicket.request.RequestHandlerStack.executeRequestHandler(RequestHandlerStack.java:84) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:279) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:232) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:131) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:184) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.wideplay.warp.persist.PersistenceFilter$3.run(PersistenceFilter.java:141) at com.wideplay.warp.persist.internal.Lifecycles.failEarlyAndLeaveNoOneBehind(Lifecycles.java:29) at com.wideplay.warp.persist.PersistenceFilter.doFilter(PersistenceFilter.java:155) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:322) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) 11:24:36.561 [31116...@qtp-11596093-2 -
Re: Wicket 1.5 Ajax issue?
Forgot to show that I of course did set these: webMarkupContainer.setOutputMarkupId(true); webMarkupContainer.setOutputMarkupPlaceholderTag(true); 2010/10/1 nino martinez wael nino.martinez.w...@gmail.com: Hi I've possibly encountered an issue with the AjaxSelfUpdatingTimerBehavior. Suddently Ajax stops working, a browser refresh fixes the problem. If you need more details please tell. Snip from code: webMarkupContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration .seconds(2))); Cut from Console: 11:24:36.561 [31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692] DEBUG o.a.w.page.PageAccessSynchronizer - 31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692 acquired lock to page 11 11:24:36.561 [31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692] ERROR o.a.w.request.cycle.RequestCycle - Error during processing error message java.lang.IllegalStateException: Header was already written to response! at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:62) at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.setDateHeader(HeaderBufferingWebResponse.java:131) at org.apache.wicket.protocol.http.BufferedWebResponse$SetDateHeaderAction.invoke(BufferedWebResponse.java:193) at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:203) at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147) at org.apache.wicket.request.RequestHandlerStack.executeRequestHandler(RequestHandlerStack.java:84) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:279) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:232) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:131) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:184) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.wideplay.warp.persist.PersistenceFilter$3.run(PersistenceFilter.java:141) at com.wideplay.warp.persist.internal.Lifecycles.failEarlyAndLeaveNoOneBehind(Lifecycles.java:29) at com.wideplay.warp.persist.PersistenceFilter.doFilter(PersistenceFilter.java:155) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:322) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at
Re: Wicket 1.5 Ajax issue?
ticket please + quckstart ;-) On Fri, Oct 1, 2010 at 11:59 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Forgot to show that I of course did set these: webMarkupContainer.setOutputMarkupId(true); webMarkupContainer.setOutputMarkupPlaceholderTag(true); 2010/10/1 nino martinez wael nino.martinez.w...@gmail.com: Hi I've possibly encountered an issue with the AjaxSelfUpdatingTimerBehavior. Suddently Ajax stops working, a browser refresh fixes the problem. If you need more details please tell. Snip from code: webMarkupContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration .seconds(2))); Cut from Console: 11:24:36.561 [31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692] DEBUG o.a.w.page.PageAccessSynchronizer - 31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692 acquired lock to page 11 11:24:36.561 [31116...@qtp-11596093-2 - /wicket/page?0-1.IBehaviorListener.0-containerrandom=0.5862126137481692] ERROR o.a.w.request.cycle.RequestCycle - Error during processing error message java.lang.IllegalStateException: Header was already written to response! at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:62) at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.setDateHeader(HeaderBufferingWebResponse.java:131) at org.apache.wicket.protocol.http.BufferedWebResponse$SetDateHeaderAction.invoke(BufferedWebResponse.java:193) at org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:439) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:203) at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147) at org.apache.wicket.request.RequestHandlerStack.executeRequestHandler(RequestHandlerStack.java:84) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:279) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:288) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:232) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:131) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:184) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.wideplay.warp.persist.PersistenceFilter$3.run(PersistenceFilter.java:141) at com.wideplay.warp.persist.internal.Lifecycles.failEarlyAndLeaveNoOneBehind(Lifecycles.java:29) at com.wideplay.warp.persist.PersistenceFilter.doFilter(PersistenceFilter.java:155) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:322) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926) at
Re: Wicket 1.5 PageMap, accessStack, pageMapEvictionStrategy
Hi Michal, PageMap is completely removed from 1.5. You'll need to play with IPageManager, IPageStore, and/or IDataStore implementations. Take a look at http://github.com/martin-g/wicket-cassandra-datastore/blob/master/src/test/java/org/wicketstuff/datastore/cassandra/demo/DemoApplication.java to see how to configure them and check the javadocs of these classes to find what settings can be configured. On Fri, Oct 1, 2010 at 11:15 AM, Michal Kurtak michal.kur...@gmail.comwrote: Hi, I'm playing with wicket 1.5-M2.1 and i couldn't find PageMap. Problem is not in PageMap itself, but I have used operations on PageMap which I couldn't find in wicket 1.5. For example we used accessStack to find page of certain class and response with that page: Session.get().getDefaultPageMap().getAccessStack(); We have also created special eviction strategy (OneInstancePerClassEvictionStrategy implements IPageMapEvictionStrategy) that stores only one page instance from certain class. Is it possible to get list of pages for a certain window (former pagemap) in wicket 1.5? Is it possible to define eviction strategy in wicket 1.5? Maybe i was looking at wrong places. Am i missing something? Thanks. BR, Michal Kurtak - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bug in Wicket Push TimerChannelService when used with background threads
I just realized that the current session is also bound to the thread context. Would it make sense to attach the Session to the background thread using the same way we do it for the Application? E.g. Session oldSession = Session.exists() ? Session.get() : null; Session.set(_session); try { ... invoke... } finally { if (oldSession == null) Session.unset(); else Session.set(oldSession); } Without doing this, the exception IllegalSateException: You can only locate or create sessions in the context of a request cycle may be thrown. Seb On 01.10.2010 00:42, Rodolfo Hansen wrote: On Thu, 2010-09-30 at 23:48 +0200, Sebastian wrote: There was an issue in your patch where the application could be left in the ThreadContext, which was fixed, Hi Rodolfo, I think you are referring to try { Application.set(_application); methods[m].invoke(o, parameters); } finally { Application.set(originalApplication); if (originalApplication != null) Application.set(originalApplication); } The problem is if this code is executed in a separate thread the originalApplication will be null. If you just omit the null check in the finally clause the setter will throw an IllegalArgumentException. So to remove the app from the ThreadContext we would have to call Application.unset() instead: if (originalApplication == null) Application.unset(); else Application.set(originalApplication); you are right, although i checked the source for set and didn't see the throw... amended in the 1.4 branches Regards, Seb On 30.09.2010 23:08, Rodolfo Hansen wrote: Hi Sebastian, your patch is in: trunk (1.5) 1.4 branch (future 1.4.13 release) and 1.4.12 There was an issue in your patch where the application could be left in the ThreadContext, which was fixed, as well as a simplification in the trigger function. On Wed, 2010-09-29 at 21:39 +0200, Sebastian wrote: Hi, there is a problem in the Push TimerChannelService implementation: Callbacks do not work reliable when they are invoked from non-Web threads. The There is no application attached to current thread WicketRuntimeException will occur in such a case. The attached patch fixes this issue. Regards, Seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
problems with redirectToInterceptPage
Hi All, I'm having some trouble with 'redirectToInterceptPage' and would appreciate any help you can provide I have a 'login' link on my page - PageA. My intention is that: 1. if the user clicks on the 'login' link the user will be forwarded to the Index page, which includes the standard Wicket SignInPanel (the Index page is similar to the gmail start/splash page) 2. If the user successfully authenticates, the user should be returned back to PageA- the original page. Currently: 1. the user clicks the 'login' link and is forwarded to the Index page 2. on successful authentication, the user stays on the Index page Some details: 1. PageA is a bookmarkable page with 2 page parameters. Sample URL is http://localhost:8080/PageA?id=1authKey=f68d282f-7552-404b-b0b1-96fadc7b04dc 2. The User does not have to be authenticated to view PageA. An authenticated user will be able to see an additional panel (I haven't got to this bit yet) 3. My login link has the standard onClick function with redirectToInterceptPage(new Index()); My debugging shows: 1. User sign-in process works - i.e. the user is successfully authenticated (using Spring-Security) 2. The continueToOriginalDestination() method returns true 3. getURL() called from the onClick method of the 'login' link returns ?wicket:interface=:4:header:signin::ILinkListener:: and not the bookmarkable URL as I expected I have tried throwing a RestartResponseAtInterceptPageException but this does not work. My feeling is that the correct URL is not being saved in the PageMap therefore the application is not able to return the user to the target page. Has anyone experienced this problem? Any idea what the fix is? Any suggestions greatly appreciated. Thanks, Nim -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-redirectToInterceptPage-tp2892437p2892437.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Serialization
Hi, is it possible to configure a wicket app in a way that definitely will use page serialization/deserializion on each request and will not hold any page/component instances between requests in memory? I'd like to use this during development time to test some aspects of my wicket components. regards, seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Workflow diagrams in wicket?
Hi I don't think there is any wicket implementation right now. But you can probably build something to do it. It looks like there are JSF components (I assume that you are looking for the same kind of wicket integration) that allow diagram creation. If you have access to the source you should look and see how they do it and try and adapt it for wicket. See page 22 in this presentation: http://www.java-forum-stuttgart.de/jfs/2006/folien/C2_Mouly_ILOG.pdf It seems to suggest there is a JViews servlet that processes requests from the browser. If you can figure out the javascript calls from the JSF version getting a custom wicket component to emit the appropriate javascript should be straight forward. You should also look at how other wicket + javascript integrations work for some inspiration on how this can be done. Regards, Mike Hi, Does anyone know how to use IBM iLOG JViews with wicket framework? Can someone refer me some examples? I want to show a work-flow diagram based on the inputs. Regards, Subbu. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
LegUp - updated
LegUp [1][2] has been updated to use the latest available versions of Wicket, Spring, Hibernate, Scala and wiQuery. The JBoss maven repository location (for Hibernate / JPA) has also been updated to point to the new one. LegUp gives you a head start creating projects using various combinations of the following: Wicket 1.4.12 Guice 2.0 Spring 3.0.4 Warp Persist (latest build, 2.0) JPA 2.0 Hibernate 3.5.6-Final wiQuery 1.0.2 Scala 2.8.0 (final) Regards - Peter jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/
Re: Forms ajax doesn't update components models
I have to submit only info of selected combo option. But i can't show entire form when combo changes because part of form is fixed. If i select auto, only info of auto_info_panel matters. The same way to persona. I don't know if you were asking that. I hope i answered correctly. Thanks! --Mensaje original-- De: vov Para: users@wicket.apache.org Responder a: users@wicket.apache.org Asunto: Re: Forms ajax doesn't update components models Enviado: 1 oct, 2010 04:19 How it currently must work? Example: Your open the page - change your Combo to 'AUTO' - input data to AutoInfoPanel and press 'Registrar' OR Your open the page - change your Combo to 'AUTO' - input data to AutoInfoPanel - change your Combo to 'PERSONA' - input data to PersonaInfoPanel and press 'Registrar'. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Forms-ajax-doesn-t-update-components-models-tp2730857p2854298.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Tito
ModalWindow causes 'Submit Button not visible' exception
Hi everybody, I'm facing the following problem. I've got a page with a wicket form and just one submit button. When I press return key in a form field the form is submitted with no problem. Inside form I've one link that opens a ModalWindow via ajax. This window contains another wicket form which is submitted by a IndicatingAjaxButton. The problem comes when I hit return key on parent page's form after I've opened ModalWindow. In this case I get the following exception: org.apache.wicket.WicketRuntimeException: Submit Button window's button name is not visible. It seems that even if I've closed window its submit button is still be active. However the problem seems affect Firefox and Opera. Chrome it's ok, but I didn't test it on IE. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: rich UI
something like http://www.smartclient.com/smartgwt/showcase/#layout_windows_autosize -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/rich-UI-tp2744207p2909582.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket and HttpServletRequestWrapper
Hi, I am trying to implement Wicket1.4.10 + Wicket-Auth-role + Spring Security + SSO (SiteMinder).. I am mocking siteMinder by using a Filter that is invoked first after each request, this filter wraps the original HttpServletRequest by my MockRequest. MockRequest adds 2 headers SM_USER and SM_ROLE. In a debug mode, I can see the MockRequest passed through 2 Spring Security filters (SecurityContextPersistenceFilter and preauth.RequestHeaderAuthenticationFilter)..and all the request headers set: Get which points to my next page and 2 SiteMinder headers. However, the third filter in the chain, WicketFilter, creates a new request and I loose my Get next page and my 2 siteMinder headers WicketFilter doFilter(){ ... if (lastModified == -1){ boolean requestHandledByWicket = doGet(httpServletRequest, httpServletResponse); if (requestHandledByWicket == false){ chain.doFilter(request, response); } } } doGet(){ .. // Create a new webrequest to wrap the request final WebRequest request = webApplication.newWebRequest(servletRequest); } Any request will bring me to the home page Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-HttpServletRequestWrapper-tp2910960p2910960.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Exception handling for components inside a page
I have a Wicket page which is a dashboard composed of a number of panels. The actual panels are only known in runtime and are added to a RepeatingView. That's because I have a modular application, and each module can contribute panels to the dashboard. The modularity issue is well solved and working as expected. My problem is when any of the panels throws an Exception. In that case Wicket directs me to my error page. I would like to be able to handle the exception on the panel level and just replace the panel area with some error notification, but the other panels would still be shown. That way I have to find out what's going on with that panel, but the users can still use the rest of the dashboard. Is there any hook point where I could include a handler? I can control the instantiation of the panel, but I would still have to handle any exception during the render phase, but I can't figure out where I could do this. Best Regards -- Rui Fernando Hayashi - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: automatically sizing modal window
I need that my modal window works with a page :(. On Tue, Sep 28, 2010 at 9:00 AM, Anna Simbirtsev asimbirt...@gmail.comwrote: I think if the modal window is a panel, not a Page, then it auto sizes its height. On Mon, Sep 27, 2010 at 5:41 PM, Martin Grigorov mgrigo...@apache.org wrote: patches are welcome especially if they work cross-browser ;-) On Mon, Sep 27, 2010 at 11:23 PM, mzem...@osc.state.ny.us wrote: Sounds like a nice feature, however be careful, if the content is too large the close button may be off-screen and make it impossible to close. So maybe it should auto adjust within the bounds of the screen... From: andrea del bene andrea.on@libero.it To: users@wicket.apache.org Date: 09/27/2010 05:04 PM Subject:Re: automatically sizing modal window Hi Martin, what I'd like to have is a window that automatically adjusts its height and width in order to ensure that all its content it's always visible without scrollbars. I think it could be done with some JavaScript code. Do you think it's possible to implement such behavior? Thank you in advance! Can you give more information about this feature, please. Either here or in the ticket. What are the current obstacles? How do you want it to be? Etc. On Sun, Sep 26, 2010 at 3:49 PM, andrea del beneandrea.on@libero.itwrote: On 09/25/2010 02:30 PM, Fernando Wermus wrote: I would like so much this feature. It is so important to me! On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamaujoshnet2...@gmail.com wrote: Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content? the default size seems sometimes too big and sometimes too small for the contents. Regards. Josh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information. -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Slow wicket page on specific server
Hi, I don't know if any of you have experienced this but any feedback is welcome. On my local server the checkout page renders in less than a second. On the deployment server it also renders in less than a second. We are now upograding to a new server but the same page takes 10 seconds to render. It is the same apache tomcat version and exactly the same code. All the other pages is the same speed. The checkoutpage contains alot of Ajax and ajax updates. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Slow-wicket-page-on-specific-server-tp2914155p2914155.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket on Google App Engine support for IPageStore on BigTable
Like I've tweeted a few days ago, I've implemented a BigTableGAEPageStore for Wicket so we can advance another step further full compatibility with Google App Engine. The project can be seen at http://code.google.com/p/gawcket It is a fork of wicket-gae-template with a modified Guestbook to not use LoadableDetachableModel and the BigTableGAEPageStore. With this said, you can go to http://gawcket.appspot.com and test it. Submit the form a few times and then modify the URL to reference an older version. You can check this video on YouTube to see how data is being stored at GAE's Datastore: http://youtu.be/ObvA9ao8U2Q I just hope I've done everything correctly on this implementation. So I ask the experts to take a look, and more important: to try it on your apps that run on more than one CPU at GAE. Thank you, Long live Wicket!! Bruno Borges Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld
problem with Ajax and BookmarkablePage
Hello all, I seem to have a problem with BookmarkablePage and it triggering a full page rebuild after an ajax call, while the Ajax call was only meant to update several fields. The situation is as follows; Our application has a grid with input fields, we use an Ajax behaviour on this grid to process input in these fields and update other fields when values have changed based on the input. Only the values are sent over and updated, not the wicket panels the inputs were on. Now after this Ajax update request has finished, for some reason the page gets rebuild completely (constructor is called through newInstance()). This didn't happen before (we are doing a large refactoring of the app), and none of the recent changes looks like they could have caused this problem, though ofcourse I might have missed something. I tried to trace the problem, but it goes deep into wicket and that it has something to do with the BookmarkablePageRequestTarget is as far as I got. Anyone have any idea on what could cause this problem and how to fix it? Thanks in advance for your time. Regards, Arjan Zwaan.
Re: Wicket Serialization
wicket already tests serialization for you in dev mode -igor On Fri, Oct 1, 2010 at 5:37 AM, Sebastian nospam...@gmx.net wrote: Hi, is it possible to configure a wicket app in a way that definitely will use page serialization/deserializion on each request and will not hold any page/component instances between requests in memory? I'd like to use this during development time to test some aspects of my wicket components. regards, seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ModalWindow causes 'Submit Button not visible' exception
jira+quickstart please -igor On Fri, Oct 1, 2010 at 6:24 AM, Andrea Del Bene andrea.on@libero.it wrote: Hi everybody, I'm facing the following problem. I've got a page with a wicket form and just one submit button. When I press return key in a form field the form is submitted with no problem. Inside form I've one link that opens a ModalWindow via ajax. This window contains another wicket form which is submitted by a IndicatingAjaxButton. The problem comes when I hit return key on parent page's form after I've opened ModalWindow. In this case I get the following exception: org.apache.wicket.WicketRuntimeException: Submit Button window's button name is not visible. It seems that even if I've closed window its submit button is still be active. However the problem seems affect Firefox and Opera. Chrome it's ok, but I didn't test it on IE. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Slow wicket page on specific server
Have you tried to do a thread dump while it is responding to the request? My guess is it some network related issue, i.e. firewall, DNS or something along the lines. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Slow-wicket-page-on-specific-server-tp2914155p2916656.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and HttpServletRequestWrapper
On Fri, Oct 1, 2010 at 3:59 PM, yferahi yfer...@yahoo.com wrote: Hi, I am trying to implement Wicket1.4.10 + Wicket-Auth-role + Spring Security + SSO (SiteMinder).. I am mocking siteMinder by using a Filter that is invoked first after each request, this filter wraps the original HttpServletRequest by my MockRequest. MockRequest adds 2 headers SM_USER and SM_ROLE. In a debug mode, I can see the MockRequest passed through 2 Spring Security filters (SecurityContextPersistenceFilter and preauth.RequestHeaderAuthenticationFilter)..and all the request headers set: Get which points to my next page and 2 SiteMinder headers. However, the third filter in the chain, WicketFilter, creates a new request and I loose my Get next page and my 2 siteMinder headers WicketFilter doFilter(){ ... if (lastModified == -1){ boolean requestHandledByWicket = doGet(httpServletRequest, httpServletResponse); if (requestHandledByWicket == false){ chain.doFilter(request, response); } } } doGet(){ .. // Create a new webrequest to wrap the request final WebRequest request = webApplication.newWebRequest(servletRequest); This creates Wicket's org.apache.wicket.protocol.http.WebRequest (actually ServletWebRequest) and the original HttpServletRequest is preserved as a member. Use #getHttpServletRequest() to get it. } Any request will bring me to the home page Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-HttpServletRequestWrapper-tp2910960p2910960.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Exception handling for components inside a page
no, there isnt. exceptions that occur during render time are very hard to recover from. what you can do is place every panel into an iframe. -igor On Fri, Oct 1, 2010 at 7:14 AM, Rui Fernando Hayashi rui.haya...@tecsinapse.com.br wrote: I have a Wicket page which is a dashboard composed of a number of panels. The actual panels are only known in runtime and are added to a RepeatingView. That's because I have a modular application, and each module can contribute panels to the dashboard. The modularity issue is well solved and working as expected. My problem is when any of the panels throws an Exception. In that case Wicket directs me to my error page. I would like to be able to handle the exception on the panel level and just replace the panel area with some error notification, but the other panels would still be shown. That way I have to find out what's going on with that panel, but the users can still use the rest of the dashboard. Is there any hook point where I could include a handler? I can control the instantiation of the panel, but I would still have to handle any exception during the render phase, but I can't figure out where I could do this. Best Regards -- Rui Fernando Hayashi - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: problem with Ajax and BookmarkablePage
if wicket is resolving BookmarkablePageRequestTarget then it thinks it is being sent a bookmarkable url. check which url is being sent by the ajax request. -igor On Fri, Oct 1, 2010 at 7:40 AM, A. Zwaan a.zw...@finan.nl wrote: Hello all, I seem to have a problem with BookmarkablePage and it triggering a full page rebuild after an ajax call, while the Ajax call was only meant to update several fields. The situation is as follows; Our application has a grid with input fields, we use an Ajax behaviour on this grid to process input in these fields and update other fields when values have changed based on the input. Only the values are sent over and updated, not the wicket panels the inputs were on. Now after this Ajax update request has finished, for some reason the page gets rebuild completely (constructor is called through newInstance()). This didn't happen before (we are doing a large refactoring of the app), and none of the recent changes looks like they could have caused this problem, though ofcourse I might have missed something. I tried to trace the problem, but it goes deep into wicket and that it has something to do with the BookmarkablePageRequestTarget is as far as I got. Anyone have any idea on what could cause this problem and how to fix it? Thanks in advance for your time. Regards, Arjan Zwaan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Problem Deploying Wicket/JPA (EclipseLink) App to Glassfish
Found the answer in this post: http://stackoverflow.com/questions/1617191/deploy-war-through-netbeans-o nto-glassfish-v3-beta I needed to change the web.xml version to 2.5 web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 Shelli -Original Message- From: Shelli Orton Sent: Thursday, September 30, 2010 4:42 PM To: users@wicket.apache.org Subject: Problem Deploying Wicket/JPA (EclipseLink) App to Glassfish Hi, I have a small Wicket app that I can deploy to Glassfish v3 without any problems. I also have a JAX-RS webservice that includes a jar file that contains JPA entity beans and stateless service beans that deploys successfully. However, when I try to deploy a different Wicket application that makes use of the same entity/service jar, I get this exception: SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method java.lang.RuntimeException: Unable to load EJB module. DeploymentContext does not contain any EJB Check archive to ensure correct packaging for C:\Program Files\glassfishv3\glassfish\domains\domain1\applications\MyApp at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:133) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63) at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175) snip The same dependent jar files are included in both the Wicket and web service wars. Does anyone know if this a Wicket/JPA/Glassfish issue or something else? Thanks! Shelli - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: legup / guic 2.0 + warp persist missing filter?
Hi Nino, I assume you mean the jWeekend legup? Ive just checked and both of the wicket warp archetypes have the filter, which archetype and version do you mean (we updated the versions today, but I don't think we changed any web.xml files)? -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com On 1 October 2010 09:53, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Are there any reason why the legup archetyp are missing the persistence filter declaration? Like belov? filter filter-namewarpPersistFilter/filter-name filter-classcom.wideplay.warp.persist.PersistenceFilter/filter-class /filter filter-mapping filter-namewarpPersistFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 1.4.12 Ajax problems
Hi, I just tried migrating our app from 1.4.8 to 1.4.12. However I'm having a lot of trouble with ajax submits now. I cannot get anything to work. I'm getting various problems depending on the browser. Such errors as: stack overflow in line 433 (IE7) Wicket.WUPB.Def is null or not an object (line 554) (IE7) Wicket.WUPB is undefined (Firefox). It must be something we're not doing or missing. Anyone got an ideas before I go spend a day or 2 trying to figure this out. thanks for any tips. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket and HttpServletRequestWrapper
Hi, I am trying to implement Wicket1.4.10 + Wicket-Auth-role + Spring Security + SSO (SiteMinder).. I am mocking siteMinder by using a Filter that is invoked first after each request, this filter wraps the original HttpServletRequest by my MockRequest. MockRequest adds 2 headers SM_USER and SM_ROLE. In a debug mode, I can see the MockRequest passed through 2 Spring Security filters (SecurityContextPersistenceFilter and preauth.RequestHeaderAuthenticationFilter) and then to WicketFilter. The problem is that WebRequestCycleProcessor always picks up the Home page as the requested page. The process flow is: WicketFilter { doFilter(){ ... doGet() } doGet(){ .. RequestCycle.request() } } RequestCycle { request(){ step() } step(){ ... case RESOLVE_TARGET : { // resolve the target of the request using the request parameters final IRequestTarget target = processor.resolve(this, request.getRequestParameters()); } } WebRequestCycleProcessor{ resolve{ ... // See whether this request points to a bookmarkable page if (requestParameters.getBookmarkablePageClass() != null) { target = resolveBookmarkablePage(requestCycle, requestParameters); } .. // See whether this request points to the home page else if (Strings.isEmpty(path) || (/.equals(path))){ target = resolveHomePageTarget(requestCycle, requestParameters); } } } The call requestParameters.getBookmarkablePageClass always return null. In requestParameters object I can see the para: queryString set to my requested page: wicket:bookmarkablePage=:wicket.story9.page.Home The resole method always ends up at target = resolveHomePageTarget(requestCycle, requestParameters); A partial dump of request object: GET /1WicketExample/?wicket:bookmarkablePage=:web.wicket.story9.page.Home HTTP/1.1 Accept: image/gif, Referer: http://localhost:8080/1WicketExample/ I appreciate any help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-HttpServletRequestWrapper-tp2930919p2930919.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Best practice for DropDownChoice?
Hi, I was looking at many threads here about that matter and even more google links, after not really being able to properly use examples from Wicket in Action and few others. So I wonder - what's the best and most common way to implement DropDownChoice and map the value at the same time [well, option that'd easily work with radio buttons too]. I have seen many suggestions that were creating even few classes, then extended them, added other stuff. There must be easier solution, right? :) All I want is some displayed value [easy to localis too of course] + mapping it to int value [I am fine with creating new variable and then changing real one, instead of trying to map it to some class at once]. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-for-DropDownChoice-tp2937257p2937257.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: legup / guic 2.0 + warp persist missing filter?
hmm, the guice warp 2.0 version.. But no problem if it's there.. Must have been a glitch on my side then.. 2010/10/1 Richard Wilkinson richardjohnwilkin...@gmail.com: Hi Nino, I assume you mean the jWeekend legup? Ive just checked and both of the wicket warp archetypes have the filter, which archetype and version do you mean (we updated the versions today, but I don't think we changed any web.xml files)? -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com On 1 October 2010 09:53, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Are there any reason why the legup archetyp are missing the persistence filter declaration? Like belov? filter filter-namewarpPersistFilter/filter-name filter-classcom.wideplay.warp.persist.PersistenceFilter/filter-class /filter filter-mapping filter-namewarpPersistFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Long running browser with wicket..?
HI Im in the midst of developing an application which will be displayed on a coupled of screens per site, where the boxes won't be restarted until a problem occurs. So have any one had experience with long running IE / FF / SF or Chrome against wickets ajax? My firefox just crashed, but I have a ton of plugins on my own machine which probably are causing it.. regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bug in Wicket Push TimerChannelService when used with background threads
Added. On Fri, 2010-10-01 at 13:14 +0200, Sebastian wrote: I just realized that the current session is also bound to the thread context. Would it make sense to attach the Session to the background thread using the same way we do it for the Application? E.g. Session oldSession = Session.exists() ? Session.get() : null; Session.set(_session); try { ... invoke... } finally { if (oldSession == null) Session.unset(); else Session.set(oldSession); } Without doing this, the exception IllegalSateException: You can only locate or create sessions in the context of a request cycle may be thrown. Seb On 01.10.2010 00:42, Rodolfo Hansen wrote: On Thu, 2010-09-30 at 23:48 +0200, Sebastian wrote: There was an issue in your patch where the application could be left in the ThreadContext, which was fixed, Hi Rodolfo, I think you are referring to try { Application.set(_application); methods[m].invoke(o, parameters); } finally { Application.set(originalApplication); if (originalApplication != null) Application.set(originalApplication); } The problem is if this code is executed in a separate thread the originalApplication will be null. If you just omit the null check in the finally clause the setter will throw an IllegalArgumentException. So to remove the app from the ThreadContext we would have to call Application.unset() instead: if (originalApplication == null) Application.unset(); else Application.set(originalApplication); you are right, although i checked the source for set and didn't see the throw... amended in the 1.4 branches Regards, Seb On 30.09.2010 23:08, Rodolfo Hansen wrote: Hi Sebastian, your patch is in: trunk (1.5) 1.4 branch (future 1.4.13 release) and 1.4.12 There was an issue in your patch where the application could be left in the ThreadContext, which was fixed, as well as a simplification in the trigger function. On Wed, 2010-09-29 at 21:39 +0200, Sebastian wrote: Hi, there is a problem in the Push TimerChannelService implementation: Callbacks do not work reliable when they are invoked from non-Web threads. The There is no application attached to current thread WicketRuntimeException will occur in such a case. The attached patch fixes this issue. Regards, Seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Slow wicket page on specific server
Here is some traces. - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6 prio=6 t id=0x0a5f5800 nid=0x13cc in Object.wait() [0x0e50f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-5 prio=6 t id=0x0a5f4000 nid=0x130c in Object.wait() [0x0e40f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4 prio=6 t id=0x0a5f4800 nid=0xad4 in Object.wait() [0x0e30f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3 prio=6 t id=0x0a5f3000 nid=0x132c in Object.wait() [0x0e20f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-2 prio=6 t id=0x0b602000 nid=0x988 in Object.wait() [0x0e10f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1 prio=6 t id=0x0b0f4000 nid=0x6a4 in Object.wait() [0x0e00f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-0 prio=6 t id=0x0adcc800 nid=0xe04 in Object.wait() [0x0df0f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja va:428) - locked 0x0001e5b18860 (a java.lang.Object) at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47 ) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:518) timerFactory prio=6 tid=0x0bbe5000 nid=0xfc0 in Object.wait() [0x0 de0f000]
Re: Wicket 1.5 and OSGi
Hello again, I just had a look at the wicket packages of 1.4.12 and 1.5-M2.1 and I found some differences. For example, wicket 1.5 has a new artifact wicket-request and comparing the package structure there are some changes, which are probably related to my problem: wicket-1.4.12.jar: org.apache `-- wicket |-- authorization | |-- Action.java | |-- AuthorizationException.java | |-- strategies | | |-- action | | | |-- ActionAuthorizationStrategy.java | | | `-- IActionAuthorizer.java | | |-- CompoundAuthorizationStrategy.java | | `-- page | | |-- AbstractPageAuthorizationStrategy.java | | `-- SimplePageAuthorizationStrategy.java | |-- UnauthorizedActionException.java | `-- UnauthorizedInstantiationException.java wicket-auth-roles-1.4.12.jar: org.apache `-- wicket |-- authentication | |-- AuthenticatedWebApplication.java | |-- AuthenticatedWebSession.java | |-- pages | | |-- SignInPage_fr.html `-- authorization `-- strategies `-- role |-- AbstractRoleAuthorizationStrategy.java | |-- ActionPermissions.java `-- Roles.java This looks good to OSGi as the classes are in disjoint packages in the two bundles. This changed in 1.5. There the structure looks like this: wicket-1.5-M2.1.jar org.apache `-- wicket |-- authentication | |-- IAuthenticationStrategy.java | `-- strategy | |-- DefaultAuthenticationStrategy.java | `-- NoOpAuthenticationStrategy.java wicket-auth-roles-1.5-M2.1.jar org.apache `-- wicket |-- authentication | |-- AuthenticatedWebApplication.java | |-- AuthenticatedWebSession.java | |-- pages | | |-- SignInPage.html | | |-- SignInPage.java The problem is the package org.apache.wicket.authentication now, because the bundle wicket-1.5-M2.1 and wicket-auth-roles-1.5-M2.1 provide classes from this package. The same refers to org.apache.wicket.request, which is exported by wicket-request and wicket in 1.5. This leads to problems in an OSGi environment. OSGi discourages those scenarios, but still offers an solution for this. A (rather old) blog post on osgi.org gives some hints on this: http://www.osgi.org/blog/2006/04/misconceptions-about-osgi-headers.html It probably gets to weird loading errors if two classes from the same package want to access each others fields or methods with package access, but come from a different classloader... I'm no OSGi expert, so I don't know the right OSGi header that solves this. Of course, a real solution would be to only have disjoint packages :) I usually put the artifact name in my package name, to avoid any clashes (in fact it makes sense in my module structure). Kind regards, Eike On [Fri, 01.10.2010 10:05], Martin Grigorov wrote: Hi Elke, On Fri, Oct 1, 2010 at 8:34 AM, Eike Kettner n...@eknet.org wrote: Hello! I developed a wicket app using OSGi (felix) where different bundles may contribute content to the wicket bundle. It works really nice using wicket 1.4.9+. Now I want to upgrade to wicket 1.5 and I run in problems starting the osgi container. It complains with the good-known classnotfound-exception for classes like IClusterable and AuthenticatedWebapplication which all are classes in packages exported by more than one bundle (for example org.apache.wicket or org.apache.wicket.authentication). Earlier I found this was a problem or at least a not-good for OSGi bundles. But as am using OSGi 4.2 this may work with some special treatment (I'v never tried this though). Do you think I'm doing something wrong or is this something on the road for 1.5? I don't have much experience with OSGi so can you give more details what exactly is the problem ? I think there is no difference in these two classes between 1.4.x and 1.5.x. They are packed the same way. There is no difference in the bnd-maven-plugin configuration as well. If you can find where the problem comes from then we can improve it. Also, since I have implemented ..UrlCodingStrategy and a custom RequestTarget I'm studying the new request handling in 1.5 sources to find out where to plugin my stuff. Are there any documentation besides source and javadoc for the new concepts? The code is good to read but if there are some pictures and text available it would be of great help. Unfortunately there is other documentation yet. The idea is: with application.getRootRequestMapperAsCompound().add(myMapper) you can add a IRequestMapper to the list of mappers. When a request comes Wicket asks all registered mappers whether they are able to process the request. Mappers with bigger org.apache.wicket.request.IRequestMapper.getCompatibilityScore(Request) are asked first. So Wicket calls org.apache.wicket.request.IRequestMapper.mapRequest(Request) for each mapper and if it
instantiate panels in a spring bean
I am trying to instantiate some panels inside init-method of a spring bean . I end up getting this excpetion org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMenuItems': Invocation of init method failed; nested exception is org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main please tell me is it not right to instantiate a panel inside a spring bean ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2946859.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: instantiate panels in a spring bean
What do you plan on doing with these panels? They can't be re-used. On Fri, Oct 1, 2010 at 5:02 PM, fachhoch fachh...@gmail.com wrote: I am trying to instantiate some panels inside init-method of a spring bean . I end up getting this excpetion org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMenuItems': Invocation of init method failed; nested exception is org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main please tell me is it not right to instantiate a panel inside a spring bean ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2946859.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prevent guest session from expiring
I did not do any session binding. Do you mean binding HttpSession to Wicket session? What negative side effects will it have? Any docs on this? Thanks On Thu, Sep 30, 2010 at 3:30 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: did you bind the session? On Wed, Sep 29, 2010 at 6:52 PM, Alec Swan alecs...@gmail.com wrote: Hello, I decided to set MaxInactiveInterval to 0 in onAfterRender in order to prevent guest sessions from expiring. So, my code looks like this: @Override protected void onAfterRender() { super.onAfterRender(); ((ServletWebRequest) this.getRequest()).getHttpServletRequest().getSession().setMaxInactiveInterval(0); } However, this does not work because for some reason a new getRequest().getHttpServletRequest().getSession().session object every time onAfterRender() is called, e.g. if I refresh the page. Why am I getting StandardSession objects with different ids in onAfterRender()? Thanks On Sat, Sep 18, 2010 at 9:39 AM, Martin Grigorov mgrigo...@apache.org wrote: Wicket Session is stored in HttpSession. See http://download.oracle.com/docs/cd/E17802_01/products/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/http/HttpSession.html#setMaxInactiveInterval%28int%29 On Sat, Sep 18, 2010 at 5:30 PM, Alec Swan alecs...@gmail.com wrote: Are there any methods I can override in Wicket WebSession to make it never expire? On Tue, Sep 14, 2010 at 10:25 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: You can set session timeout per-session: ((ServletWebRequest) request).getHttpServletRequest().getSession().setMaxInactiveInterval(seconds); ** Martin 2010/9/15 Jeremy Thomerson jer...@wickettraining.com: On Tue, Sep 14, 2010 at 10:51 PM, Alec Swan alecs...@gmail.com wrote: Isn't there a way to instruct Wicket not to create a session if the user is not logged in? a session will always be created. it won't be bound (and therefore stored) if you have all stateless pages - which isn't an easy task -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Serialization
hi, on a local copy of Wicket I now temporarily modified the SecondLevelCacheSessionStore class and always have the SecondLevelCachePageMap.getLastPage() method return null. This enforces that a freshly deserialized page object instance is used on each request. The reason why I am doing this is that e.g. the wicketstuff wicket-push projects keeps references to component instances in singleton services, e.g. the TimerPushService. Modifications on these components between requests only work as long wicket will reuse the same object instances on the next request. Since an HTTP session may be serialized by an app server between requests based an some 2nd level caching strategy it is important to simulate this to detect code that relies on specific object references and thus may break in such a case. seb On 01.10.2010 16:43, Igor Vaynberg wrote: wicket already tests serialization for you in dev mode -igor On Fri, Oct 1, 2010 at 5:37 AM, Sebastiannospam...@gmx.net wrote: Hi, is it possible to configure a wicket app in a way that definitely will use page serialization/deserializion on each request and will not hold any page/component instances between requests in memory? I'd like to use this during development time to test some aspects of my wicket components. regards, seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Serialization
sounds wrong, no one should be keeping references to components -igor On Fri, Oct 1, 2010 at 3:32 PM, Sebastian nospam...@gmx.net wrote: hi, on a local copy of Wicket I now temporarily modified the SecondLevelCacheSessionStore class and always have the SecondLevelCachePageMap.getLastPage() method return null. This enforces that a freshly deserialized page object instance is used on each request. The reason why I am doing this is that e.g. the wicketstuff wicket-push projects keeps references to component instances in singleton services, e.g. the TimerPushService. Modifications on these components between requests only work as long wicket will reuse the same object instances on the next request. Since an HTTP session may be serialized by an app server between requests based an some 2nd level caching strategy it is important to simulate this to detect code that relies on specific object references and thus may break in such a case. seb On 01.10.2010 16:43, Igor Vaynberg wrote: wicket already tests serialization for you in dev mode -igor On Fri, Oct 1, 2010 at 5:37 AM, Sebastiannospam...@gmx.net wrote: Hi, is it possible to configure a wicket app in a way that definitely will use page serialization/deserializion on each request and will not hold any page/component instances between requests in memory? I'd like to use this during development time to test some aspects of my wicket components. regards, seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Serialization
the push service does not directly keep references, this happens because of the usage of anonymous classes created within the components, e.g. callbacks, eventlisteners, e.g.: final Label label = new Label(label,); final IPushTarget pushTarget = getTimerPushService().installPush(this); backendService.doStuff(new ProgressListener() { public void onEventChange(final Event event) { if (pushTarget.isConnected()) { label.setDefaultModelObject(event.message); pushTarget.addComponent(label); pushTarget.trigger(); } } = this will work as long as the current page does not get deserialized between request. the backendService gets the listener object which in turn has a reference to the label. as long as one can not enforce during dev time that pages are really deserialized you have no really chance to encounter the problem and thus fix it. On 02.10.2010 00:40, Igor Vaynberg wrote: sounds wrong, no one should be keeping references to components -igor On Fri, Oct 1, 2010 at 3:32 PM, Sebastiannospam...@gmx.net wrote: hi, on a local copy of Wicket I now temporarily modified the SecondLevelCacheSessionStore class and always have the SecondLevelCachePageMap.getLastPage() method return null. This enforces that a freshly deserialized page object instance is used on each request. The reason why I am doing this is that e.g. the wicketstuff wicket-push projects keeps references to component instances in singleton services, e.g. the TimerPushService. Modifications on these components between requests only work as long wicket will reuse the same object instances on the next request. Since an HTTP session may be serialized by an app server between requests based an some 2nd level caching strategy it is important to simulate this to detect code that relies on specific object references and thus may break in such a case. seb On 01.10.2010 16:43, Igor Vaynberg wrote: wicket already tests serialization for you in dev mode -igor On Fri, Oct 1, 2010 at 5:37 AM, Sebastiannospam...@gmx.netwrote: Hi, is it possible to configure a wicket app in a way that definitely will use page serialization/deserializion on each request and will not hold any page/component instances between requests in memory? I'd like to use this during development time to test some aspects of my wicket components. regards, seb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicketstuff DataGrid by inmethod - how to download it?
Thanks! Is there a page with that link on it anywhere? I searched for quite some time to find a distribution of the inmethod grid that wasn't just the svn link. Maybe links to the wicketstuff should be made more obvious from the main wicket site because I couldn't find it and I've been wicketing since 2006! Chris -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Friday, 1 October 2010 5:43 PM To: users@wicket.apache.org Subject: Re: Wicketstuff DataGrid by inmethod - how to download it? http://repo2.maven.org/maven2/org/wicketstuff/inmethod-grid/1.4.12/ On Thu, Sep 30, 2010 at 11:05 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I'm currently contracting to a company that has very strict controls over the development desktops and a very thorough firewall which does not allow SVN connections in or out. How can we get the latest inmethod DataGrid without svn access? Is there a nightly build available somewhere? Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: problems with redirectToInterceptPage
Could it be related to this issue I raised a little while ago: https://issues.apache.org/jira/browse/WICKET-2912 Try the fix and see if your problem goes away like mine did. Regards, Chris Colman -Original Message- From: nimmy [mailto:nim_sa...@hotmail.com] Sent: Friday, 1 October 2010 9:22 PM To: users@wicket.apache.org Subject: problems with redirectToInterceptPage Hi All, I'm having some trouble with 'redirectToInterceptPage' and would appreciate any help you can provide I have a 'login' link on my page - PageA. My intention is that: 1. if the user clicks on the 'login' link the user will be forwarded to the Index page, which includes the standard Wicket SignInPanel (the Index page is similar to the gmail start/splash page) 2. If the user successfully authenticates, the user should be returned back to PageA- the original page. Currently: 1. the user clicks the 'login' link and is forwarded to the Index page 2. on successful authentication, the user stays on the Index page Some details: 1. PageA is a bookmarkable page with 2 page parameters. Sample URL is http://localhost:8080/PageA?id=1authKey=f68d282f-7552-404b-b0b1- 96fadc7b04dc 2. The User does not have to be authenticated to view PageA. An authenticated user will be able to see an additional panel (I haven't got to this bit yet) 3. My login link has the standard onClick function with redirectToInterceptPage(new Index()); My debugging shows: 1. User sign-in process works - i.e. the user is successfully authenticated (using Spring-Security) 2. The continueToOriginalDestination() method returns true 3. getURL() called from the onClick method of the 'login' link returns ?wicket:interface=:4:header:signin::ILinkListener:: and not the bookmarkable URL as I expected I have tried throwing a RestartResponseAtInterceptPageException but this does not work. My feeling is that the correct URL is not being saved in the PageMap therefore the application is not able to return the user to the target page. Has anyone experienced this problem? Any idea what the fix is? Any suggestions greatly appreciated. Thanks, Nim -- View this message in context: http://apache- wicket.1842946.n4.nabble.com/problems-with-redirectToInterceptPage- tp2892437p2892437.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Coding - On Software Design Process
Excellent! A few people have pointed out that I didn't include a Table of Contents on the product page. I updated Amazon, but the change won't show up for 2-4 days, so here it is: Table of Contents Introduction About this Book About the Author Acknowledgements Chapter 1 - Practicing the Art Chapter 2 - Creating a Foundation Being Present Feeling Thinking Chapter 3 - Practicing in Reality Incrementalism Questioning Thinking Small Scaling Thought Chapter 4 - Writing Code as Language Precision Grammar Narrative Chapter 5 - Modeling Analysis Synthesis Building Practical Micro-Architectures Improving Java Type Arithmetic Type Enhancers Type Binding Improving Software Industry Process Chapter 6 - Faith Trust Objects Trust Your Team Trust Yourself -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Coding-On-Software-Design-Process-tp2720854p2952139.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: instantiate panels in a spring bean
Hey dont mean to arge here but Why not? You can get beans in PROTOTYPE scope (does not have to be re-usable; this aspect of Spring is all about IOC) and leverage IOC to inject panels rather than hard wiring them in the code. I like the idea. fachhoch can you please paste the code, I'd like to work on the problem. I'm a dud in Wicket compared to other geniuses around here but I'd like to have a crack if you dont mind. Note: Ensure your beans are PROTOTYPE not SINGLETON (default); since you really should not retain references to Wicket components ...as Igor mentioned in a recent post! thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2952155.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: instantiate panels in a spring bean
...lol I just realized both you guys have over 200 posts. haha ..well i'd still like to have a crack at the problem :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2952156.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Coding - On Software Design Process
looks nice.. I'll grab a copy too :) It'll probably stack nice along side uncle bobs clean code... 2010/10/2 Jonathan Locke jonathan.lo...@gmail.com: Excellent! A few people have pointed out that I didn't include a Table of Contents on the product page. I updated Amazon, but the change won't show up for 2-4 days, so here it is: Table of Contents Introduction About this Book About the Author Acknowledgements Chapter 1 - Practicing the Art Chapter 2 - Creating a Foundation Being Present Feeling Thinking Chapter 3 - Practicing in Reality Incrementalism Questioning Thinking Small Scaling Thought Chapter 4 - Writing Code as Language Precision Grammar Narrative Chapter 5 - Modeling Analysis Synthesis Building Practical Micro-Architectures Improving Java Type Arithmetic Type Enhancers Type Binding Improving Software Industry Process Chapter 6 - Faith Trust Objects Trust Your Team Trust Yourself -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Coding-On-Software-Design-Process-tp2720854p2952139.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org