There are no errors. I did try setting the outputMarkupId to true for the fragment. In the examples (and in my own code with just the TextField), setting the container was sufficient. Adding this to the Fragment had no effect.
Here is the Ajax output from the console: INFO: INFO: Initiating Ajax POST request on /;jsessionid=32444A7415B3D15E1792F255AFB8C5BE?wicket:interface=:0:inputForm:dropDown:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=0.8983050159419032 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (181 characters) INFO: <?xml version="1.0" encoding="UTF-8"?><ajax-response><component id="inputForm_container" ><![CDATA[ ]]></component></ajax-response> INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... Like I mentioned, if I just add a TextField (or any other form component) it works great. But my pages need to remove the control and label. In a couple of places, it needs to remove several controls, a prime candidate for a fragment or panel, imho. I've read other threads discussing setting the visibility like this: http://www.nabble.com/Changing-visibility-via-ajax-tf1974532.html#a5418508 So I must conclude I'm doing something wrong. Timo Rantalaiho wrote: > > On Tue, 22 May 2007, Flavius wrote: >> I am trying to setVisible on a Fragment using the >> AjaxFormComponentUpdatingBehavior object. >> It doesn't seem to work. I've also tried this with a Panel and that's >> not >> working either. > > How does it not work? What does the Ajax debug console say? > What is the error message / stack trace, if any? > > Looking quickly it occurs to me that maybe you should set > outputMarkupId(true) to the Fragment. If this is the case, > it should be obvious from the error message on Ajax debug > console. > > - Timo > > -- > Timo Rantalaiho +358-45-6709709 > Reaktor Innovations Oy <URL: http://www.ri.fi/ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/setVisible-on-Fragment-with-AjaxFormComponentUpdatingBehavior-tf3800038.html#a10764129 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user