UIX:shuttle

hi,
I am trying to use the shuttle tage in the jsp. The problem is how to? I used the code example given in the help but the page fires about wrong syntax.
herez what i 've done. This is the basic structure.
After doing this I can see that there is a "select from" list and there is a target empty list with the buttons to arrange the items in the list. But how to put some buttons inbetween like "Move" Move All" "Remove" "Remove All" to swap the items from the "From list" to the "To list" as described in many examples.
<uix:shuttle name="someName" >
<uix:leading >
<tr>
<td>
<b>Select from</b><br>
          <select multiple="multiple" name="measureSelect" size="5" >
          <c:forEach items="${ controlViewBean.panelMeasures }" var="panelMeas" >
               <option
                    <c:if test="${ controlViewBean.selectedByPanelMeasure[ panelMeas ] }" >
                         selected
                    </c:if>
               >
                    <c:out value="${ panelMeas.portletMeasure.name }" />
               </option>
          </c:forEach>
          </select>
</td>
</tr>
</uix:leading>
<uix:trailing>
</uix:trailing>
</uix:shuttle >
thanks,
vasanth

Hi,
You can't have <tr> <td> tags inside <uix:???> tags.
Here's a shuttle example (to get you started):
   <uix:shuttle name="shuttle1"
            leadingHeader="Header 1"
            trailingHeader="Header 2"
            size="5">
     <uix:leading>
       <uix:list>
           <uix:option text="option 1"/>
           <uix:option text="option 2"/>
           <uix:option text="option 3"/>
           <uix:option text="This is a very very long option 4"/>
       </uix:list>
     </uix:leading>
     <uix:trailing>
       <uix:list>
           <uix:option text="2option 1"/>
           <uix:option text="2option 2"/>
           <uix:option text="2option 3"/>
           <uix:option text="2option 4"/>
           <uix:option text="2option 5"/>
       </uix:list>
     </uix:trailing>
   </uix:shuttle>I got this example from:
http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/app/oracle/product/IAS904/j2ee/OC4J_ohw/applications/jdeveloper/jdeveloper/helpsets/jdeveloper/uixref.jar!/ui/shuttle.html

Similar Messages

  • Uix:shuttle component

    I'm trying to use the uix:shuttle component and dynamically set each option based off of values retrieved from the database. I'm using a java bean to grab a RowSet, which I will loop through to set my values for the leading and trailing values of the shuttle.
    First, is it possible to use java scripting variables as the values. Example:
    String val1 = "Option 1";
    String val2 = "Option 2";
    <uix:shuttle name="screenShuttle"
    leadingHeader="Report List"
    trailingHeader="User's Report List"
    size="5">
    <uix:leading>
    <uix:list>
    <uix:contents>
    <uix:option textBinding="<%=Val1%>"/>
    <uix:option textBinding="<%=Val2%/>
    </uix:contents>
    </uix:list>
    </uix:leading>
    How can I get uix to recognize my variable values?
    Thanks in advance!
    -Teri
    [email protected]

    Let me try that again. Here is the bottom:
    String display = fieldRowLeading.getAttribute("DisplayName").toString();
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    </jbo:RowsetIterate>
    </uix:contents>
    </uix:list>
    </uix:leading>
    <uix:trailing>
    <uix:list multiple="true">
    <jbo:RowsetIterate datasource="dsUsedDisplayFields" userange="false" >
    <jbo:Row id="fieldRowTrailing" datasource="dsUsedDisplayFields" action="Active"/>
    <% String field = (String)fieldRowTrailing.getAttribute("FieldName");
    String desc = (String)fieldRowTrailing.getAttribute("Description");
    String display = (String)fieldRowTrailing.getAttribute("DisplayName");
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    Long postings are being truncated to ~1 kB at this time.

  • DataBinding in uix:shuttle using Runtime Expressions

    I'm trying to use the uix:shuttle component and dynamically set each option based off of values retrieved from the database. I'm using a java bean to grab a RowSet, which I will loop through to set my values for the leading and trailing values of the shuttle.
    First, is it possible to use java scripting variables as the values. Example:
    String val1 = "Option 1";
    String val2 = "Option 2";
    <uix:shuttle name="screenShuttle"
    leadingHeader="Report List"
    trailingHeader="User's Report List"
    size="5">
    <uix:leading>
    <uix:list>
    <uix:contents>
    <uix:option textBinding="<%=Val1%>"/>
    <uix:option textBinding="<%=Val2%/>
    </uix:contents>
    </uix:list>
    </uix:leading>
    How can I get uix to recognize my variable values?
    Thanks in advance!
    -Teri
    [email protected]

    Hi Teri,
    Looks like you are setting the "textBinding" attribute whereas you should instead be setting the "text" attribute. The textBinding attribute must be a BoundValue object which is queried at render-time to provide the actual value.
    BTW - If you don't actually know the exact number of options that you'll have ahead of time, you might want to consider writing some Java code to build up your ShuttleBean - and you can use the <uix:ref> element to include this UINode in your output. See the Developer's Guide an examle of this...
    Andy

  • Uix:shuttle javascript

    hi,
    I am using shuttle in my jsp uix page. The tag provides a default shuttle with the buttons to move stuff inbetween the lists.
    I do not want the "Move All, Move, Remove, Remove All" text to be present.
    I have looked into the shuttle.js. there is no mention of the text "Move All Move Remove Remove All". Is there some other file which has this stuff that I am missing.
    I want to remove those text and leave the shuttle with just the arrow marks.
    regards,
    vasanth

    It's magic. :)
    Actually the Shuttle.js really has nothing to do with
    the way the components are rendered. It just handles
    how the user interacts with the shuttle. Rendering happens
    by the UIX layer, specifically by the Shuttle's Renderer.
    It's not really spooky that you can provide leading
    and trailing lists and what not because the UIX layer
    is providing those APIs. There was a decision not to
    include an API to remove the text for the buttons. This
    was to make sure all clients of the shuttle conformed
    to the same user interface specification.

  • Help on SHUTTLE and how  to insert  multiple selection of data to database?

    Hi
    I looking for some help SHUTTLE. The scenario is given below. Appreciate your urgent help/steps how to use UIX SHUTTLE for this example.
    I). I have two tables user and dept
    User
    ====
    Fields=>(uid,uname)
    Dept
    ====
    Fields=>(deptno,uid)
    II). UIX screen with two fileds
    i. DeptNo =>messageInputText
    ii. Uid =>shuttle (This shuttle should display user.username, but when insert data it has to update as uid)
    III. Insert data to database
    Using form, I give one dept no and select multiple Unames. When click submit, it has to commit the changes to the database. For eg: I am given DeptNo=10, and unames selected are "RAM","GEORGE","CLINTON", it has to update 3 rows in to the database as shown below
    DEPTNO UID
    ================
    10 100 =>UNAME RAM
    10 200 =>UNAME GEORGE
    10 300 =>UNAME CLINTON
    Thanks
    NRK

    Sorry, Maybe i am not stated my problem clearly. After i execute my sql statement and put the result into the resultset, if the result is more than 1 records, then i dunnoe how to handle with the record and display it in jsp. Do u get wat i mean?

  • Render a uix page

    hi,
    I am just beginning to use uix pages migrating from jsp's and am woundering how to render a uix page. I 've read the developers guide but am not certain how it works as a whole. Are there any examples out there that i can look at?? apart from the dev guide?
    I am not quite able to understand from the dev guide how the context is used to render the information from the java class back to a uix page and how to forward to a uix page through servlet? do I have to use uix servlet (or the controller) instead or else can i use my HttpServlet and use the doGet and doPost the same way we use to render a jsp page? can I include a uix page in a jsp page?? Anybody could please gimme an insight about this!!
    regards,
    vasanth

    hi Arjuna,
    sorry I used the bean from the session as opposed to the question asked by me about using the request servlet.
    I have this problem in my jsp page. I have the bean in the session and am trying to get the info from that bean into my jsp page with uix tags.
    I have the code below.
    Unfortunately it is showing errors. Its a jsp page with uix form and in the Trailing list of the shuttle I have used the object from the session. Again at the bottom I 've used the <uix:xml> tag to do the same for another purpose ie., to iterate through another set of objects.
    the xmlns (namespace) is posing problem. and the tag data: infront of the tag childData in the <contents> tag is also being not recognized as a valid tag when i run the jsp.
    Any help in this regard would be greatly appreciated.
    thanks so much,
    vasanth
    <%-- $Id: controlView.jsp,v 1.5 2003/10/24 00:44:49 je Exp $ --%>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ page import="java.util.*, com.avega.portlets.domain.*, com.avega.portlets.view.*;" %>
    <%@ page contentType="text/html;charset=windows-1252" %>
    <uix:form method="GET" name ="portletForm" >
    <!-- implementation of shuttle -->
    <uix:shuttle name ="measureShuttle" leadingHeader="Available Measures"
    trailingHeader="Selected Measures" size="3">
    <uix:leading >
    <uix:list multiple="true" name="leadList">
    <%Set test = (Set)request.getAttribute("list");
    Iterator itr = test.iterator();
    while (itr.hasNext()){
    PanelMeasure pan = (PanelMeasure)itr.next();
    String name = pan.getPortletMeasure().getName();
    System.out.println(name);
    %>
    <uix:option text = "<%= name%>"value="<%= name%>" ></uix:option>
    <% } %>
    </uix:list >
    </uix:leading>
    <uix:trailing>
    <uix:list multiple="true" name="trailList" >
    <uix:contents data:childData="@panelMeasures@controlViewBean@httpSession">
    <uix:option data:text="name@portletMeasure" value = "name@portletMeasure"></uix:option>
    </uix:contents>
    </uix:list>
    </uix:trailing>
    </uix:shuttle>
    <!-- implementation of calender -->
    <uix:dateField name="dateBox" />
    <!-- implementation of calender -->
    <uix:submitButton name="Submit" text="Submit" formName="portletForm" value="Refresh" />
    <uix:submitButton name="hideControls" text="Hide Controls" value="hideControls" />
    <!--For the Dimensions -->
    <uix:xml>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui" xmlns:demo="http://example.org">
    <styledText text="Dimensions"/>
    <contents data:childData="panelDimensions@controlViewBean@httpSession">
    <list>
    <option data:text="name@portletDimension">
    </option>
    </list>
    </contents>
    </dataScope>
    </uix:xml>
    </uix:form>

  • Shuttle component and BC4J

    Hi,
    Im looking for any information re using the Shuttle component together with BC4J:
    Is it possible to populate the Leading and Trailing lists of a UIX Shuttle component with data from a BC4J viewObject?
    Thanks, Jan

    Oh, some sample code:
    <shuttle name="shuttle1" leadingHeader="Available"
    shortDesc="sddsd" trailingHeader="Assigned"
    size="10" reorderable="false">
    <leading>
    <list>
    <contents>
    <bc4j:optionList voName="TscrRoleCodeView1"
    attrName="RceRoleId"
    textAttrName="RceRoleDesc"/>
    </contents>
    </list>
    </leading>
    This only gives the 1st value in the View list...

  • Shuttle Component Without UIX

    Hi all,
    Anybody have samples with usage of Shuttle/ADF Business components?
    But can't be with UIX components.
    Thanks.

    Let me try that again. Here is the bottom:
    String display = fieldRowLeading.getAttribute("DisplayName").toString();
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    </jbo:RowsetIterate>
    </uix:contents>
    </uix:list>
    </uix:leading>
    <uix:trailing>
    <uix:list multiple="true">
    <jbo:RowsetIterate datasource="dsUsedDisplayFields" userange="false" >
    <jbo:Row id="fieldRowTrailing" datasource="dsUsedDisplayFields" action="Active"/>
    <% String field = (String)fieldRowTrailing.getAttribute("FieldName");
    String desc = (String)fieldRowTrailing.getAttribute("Description");
    String display = (String)fieldRowTrailing.getAttribute("DisplayName");
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    Long postings are being truncated to ~1 kB at this time.

  • UIX XML & Shuttle with BC4J

    What is the way to use the UIX XML shuttle component with data coming from a bc4j view object?
    And how to process the changes on that component (like the sequence of data)?
    Finally, can we adopt UIX-XML-BC4J and be sure that all normal problems of an application are covered?
    TIA

    Thanks for your answer. I've tried the following code:
    <!-- "TipoProgettoView" is my view object, defined in a <bc4j:registryDef> section. -->
    <bc4j:viewObjectScope name="TipoProgettoView">
         <contents>
              <shuttle name="ordinamento" leadingHeader="Sequenza" leadingDescShown="true"
                        reorderable="true" trailingDescShown="true">
                   <leading>
                        <bc4j:list name="MyList">
                             <contents>
                                  <!-- "IdTipoProgetto" and "DTipoProgetto" are two attributes of my view object-->
                                  <bc4j:option value="IdTipoProgetto" text="DTipoProgetto"/>
                             </contents>
                        </bc4j:list>
                   </leading>
              </shuttle>
         </contents>
    </bc4j:viewObjectScope>
    But it doesn't work. The shuttle component gets rendered but the list is empty.
    Can you give me an example snippet code?
    "Normal" for me is an application with lists of element (editable, sortable), master-detail-detail, upload and display of object (image, Word doc, PDF, . . .), trees with items from db, use of personalized templates.

  • UIX/ADF - Problems in Shuttle with JUCtrlListBinding

    I have a problem with an shuttle on my application.
    When try show items on leading trail, it show nothing and i get this stack error on console :
    04/09/30 18:21:21 java.lang.ArrayIndexOutOfBoundsException: 0
    04/09/30 18:21:21      at oracle.jbo.uicli.binding.JUCtrlListBinding.findListIndex(JUCtrlListBinding.java:777)
    04/09/30 18:21:21      at oracle.jbo.uicli.binding.JUCtrlListBinding.setValueAt(JUCtrlListBinding.java:1368)
    04/09/30 18:21:21      at oracle.jbo.uicli.binding.JUCtrlListBinding.updateValuesFromRow(JUCtrlListBinding.java:1016)
    04/09/30 18:21:21      at oracle.jbo.uicli.binding.JUIteratorBinding.updateValuesFromRows(JUIteratorBinding.java:301)
    04/09/30 18:21:21      at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:533)
    04/09/30 18:21:21      at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:1580)
    04/09/30 18:21:21      at oracle.adf.controller.lifecycle.PageLifecycle.refreshModel(PageLifecycle.java:677)
    04/09/30 18:21:21      at oracle.adf.controller.struts.actions.DataAction.refreshModel(DataAction.java:374)
    04/09/30 18:21:21      at oracle.adf.controller.struts.actions.DataAction.refreshModel(DataAction.java:563)
    04/09/30 18:21:21      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:128)
    04/09/30 18:21:21      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:63)
    04/09/30 18:21:21      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
    04/09/30 18:21:21      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    04/09/30 18:21:21      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    04/09/30 18:21:21      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    04/09/30 18:21:21      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    04/09/30 18:21:21      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    04/09/30 18:21:21      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    04/09/30 18:21:21      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    04/09/30 18:21:21      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    04/09/30 18:21:21      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    04/09/30 18:21:21      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    04/09/30 18:21:21      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    04/09/30 18:21:21      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    04/09/30 18:21:21      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    04/09/30 18:21:21      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    04/09/30 18:21:21      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    04/09/30 18:21:21      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    04/09/30 18:21:21      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    04/09/30 18:21:21      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    04/09/30 18:21:21      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    04/09/30 18:21:21      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    04/09/30 18:21:21      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    04/09/30 18:21:21      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
    04/09/30 18:21:21      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    04/09/30 18:21:21      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    04/09/30 18:21:21      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    04/09/30 18:21:21      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    04/09/30 18:21:21      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    04/09/30 18:21:21      at java.lang.Thread.run(Thread.java:534)
    Could anyone give me a ligth ?
    Thanks

    NO i've create my own. I've been tried with LOV list and DCNavigation list, and i need this because i must diplay text, descripion and really id. Usually this error only occurr when my leading or trailing list have no records ...
    Thanks for the reply

  • Why not support tree/shuttle layers for Structs/JSP in jheadstart 10.1.2.0.

    Why not support tree/shuttle layers for Structs/JSP in jheadstart 10.1.2.0.
    I want make tree style and shuttle style with Structs/JSP(jheadstart 10.1.2.0) in my project.
    Can you help me.
    Thanks for your help.

    UIX provides tree and shuttle components that generate all the complex javascript required for these UI component.
    We have no plans to create similar javascript ourselves so we can generate this with JSP. The future strategy for JHeadstart will be based on JSF / ADF Faces where we leverage UI components that have this functionality built-in, like UIX has today. With the JSF standard out there, we expect lots of sophisticated new UI components to come out, built by dhtml/javascript/ajax experts (which we are not).
    Our focus (and core competency) is on generating applications by wiring together these sophisticated UI components, and not so much on building new UI components.
    If you want to build this today using JSP I suggest you do some shopping on the internet, you wll probably find some sample code for trees and shuttles.
    Steven Davelaar,
    JHeadstart Team.

  • Change Color of Shuttle border

    Hello,
    can anybody tell me, were I can change the color of the border of a shuttle. Several images are generated for the border, but no entry of blaf.xss seems to be responsible for the color.
    Which class is responsible for the generation of the border images?
    Regards Christian

    Hi Christian -
    Hi Andrew,
    I expected an aswer like this :o)You probably aren't going to like my answer to your next question either... ;-)
    Can you please tell me where it is hardcoded? Which
    class is it, which defines his own colors?This code lives way down deep in our icon colorization code - and I would rather not point you in that direction. I have another suggestion which might do the trick if you are desperate to change the color of the shuttle borders.
    The first time that UIX renders a shuttle, UIX will dynamically generate the images that are used for the shuttle borders. These images are created in the /cabo/images/cache directory, and look like this:
    c-cclbl.gif (content container light bottom left)
    c-cclbm.gif (content container light bottom middle)
    c-cclbr.gif (content container light bottom right)
    etc...
    (Note the shuttle shares icons with the "light" content container.)
    These images are only generated once - the first time a shuttle/content container is rendered - and after that the same images are re-used forever more. If you install these images with your application, UIX will detect that the images are already present, and won't ever try to generate new versions of these images. So, you can modify these images as necessary (eg. change the colors - but not the width/height) - and UIX won't know the difference...
    Andy

  • Problems with shuttle based on VO

    I need to use one shuttle based on VO, named Blocks
    My VO has three attributes id, title and description.
    On shuttle i need populate list from this vo like this :
    <shuttle name="Blocks"
    leadingHeader="Blocos Disponiveis"
    trailingHeader="Blocos Seleccionados"
    leadingDescShown="true" size="15"
    trailingDescShown="true">
    <leading>
    <list model="${bindings.blocks}" size="15">
    <contents childData="${bindings.blocks}">
    <option text="${uix.current.title}" longDesc=""${uix.current.description}" value="${uix.current.id}"/>
    </contents>
    </list>
    </leading>
    <trailing>
    <list name="formBlocks" size="15"/>
    </trailing>
    </shuttle>
    But unfortunelly don't work.
    Can anyone give me a sample or a tip ?
    Thanks

    repost

  • Shuttle example using JClient

    I need to develop a shuttle screen moving data between two view objects. I looked at the Shuttle example using UIX, but I am not sure how to duplicate that functionality in JClient. I am using jdev 10.1.2.0.0. Any help would be greatly appreciated. Thanks!!

    Hi
    I also need to insert a shuttle control in JDeveloper. Shuttle controls are extensively used in JDeveloper Wizards. Is there any way that I can use a prebuilt Shuttle control?
    I tried to mimic the shuttle control on a JTree and have the ">>", "<<", ">", ">>" buttons working. But can not manage to get the Move Up and Move Down buttons working. The JTree is based on a VO and the VO is being sorted by a column "Order". I have managed to change the required "Order" column values when I click Move Up and Move Down but the JTree does not refresh itself until I close the application.
    Any help will be greatly appreciated.
    Thanks

  • Shuttle Example

    Hi,
    Anybody can share experience / example on how to use shuttle especially interacting with database.
    Thanks.
    Elton.

    hi,
    here is an example of the shuttle. The name of the shuttle should be provided. If u see the documentation the tag <shuttle> can take more properties. But for the sake of an example I have written the bare minimum to get the shuttle to work.
    In the example below the trail list can also be data bound but usually if you want some items from the leading list to be transferred to the trailing list you may want to keep this list empty. However if you know that there are some items in the trail list then you can get the list by dataBinding as I have shown for the leading list using the contents tag for dataBinding.
    The importance of each tag can be learnt from the developers guide easily.
    I didn't know exactly what you meant when you said that you want to interact with the DB. In this example the dataBinding can be done by querying the DB and returning the information required to build the list. Ofcourse this will be done in your java class. If you use a jsp you can have a scriplet which queries the DB and creates a list that can be iterated with the sguttle components.
    anyways here is a simple example.
    <shuttle name ="Shuttle1" leadingHeader="LeadingListHeader"
                                      trailingHeader="TrailingListHeader" >
                                    <leading >
                                      <list name="leadList" multiple="true"  >
                                        <contents dataChild="${pageState.lead.leadList}">
                                          <option text="${uix.current.name}" value="${uix.current.value}" />
                                                                              </contents>
                                      </list>
                                    </leading>
                                    <trailing>
                                      <list name="trailList" multiple="true" >
                                        <contents >
                                        </contents>
                                      </list>
                                    </trailing>
                                  </shuttle>hope this helps.
    regards,
    raj

Maybe you are looking for