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.

Similar Messages

  • 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...

  • 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

  • ADF Shuttle Component - Can we have multiple leading list

    Hi,
    I have requirement where there are multiple lists of different types on the left hand side and user should be able to shuttle the items from any of the list to the single selected list in right side. I know in ADF shuttle there is one leading and one trailing list. I wan to know how can i make ADF shuttle component support multiple leading lists and single trailing list.
    Or should I go for total custom solution mimicking shuttle behavior?
    JDev version is 11.1.1.6.0
    Thanks,
    Sandeep
    Edited by: Sandeep Koul on Aug 26, 2012 10:47 PM

    After consulting other ADF experts offline, we have come to conclusion that there is no off-the shelf component which caters to my requirement.
    We are now going with complete custom solution to achieve shuttle behavior.
    I am marking this query as answered.
    Thanks,
    Sandeep

  • Insert icon for every row inside the shuttle component

    Hi,
    I have a requirement where the shuttle component should have an icon side by the text and which also should be able to replace with the different icon based on some conditions
    For example
    The left side the shuttle component consists of list services. When the user moves some of the services to the right, in the right shuttle the 'X' icon should be displayed for each of the selected services.
    When some action is performed these 'X' should be replaced with 'Yes' icon.
    Thanks,
    Manidhar

    It works for me.
    SQL> create table Table_A(a1 number, a2 varchar(10), a3 varchar(10));
    Table created.
    SQL> create table Table_B(b1 number, b2 varchar(10), b3 varchar(10));
    Table created.
    SQL> create table Table_C(c1 number, c2 varchar(10), c3 varchar(10));
    Table created.
    SQL> insert into Table_C
      2  select level, level + 1, level + 2
      3  from dual connect by level <= 3;
    3 rows created.
    SQL> create or replace trigger table_a_tr
      2  after insert or update or delete on table_a
      3  for each row
      4  declare
      5  begin
      6  insert into table_b(b1,b2,b3)
      7  (select c1, c2, c3
      8  from table_c);
      9  end table_a_tr;
    10  /
    Trigger created.
    SQL>
    SQL> insert into table_a values (9, 'x', 'x');
    1 row created.
    SQL> select * from table_b;
            B1 B2         B3
             1 2          3
             2 3          4
             3 4          5Can you show exactly what you are doing in the same way?

  • Shuttle component not posting even when populated

    Hi,
    I am seeing a strange problem when using the shuttle
    component and was wondering if anybody had a workaround
    or more info on where I am going wrong.
    I have a shuttle which is populated from a ViewObject, which is the details part of a master/detail.
    When my screen gets loaded for the first time my leading shuttle is populated correctly,
    with a full list of entries and my trailing component is populated with the correct list of entries.
    However when I submit the form to the server I can see in the log that the leading and the trailing parameters are empty! Very strange.
    If it helps here is how I am creating the shuttle:
    <bc4j:registryDef>
        <bc4j:rootAppModuleDef name="UserManageAppModule"
                               definition="ARCHSSO.UserManageAppModule"
                               releaseMode="stateful">
          <bc4j:viewObjectDef name="UserInfoView" rangeSize="1">
            <bc4j:rowDef name="UpdateUserInfoView" usesCurrency="true" autoCreate="false">
              <bc4j:propertyKey name="key"/>
            </bc4j:rowDef>
          </bc4j:viewObjectDef>
          <bc4j:viewObjectDef name="RoleCodesView" rangeSize="1000"/>
          <bc4j:viewObjectDef name="RolesForUserView" rangeSize="1000"/>
        </bc4j:rootAppModuleDef>
        <bc4j:rootAppModuleDef name="ApplicationsAppModule"
                               definition="ARCHSSO.ApplicationsAppModule"
                               releaseMode="stateful">
          <bc4j:viewObjectDef name="ApplicationsView" rangeSize="100"/>
        </bc4j:rootAppModuleDef>
      </bc4j:registryDef>
    <tableLayout>
      <contents>
         <bc4j:rootAppModuleScope name="UserManageAppModule">
           <contents>
              <bc4j:viewObjectScope name="UserInfoView">
                <contents>
                   <bc4j:rowScope name="UpdateUserInfoView">
                     <contents>
                        <bc4j:messageInput attrName="UriUserid" id="userid" readOnly="true"/>
                        <formValue name="userid" data:value="-99"/>
                        <rowLayout>
                          <contents>
                             <tableLayout>
                               <contents>
                                  <bc4j:messageInput attrName="UriUsername"
                                                         readOnly="true"/>
                                  <bc4j:messageInput attrName="UriUserSurname"/>
                                  <bc4j:messageInput attrName="UriUserFirstname"/>
                                  <bc4j:messageInput attrName="UriUserDesc"/>
                                  <bc4j:messageInput attrName="UriAddr1"/>
                                  <bc4j:messageInput attrName="UriAddr2"/>
                                  <bc4j:messageInput attrName="UriAddr3"/>
                                  <bc4j:messageInput attrName="UriAddr4"/>
                                  <bc4j:messageInput attrName="UriVpnNo"/>
                                  <bc4j:messageInput attrName="UriExtnNo"/>
                                  <bc4j:messageInput attrName="UriPersonnelNo"/>
                                  <bc4j:messageInput attrName="UriTelephoneStd"/>
                                  <bc4j:messageInput attrName="UriTelephoneLine"/>
                                  <bc4j:messageInput attrName="UriCcsCustNo"/>
                                  <bc4j:messageInput attrName="UriPpsNo"/>
                                  <bc4j:messageInput attrName="UriEmail"/>
                                  <spacer height="30" width="400"/>
                               </contents>
                             </tableLayout>
                             <tableLayout width="40%">
                               <contents>
                                  <!-- START ROLE ASSIGNMENT -->
                                  <shuttle
                                             name="UserRolesShuttleEditor"
                                             reorderable="false"
                                             leadingHeader="Available Roles"
                                             trailingHeader="Assigned Roles"
                                             size="5" >
                                    <leading>
                                       <list>
                                         <contents>
                                         <bc4j:optionList voName="RoleCodesView" name="RceRoleId" attrName="RceRoleId" textAttrName="RceRoleDesc"/>
                                         </contents>
                                       </list>
                                    </leading>
                                    <trailing>
                                       <list>
                                         <contents>
                                         <bc4j:optionList voName="RolesForUserView" name="RceRoleId" attrName="RceRoleId" textAttrName="RceRoleDesc"/>
                                         </contents>
                                       </list>
                                    </trailing>
                                    <trailingFooter>
                                       <flowLayout>
                                         <contents>
                                         </contents>
                                       </flowLayout>
                                    </trailingFooter>
                                  </shuttle>
                                  <!-- STOP ROLE ASSIGNMENT -->
                               </contents>
                             </tableLayout>
                          </contents>
                        </rowLayout>
                     </contents>
                   </bc4j:rowScope>
                </contents>
              </bc4j:viewObjectScope>
           </contents>
         </bc4j:rootAppModuleScope>
      </contents>
    </tableLayout>Finally, here is what is popping out in the log:
    Requested page = Page[name=TdcrUserInfoView_Update,key=0001000000
    Event = apply
    Parameter userid=
    Parameter UriUserFirstname=Ken
    Parameter UriExtnNo=
    Parameter UriVpnNo=
    Parameter UriPpsNo=
    Parameter UriPersonnelNo=
    Parameter UriEmail=
    Parameter UriUserSurname=Mulhall
    Parameter UriCcsCustNo=
    Parameter UriAddr4=
    Parameter UriAddr3=
    Parameter UriAddr2=
    Parameter UriAddr1=
    Parameter UriTelephoneStd=
    [u]Parameter UserRolesShuttleEditor:leading:items=;[/u]
    Parameter UriTelephoneLine=
    [u]Parameter UserRolesShuttleEditor:trailing:items=;[/u]
    Parameter UriUserDesc=Enquiry User
    Parameter bajaPage=key=000100000003C20B1000000013000000F68B6BAE3FThe strange thing is if I submit my form which invokes an
    event handler and then refreshes the page all is well and
    the next time the page gets posted the shuttle trailing
    and leading are populated.
    Any help greatly appreciated.
    pj.

    Just a further update if it helps....
    The values from the shuttle are not being submitted in
    the scenario where I do NOT move any of the elements from
    the leading to the trailing. However if I do move
    elements from the leading to the trailing the values will
    get posted correctly.
    Is it possible there is a javascript handler that should
    be populating a hidden field that only gets called once
    the elements are moved?
    Here is the HTML I have on the page returned to the browser:
    <select class="xg" ondblclick="javascript:_moveItems('UserRolesShuttleEditor:leading','UserRolesShuttleEditor:trailing','updateForm');" name="UserRolesShuttleEditor:leading" size="10"><!-- Start:oracle.cabo.ui.composite.TemplateUINode, localName='optionList' --><!-- Start:oracle.cabo.ui.composite.TemplateUINode, localName='viewObjectScope' --><!-- Start:oracle.cabo.ui.BaseMutableUINode, localName='dataScope' --><!-- Start:oracle.cabo.ui.composite.TemplateUINode, localName='rowSetScope' --><!-- Start:oracle.cabo.ui.BaseMutableUINode, localName='dataScope' --><!-- Start:oracle.cabo.ui.composite.TemplateUINode, localName='rowSetIteratorScope' --><!-- Start:oracle.cabo.ui.BaseMutableUINode, localName='dataScope' --><!-- Start:oracle.cabo.ui.composite.TemplateUINode, localName='rowScope' --><!-- Start:oracle.cabo.ui.BaseMutableUINode, localName='dataScope' --><!-- Start:oracle.cabo.ui.BaseMutableUINode, localName='option' -->
                                                  <option value="1">Administrator User</option>
                                                  <!-- Start:oracle.cabo.ui.BaseMutableUINode, localName='option' -->
                                                  <option value="1122">AHCS System Tests Objects Super Role</option>
    etc
    etc
    etc
    <!-- Start:oracle.cabo.ui.beans.form.OptionBean, localName='option' -->
                                                  <option>_______________</option>
                                                </select>
                                              </td>
                                              <td><!-- Start:oracle.cabo.ui.beans.layout.FlowLayoutBean, localName='flowLayout' --><!-- Start:oracle.cabo.ui.beans.form.FormValueBean, localName='formValue' -->
    <input type="hidden" value=";" name="UserRolesShuttleEditor:leading:items">                                            </td>Should the hidden variable above be empty when the form is loaded or should it contain the initial values?
    One other strange behaviour I am seeing is that the
    shuttle does not allow me to select multiple values
    by 'Control+Selecting' - should that be the case?
    Many thanks for any help,
    pj.

  • Emptying the shuttle component not working

    Hi all,
    I am using Jdev 12c. My requirement is to provide user with a Shuttle component in the Popup > Dialog Box and when the user clicks on OK on the Dialog Box, fill the selected values in the Text box on the main page.
    This works fine for me till I try to empty the already selected values from the shuttle component using '<<' option on the Shuttle component and press OK. I get an exception from 'FacesCtrlListBinding.java' file, saying null pointer exception. Following is the exception trace.
    I have shifted my project from Jdev 11g to 12c in between project development, could that be a cause here?
    Thanks!
    Exception Trace:
    Header 1
    <Error> <oracle.adfinternal.controller.application.AdfcExceptionHandler> <ADFC-50016> <ADFc: While handling an exception the application's exception handler threw a new exception.
    java.lang.NullPointerException
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findObjectFromIndex(FacesCtrlListBinding.java:355)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.getInputValue(FacesCtrlListBinding.java:216)
      at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2475)
      at oracle.jbo.uicli.binding.JUCtrlListBinding.internalGet(JUCtrlListBinding.java:3926)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.internalGet(FacesCtrlListBinding.java:499)
      at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:751)
      at javax.el.MapELResolver.getValue(MapELResolver.java:199)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:183)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1734)
      at org.apache.myfaces.trinidad.component.UIXValue.getValue(UIXValue.java:79)
      at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:211)
      at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:724)
      at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:337)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1400)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1385)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:1152)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1400)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1385)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:1152)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1602)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1984)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:222)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:156)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1942)
      at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:594)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:156)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:156)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1876)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1999)
      at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1426)
      at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:669)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:426)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

    Hi Bala,
    Following is the PageDef XML file code.
    Header 1
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="12.1.2.66.68" id="XYZPageDef"
                    Package="fragments.Management">
      <parameters/>
      <executables>
        <variableIterator id="variables"/>
        <page path="page_template.ManagementTemplatePageDef" id="ptb1" Refresh="ifNeeded"/>
        <iterator Binds="StorageClassLOV" RangeSize="25" DataControl="ManagementAMDataControl" id="StorageClassLOVIterator"/>
      </executables>
      <bindings>
        <list IterBinding="StorageClassLOVIterator" ListOperMode="multiSelect" ListIter="StorageClassLOVIterator"
              id="StorageClassLOV" SelectItemValueMode="ListObject">
          <AttrNames>
            <Item Value="StorageClass1"/>
          </AttrNames>
          <ListDisplayAttrNames>
            <Item Value="StorageClass1"/>
          </ListDisplayAttrNames>
        </list>
      </bindings>
    </pageDefinition>

  • Shuttle component with 3 boxes to select items

    Hi,
    I've a requirement to select the items from already selected list of items. Is there any component available to achieve this requirement?
    My requirement is 'Assume 3 boxes (similar to the shuttle component boxes) Left box has Item1 to Item6, user can select some items from left box to the middle box  and user can select the items from middle box to the right box'. SelectManyShuttle allows only selection between 2 boxes.' Can we achieve this requirement with selectManyShuttle component?
    Thank you.

    Hi --CELKO—,
    Thanks for your trying, but SSMS said incorrect syntax near Except keyword.
    And yes, I really didn’t read some book or take a class on RDBMS whatever that is. I work in small biz firm of only 10 men and in spite the fact that I’m only IT person there, my work is hardly limited only on IT. I have to do bunch of
    things firstly in order to make the firm function, and only at the end, if I find some time and strength left, I do something interesting. That’s why my projects move so slowly, even though I rarely spend less than 10 hours at work.
    It might be my poor English, but your choice of words suggests that you’re somehow irritated with my knowledge deficiency. Don’t get me wrong, I cannot afford the luxury of being ashamed about it. I have to ask questions in order to accomplish
    what I have to as soon as I can. But at the very top of my question you could see that I announced a beginner question (not the first one), so if you find that kind of questions annoying, just skip them and save yourself from diabetes. It’s the best piece
    of advice I can give to anyone.

  • Shuttle component issue

    I am using jdev 11.1.1.3.
    i created a shuttle component.it is getting all the values and we can shuttle it also.
    my problem is that when i select an item from combo box first value by default is coming like on right side and all others in left side.
    i want all the values to be in the left side from beginning.
    i wrote some code in the java bean .
    private RichSelectManyShuttle shuttle1;
    List selectedValues;
    List allItems;
    boolean selValChangeVal = false;
    public void setSelectedValues(List selectedValues) {
    if (selValChangeVal) {
    try {
    DCBindingContainer dcbindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterator =
    dcbindings.findIteratorBinding("VwCompanyTypesVO1Iterator");
    OperationBinding operationDelete =
    dcbindings.getOperationBinding("Delete");
    Row[] rowSet = iterator.getAllRowsInRange();
    for (Row row : rowSet) {
    Object DeletedRowsObj = row.getAttribute("TableId");
    if (selectedValues == null && DeletedRowsObj != null) {
    iterator.setCurrentRowWithKey(row.getKey().toStringFormat(true));
    operationDelete.execute();
    } else if (!selectedValues.contains(DeletedRowsObj)) {
    iterator.setCurrentRowWithKey(row.getKey().toStringFormat(true));
    operationDelete.execute();
    } else {
    selectedValues.remove(DeletedRowsObj);
    // CommitChanges();
    } catch (Exception e) {
    // TODO: Add catch code
    e.printStackTrace();
    this.selectedValues = selectedValues;
    public List getSelectedValues() {
    // if (selectedValues == null) {
    selectedValues = Adfutil.attributeListForIterator("VwCompanyTypesVO1Iterator",
    "Id");
    return selectedValues;
    public void setAllItems(List allItems) {
    this.allItems = allItems;
    public List getAllItems() {
    allItems =
    Adfutil.selectItemsForIterator("CompaniesCompanyTypesVO2Iterator",
    "VwCompanyTypesId","Companyname");
    return allItems;
    }

    Hi Jay,
    Can you please post your .jsff source code and methods looks fine to me.

  • How to programatically populate data in ADF shuttle component?

    Hi,
    Can anyone please let me know the code for programatically pouplating data into the shuttle Oracle ADF shuttle component using ArrayList object? I have my data(records) in an Arraylist object and I am using JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
    Thanks,
    Vikas

    Have a look at this thread:
    http://baigsorcl.blogspot.com/2010/10/creating-shuttle-component-in-oracle.html
    Thanks,
    Navaneeth

  • ADF JSF Shuttle Component - Additional input fields

    Hello,
    We're in the process of integrating the nice shuttle JSF component into our application. Our app though requires that before the assignment is done (by moving an item left ->right in the shuttle UI) a dialog window must be opened to allow the user to fill in additional input fields (i.e the targe N-M association table that is populated by the shuttle component, needs those additional fields filled for each new record).
    Is there a way to do that with the current shuttle component?
    Thanks in advance for any help.
    Jordi

    ckx,
    The components don't require a model reference (i.e. assocaition with a JavaBean). You can access all of the components on the posting page on the server, so you could definitely get all of the values that way. You can build up the tree dynamically as well.
    So the short answer is yes :-).
    <<KM>>

  • Required HyperLink in Shuttle component in Oracle ADF

    Hi ,
    Can any body tell me ,how to give the hyperlink inside shuttle component elements and how to give action on that hyperlink in ADF ?
    Please reply me ASAP..........
    Regards ,
    Sahdeep Rajput

    I dont think that is possible.

  • ADF UIX Tree Component

    Hi
    I have created ADF UIX Tree Component on my screen and i want to have button expand all / collapse all for my tree .
    Can i create event for expand all / collapse all ADF UIX Tree ?
    If i can ,could you please advise how i should to do ?
    Thanks

    Hi Daniel,
    Are there any one can tell me when the new ADF UIX
    demo based on uix 2.2 be released?I'm not sure when any sample applications will be released, but there is an ADF UIX tutorial available here:
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I want to know if we can get databind uix tree
    component (or other ui components) from ADF data
    action control which return dataobject and something
    else.I'm not sure about the tree component - I'll try to find out whether that is/will be supported. Once your data controls are available in the Data Control Palette, you can bind them to components in your UIX page by:
    1. Selecting the data control that you want to bind.
    2. Selecting a component type from the "Drop As" choice.
    3. Dragging the data control onto the UIX page.
    This process is illustrated in the tutorial above.
    Andy

  • UIX choice component event handling

    Hi, I am using UIX in JDEV 10G. My page has a few dependent uix choice components on it. The first choice populates the second choice box and so on. I am using primaryClientActions to handle firing the event of populating the choice box. Below is the EventHandler for the fired event. I have a viewObject and AppModule. I set the where clause on the viewobject with the parameters from the previous choice selection. My question is: How do I get my query results back to my UIX choice component. I thought if I called executequery() it would update the view Objects query and update my page, but I think I am missing a step.
    public static EventResult fminstEventHandler(BajaContext context,Page page,PageEvent event) throws Throwable
    result = new EventResult();
    fmInst = event.getParameter("FmName");
    DeptAppModuleImpl dam = new DeptAppModuleImpl();
    ViewObject deptView = dam.getDeptView1();
    deptView.setWhereClause("where inst ='" + fmInstNum +"' and dept != '*****' and guide_yr ='"+guideyr +"' union select 'ALL', '0' from dual");
    deptView.executeQuery();
    return result; //result is nothing right now.
    Thanks for your help.
    McKell

    Sure. Thanks for responding to my question. Below is the UIX file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
    xmlns:myTemplate="CourseTransferTemplate">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="CrsTranTemplate.uit"/>
    </templates>
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document xlmns="http://xmlns.oracle.com/uix/ui">
    <metaContainer>
    <!-- Set the page title -->
    <head title="Course Transfer Search"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <!-- <formParameter name="event"/> -->
    <myTemplate:CourseTransferTemplate selectedTab="0"
    title="Course Transfer Search"
    xmlns:myTemplate="CourseTransferTemplate">
    <contents>
    <rawText
    text="<p>Welcome to the Utah System of Higher Education (USHE) Course Transfer Guide on the Web!
    <p>The USHE Course Transfer Guide provides course-by-course articulation and transfer information. It shows how a course at the institution you are transferring from (the 'from' school) articulates with a course at the institution to which you plan to transfer (the 'to' school). The USHE Course Transfer Guide has been developed by the Utah Transfer Articulation Committee and the ">
    <contents>
    <link text="Utah System of Higher Education"
    destination="http://www.utahsbr.edu"/>
    <rawText text="(USHE). It is updated every year by participating institutions and a new guide is published in the fall.<p>"/>
    </contents>
    </rawText>
    <!-- GuideYR -->
    <rawText text="Guide Year ">
    <contents>
    <choice model="${data.TransferGuideUIModel.GuideYr2}" name="GuideYr2" prompt="GuideYr2" >
    <primaryClientAction>
    <firePartialAction event="guideyrEvent"
    formSubmitted="true"
    />
    </primaryClientAction>
    <contents childData="${data.TransferGuideUIModel.GuideYr2.displayData}">
    <option model="${uix.current}" text="${uix.current.prompt}"
    value="${uix.current.prompt}" />
    </contents>
    </choice>
    </contents>
    </rawText>
    <!-- FmName -->
    <rawText text="From Institution ">
    <contents>
    <choice model="${data.TransferGuideUIModel.Name}"
    name="FmName" prompt="FmName">
    <primaryClientAction>
    <firePartialAction event="FmInstEvent"
    formSubmitted="true"
    targets="Department"/>
    </primaryClientAction>
    <contents
    childData="${data.TransferGuideUIModel.Name.displayData}">
    <option model="${uix.current}"
    text="${uix.current.prompt}"
    value="${uix.current.prompt}"/>
    </contents>
    </choice>
    </contents>
    </rawText>
    <!-- Dept -->
    <rawText text="From Department ">
    <contents>
    <choice model="${data.TransferGuideUIModel.Dept}" name="Dept" prompt="Dept">
    <primaryClientAction>
    <firePartialAction event="DepartmentEvent"
    formSubmitted="true"
    targets="Course"/>
    </primaryClientAction>
    <contents childData="${data.TransferGuideUIModel.Dept.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </choice>
    </contents>
    </rawText>
    <!-- Crs -->
    <rawText text="From Course ">
    <contents>
    <choice id="Course" name="Crs" nodeID="Course">
    <primaryClientAction>
    <firePartialAction event="CourseEvent"
    formSubmitted="true"
    />
    </primaryClientAction>
    </choice>
    </contents>
    </rawText>
    <!-- ToName -->
    <rawText text="To Institution ">
    <contents>
    <choice model="${data.TransferGuideUIModel.Name}"
    name="ToName" prompt="ToName">
    <primaryClientAction>
    <firePartialAction event="ToInstEvent"
    formSubmitted="true"
    />
    </primaryClientAction>
    <contents
    childData="${data.TransferGuideUIModel.Name.displayData}">
    <option model="${uix.current}"
    text="${uix.current.prompt}"
    value="${uix.current.prompt}"/>
    </contents>
    </choice>
    </contents>
    </rawText>
    <button text="Find Articulations"/>
    <rawText text="<p>Choose the academic year you want to search for articulations. Then choose the institution you are transferring from. After you make your selection, a list of departments will be created for you to choose from. Once you choose your department, a list of courses will be created for you to refine your selection. You will then choose which institution you would like to transfer to (you may choose all institutions) and click on 'find articulations'. "/>
    </contents>
    <tabs/>
    <pageButtons/>
    <globalButtons/>
    <pageHeader/>
    <start/>
    <end/>
    <about/>
    <copyright/>
    <privacy/>
    <corporateBranding/>
    <productBranding/>
    </myTemplate:CourseTransferTemplate>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="*" source="FmName">
    <method class="mypackage1.EventHandlers" method="fminstEventHandler"/>
    </event>
    <event name="*" source="Department">
    <method class="mypackage1.EventHandlers" method="deptEventHandler"/>
    </event>
    <event name="*" source="GuideYr2">
    <method class="mypackage1.EventHandlers" method="guideyrEventHandler"/>
    </event>
    <event name="*" source="Course">
    <method class="mypackage1.EventHandlers" method="courseEventHandler"/>
    </event>
    <event name="*" source="ToName">
    <method class="mypackage1.EventHandlers" method="toinstEventHandler"/>
    </event>
    </handlers>
    </page>
    HERE IS THE EVENT HANDLER:
    public static EventResult fminstEventHandler(BajaContext context,Page page,PageEvent event) throws Throwable
    try
    con = new DBConnection();
    catch (SQLException e)
    System.out.println(e);
    fmInst = event.getParameter("FmName");
    ResultSet rset = con.query(namesql); //Here con connects to my database and preforms a query.
    while(rset.next())
    fmInstNum = rset.getString(1);
    System.out.println(fmInstNum);
    //DeptAppModule and DeptView are an Application Module and View Object I created from the JDeveloper wizards
    DeptAppModuleImpl dam = new DeptAppModuleImpl();
    ViewObject DeptView = dam.getDeptView1();
    DeptView.setWhereClause("where inst ='" + fmInstNum +"' and dept != '*****' and guide_yr ='"+guideyr +"' union select 'ALL', '0' from dual");
    DeptView.executeQuery();
    //This is where I don't know how to return the result from the query back to the uix choice component named "Dept"
    return new EventResult(page);
    Thanks you so much for your assistance. I might be approaching this completely wrong. I am new to JDeveloper and the UIX framework. Thank you again.
    McKell

  • Custom shuttle component

    Oracle JDeveloper 11.1.1.2.0
    Since the current adf component doesn't seem to allow me to show two columns, i'm trying to implement my own shuttle component.
    I was able to accomplish this by creating two lists<VOrows> (trailing & leading) and using them as table binding and simple array logic in removing one row and adding to the other list...
    Now i'd like to use view objects.
    Let me just call the leading table (selected items) as right table and trailing table (available items) as left table.
    I'm using an entity based view object for the right table since i'll be deleting or inserting data over there.
    For my left table, i'm using a read-only view object which basically says Select all Items that is not on Right table's DB object. Everything seems ok when i placed the shuttle logic in app module as long as i don't re-execute query on the left table because if i re-execute query, it requeries from DB and unless i commit the right table's data, i'll end up getting newly inserted values on the right table showing up on the left all over again.
    My shuttle logic is basically using both viewobjects iterator, insert to right table, then remove from left table... same logic on the reverse, delete from right table, insert to left.
    This would have been feasible except that i have issues with sorting and filtering. If i allow users to filter or sort, it seems that the viewobject requeries, thus giving me the problem of having the same item in both tables.
    In short, i'm trying to look for a solution where i can keep the left table from requerying or if i do choose to use an entity based VO for the left table so that i can use its cache, if i can find a way to commit right table without commiting left table.
    Any hints or guides to what direction i should try or study is highly appreciated.
    Edited by: Mar Vince Reyes on Jan 30, 2010 11:30 AM
    Edited by: Mar Vince Reyes on Jan 30, 2010 11:32 AM

    Hi Mar
    For the shuttle VOs let us assume Code and Description attributes:
    AvailableVo - Read-only VO containing all Available Codes
    SelectedEv - Updateable VO containing the Selected Codes
    We can override executeQueryForCollection on AvailableVo and set a WHERE clause that excludes the rows in SelectedEv.
    Here is a sample implementation:
    <li>In SelectedEvImpl add method getSelectedCodes() that returns a string of all Codes in the SelectedEv View Object.
        public String getSelectedCodes() {
            String quote = "'";
            String separator = ",";
            String selectedCodes = null;
            SelectedEvRowImpl row = null;
            //Create a secondary RowSetIterator to loop through this view object
            RowSetIterator rsi = this.createRowSetIterator(null);
         //Loop through the iterator and generate the string with Codes
            while(rsi.hasNext()){
                row = (SelectedEvRowImpl)rsi.next();
                String code = quote+row.getCode()+quote+separator;
                if (selectedCodes == null)
                    selectedCodes = code;
                else
                    selectedCodes = selectedCodes.concat(code);
            //Close secondary row set iterator
            rsi.closeRowSetIterator();
            //Remove the extra comma at the end of the string
            if (selectedCodes!=null)
              selectedCodes = selectedCodes.substring(0, selectedCodes.length()-1);
            return selectedCodes;
        }<li> In AvailableVoImpl we override executeQueryForCollection and set WHERE clause to exclude the rows in SelectedEv.
        protected void executeQueryForCollection(Object object, Object[] object2,
                                                 int i) {
            String selectedCodes = ((AppModuleImpl) getApplicationModule()).getSelectedEv().getSelectedCodes();
            if (selectedCodes != null)
              setWhereClause("code not in ("+selectedCodes+")");
            super.executeQueryForCollection(object, object2, i);
        }<li> On your Page Binding under Executables section verify that SelectedEvIteraor is above the AvailableVoIterator.
    <li> Partial trigger AvailableVo to refresh it as you shuttle Codes from AvailableVo to SelectedEv.
    Mitesh
    Edited by: Mitesh Gajjar on Jan 31, 2010 3:24 PM
    Added rsi.closeRowSetIterator();

Maybe you are looking for

  • Sales Order/Quotation, Delivery, Returns.  Need a way to search by zipcode

    Using 2007a SP0 PL49. In Sales Quotation, Sales Order, Delivery and Return submenus. We can have 100s of shipto on our major accounts. Users typically search by postal codes, we haven't migrated to SBO yet, this is a road block for it. So far, I have

  • Creating a Service Order automatically when saving a Sales Order

    Hello SDN, I'm trying to have SAP automatically create a Service Order when a Sales Order is created. To this end, I've tried implementing BADI workitem_template and have been using method before_update. I've been using BAPI BAPI_ALM_ORDER_MAINTAIN t

  • Songs/Artists Out Of Alphabetical Order

    I recently synced an album to my iPhone via iTunes and somehow everything became out of whack. You know how the music section of the iPhone is divided out alphabetically - well it is showing Gorillaz under "E" and other mistakes like that. It is the

  • Email HTML Rendering bug?

    I have a system that sends me an HTML-formated email everyday. It appears that the IPhone 3G, running 2.2 and 2.2.1, is not able to render that email when it is large. For example, if the size of the email is 380K, the Iphone shows me the email as te

  • Standard Tcode : VA01 is going for Dump

    Hi all,   While creating sales order in VA01,  the screen number 4003 having arrow Buttons Shift + f5 , Shift + f6 , Shift + f7 , and Shift + f8. If i am pressing that it is going for dump can any body help me why it is going for dump in ECC 6.0 . Bu