Ajax indicator turning off

2009-07-25 Thread John Patterson
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

how do you implement OpenEntityManagerInView for JEE applications?

2009-07-25 Thread Vladimir Kovalyuk
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

Make sure you are not calling Component#getString() inside your Component's constructor.

2009-07-25 Thread Martin Makundi
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)); //

Re: Reading Wicket source code

2009-07-25 Thread Martin Makundi
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.

Re: Make sure you are not calling Component#getString() inside your Component's constructor.

2009-07-25 Thread Per Newgro
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.

Re: how do you implement OpenEntityManagerInView for JEE applications?

2009-07-25 Thread Martijn Dashorst
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

Re: reload a radiogroup

2009-07-25 Thread Per Newgro
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,

Re: [OT] Continue to support Wicket 1.2 in WicketForge

2009-07-25 Thread Erik van Oosten
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,

Re: Make sure you are not calling Component#getString() inside your Component's constructor.

2009-07-25 Thread Martin Makundi
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

Re:getting SortableListView Value

2009-07-25 Thread Steve Olara
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

how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Vladimir Kovalyuk
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

Re: how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Alex Objelean
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

Re: how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Vladimir K
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

Re: how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Alex Objelean
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

Re: how to create a BookmarkablePageLink for the particular page instance

2009-07-25 Thread Vladimir K
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

Serialization of a page with a long and dynamic list of records

2009-07-25 Thread David Chang
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

Re: 1.4 is ready for production?

2009-07-25 Thread Steamus
:-) 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

[ANN] wicket-tree project

2009-07-25 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Martin Makundi
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Major Péter
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

Re: Serialization of a page with a long and dynamic list of records

2009-07-25 Thread Alex Objelean
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Major Péter
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

Re: [ANN] wicket-tree project

2009-07-25 Thread James Carman
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

Re: Serialization of a page with a long and dynamic list of records

2009-07-25 Thread Vladimir K
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