Skip to main content

question regarding the widget tag

1 reply [Last post]
marklv
Offline
Joined: 2008-02-06
Points: 0

Hi,

I see that in the widget tag there are several attributes that I don’t know what are they for and how to use it
service
publish
subscribe
template
script
Does any one know what are they fore and do you have example of how to use them?

Thanks
Mark

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sloanb
Offline
Joined: 2003-09-14
Points: 0

You can find this information out by reading the documentation in the Documents and resources. I will go over a couple of these for you.

[b]service:[/b] This allows you to use async/sync calls to retrieve data to use/display in the widget. For example you could use a managed bean or jsp/php page to retrieve the data and format it in JSON to have a dynamic result set.

[b]publish/subscribe:[/b] This is used in the publish subscribe framework to specify the topic you want to publish or subscribe to. Please see https://ajax.dev.java.net/publishsubscribe.html for more information on how to use this framework. If you have any question feel free to ask of course.

If you are using Netbeans you should install the plugin which makes using these easier. You should also read up on the models and learn how each is used. Let me know if you have any additional questions.