Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>this is a part of my code that is working (form gets submitted), it is with a select instead of radiobutton but same idea. when you select a value it automatically submits the form and update the values:</p> <pre><code>&lt;form:form commandName="dateRange"&gt; ... &lt;select name="fyForDR" id="fyForDR" class='discretFont' style='margin-left:10px;margin-right:10px;'&gt; &lt;option value="" selected='selected'&gt;Fiscal Year&lt;/option&gt; &lt;option value="2011" &lt;c:if test="${fyForDR == '2011'}"&gt;selected="selected"&lt;/c:if&gt; &gt;FY11&lt;/option&gt; &lt;option value="2010" &lt;c:if test="${fyForDR == '2010'}"&gt;selected="selected"&lt;/c:if&gt; &gt;FY10&lt;/option&gt; &lt;option value="2009" &lt;c:if test="${fyForDR == '2009'}"&gt;selected="selected"&lt;/c:if&gt; &gt;FY09&lt;/option&gt; &lt;option value="2008" &lt;c:if test="${fyForDR == '2008'}"&gt;selected="selected"&lt;/c:if&gt; &gt;FY08&lt;/option&gt; &lt;option value="2007" &lt;c:if test="${fyForDR == '2007'}"&gt;selected="selected"&lt;/c:if&gt; &gt;FY07&lt;/option&gt; &lt;option value="2006" &lt;c:if test="${fyForDR == '2006'}"&gt;selected="selected"&lt;/c:if&gt; &gt;FY06&lt;/option&gt; &lt;/select&gt; &lt;script type="text/javascript"&gt; Spring.addDecoration(new Spring.AjaxEventDecoration({ elementId: "fyForDR", event: "onchange", formId:"dateRange", params: {fragments:"body", _eventId: "setFy"} })); &lt;/script&gt; ... &lt;/form:form&gt; </code></pre> <p>and here is part of the flow definition:</p> <pre><code>&lt;view-state id="dateRangeForm" model="dateRange"&gt; ... &lt;transition on="setFy" validate="false" &gt; &lt;set name="viewScope.fyForDR" value="requestParameters.fyForDR"/&gt; &lt;evaluate expression="dateRange.setStartDate(dateRangeService.getFyStartDate(viewScope.fyForDR))"&gt;&lt;/evaluate&gt; &lt;evaluate expression="dateRange.setEndDate(dateRangeService.getFyEndDate(viewScope.fyForDR))"&gt;&lt;/evaluate&gt; &lt;/transition&gt; ... &lt;/view-state&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload