you want to specify a page parameter in an ajax request? what exactly is the
point? the page doesnt render, only the component does.

-igor


On 11/21/06, Vincent Renaville <[EMAIL PROTECTED]>
wrote:

Dear,

I use Ajax with my dropdownchoice and I don't want to refresh the page
after a change. so I use the event OnUpdate.
But a problem occur when I want to specify a page parameter to a Webpage
I doesn't work. it's work if I don't use Ajax, all the Instruction in
the OnUpdate except the SetParameter.

pickupgroup = new DropDownChoice ("pickupgroup",new PropertyModel
(obj,"pickupgroup"),db.getAllPickupGroup())
        {
                protected boolean wantOnSelectionChangedNotifications()
                        {
                                return false;
                        }
        };
        pickupgroup.setOutputMarkupId(true);
        pickupgroup.add(new AjaxFormComponentUpdatingBehavior
("onchange") {
          protected void onUpdate(AjaxRequestTarget target)
          {
              linkpickupgroup.setParameter
("message",db.getGroupInformation((String) obj.getPickupgroup()));
                  pickupgroup.setChoices(db.getAllPickupGroup());
                  target.addComponent(pickupgroup);
              System.out.println(obj.getProtocol());
          }
         });
add(pickupgroup);

It's a bug or It a code problem ;)

Thanks for your help


-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to