Component level FeedbackPanel's (and a form-level one)

2009-11-12 Thread Tomás Rossi
Hi people, ¿What is the Wicket's way of adding component level feedback panels? I mean, having one feedback panel for each form component (on a side or below the field), and somehow a global feedback panel with a filter so that it doesn't show the already showed messages. I tried the

StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit() { getForm().clearInput(); };

Re: StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
form) ? El vie, 30-10-2009 a las 12:42 -0300, Tomás Rossi escribió: Hi. I have a stateless form and a button inside to reset all fields like this: ... add(new Button(clear) { private static final long serialVersionUID = 1L; public void onSubmit

Re: StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
Wait a minute... Because I need a reset button which effectively clean all fields and feedback messages. Reset button doesn't do that so it's not what I want. Tomás Rossi escribió: That's a very good question. I'll use that. But then, if it weren't a stateless form, should I involve Wicket

Re: StatelessForm.clearInput()

2009-10-30 Thread Tomás Rossi
is the model object of the form, and clear sets null to all fields, recursively getForm().modelChanged(); getForm().clearInput(); }; }.setDefaultFormProcessing(false)); ... Tomás Rossi escribió: Wait a minute... Because I need a reset

Re: Force page expiration

2009-10-28 Thread Tomás Rossi
, then you got the page expired when try to back to then... On Tue, Oct 27, 2009 at 4:05 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Nothing seems to work. Does the fact that the page I want to expire is the home page has anything to do with it? Pedro Santos escribió: The page returned from back

Re: Force page expiration

2009-10-28 Thread Tomás Rossi
on these subjects we'll appreciate it very much. http://cwiki.apache.org/WICKET/page-maps.html On Wed, Oct 28, 2009 at 1:43 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Ok... Our page had a StatelessForm inside. We changed it to just Form. When the form was submitted, we had a bookmarkable page

Re: Force page expiration

2009-10-28 Thread Tomás Rossi
on IE. On firefox, for some reason, the page got cached on the browser! I add some meta tags to avoid it but nothing... Tomás, mayb it is what is happening on your project too. Make sure the firefox don't cache your pages. On Wed, Oct 28, 2009 at 3:46 PM, Tomás Rossi tro...@mecon.gov.ar mailto:tro

Force page expiration

2009-10-27 Thread Tomás Rossi
Hi, I have another question... in Wicket (1.4.2), can I force the expiration of a page? Specifically, if users hit browser's back-button, I'd like to show them the page-expired message. I've already tried to invalidate the session, but I got a horrible exception when re-submitting the form

Re: Force page expiration

2009-10-27 Thread Tomás Rossi
, Tomás Rossi tro...@mecon.gov.ar wrote: Hi, I have another question... in Wicket (1.4.2), can I force the expiration of a page? Specifically, if users hit browser's back-button, I'd like to show them the page-expired message. I've already tried to invalidate the session, but I got a horrible

Exceptions in MyApplication.init()

2009-10-23 Thread Tomás Rossi
Hey people, I've noted that if an exception occurs during the execution of init method of MyApplication (which extends WebApplication), a SERVICE UNAVAILABLE (error 503) page shows. We'd like to have our own error page for this case and figured out a workaround which includes catching and

Re: Exceptions in MyApplication.init()

2009-10-23 Thread Tomás Rossi
, 2009 at 3:26 PM, Josh Glassman josh...@gmail.com wrote: There is a wiki page with information on creating custom error pages. http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html Hopefully that is what you are looking for! Josh On Fri, Oct 23, 2009 at 12:34 PM, Tomás Rossi

Nested panel and Exception Attempted to set property value on a null object

2009-10-23 Thread Tomás Rossi
Hi again, I get the following error message: Attempted to set property value on a null object. Property expression: aspectoRapidez Value: 4 I have a page with a nested stateless form, which has some fields and a couple of instances of a panel (with radio groups inside, each). I submit the

Re: Reusable components and wicket:id

2009-10-20 Thread Tomás Rossi
is placed on html? If so, can you send the panel html? what wicket version are you using? On Mon, Oct 19, 2009 at 5:56 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Here goes the java code... RadioButtonGenerico.java (means GenericRadioButton): public class RadioButtonGenericoT extends

Re: Reusable components and wicket:id

2009-10-20 Thread Tomás Rossi
as expected... On Tue, Oct 20, 2009 at 12:00 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Sure, here's the markup (BTW, using Wicket 1.4.2): PanelEncuesta.html (means SurveyPanel): ... body wicket:panel table class=GrillaOpciones tr th/th thlabelMuy Bueno/label/th thlabelBueno/label/th

Re: Reusable components and wicket:id

2009-10-20 Thread Tomás Rossi
... myRadioButtonGenerico.setLabel(new AbstractReadOnlyModelString() { @Override public String getObject() { return getParent().getId() + - + getId(); } }); On Tue, Oct 20, 2009 at 2:51 PM, Tomás Rossi tro

Re: Reusable components and wicket:id

2009-10-20 Thread Tomás Rossi
' is required. Not what I want... What's wrong? :( Igor Vaynberg escribió: thats why formcomponents take models for labels. you can give it a resourcemodel that uses the parent's id as the resource key and achieve what you want. -igor On Tue, Oct 20, 2009 at 10:46 AM, Tomás Rossi tro...@mecon.gov.ar

Reusable components and wicket:id

2009-10-19 Thread Tomás Rossi
Hi, We are building a simple survey with Wicket. Essentially, we have a lot of RadioGroup components repeated all over the main survey page. Those components are in fact the same thing (to score some item), but obviously, they reffer to different subjects/groups. For example: Are you happy

Re: Reusable components and wicket:id

2009-10-19 Thread Tomás Rossi
AM, Tomás Rossi tro...@mecon.gov.ar wrote: Hi, We are building a simple survey with Wicket. Essentially, we have a lot of RadioGroup components repeated all over the main survey page. Those components are in fact the same thing (to score some item), but obviously, they reffer to different

Re: Reusable components and wicket:id

2009-10-19 Thread Tomás Rossi
Santos escribió: Actually the panel wicket id is an parameter for panel constructor, can you some code? On Mon, Oct 19, 2009 at 5:07 PM, Tomás Rossi tro...@mecon.gov.ar wrote: Then I'm unable to use the properties file for tweaking the string in question. What is the beauty of panels

Feedback messages, input and label

2009-10-07 Thread Tomás Rossi
Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd/ ... -- Then, a properties file for your app with this: -- ... Required=Field ${label} is required! ... -- When the

Re: Feedback messages, input and label

2009-10-07 Thread Tomás Rossi
Bourgeois escribió: Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label for=pwdPassword/label input type=password id=pwd wicket:id=inputPwd

Re: Feedback messages, input and label

2009-10-07 Thread Tomás Rossi
which is associated to the input? Olivier Bourgeois escribió: Have you tried something like this in your page.java : pwd.setLabel(new ModelString(Password)); ? 2009/10/7 Tomás Rossi tro...@mecon.gov.ar Hi, lets say you have this in you html form: -- ... label

Re: Feedback messages, input and label

2009-10-07 Thread Tomás Rossi
Ok, that's a little nicer, but still... It'd be better if the label could be deduced from the markup itself. Yet, no big deal. Thanks Matej Knopp escribió: try putting inputPwd = Password in your property file. -Matej On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote