button click and Form with CompoundPropertyModel lose its data

2008-12-01 Thread itayh
Hi, I am creating a form in the next format: private abstract class EditForm extends Form{ public EditForm(String id, Poll poll) { /* * We wrap the poll bean with a CompoundPropertyModel, this allows * us to easily connect form components to

make invisible if model object is null

2008-12-01 Thread kan
I use the next construction very often: [markup] wicket:enclosure child=something pSomething here, description, comments etc: span wicket:id=somethinig/span/p /wicket:enclosure [java] add(new Label(something) { @Override public boolean isVisible() { return

updating a page when external event occurs

2008-12-01 Thread marino
Hello, I have a simple wicket application built around the DefaulDataTable example. In the same program I have an Event Listener class which is called outside the wicket application context. This class produces data that I would like to show in the current wicket page, but when I call any

Re: updating a page when external event occurs

2008-12-01 Thread Timo Rantalaiho
On Mon, 01 Dec 2008, marino wrote: I have a simple wicket application built around the DefaulDataTable example. In the same program I have an Event Listener class which is called outside the wicket application context. This class produces data that I would like to show in the current wicket

RES: make invisible if model object is null

2008-12-01 Thread Bruno Cesar Borges
Use a border -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 1 de dezembro de 2008 09:03 Para: users@wicket.apache.org Assunto: make invisible if model object is null I use the next construction very often: [markup] wicket:enclosure child=something

Re: updating a page when external event occurs

2008-12-01 Thread marino
Excerpts from the listener class // RemoteEventListener is an Interface of the GigaSpaces middleware // the class is very similar to the example UserProvider , and holds a list of user calendars; // I omit here details public class UserProvider extends SortableDataProvider implements

Re: make invisible if model object is null

2008-12-01 Thread Bruno Cesar Borges
Alright, this is my last try replying with MS Outlook. =) And I will also add more info to help with this thread. You can use borders to acomplish what you want. Here's an example: #JAVA public abstract class ConditionalHiddenBorder extends Border { public ConditionalHiddenBorder(String id)

Re make invisible if model object is null

2008-12-01 Thread Bruno Cesar Borges
Use a border PS: I hate Microsoft Outlook -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 1 de dezembro de 2008 09:03 Para: users@wicket.apache.org Assunto: make invisible if model object is null I use the next construction very often: [markup]

Re: updating a page when external event occurs

2008-12-01 Thread Timo Rantalaiho
On Mon, 01 Dec 2008, marino wrote: // this is the event listener method itself, called from the Gigaspaces library // when some eventon their space is detected It really sounds like it would be from within another thread, right? The best way would be to refactor your code so that Wicket code

Re: button click and Form with CompoundPropertyModel lose its data

2008-12-01 Thread Edvin Syse
If you create a new Poll object, there is no magic that will bind that to your form instead of the Poll object you wrapped in the CompoundPropertyModel. You could put the poll object as a local field member in the class, and use PropertyModel(poll, property-expression) for the fields instead.

SV: Bug of Wicket when iterate the form using iterator()?

2008-12-01 Thread Wilhelmsen Tor Iver
The only problem right now is the cast to Component[]. The fix is easy, just change it to Object[]. The optimization makes a lot of sense and there is reason why it can't really be simple. The simplest explanation is that the (synthetic) array classes both extend Object but are not in the

Re: button click and Form with CompoundPropertyModel lose its data

2008-12-01 Thread Igor Vaynberg
your buttons in different forms will submit the form they are in, so you lose any input form any other form. this is how html works - only one form can be submitted. wicket supports embedded forms, so if you embed all your other forms into one form the input should not be lost. -igor On Mon,

Re: make invisible if model object is null

2008-12-01 Thread Igor Vaynberg
we should add ibehavior.isVisibilityAllowed(Component) or something like that for 1.5 release. feel free to create a jira issue. -igor On Mon, Dec 1, 2008 at 3:03 AM, kan [EMAIL PROTECTED] wrote: I use the next construction very often: [markup] wicket:enclosure child=something pSomething

Re: updating a page when external event occurs

2008-12-01 Thread Igor Vaynberg
components should only be manipulated inside a servlet request. what you should do i store the data somewhere and then let the components update themselves during render by reading new data. -igor On Mon, Dec 1, 2008 at 4:21 AM, marino [EMAIL PROTECTED] wrote: Hello, I have a simple wicket

Re: make invisible if model object is null

2008-12-01 Thread kan
https://issues.apache.org/jira/browse/WICKET-1964 2008/12/1 Igor Vaynberg [EMAIL PROTECTED]: we should add ibehavior.isVisibilityAllowed(Component) or something like that for 1.5 release. feel free to create a jira issue. -igor On Mon, Dec 1, 2008 at 3:03 AM, kan [EMAIL PROTECTED] wrote: I

Monitor session size in Tomcat

2008-12-01 Thread Adriano dos Santos Fernandes
Hi! This is not a direct wicket question, but important for wicket usage, so I'm asking here... What you use to monitor Tomcat sessions size? (preferable something that I can use in production) I tried with JMX/jconsole and with LambdaProbe. The former doesn't seems to have that info, and

Javascript Wicket wrapper (like ExtGwt and SmartGWT) ?

2008-12-01 Thread Cédric Thiébault
Why don't we have some nice Javascript frameworks on top of Wicket like what exists for wrapping GWT ? http://extjs.com/explorer http://www.smartclient.com/smartgwt/showcase Is there a reason why people implements these wrappers for GWT and not for Wicket ? We should be able to do exactly the

Re: Monitor session size in Tomcat

2008-12-01 Thread Johan Compagner
you can monitor what wicket does with the IRequestLogger On Mon, Dec 1, 2008 at 16:13, Adriano dos Santos Fernandes [EMAIL PROTECTED] wrote: Hi! This is not a direct wicket question, but important for wicket usage, so I'm asking here... What you use to monitor Tomcat sessions size?

Re: Bug of Wicket when iterate the form using iterator()?

2008-12-01 Thread jWeekend
Yes, your suggestion should stop that runtime exception being thrown. A new (or more comprehensive) test for that method could confirm this. What I described addresses a not totally unrelated but slightly broader concern, and would not impact on any optimisations; it is not more important than

Re: Javascript Wicket wrapper (like ExtGwt and SmartGWT) ?

2008-12-01 Thread jWeekend
Cedric, I have just started looking at http://www.wickext.org Wickext . Is this the sort of thing you're thinking about? For version 1.0 we hope to bind widget state back to Wicket as well. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk thiebal wrote: Why don't we

Re: Bug of Wicket when iterate the form using iterator()?

2008-12-01 Thread Johan Compagner
i am busy fixing it but it is not as straightforward as just replacing it with Object[] On Mon, Dec 1, 2008 at 16:38, jWeekend [EMAIL PROTECTED] wrote: Yes, your suggestion should stop that runtime exception being thrown. A new (or more comprehensive) test for that method could confirm this.

Re: Bug of Wicket when iterate the form using iterator()?

2008-12-01 Thread Johan Compagner
fixed On Mon, Dec 1, 2008 at 16:48, Johan Compagner [EMAIL PROTECTED] wrote: i am busy fixing it but it is not as straightforward as just replacing it with Object[] On Mon, Dec 1, 2008 at 16:38, jWeekend [EMAIL PROTECTED]wrote: Yes, your suggestion should stop that runtime exception

Re: Monitor session size in Tomcat

2008-12-01 Thread Adriano dos Santos Fernandes
So does that mean there is nothing already made to monitor session size at container level instead of application level? Adriano Johan Compagner escreveu: you can monitor what wicket does with the IRequestLogger On Mon, Dec 1, 2008 at 16:13, Adriano dos Santos Fernandes [EMAIL PROTECTED]

Re: button click and Form with CompoundPropertyModel lose its data

2008-12-01 Thread Edvin Syse
I'm sorry, I see now that I misunderstood the question :) -- Edvin Igor Vaynberg skrev: your buttons in different forms will submit the form they are in, so you lose any input form any other form. this is how html works - only one form can be submitted. wicket supports embedded forms, so if

Re: Openid integration?

2008-12-01 Thread Nino Saturnino Martinez Vazquez Wael
Hmm just saw this : http://code.google.com/p/wicket-auth-openid/ Nino Saturnino Martinez Vazquez Wael wrote: Hi Guys Have any of you tried to do a openid integration ? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684

Re: [VOTE] Consistent naming for Wicket Stuff projects

2008-12-01 Thread Ned Collyer
If you can vote +1000 then.. that kinda defeats the purpose yeah ;) Martijn Dashorst wrote: voting is the apache way. It focusses discussions, and quickly allows us to find decisions. These *must* happen on the list. +1000 for Jeremy's energy and vote threads. Martijn On Fri, Nov 28,

how to set response to the previous page

2008-12-01 Thread ketanbparekh
hi i am trying to create a generic confirmation page which can be called by an page after its operation is done. the confirmation page has a back button which clicked goes back to the page which called the confirmation page. eg - edit user page calls - confirm page, back button click calls-

Re: how to set response to the previous page

2008-12-01 Thread Igor Vaynberg
pass the page instance into the confirmation page setresponsepage(new confirmationpage(this)) or new confirmationpage(getpage()); then in confirmationpage setresponsepage(passedininstance) -igor On Mon, Dec 1, 2008 at 9:02 PM, ketanbparekh [EMAIL PROTECTED] wrote: hi i am trying to create a

Re: Wicket Session grows too big real fast

2008-12-01 Thread Eelco Hillenius
With Wicket 1.3 only one page should be stored in session. You should check if you don't keep references between pages - that would result in 1+N pages (with N being the number of pages you reference in your page). That's optimized though, so shouldn't typically be a problem. See the custom

Re: How to add cookies to WicketTester?

2008-12-01 Thread Peter Gardfjell
Thanks Vit, your approach seems to be working. That is, use something like Cookie cookie = new Cookie(name, value); WicketTester wicketTester = new WicketTester(new MyApplication()); wicketTester.getServletRequest().addCookie(cookie);