Thanks for your willingness to help.
My Direct link looks like this:
JSON Test
Where LuceneFieldData is the name of my component. It implements IJSONRender
and has a renderComponent method that uses a IJSONWriter.
The RawUrlLinkRenderer throws a class cannot be found exception. I'm
guessing t
Just get the url of a directlink by any of the following:
- Render a hidden direct link and get it's href, or
- Render a direct link and set the renderer parameter to
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/contrib/link/RawURLLinkRenderer.html
- or, generate the link with
I'm sorry for coming to this conversation late, but I have exactly the same
issue. I'd like to do as you suggest, but how do you get the url for a
component?
I have a component that implements IJSONRender, but I can't figure out how
to access it through a browser to get it's json output. Do I hav
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(IJSONW
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 I
it doesn't seem that you have a custom dojo widget in place that would
justify using
AbstractWidget + the initialization script you showed.
If you do have a dojo widget, the easiest way to tie it to tapestry IMHO is
http://tacos.sourceforge.net/tacos4.1/components/dojo/DojoWidget.html
If you don'