I'm looking for an example (even a simple one) of the use of the
ShuttleProxy. I'm attempting to customize the display of items in the
trailing list, and I can't even correctly instantiate a ShuttleProxy
instance.
Here is my jsp:
<f:view>
<trh:html>
<trh:head title="#{pageFlowScope.pageTitleHeader}">
<f:verbatim>
<script type="text/javascript">
function toggleService(serviceName)
{
// Create the proxy object
var proxy = new ShuttleProxy("pick", "psapDetail");
var arr = proxy.getSelectedItems(false);
alert('Selected count is
'+proxy.getSelectedItemCount(false));
alert('Available count is '+proxy.getItemCount(true));
for (var i=0;i<arr.length;i++)
{
alert('Applying '+serviceName+' to
'+proxy.getSelectedItems(false));
alert(arr[i]);
}
alert('Applying '+serviceName+' to
'+proxy.getSelectedItems(false));
}
</script>
</f:verbatim>
</trh:head>
<trh:body>
<tr:form id="psapDetail"
defaultCommand="#{pageFlowScope.autoSubmitName}">
.
.
<tr:commandButton id="rumEavesBtn" text="RE"
onclick="toggleService('RE');"
rendered="#{PSAPDeviceHelper.sysMonButtonRendered}" />
.
.
</tr:form>
</trh:body>
</trh:html>
</f:view>
Any ideas as to what I'm doing wrong?
Thanks in advance,
Shawn Bertrand, Principal Software Developer
HARRIS CORPORATION | RF Communications Division
assuredcommunications(tm)