While using the Strust2Jquery(3.7.1) plugin, I am ran into a brick wall with this. Would you gurus please share your wisdom with me.
I would like to have a dialog (sj:dialog modal) display. It contains 3 tabs, each of the tabs has a grid that retrieves data from the server.
this is what I currently have:
<div id="myStatusTab">
<s:hidden id="myUniqueValue" name="myUniqueValue" value="%{myUniqueValue}" />
<s:hidden id="myOtherUniqueValue" name="myOtherUniqueValue" value="%{myOtherUniqueValue}" />
<s:url id="getDataStatuses" action="getDataStatuses?myOtherUniqueValue=%{myOtherUniqueValue}&myUniqueValue=%{myUniqueValue}" namespace="/" />
<s:url id="updateAddDataStatuses" action="updateData?myOtherUniqueValue=%{myOtherUniqueValue}&myUniqueValue=%{myUniqueValue}" namespace="/" />
<sjg:grid id="myGridStatuses"
caption=" Status of Current"
dataType="json"
autoencode="false"
href="%{getDataStatuses}"
editurl="%{updateAddDataStatuses}"
gridModel="myDataStructure"
rownumbers="true"
multiselect="false"
navigator="true"
navigatorEdit="false"
navigatorAdd="false"
navigatorDelete="false"
navigatorSearch="false"
navigatorView="false"
navigatorRefresh="true"
rowNum="-1"
groupText="['<b>{0} </b>']"
groupField="['statusParent']"
groupColumnShow="[false]"
navigatorEditOptions="{height:500, width:300}"
editinline="true"
viewrecords="false"
pager="true"
hidegrid="false"
footerrow="false"
indicator="gridinfo"
>
...
//contains needed columns and proper closing tags
</div>
<div id="myTestDatesTab" >
...
</div>
</sjg:grid>
I have multiple records that would call on this sj:dialog passing it myUniqueData and myVeryUniqueData.
My question is What would the hyperlink need to look like to get this done?
I have tried from my jsp:
$("#dtrDialog").attr("src","getDataStatuses?myOtherUniqueValue="+myOtherUniqueValuegNumber+"&myUniqueValue="+myUniqueValue);
$("#dtrDialog").dialog('open');
but the call to the db does not occur. any questions/input/suggestions would be very much appreciated.