Author: musachy Date: Thu Sep 20 10:29:36 2007 New Revision: 577825 URL: http://svn.apache.org/viewvc?rev=577825&view=rev Log: Fixing javadocs for snippet plugin
Modified: struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Bind.java Modified: struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Bind.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Bind.java?rev=577825&r1=577824&r2=577825&view=diff ============================================================================== --- struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Bind.java (original) +++ struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Bind.java Thu Sep 20 10:29:36 2007 @@ -40,35 +40,24 @@ * <p>Examples</p> * * <!-- START SNIPPET: example0 --> - * <p>Without attaching to an event, listening to a topic (used to make an Ajax call)</p> - * <pre> * <sx:bind href="%{#ajaxTest}" listenTopics="/makecall"/> * <s:submit onclick="dojo.event.topic.publish('/makecall')"/> - * </pre> * <!-- END SNIPPET: example0 --> * * <!-- START SNIPPET: example1 --> - * <p>Attached to event 'onclick' on submit button</p> - * <pre> * <img id="indicator" src="${pageContext.request.contextPath}/images/indicator.gif" alt="Loading..." style="display:none"/> * <sx:bind id="ex1" href="%{#ajaxTest}" sources="button" targets="div1" events="onclick" indicator="indicator" /> * <s:submit theme="simple" type="submit" value="submit" id="button"/> - * </pre> * <!-- END SNIPPET: example1 --> * * <!-- START SNIPPET: example2 --> - * <p>Submit form</p> - * <pre> * <sx:bind id="ex3" href="%{#ajaxTest}" sources="chk1" targets="div1" events="onchange" formId="form1" /> * <form id="form1"> * <s:checkbox name="data" label="Hit me" id="chk1"/> * </form> - * </pre> * <!-- START SNIPPET: example2 --> * * <!-- START SNIPPET: example4 --> - * <p>Using beforeNotifyTopics:</p> - * <pre> * <script type="text/javascript"> * dojo.event.topic.subscribe("/before", function(event, widget){ * alert('inside a topic event. before request'); @@ -79,12 +68,9 @@ * * <input type="button" id="button"> * <sx:bind id="ex1" href="%{#ajaxTest}" beforeNotifyTopics="/before" sources="button" events="onclick"/> - * </pre> * <!-- END SNIPPET: example4 --> * * <!-- START SNIPPET: example5 --> - * <p>Using afterNotifyTopics and highlight:</p> - * <pre> * <script type="text/javascript"> * dojo.event.topic.subscribe("/after", function(data, request, widget){ * alert('inside a topic event. after request'); @@ -96,12 +82,9 @@ * * <input type="button" id="button"> * <sx:bind id="ex1" href="%{#ajaxTest}" highlightColor="red" afterNotifyTopics="/after" sources="button" events="onclick"/> - * </pre> * <!-- END SNIPPET: example5 --> * * <!-- START SNIPPET: example6 --> - * <p>Using errorNotifyTopics and insicator:</p> - * <pre> * <script type="text/javascript"> * dojo.event.topic.subscribe("/error", function(error, request, widget){ * alert('inside a topic event. on error'); @@ -114,7 +97,6 @@ * <input type="button" id="button"> * <img id="ind1" src="${pageContext.request.contextPath}/images/indicator.gif" style="display:none"/> * <sx:bind href="%{#ajaxTest}" indicator="ind1" errorNotifyTopics="/error" sources="button" events="onclick"/> - * </pre> * <!-- END SNIPPET: example6 --> */ @StrutsTag(name="bind", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.BindTag", description="Attach event listeners to elements to make AJAX calls")