Check out dojo sources: the ComboBox widget and the dojo.io.bind calls

So, if you have a url, you can do something like:

dojo.io.bind({url:url,load:myFunction,mimetype:"text/json"});

and process the results in your function the way you like. Those
results are the ones
that renderComponent(IJSONWriter writer, IRequestCycle cycle)
generates becuase of the
text/json mimetype

On Wed, Dec 17, 2008 at 8:56 PM, Stopp, Bryan
<bryan.st...@argushealth.com> wrote:
> So I mis-represented my problem in my first post. What I'm really trying
> to do is:
>
> 1. Add an onclick() function to a component, which triggers a
> server-side method
> 2. Refresh another component on the page when the onclick has completed.
>
> All of this is for T4.1 by the way.
>
> I selected using the IDirect interface and generating a URL for the
> onclick method to call. However I don't know how to make tapestry/dojo
> call to that URL, nor how to tell tapestry to refresh the other
> component.
>
> I don't believe I can use a @EventListener as each component has a
> generated ClientID and according to the spec the "targets" attribute of
> this annotation has to have a unique ID.
>
> I've been trying to look at the existing Dojo examples but they and the
> documentation aren't of much help. Does anyone have any examples of
> components/widgets similar to this?
>
>
>
>
> -Bryan Stopp
>
> PRIVILEGED AND CONFIDENTIAL
> This email transmission contains privileged and confidential information 
> intended only for the use of the individual or entity named above.  If the 
> reader of the email is not the intended recipient or the employee or agent 
> responsible for delivering it to the intended recipient, you are hereby 
> notified that any use, dissemination or copying of this email transmission is 
> strictly prohibited by the sender.  If you have received this transmission in 
> error, please delete the email and immediately notify the sender via the 
> email return address or mailto:postmas...@argushealth.com.  Thank you.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to