Re: WicketFilter.getLastModified creates a RequestCycle but does not clean it up

2009-11-09 Thread Peter Dotchev
created jira item https://issues.apache.org/jira/browse/WICKET-2566 Regards, Peter igor.vaynberg wrote: peter, please open a jira issue. looks like a bug to me. -igor On Sat, Nov 7, 2009 at 1:52 PM, Peter Dotchev dotc...@gmail.com wrote: Hi Wicketeers, I noticed that

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
Hi Ann, I've also encountered this problem, but with RadioChoice instead of DropDownChoice. This is the thread I started about it: http://mail-archives.apache.org/mod_mbox/wicket-users/200911.mbox/browser After all this thread, I still don't know what should I do to model, for instance, a

Re: Encoding Pageparameters

2009-11-09 Thread Sjoerd Schunselaar
Excuse me, it looks like a problem in my local firefox settings. Kind regards Sjoerd Schunselaar On Mon, Nov 9, 2009 at 10:05 AM, Sjoerd Schunselaar s.schunsel...@gmail.com wrote: Hello all, Is it possible to automatically encode PageParameters? When I put a String like bien-être in a

Autogenerating HTML files ...?

2009-11-09 Thread Ashley Aitken
Dear All, I have seen a feature in Wicket Bench (I think it is) that can automatically generate the Web component object construction hierarchy for a given Web form with Wicket ids. It's a neat feature. However, I am wondering if it would be possible to do the reverse. Could Wicket

org.omg.CORBA.BAD_OPERATION: The delegate has not been set! - exception on back button

2009-11-09 Thread zabian
Hi there, I am working on the project using Wicket and EJB3.0 on Glassfish AS. I've got such case: There is a page with some test, using Sateful bean. When you press a start button, the model using the bean is created, bean is beeing looked up on each start button pressed. When I change the

Re: org.omg.CORBA.BAD_OPERATION: The delegate has not been set! - exception on back button

2009-11-09 Thread Pieter Degraeuwe
Your Page (HomePage) contains a reference to your SpeedService EJB. Since that one is not serializable, your page cannot be serialized. A possible solution is to inject your ejb (by using for example @SpringBean). This makes serializable proxies, so your page can be serialized... 2009/11/9

Re: User count

2009-11-09 Thread vela
Hello again, can't we count it using the wicket application, some thing like this in jsp %! int i= 0;% % out.println(People visited +(++i)); % -- View this message in context: http://old.nabble.com/User-count-tp26253854p26265729.html Sent from the Wicket - User mailing list archive at

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread svenmeier
You want to select one value from a list of values, so obviously everything has to have the same type. These 'IdDescrBeans' smell like Struts, such constructs are not needed. What's wrong with the following: ListString genders = new ArrayListString(); list.add(M); list.add(F);

Re: org.omg.CORBA.BAD_OPERATION: The delegate has not been set! - exception on back button

2009-11-09 Thread Pieter Degraeuwe
I didn't do it myself yet, but have a look at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory (wicket-spring-1.4.1). On Mon, Nov 9, 2009 at 1:35 PM, zabian zabia...@gmail.com wrote: I just have noticed it could be a problem. Do you know any example how to create that

Re: Getting the Choose Option on page reload

2009-11-09 Thread Wilhelmsen Tor Iver
I have 2 drop-downs and a search button my page. When the page is loaded for the first time, the first option in both the drop-downs is Choose Option. Now if I select some value and click Search, the page is rendered again and the Choose Option is gone forever. But I want it back. How do I

Re: User count

2009-11-09 Thread Pieter Degraeuwe
restart your server and your hitcount drops to zero (I think you don't want that :-) ) On Mon, Nov 9, 2009 at 1:37 PM, vela vela@gmail.com wrote: Hello again, can't we count it using the wicket application, some thing like this in jsp %! int i= 0;% % out.println(People visited

Re: User count

2009-11-09 Thread Martin Makundi
External analytics is much more simpler to manage. ** Martin 2009/11/9 vela vela@gmail.com: Hello again, can't we count it using the wicket application, some thing like this in jsp %! int i= 0;% % out.println(People visited +(++i)); % --

SV: Get all active session objects

2009-11-09 Thread Wilhelmsen Tor Iver
Yep, we need something to take those obj out from there. Maybe a collection of weak references? - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Ernesto Reinaldo Barreiro
Why not use IChoiceRenderer? Ernesto On Mon, Nov 9, 2009 at 2:27 PM, Xavier López xavil...@gmail.com wrote: Hi Sven, Absolutely awesome. So sweet how problems vanish away when you know the right way to address them on Wicket: ). But, what if I had a list of countries in the database

Unnecessary method calls in IDataProvider?

2009-11-09 Thread Michael Sparer
Hey, I could have sworn that if a IDataProvider used in a DataView returns 0 as size, the iterator(int,int) method won't be called. But that assumption proved me wrong some minutes ago. Is there any specific reason why iterator gets called when the only possible result is an empty Iterator?

best approach for a criteria and result page

2009-11-09 Thread bernard.lupin
Hi all, I browsed a lot of wicket example and searched through many articles, but never found this classical web application example : I would have on the same page a form with some criteria, a search button and a result list : I enter some data, hit search and get the results under my criteria,

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
Hi Ernesto, Sven, Regarding the usage of localizeDisplayValues, I see that if I put simply M or F it also works. Wonderful! Now I can define a general description for M and F, and provide specialized ones in case of need (thinking about yes/no literals). But, could I someway define 'groups' of

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
Got it! Here is the code i got into. Improvements and critics are welcome ! class MappedModel extends Model { protected Map map; public String getDescription(Object id){ return (String) map.get(id); } } // Localized choices final MappedModel countryModel = new MappedModel(){

Re: Autogenerating HTML files ...?

2009-11-09 Thread Igor Vaynberg
i dont see why it wouldnt be possible. if you can instantiate a page you can use a visitor to visit all the components and generate approximately appropriate markup. perhaps if you had something working you would get more interest. -igor On Mon, Nov 9, 2009 at 1:57 AM, Ashley Aitken

Re: org.omg.CORBA.BAD_OPERATION: The delegate has not been set! - exception on back button

2009-11-09 Thread Igor Vaynberg
look for wicket-javaee project in wicket-stuff -igor On Mon, Nov 9, 2009 at 4:35 AM, zabian zabia...@gmail.com wrote: I just have noticed it could be a problem. Do you know any example how to create that serializable proxy using spring? Thanks. Regards, Wojtek. Pieter Degraeuwe pisze:

Re: Unnecessary method calls in IDataProvider?

2009-11-09 Thread Igor Vaynberg
jira issue please -igor On Mon, Nov 9, 2009 at 5:53 AM, Michael Sparer michael.spa...@gmx.at wrote: Hey, I could have sworn that if a IDataProvider used in a DataView returns 0 as size, the iterator(int,int) method won't be called. But that assumption proved me wrong some minutes ago. Is

Re: best approach for a criteria and result page

2009-11-09 Thread Igor Vaynberg
On Mon, Nov 9, 2009 at 6:21 AM, bernard.lu...@orange-ftgroup.com wrote: Hi all, I browsed a lot of wicket example and searched through many articles, but never found this classical web application example : I would have on the same page a form with some criteria, a search button and a result

Re: Autogenerating HTML files ...?

2009-11-09 Thread Casper Bang
Hi Ashley, I actually wrote the list regarding a similar idea about a year ago. It seems like a handy thing for RAD and for newbies struggling with keeping simple CRUD pages in sync. However I can offer nothing but an encurraging great idea, go for it. :) /Casper Igor Vaynberg wrote: i dont

serialization

2009-11-09 Thread Sam Barrow
Hi. Wondering if someone can help me with a serialization problem I'm having. To start off, the domain model in this application does not use serializable domain objects (the project is using db4o, which does not play well with serialized objects). I have a page with this code: IModelValueObject

Re: serialization

2009-11-09 Thread Igor Vaynberg
what does your listview's populateitem look like? -igor On Mon, Nov 9, 2009 at 9:50 AM, Sam Barrow s...@sambarrow.com wrote: Hi. Wondering if someone can help me with a serialization problem I'm having. To start off, the domain model in this application does not use serializable domain

Re: serialization

2009-11-09 Thread Sam Barrow
protected void populateItem(final ListItemValueObject item) { final Money price = getPricingService().calculatePrice(item.getModelObject()); add(new Label(price, price.toString())); } On Mon, 2009-11-09 at 09:56 -0800, Igor Vaynberg wrote: what does your listview's populateitem

Re: serialization

2009-11-09 Thread Igor Vaynberg
hrm, nothing interesting there. can you post the code for the entire page/panel... also the serialization checker should tell you the exact field that is holding the reference to the object further in its message... -igor On Mon, Nov 9, 2009 at 10:07 AM, Sam Barrow s...@sambarrow.com wrote:

Re: serialization

2009-11-09 Thread Sam Barrow
sorry sorry i made a mistake in the populateItem these is a nested listview populateItem(ListItemValueObject item) { final ValueObject valueObject = item.getModelObject(); add(new ListViewOtherValueObject(child, getOthers()) { populateItem(ListItemValueObject item)

Re: serialization

2009-11-09 Thread Martijn Dashorst
populateItem(*FINAL* ListItemValueObject item1) { add(new ListViewOtherValueObject(child, getOthers()) { populateItem(ListItemValueObject item2) { ValueObject valueObject1 = item1.getModelObject(); . } Martijn On Mon, Nov 9, 2009 at 7:12 PM,

Re: Autogenerating HTML files ...?

2009-11-09 Thread kellerautomat
Hi, I think you can use WicketTester for it: http://cwiki.apache.org/WICKET/testing-pages.html Use this method to dump the page: http://wicket.apache.org/docs/1.4/org/apache/wicket/util/tester/BaseWicketTester.html#dumpPage%28%29 Frido Casper Bang wrote: Hi Ashley, I actually wrote

RE: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Alex Rass
I am a newb here, so I may be way off, but this works for me: public final static ChoiceRenderer listRenderer = new ChoiceRenderer(description, id); Expose description and id on your model's object. And just add the listRenderer to the DDChoice (last param). Seems a lot simpler than what you

Re: Help me with setting up Ubuntu, NetBeans, Maven2, Wicket, Jetty and Google App Engine

2009-11-09 Thread Piotr Tarsa
Can you share your pom files? Just to know how other people deals with GAE. Also settings and profiles files would be helpful. 2009/11/7 Pieter Degraeuwe pieter.degrae...@systemworks.be: unfortunately, there are no public maven repositories that contain the needed artifacts. I did install them

Re: serialization

2009-11-09 Thread Michael Mosmann
Am Montag, den 09.11.2009, 13:07 -0500 schrieb Sam Barrow: protected void populateItem(final ListItemValueObject item) { final Money price = getPricingService().calculatePrice(item.getModelObject()); add(new Label(price, price.toString())); } is Money serializable? mm:)

Re: serialization

2009-11-09 Thread James Carman
It wouldn't matter because they're not injecting it into the components in any way. Notice they only call price.toString(). On Mon, Nov 9, 2009 at 3:25 PM, Michael Mosmann mich...@mosmann.de wrote: Am Montag, den 09.11.2009, 13:07 -0500 schrieb Sam Barrow: protected void populateItem(final

Re: serialization

2009-11-09 Thread Sam Barrow
It is. Problem was actually solved by Martijn's response. Thanks alot! On Mon, 2009-11-09 at 21:25 +0100, Michael Mosmann wrote: Am Montag, den 09.11.2009, 13:07 -0500 schrieb Sam Barrow: protected void populateItem(final ListItemValueObject item) { final Money price =

Inheritance strips XML header

2009-11-09 Thread Neil Curzon
Hi all, It seems that Wicket 1.4.3 is stripping the XML header when using page inheritance for layout. My super page defines the layout and has a ?xml header at the top. If a sub page has content, when wicket renders it, the ?xml header will be excluded. Strangely, for subclasses with no content

Re: User count

2009-11-09 Thread pieter claassen
You can also use your logger implementation and then log in a format that a log analysis tool can read. This however, is a very old style approach compared to analytics in my opinion. The quality of the analysis and ease of implementation with analytics is just so much better.

Re: User count

2009-11-09 Thread Pieter Degraeuwe
Have a look at http://www.statcounter.com/ , a free and easy to use analytics provider. On Tue, Nov 10, 2009 at 7:59 AM, pieter claassen pieter.claas...@gmail.comwrote: You can also use your logger implementation and then log in a format that a log analysis tool can read. This however, is a

Force page reload/re-render

2009-11-09 Thread pieter claassen
I have a link on a panel that is included in many pages. When the user clicks on the link, I change something in the user settings that will affect what gets displayed on the page. However, for that to work, I need to reload the page after the user clicked on the link as by default the other

Iterate over Pages in Pagemap

2009-11-09 Thread Giambalvo, Christian
Hi all, how to iterate over latest version of all pages in pagemap? All my Pages have the ability to reload the navigation, but to accomplish this, I need to tell the page to reload the navigation. So my first idea was to iterate over latest version of all pages in pagemap and call the