that happens because if you dont put anything into requiredtextfield the
validation of the form fails.

like i said before, what you want is formcomponentupdatingbehavior, but
radiochoice doesnt support that because it is a quasi component (single
component representing a bunch of html components), so you have to use
formsubmitbehavior - which among other things performs validation on the
form. since you dont put anything into a required textfield, the validation
fails, and because the validation fails the models of formcomponents are not
updated - thus your label doesnt refresh.

we probably need to come up with a different component to support a radio
box and ajax.

-igor



On 1/14/07, Cliff Pereira <[EMAIL PROTECTED]> wrote:

Hi Igor,

I found some strange behavior extending my code. The RadioChoice works
perfect now. It changes the label beneath it depending on the selection. But
now if I additionally add a RequiredTextField it won't change until
something is written into the textfield. Is that the intention of a
RequiredTextField? Because adding a simple TextField works fine.
I mean, if I for example have a form and on top the radioButtons.
Somewhere further on there might be a RequiredTextField, the RadioChoice
won't work until the user has written something into the textfield.

Regards
Cliff



2007/1/12, Cliff Pereira <[EMAIL PROTECTED]>:
>
> Hi Igor,
>
> thanks for the hint. This works perfect! I still don't no why it works
> with the SubmitBehavior, because in my eyes it actually is a change and
> therefore an update and not a submit, but thanks again. Can I use the same
> thing for Input validation on an inputfield or something similar?
>
> Cliff
>
>
> 2007/1/12, Igor Vaynberg <[EMAIL PROTECTED] >:
> >
> > im surprised your protected void onUpdate(AjaxRequestTarget target) is
> > even called! try using AjaxFormSubmitBehavior instead of the
> > formcomponentupdating one.
> >
> > -igor
> >
> >
> > On 1/11/07, Cliff Pereira <[EMAIL PROTECTED]> wrote:
> > >
> > > ok, so far I managed to change the label without page reload. And
> > > without wantonselectionchangednotification!
> > > My only problem now is how do I know which of the three radio
> > > options is selected? Is there any way to determine that?
> > >
> > > Thanks in advance once again!
> > > Cliff
> > >
> > > 2007/1/11, Igor Vaynberg < [EMAIL PROTECTED]>:
> > > >
> > > > if he is using wantonselectionchangednotification he is not using
> > > > ajax :)
> > > >
> > > > -igor
> > > >
> > > >
> > > > On 1/11/07, Matej Knopp <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > I'm not wrong we don't support (yet) the ajax update on radio
> > > > > selection.
> > > > >
> > > > > -Matej
> > > > >
> > > > > Cliff Pereira wrote:
> > > > > > Hello Mailinglist,
> > > > > >
> > > > > > We just started a project using the wicket framework. It's
> > > > > working so
> > > > > > far and we want to add some AJAX behaviour to our project. But
> > > > > nothing
> > > > > > really works. I've made an example with a radio choice and a
> > > > > label that
> > > > > > should actually change it's content on selectionChange of the
> > > > > radiochoice.
> > > > > > So far I tried to solve it using different models or trying to
> > > > > use DOM.
> > > > > > I want to achieve that if morning is chosen the label shows
> > > > > "Good
> > > > > > Morning", if then noon is chosen the label should switch to
> > > > > "Good Noon"
> > > > > > (or something similar) and same with evening.
> > > > > > I'm really going mad by the time now. Searched the web but did
> > > > > not find
> > > > > > andy examples. Hopefully one of you has done this before or
> > > > > may help me
> > > > > > implementing it.
> > > > > >
> > > > > > Thanks alot in advance!
> > > > > >
> > > > > > Cliff
> > > > > >
> > > > > >
> > > > > >
> > > > > 
------------------------------------------------------------------------
> > > > > >
> > > > > >
> > > > > 
-------------------------------------------------------------------------
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance
> > > > > to share your
> > > > > > opinions on IT & business topics through brief surveys - and
> > > > > earn cash
> > > > > >
> > > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > >
> > > > > >
> > > > > >
> > > > > 
------------------------------------------------------------------------
> > > > > >
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > > >
> > > > > 
-------------------------------------------------------------------------
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance
> > > > > to share your
> > > > > opinions on IT & business topics through brief surveys - and
> > > > > earn cash
> > > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > >
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > > >
> > > > 
-------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your
> > > > opinions on IT & business topics through brief surveys - and earn
> > > > cash
> > > >
> > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > >
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys - and earn
> > > cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to