first you should use AjaxFormSubmitBehavior if you want values for the
entire form submitted, the one you are using only submits the value for the
component it is attached to as the name implies

second ajax does not submit multipart forms

-igor


On 1/8/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote:

hi , I just use a behavior in multipart form, and it cannot hold the data
of form when it triger.

adType.add(new AjaxFormComponentUpdatingBehavior(ClientEvent.CHANGE)
   {
   protected void onUpdate(final AjaxRequestTarget target) {
   String value = (String) adType.getModelObject();
   if (StringUtils.isBlank(value)) {
   return;
   }
  additionContainer.setVisible(flag);
   target.addComponent(form);
}

when it trigger , the data before typing will lost.
-------------------------------------------------------------------------
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