|
| Need soem help on this .
I am displaying data using netui:repeater tag.
Eah row in a table has data from DB and there is one column in each row
that is dropdown with fixed values in it "First Choice" , "Seconf
Choice" , "Third Choice." and one more column to click update this row
example of one row of table
ID , FirstName , LastName , DropDown , Link
Now when usr clicks that link in column , I call one action in .jpf and
pass parameters from the table..ID , FirstName , LastName as paramaters
in anchor.
My problem is how do i know whick option user has selected from the
dropdown before clicking the Link... Here is the code . I am using Form
in repeaterTag and binding the dropdown to actioForm. But this is not
working ...
<netui-data:repeater dataSource="{pageFlow.SkuDetails}">
<netui-data:repeaterHeader></netui-data:repeaterHeader>
<netui-data:repeaterItem>
<netui:form tagId="skuDetailsForm" action="findAdjustmentType">
<tr class=datarow>
<netui-data:getData resultId="atype"
value="{container.item.adjustmentType}" />
<% String adtype =
(String)pageContext.getAttribute("atype"); %>
<td class=datatext ><div align="center"><netui:label
value="{container.item.skuId}"/></div></td>
<td class=datatext ><div align="center"><netui:label
value="{container.item.skuDescription}"/></div></td>
<td class=datatext ><div align="center"><netui:label
value="{container.item.invoiceDate}">
<netui:formatDate
pattern="{pageContext.dateFormatID}"/></netui:label></div></td>
<td class=datatext ><div align="center"><netui:label
<% if(adtype==null) { %>
<td class=datatext><div align="left">
<netui:select tagId = "seladtype" dataSource =
"{actionForm.adjustmenttype}">
<netui:selectOption value="Recurring" />
<netui:selectOption value="Comp" />
<netui:selectOption value="Billing" />
</netui:select>
</div>
</td>
<td class=datatext><div align="center">
<netui:anchor action="findAdjustmentType"
formSubmit="true" styleClass="top-nav">
<netui:parameter name="lineId"
value="{container.item.lineId}" />
<netui:parameter name="invDate"
value="{container.item.invoiceDate}" />
<netui:parameter name="orgId"
value="{container.item.orgId}" />
<netui:image border="0" src="/add_small.gif"
width="19" height="19"/>
</netui:anchor>
</div></td>
<% } else { %>
<td class=datatext ><div align="center"><netui:label
value="{container.item.adjustmentType}"/></div></td>
<%}%>
</tr>
</netui:form>
|
|