Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-tapestry Wiki" for change notification.
The following page has been changed by JesseKuhnert: http://wiki.apache.org/jakarta-tapestry/41RenderCycleDesign ------------------------------------------------------------------------------ attachment:ajax.png + ==== Tacos ASYNC Requests ==== + In order to get the behaviour of "selecting" a particular option on a PropertySelect component, as well as refreshing a specific component on a page - all with tapestry correctly remembering whatever state was selected on the component in both server and client - we must create a valid request. Using dojo this is not very hard. We can do something like this to the PropertySelect html to cause the initial request to go out: + + {{{ + <select name="projectSelect" > + <item value="proj1">Project 1</item> + <item value="proj2">Project 2</item> + <item value="proj3">Project 3</item> + </select> + + <script type="text/javascript"> + dojo.event.connect(dojo.byId("projectSelect"), "onchange", function() { + dojo.io.bind({ url: "http://localhost:8080/app?service=direct&component=projectSelect&listener=selectProject" }); + }); + </script> + + }}} + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]