Nevermind this post - it was pretty easy after all to notice that
ShuttleProxy is now TrShuttleProxy after simply spelunking the javascript a
little.  Maybe the javadoc should be updated to reflect this.

I'm customizing the items in the trailing list, but haven't yet figured out
where I might see these text customizations on the server after the form is
submitted.  If anyone knows where I might get them (maybe through the
request?), I'd appreciate a pointer.

Thanks,

Shawn



Bertrand, Shawn wrote:
> 
> 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) 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--ShuttleProxy-example--tp25032489p25047060.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to