THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Request is triggered by a topic
Code Block | ||||
---|---|---|---|---|
| ||||
<s:submit value="Make Request" onclick="dojo.event.topic.publish('/request')" /> <sx:bind listenTopics="/request" href="%{#url}" /> |
Attached to an event
Code Block | ||||
---|---|---|---|---|
| ||||
<s:submit value="Make Request" id="submit"> <sx:bind sources="submit" events="onclick" href="%{#url}" /> |
Attached to an event on multiple sources
Code Block | ||||
---|---|---|---|---|
| ||||
<s:submit value="Make Request" id="submit0"> <s:submit value="Make Request" id="submit1"> <sx:bind sources="submit0,submit1" events="onclick" href="%{#url}" /> |
Attached to multiple events on multiple sources
Code Block | ||||
---|---|---|---|---|
| ||||
<s:textarea id="area0"> <s:textarea id="area1"> <sx:bind sources="area0,area1" events="onfocus,onchange" href="%{#url}" /> |