Ajax indicator turning off
Hi, I notice that when I have two ajax requests overlapping the indicator is turned off when the first one completes. Start AJAX request A - turns on the indicator Start AJAX request B Return AJAX request A - turns off the indicator Return AJAX request B Would a possible solution be to replace the call to wicketShow(id) with something like wicketIncrementShow(id) which increments a counter against the id and wicketDecrementHide(id) would only hide the component when the count got to 0? John. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how do you implement OpenEntityManagerInView for JEE applications?
I came to Wicket from JSF where I used Seam for managing persistence contexts. Actually the latest stable version of Seam is incompatible with Wicket 1.4, and I realized that the project uses just three things from Seam. One of the critical things is Seam-managed persistence context. When you don't use Seam long-running conversations it just degrades to something like Open Session in View. What solution do you use for JEE applications? AFAIK there are several projects that use JPA in contextless form. But it does not work so simply with JNDI and JTA in JEE container.
Make sure you are not calling Component#getString() inside your Component's constructor.
Hi! I get this warning: Make sure you are not calling Component#getString() inside your Component's constructor. Because normally I implement wicket code like this: XYZComponent extends xxx { public XYZComponent(String id) { add(new Label(idxyz, getString(localized_label)); // Sometimes like this, sometimes just using wicket:message key=xyz/ } } Is there some other phase to have the Component code, other than constructor such that it is always called ONCE per object instantiation and preferably in the some specific order if there are child components? Or what is the best-practice to avoid these warnings: Make sure you are not calling Component#getString() inside your Component's constructor. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Reading Wicket source code
Also one very benefiial point of view is just to code something and when you find a bug (either in your own code or Wicket), debug through wicket source and find the cause. If it's a wicket bug - contribute quickstart to jira that repeats the bug. I have learned myself quite a bit by doing this. However, I am still a bit puzzled with wicket's request cycle, there seems to still to be some magic going on ... ;) ** Martin 2009/7/24 Pierre Goupil goupilpie...@gmail.com: Good evening, In order to learn Wicket as well as good Java coding ^ ^, I'd like to read Wicket source code. It's been a couple of months since I use it, so I have a general user-view on it. Do you have advice ? Where should I start it all ? Is there any typical workflow through the code-base for such a matter ? Hope to hear from you soon, guys ! Regards, Pierre -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, l'amitié) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Make sure you are not calling Component#getString() inside your Component's constructor.
Martin Makundi schrieb: Or what is the best-practice to avoid these warnings: Make sure you are not calling Component#getString() inside your Component's constructor. I would use a StringResourceModel. Then the value for getString will be used in rendering not at construction time. XYZComponent extends xxx { public XYZComponent(String id) { add(new Label(idxyz, new StringResourceModel(localized_label)); //Sometimes like this, sometimes just using wicket:message key=xyz/ } } Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how do you implement OpenEntityManagerInView for JEE applications?
two solutions come to mind: 1. openEMinViewFilter (see Spring source for such an implementation) 2. custom requestcycle that does this for you (search the list, the wiki, or see Wicket in Action chapter 13) Martijn On Sat, Jul 25, 2009 at 10:37 AM, Vladimir Kovalyukkoval...@gmail.com wrote: I came to Wicket from JSF where I used Seam for managing persistence contexts. Actually the latest stable version of Seam is incompatible with Wicket 1.4, and I realized that the project uses just three things from Seam. One of the critical things is Seam-managed persistence context. When you don't use Seam long-running conversations it just degrades to something like Open Session in View. What solution do you use for JEE applications? AFAIK there are several projects that use JPA in contextless form. But it does not work so simply with JNDI and JTA in JEE container. -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: reload a radiogroup
I think some example code would help to answer this. Maybe you didn't refresh the model of the radio group or your instantiation is not valid. But with this description we can only shot the dark. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Continue to support Wicket 1.2 in WicketForge
Mostly Wicket 1.4 at my company, just 1 Wicket 1.3 project left. Regards, Erik. Nick Heudecker wrote: Hi, For those of you that don't know, I maintain WicketForge, the Wicket plugin for IDEA (http://plugins.intellij.net/plugin/?id=1545 or http://code.google.com/p/wicketforge). Currently, WicketForge supports Wicket 1.2 in addition to 1.3 and 1.4, but I'd like to remove support for 1.2 to clean a few things up. First, I want to see if people are still using 1.2 with WF. My question to you is: are you still using WicketForge with Wicket 1.2? Thanks for your time and feedback. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Make sure you are not calling Component#getString() inside your Component's constructor.
Ah.. ok. It [StringResourceModel] just feels so much like a waste I have forgotten about it ;) Tnx. ** Martin 2009/7/25 Per Newgro per.new...@gmx.ch: Martin Makundi schrieb: Or what is the best-practice to avoid these warnings: Make sure you are not calling Component#getString() inside your Component's constructor. I would use a StringResourceModel. Then the value for getString will be used in rendering not at construction time. XYZComponent extends xxx { public XYZComponent(String id) { add(new Label(idxyz, new StringResourceModel(localized_label)); //Sometimes like this, sometimes just using wicket:message key=xyz/ } } Cheers Per - 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:getting SortableListView Value
I have a sortableListView on a form slv=new SortableListView(itemList, item, mlist2) { public void populateItemInternal(final ListItem item) { item.add(new Label(label, item.getModel())); } }; formm.add(slv); I would like to get the list of the new value in the view when the form is submited, can someone explain how to do that. Thanks in advance Regards Stephen
how to create a BookmarkablePageLink for the particular page instance
I created a breadcrumbs panel that automatically creates a series of bookmarkable links from the home page to the page that displays a details of currently viewing entity instance. Usually it looks like for instance home|folders|folder1|folder1.1|document From the other hand when the user comes to this particular document by opening folders and then the document itself she produces a page versions that makes page history. There is an button back or close on the page that returns the user to the previous page in the history. As the result breadcrumbs and history forms two different ways of navigation but they both are natural and required. The problem is that clicking on the particular link in breadcrumb panel leads to creating a new version of page. I use HybridUrlCodingStrategy and it seems pretty possible to add version attributes to the url. But I don't know how to do it in compatible manner. It seems that the only link that forms the bookmarkable URL using hybrid strategy is the BookmarkablePageLink. But it does not accept anything from the particular page version. Please help
Re: how to create a BookmarkablePageLink for the particular page instance
Bookmarkable page doesn't have state and can be created using PageParameters. Each request for a bookmarkable page will cause a creation of new instance of that page. In your case, if the page instance have some state (is session relative), then there is no way to create a bookmarkable link for it. Alex Objelean Vladimir K wrote: I created a breadcrumbs panel that automatically creates a series of bookmarkable links from the home page to the page that displays a details of currently viewing entity instance. Usually it looks like for instance home|folders|folder1|folder1.1|document From the other hand when the user comes to this particular document by opening folders and then the document itself she produces a page versions that makes page history. There is an button back or close on the page that returns the user to the previous page in the history. As the result breadcrumbs and history forms two different ways of navigation but they both are natural and required. The problem is that clicking on the particular link in breadcrumb panel leads to creating a new version of page. I use HybridUrlCodingStrategy and it seems pretty possible to add version attributes to the url. But I don't know how to do it in compatible manner. It seems that the only link that forms the bookmarkable URL using hybrid strategy is the BookmarkablePageLink. But it does not accept anything from the particular page version. Please help -- View this message in context: http://www.nabble.com/how-to-create-a-BookmarkablePageLink-for-the-particular-page-instance-tp24659102p24659329.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to create a BookmarkablePageLink for the particular page instance
It seems that I can override page factory in session and re-use existing page basing on the parameters values. Alexandru Objelean wrote: Bookmarkable page doesn't have state and can be created using PageParameters. Each request for a bookmarkable page will cause a creation of new instance of that page. In your case, if the page instance have some state (is session relative), then there is no way to create a bookmarkable link for it. Alex Objelean Vladimir K wrote: I created a breadcrumbs panel that automatically creates a series of bookmarkable links from the home page to the page that displays a details of currently viewing entity instance. Usually it looks like for instance home|folders|folder1|folder1.1|document From the other hand when the user comes to this particular document by opening folders and then the document itself she produces a page versions that makes page history. There is an button back or close on the page that returns the user to the previous page in the history. As the result breadcrumbs and history forms two different ways of navigation but they both are natural and required. The problem is that clicking on the particular link in breadcrumb panel leads to creating a new version of page. I use HybridUrlCodingStrategy and it seems pretty possible to add version attributes to the url. But I don't know how to do it in compatible manner. It seems that the only link that forms the bookmarkable URL using hybrid strategy is the BookmarkablePageLink. But it does not accept anything from the particular page version. Please help -- View this message in context: http://www.nabble.com/how-to-create-a-BookmarkablePageLink-for-the-particular-page-instance-tp24659102p24659419.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to create a BookmarkablePageLink for the particular page instance
If you can restore the page state from passed PageParameters, then it is doable... Alex Objelean Vladimir K wrote: It seems that I can override page factory in session and re-use existing page basing on the parameters values. Alexandru Objelean wrote: Bookmarkable page doesn't have state and can be created using PageParameters. Each request for a bookmarkable page will cause a creation of new instance of that page. In your case, if the page instance have some state (is session relative), then there is no way to create a bookmarkable link for it. Alex Objelean -- View this message in context: http://www.nabble.com/how-to-create-a-BookmarkablePageLink-for-the-particular-page-instance-tp24659102p24659430.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to create a BookmarkablePageLink for the particular page instance
Certainly, parameters are just name of object class and object code/id. But actually I'm saying that I can create store PageReference with its related PageParametes in session and using PageParameters from the request to obtain a Page instance from page store. The only thing I'm not sure is the lifecycle of values in such a cache. AFAK overriding page factory is the only way how to make a page singleton in the session. There are plenty of pages that should behave as singleton. There would be the other way if it was easy to split Tree and its DYNAMIC state. Unfortunately tree is very difficult in restoring its state. The user don't want to expand tree items every time she has to return back to the page. Alexandru Objelean wrote: If you can restore the page state from passed PageParameters, then it is doable... Alex Objelean -- View this message in context: http://www.nabble.com/how-to-create-a-BookmarkablePageLink-for-the-particular-page-instance-tp24659102p24659535.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Serialization of a page with a long and dynamic list of records
I am learning and evaluating Wicket now and have a question to ask. I have a page that displays a long list (say 2000) of records. This page is dynamic, which means the list of records may change for each reload. I understand that I should use loadable detachable model. My question is: does Wicket serialize each page reload with all the records on a particular reload? Thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.4 is ready for production?
:-) Yes. I have log. There were several crashes. But I could not find out the problem fast. Looks like it is localization problem. I didn’t put default properties file with language specific string resources. As result – if you locale among five predefined locales – it works well. But if no, we have crash. I will fix it for next build. MartinM wrote: Does not help for me. You do have logs ;) ? ** Martin 2009/7/21 Steamus steam...@gmail.com: M-m-m... May be it is some redirect problems? Try this: http://www.sport-pferde-portal.net/shglobal/home It is the same. I just cheked the site by using http://browsershots.org/ Truly, I am puzzled, I got message - The server at www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been updated. Please try again. But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got snapshots for my site from a lot of browsers (3 minutes ago). I can't explain it for this moment. aldaris wrote: Crash for me too: Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630 Fedora/3.5-1.fc11 Firefox/3.5 Maybe something locale-related stuff isn't working. Log files could be helpful to debug this. Peter 2009-07-20 23:15 keltezéssel, Martin Makundi írta: Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 ** Martin 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com: On Tue, 21 Jul 2009 00:00:04 +0300 Martin Makundimartin.maku...@koodaripalvelut.com wrote: No. It crashes. Restart your browser and you will see. Works for me. Carl-Eric - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24660224.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[ANN] wicket-tree project
Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first look: http://code.google.com/p/wicket-tree/ Have fun Sven - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANN] wicket-tree project
Any live examples, would be nice? ** Martin 2009/7/25 Sven Meier s...@meiers.net: Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first look: http://code.google.com/p/wicket-tree/ Have fun Sven - 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: [ANN] wicket-tree project
I didn't found live examples neither, but after checking out ( svn checkout http://wicket-tree.googlecode.com/svn/trunk/ wicket-tree-read-only ) and building the project, there is a war file, which you could deploy and see the examples. // at the chekcedfoldercontent (nested tree) example if I check the parent, then the kids won't be checked in, is this for purpose? Is there any chance, that a tree would come, which nodes are links (maybe folders could disable this function) and the opening of the nodes is via ajax, but the links would be normal bookmarkablepagelinks, so in the markup wouldn't be only #'s? :) (as you can see: http://www.wicket-library.com/wicket-examples/ajax/tree/simple.3 when you open the folders, the nodes gonna be links to simple.3# , so instead of simple.3# i'm wanna a normal link) Great work anyway Regards, Peter 2009-07-25 21:29 keltezéssel, Martin Makundi írta: Any live examples, would be nice? ** Martin 2009/7/25 Sven Meiers...@meiers.net: Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first look: http://code.google.com/p/wicket-tree/ Have fun Sven - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Serialization of a page with a long and dynamic list of records
This question is not related to the subject of the topic. Anyway, the answer for you question is: - if you are using LoadableDetachableModel, then the list is not serialized with each request... this is the main feature of this type of model, it detaches its data at the end of each request cycle. Alex Objelean David Chang-5 wrote: I am learning and evaluating Wicket now and have a question to ask. I have a page that displays a long list (say 2000) of records. This page is dynamic, which means the list of records may change for each reload. I understand that I should use loadable detachable model. My question is: does Wicket serialize each page reload with all the records on a particular reload? Thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/how-to-create-a-BookmarkablePageLink-for-the-particular-page-instance-tp24659102p24661437.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANN] wicket-tree project
Hi, the project contains an example application: mvn jetty:run ... should get you going. The usual Jetty start class is contained too. So do a mvn eclipse:eclipse ... and you're able to play with it in Eclipse. Regards Sven On Sa, 2009-07-25 at 22:29 +0300, Martin Makundi wrote: Any live examples, would be nice? ** Martin 2009/7/25 Sven Meier s...@meiers.net: Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first look: http://code.google.com/p/wicket-tree/ Have fun Sven - 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: [ANN] wicket-tree project
Hi Peter, // at the chekcedfoldercontent (nested tree) example if I check the parent, then the kids won't be checked in, is this for purpose? no purpose here, it's just an example and has nothing to do with the tree code. Is there any chance, that a tree would come, which nodes are links (maybe folders could disable this function) and the opening of the nodes is via ajax, but the links would be normal bookmarkablepagelinks This is just a matter of tree usage, create you custom content and do what ever you want. See the new example: http://code.google.com/p/wicket-tree/source/browse/trunk/wicket-tree/src/main/java/wickettree/examples/content/BookmarkableFolderContent.java Hope this helps Sven , so in the markup wouldn't be only #'s? :) (as you can see: http://www.wicket-library.com/wicket-examples/ajax/tree/simple.3 when you open the folders, the nodes gonna be links to simple.3# , so instead of simple.3# i'm wanna a normal link) Great work anyway Regards, Peter 2009-07-25 21:29 keltezéssel, Martin Makundi írta: Any live examples, would be nice? ** Martin 2009/7/25 Sven Meiers...@meiers.net: Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first look: http://code.google.com/p/wicket-tree/ Have fun Sven - 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: [ANN] wicket-tree project
Cool, that was exactly, what I was looking for. Thanks. Peter 2009-07-26 00:06 keltezéssel, Sven Meier írta: Hi Peter, // at the chekcedfoldercontent (nested tree) example if I check the parent, then the kids won't be checked in, is this for purpose? no purpose here, it's just an example and has nothing to do with the tree code. Is there any chance, that a tree would come, which nodes are links (maybe folders could disable this function) and the opening of the nodes is via ajax, but the links would be normal bookmarkablepagelinks This is just a matter of tree usage, create you custom content and do what ever you want. See the new example: http://code.google.com/p/wicket-tree/source/browse/trunk/wicket-tree/src/main/java/wickettree/examples/content/BookmarkableFolderContent.java Hope this helps Sven , so in the markup wouldn't be only #'s? :) (as you can see: http://www.wicket-library.com/wicket-examples/ajax/tree/simple.3 when you open the folders, the nodes gonna be links to simple.3# , so instead of simple.3# i'm wanna a normal link) Great work anyway Regards, Peter 2009-07-25 21:29 keltezéssel, Martin Makundi írta: Any live examples, would be nice? ** Martin 2009/7/25 Sven Meiers...@meiers.net: Hi all, i would like to announce wicket-tree, a new project hosting a clean slate development of tree components for Wicket. The API has not been fully stabilized yet but you are invited to take a first look: http://code.google.com/p/wicket-tree/ Have fun Sven - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANN] wicket-tree project
So is the project a war (since it runs with jetty:run)? Wouldn't that make it hard to use in other projects? On Jul 25, 2009 6:18 PM, Major Péter majorpe...@sch.bme.hu wrote: Cool, that was exactly, what I was looking for. Thanks. Peter 2009-07-26 00:06 keltezéssel, Sven Meier írta: Hi Peter, // at the chekcedfoldercontent (nested tree) example if I check the parent, t...
Re: Serialization of a page with a long and dynamic list of records
I realized that it is not possible to support bookmarkable page links in breadcrumbs panel for already instantiated pages because it won't work with multiple browser windows and tabls. Therefore I can use bookmarkable links for non-instantiated pages only. It can be easily accomplished with existing components. Hmm ... wrong word. ... EASIER than overriding page factory. -- View this message in context: http://www.nabble.com/how-to-create-a-BookmarkablePageLink-for-the-particular-page-instance-tp24659102p24662729.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org