Refer to 'parent' 'uix.current'?

I'm using the 10g preview. I'm trying to do something like this:
<contents childData="${ bean.thingsToChoose }" >
<messageChoice prompt="${ uix.current.name }"
          name="${ uix.current.name }"
          >
    <contents childData="${ bean.childrenOf[ uix.current['.'] ] }" >
     <option text="${ uix.current.name }" >
     </option>
    </contents>
</messageChoice>
</contents>Let's say the bean has a method like 'selectedChildOf', so that in the option tag, I'd like to say something like:
selected="${ uix.current['.'] eq bean.selectedChildOf[ uix.current['.'] }"Except the second occurrence of 'uix.current' there actually needs to refer to the current object in the outer loop, not the current object of the inner loop. (By the way, is that the correct comparison syntax - i.e. same as JSTL el?)
I know that I could add a property to the children so that they could know whether they are selected, but I'd rather not do that just yet. If possible, could someone please point out both:
1) How to refer to the outer loop's current object from inside the inner loop?
2) How to set up a temporary variable or alias? This would be one way to make the reference - i.e. something like the following, only in UIX:
<c:set var="outerCurrent" value="${ uix.current['.'] }" />Thanks!

Thanks, Arjuna. Could you please confirm the following implementation? It appears to be working, but I want to be sure I haven't overlooked something that will get me into trouble down the line. Also, if this is a correct implementation, I thought it might be nice to have an example here that others could learn from or use.
public class TempValueUIExtension implements UIExtension  {
     public static final String TEMP_VALUE_NAMESPACE = "http://tempvalue.avega.com";
     public TempValueUIExtension() {
     public void registerSelf(ParserManager parserManager) {
          XMLUtils.registerFunctions( parserManager, TEMP_VALUE_NAMESPACE, TempMap.class );
     public void registerSelf(LookAndFeel lookAndFeel) {
public class TempMap {
     public static final String MAP_ATTRIBUTE = "tempMapAttribute";
     public static void put( UIImplicitObject uix, Object key, Object value ) {
          getTempMap( uix ).put( key, value );
     public static Object get( UIImplicitObject uix, Object key ) {
          return getTempMap( uix ).get( key );
     private static Map getTempMap( UIImplicitObject uix  ) {
          RenderingContext context = uix.getRenderingContext();
          BajaContext bajaContext = BajaRenderingContext.getBajaContext( context );
          HttpServletRequest request = bajaContext.getServletRequest();
          Map tempMap = (Map)request.getAttribute( MAP_ATTRIBUTE );
          if ( tempMap == null ) {
               tempMap = new HashMap();
               request.setAttribute( MAP_ATTRIBUTE, tempMap );     
          return tempMap;
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:temp="http://tempvalue.avega.com" expressionLanguage="el">
    <content>
        <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
            <contents>
                <document>
                    <contents>
                        <body>
                            <contents>
                                <text text="${ temp:put( uix, 'tempKey', 'tempValue' ) }"/>
                                <text text="${ temp:get( uix, 'tempKey' ) }"/>
                            </contents>
                        </body>
                    </contents>
                </document>
            </contents>
        </dataScope>
    </content>
</page>I've got the TempValueUIExtension registered in the uix-config.xml. The output of the above test page renders as just the string 'testValue', which is what I would expect. I wasn't sure where to include the el for setting the value, but since it is a null function, I figured it couldn't hurt to throw in a <text> tag that would probably just print nothing at all. Any better suggestions?
Also, you say there will be a way to refer to outer loops in the next release of UIX (do you mean the 10g production release, or after that?) Will there also be a built-in mechanism for temporary variables?

Similar Messages

  • What situation refer to maxium drain current in the MODEL MAKER ?

    hi ,all
         In the process of creating a spice model of NMOSFET , I didn't understand what situation refer to maxiun drain current ,DC or PULSE ?
         Thanks.
        leehiyu 

    Drain current is an important parameter when the output load resistance is small. If the drain current is not big enough, the output voltage will be lower than what you expect. This may cause some founctional error.
    Qiushi Shen
    DSM Nanjing
    NISH

  • UIX current path

    Hello,
    Does anybody know how to display the current path of the UIX page?
    I want to put this in a variable and send it to a dataAction so that after the execution in my dataAction has been done, I can fire back to the page I came from.
    I already tried ${pageContext.request.requestURI} only nothing comes out of this expression. Does anybody know the correct formulation of the binding to get the URI or path of the current UIX?
    Any help appreciated,
    Thanks,
    Gideon

    It works.. thanks.. only problem is that if I come from a DataPage, the URL/URI should end in a .do and not in a .uix
    With your example I only get .uix extensions.
    Is there a way to do this correctly.
    I have a datapage: workshops.do that forwards to an loginModule. One of the parameters of this loginModule is should be the correct URL. Because in this case I origin from a .do-page I also want this in the URL. Problem is that in the URL only .uix is displayed.
    Anybody know how to solve this?
    Thanks in advance,
    Gideon

  • How to refer the parent class object from an inner class

    Hi,
    I have a class X, which contains an inner private class Y. Class X has a method getY which returns an object of class Y. Class Y has a method getParent. I want to return the object of parent class from this. The code is like this:
    public inerface IY;
    public class X {
    private class Y implements IY {
    public getParent {
    // ... return the object of parent class which created the object of this inner class
    public IY getY() {
    return new Y();
    Can somebody help me with this...

    interface IY {
    public class X {
        private class Y
            implements IY {
            private X parent;
            public Y(X x)
                parent = x;
            public X getParent()
                // ... return the object of parent class which created the object of this inner class
                return parent;
        public IY getY()
            return new Y(this);
    }Filip

  • 10g UIX UIExtensions

    This is sort of a followup to a UIX thread: Refer to 'parent' 'uix.current'?
    The extension I posted there appears to be working, but the compiler always complains that it is 'unable to parse binding' on my UIExtension classes. It's just a warning, and the code still compiles and works, but is there a way to avoid the warning?
    Also, I wrote another extension for accessing attributes, for which I'll post the code below. I know that objects like 'sessionScope' are available in a UIX page, but without a 'set' like in JSTL, is there another way to set values on the scope objects, short of an extension like below?
    Also, if someone could please respond to my question about a place to put the el expressions for my extensions. Currently, I put the 'setter' calls in a text tag, since the setters are void, so the tag doesn't render.
    Finally, will there be a 'set' and temporary variables in the production 10g?
    public class ScopeAttributeAccessorUIExtension implements UIExtension  {
         public static final String ACCESSOR_NAMESPACE = "http://uix.avega.com/access";
         public void registerSelf(ParserManager parserManager) {
              XMLUtils.registerFunctions( parserManager, ACCESSOR_NAMESPACE, ScopeAttributeAccessor.class );
         public void registerSelf(LookAndFeel lookAndFeel) {
    public class ScopeAttributeAccessor  {
         public static void sessionSet( UIImplicitObject uix, String key, Object value ) {
              RenderingContext context = uix.getRenderingContext();
              BajaContext bajaContext = BajaRenderingContext.getBajaContext( context );
              HttpServletRequest request = bajaContext.getServletRequest();
              HttpSession session = request.getSession();
              session.setAttribute( key, value );
         public static Object sessionGet( UIImplicitObject uix, String key ) {
              RenderingContext context = uix.getRenderingContext();
              BajaContext bajaContext = BajaRenderingContext.getBajaContext( context );
              HttpServletRequest request = bajaContext.getServletRequest();
              HttpSession session = request.getSession();
              return session.getAttribute( key );
         public static void requestSet( UIImplicitObject uix, String key, Object value ) {
              RenderingContext context = uix.getRenderingContext();
              BajaContext bajaContext = BajaRenderingContext.getBajaContext( context );
              HttpServletRequest request = bajaContext.getServletRequest();
              request.setAttribute( key, value );
         public static Object requestGet( UIImplicitObject uix, String key ) {
              RenderingContext context = uix.getRenderingContext();
              BajaContext bajaContext = BajaRenderingContext.getBajaContext( context );
              HttpServletRequest request = bajaContext.getServletRequest();
              return request.getAttribute( key );
    }

    We don't have any special integration with xsql, but you can include non-uix content using urlInclude and servletInclude. See the section "Including JSP, Servlet, and Other HTML Content" in "Building J2EE Applications -> Working with the web tier -> Working with ADF UIX Pages -> UIX Guidelines -> Dynamic User Interfaces -> Includes and Templating in ADF UIX".

  • UIX/BC4J puzzle to render and unknown number of data tables.

    Hello, I have the next puzzle I haven't solved:
    The requirements for a page are that it has to render Contract numbers as table titles and Bills dued to each contract as table content, something like this:
    Contract No. 4353
    Bill No. Date Amount
    8799 25/04/2006 $800.00
    3690 25/04/2006 $1,000.00
    and then more tables like that as contract rows are found in a view object.
    I have two linked view objects: the contractView and the billsView.
    Besides, the contractView has attributes which should be rendered as the bills table footer (amount total for example).
    I found a way to iterate over the contractView and then the billsView, with something like this:
    <tableLayout>
        <contents childData="${bindings.contractViewIterator.allRowsInRange}">
             <rowLayout>
                  <contents>
                    <header text="${uix.current.contractNumber}"/>
                    <table tableData="${uix.current.attributeValues[15].allRowsInRange}"/>
                    <!-- the 15th attribute is the link accessor, so I'm getting the billsView here -->
                         <!-- and here would go more code to render the table contents -->
                    </table>
                  </contents>
              </rowLayout>
           </contents>
    </tableLayout>This works fine for tables with no footer data, but I need to display the footer section of the table, the problem is that the footer section data is in the parent view (contracts) and I cannot reference it inside the <table> because there the "uix.current" object represents a row in the billView.
    If someone has another idea of achieving this, I'd really appreciate it if you post it here, or a way to reference the parent uix.current object.
    Thank you.

    The only solution I came up with was to use the link accessor in the opposite direction, so I can get the contractView and display the totals on each column.
    So, the next code does it:
    <footer>
         <formattedText text="${uix.current.contracts.totalAmount}"/>
    </footer>Where contracts is the backwards accessor to the parent view object and totalAmount the attribute name to display in the column footer. I had to generate the row implementation for both view objects to access attributes by name to make it easier.
    I post the solution in case someone runs into the same problem.
    Thank you.

  • Parent-Child using messageChoice to table

    I have a UIX form that has two components on it. A <messageChoice> that is displaying parent data (e.g. departments) and a <table> that is displaying the employees in the department.
    I would like to be able to select a department from the <messageChoice> and have the employees displayed in the <table>.
    The model includes a viewlink between the parent table and the child table to force the relationship.
    When I create the <messageChoice> as a LOV I get a message in the "List Binding Editor" that says:
    "You have selected a detail data collection as the target (data collection) and master data collection as the source (data collection).
    Target data collection will not be modified but navigated based on the selection in the LOV.
    Want to proceed?"
    (This looks ok to me.)
    I build the rest of the page and have tried to add an event action to the <messageChoice> but I have not been able to get the parent VO to be set to the selected record so that the child will display the associated data. The first record that is showing has the correct child records.
    The UIX looks like this:
    <messageChoice id="mcSID" model="${bindings.Dept}">
    <contents childData="${bindings.Dept.displayData}">
    <option model="${uix.current}"/>
    </contents>
    <primaryClientAction>
    <fireAction event="selectDID" formSubmitted="false">
    <parameters>
    <parameter key="currentDID" value="${bindings.Did}"/>
    </parameters>
    </fireAction>
    </primaryClientAction>
    </messageChoice>
    <spacer width="10" height="10"/>
    <styledText text="CURRENT DID: "/>
    <styledText text="${param.currentDID}"/>
    I believe that I need to be able to trap the id of the record that has been selected so that the parent VO can be set to this value. The child VO should follow suit. However, I am not able to get the value from the messageChoice. How can I get this to work?

    Hi Vince -
    I spent some time yesterday trying to put together a solution based on the Employees/Departments tables of the HR sample schema. Like you, I started by trying to bind the mesageChoice such that the Departments view object is used for the source data collection and the Employees view object on the other side of the view link is the target data collection. When creating the binding, I too saw the "Target data collection will not be modified but navigated based on the selection in the LOV" message, which seemed like a good sign. Although the messageChoice does get populated correctly, no records are found when I try to select a new department.
    I recruited a co-worker who has more experience working with ADF BC to help out, and he proposed a slightly different solution, which we were able to get up and running. I'm not sure whether this is necessarily the best solution, and there most certainly are other ways to accomplish the same functionality, but the solution seems to work fairly well, so I thought it would be worth sharing.
    The main change in new solution has to do with the target data collection that is used when setting up the list binding. In the earlier solutions that both you and I attempted, the target data collection is the "detail" view object itself (ie. the Employees view object hanging off of the Departments view object via a view link). Instead of going this route, my colleague suggested using an intermediate "transient" view object to hold the result of the list selection. This view object is linked to a new instance of the Employees view object. The idea is that when the list selection changes, it is applied to the new transient view object, which in turn restricts the employees that are included in the linked Employees view object.
    Here are steps we followed to get this up and running:
    1. Create the basic data model
    We used the HR schema, and created view objects from the EMPLOYEES and DEPARTMENTS tables. This produced an application module with the following view objects:
    - EmployeesView1: All employees
    - DepartmentsView1: All departments
    - EmployeesView3: View of employees linked to DepartmentsView1
    2. Define a transient view object for holding selection data
    Using the "Create View Object" wizard, we set up the view object as follows:
    Step 1: Set name to "TransientDepartmentsView"
    Step 2: Do not select any entities (since the view object is transient)
    Step 3: Create a new attribute named "DepartmentId". Set the type to "Number". Set updateable to "Always". Check "Selected In Query". Set Alias to "DEPARTMENT_ID".
    Step 4: Leave attribute settings as is
    Step 5: Set query to "SELECT 10 AS DEPARTMENT_ID FROM DUAL".
    Accept all other defaults in remaining steps and finish.
    The new view object has a single attribute "DepartmentId", which will be used to store the results of the list binding. The "SELECT 10 AS DEPARTMENT_ID FROM DUAL" serves two purposes. The "FROM DUAL" clause ensures that the view object only ever contains a single row. The "SELECT 10 AS DEPARTMENT_ID" ensures that a default department id (10) is provided, so that the initial page render will display the employees from the default department.
    3. Define a view link between the TransientDepartmentsView and EmployeesView
    In the "Create View Link" wizard, enter the following values:
    Step 1: Set name to "TransientEmpDeptFKLink".
    Step 2: Select the TransientDepartmentsView's DepartmentId attribute for the source. Select the EmployeesView's DepartmentId for the destination. Click Add.
    Accept all other defaults in remaining steps and finish.
    5. Add new view object instances to the application module.
    In steps 3 and 4, we enhanced our model definition to include a new view object and view link. Now, we need to create instances of these objects in the application module, as follows:
    - Double click on the AppModule node in the Applications Navigator to bring up the Application Module editor.
    - Select the "Data Model" node to display the available model objects.
    - Select the TransientDepartmentsView node in the "Available View Objects" pane.
    - Click the right arrow button to add a new instance to the application module. You should see a new view object instance named "TransientDepartmentsView1" appear in the Data Model pane, which should be selected.
    - Back in the Available View Objects pane, select the "EmployeesView via TransientEmpDeptFKLink" node. Leaving the "TransientDepartmentsView1" node selected on the Data Model pane, click the right arrow. You should now see an "EmployeesView4 via TransientEmpDeptFKLink1" node appear under the "TransientDepartmentsView1" node in the Data Model pane.
    - Click OK
    At this point we're done preparing the data model. Before we move on, we can test the model in the Oracle Business Component Browser. Bring up the BC Browser by right-clicking on the "model" node in the Application Navigator and selecting "Run". You should see our new transient view object and link under the application module. If you double-click the TransientEmpDeptFKLink1, you should see a "DepartmentId" field linked to the employees view. Try entering a new department id (eg. "90") into the field and hit enter. The emloyees list should be filtered accordingly.
    6. Set up the page flow.
    In my sample, I just add a single Data Page ("/dataPage1") to the struts-config.xml. To create the corresponding UIX page, double click the Data Page node and select "/dataPage1.uix".
    7. Create the messageChoice and set up list binding.
    In the Data Control pallete, select the DepartmentId attribute of the TransientDepartmentsView1 view object. Set "Drag and Drop As:" to "MessageChoice", and drag the DepartmentId node to the UIX page. This brings up the List Binding Editor.
    In the List Binding Editor, change the List Binding Mode to "LOV Mode". The target data collection should already be populated. Select DepartmentsView1 for the source data collection, since we want to display all available departments in our messageChoice. Click New/OK to create a new source iterator. Click Add and verify that both the source and target attribute is "DepartmentId".
    In the LOV Display Attributes pane, select DepartmentId and/or DepartmentName as desired.
    8. Set up the client action.
    From the property inspector, launch the primaryClientAction editor. Select "Fire action by submitting Form" and click OK. This will set up a <primaryClientAction> element in your uiXML code. By default, the fireAction client action assumes a default event named "update". We don't want to fire a UIX event - we just want to submit the form and allow ADF to handle the postback. So, to suppress the default "update" event, go into your uiXML and add 'event=""' to the <fireAction> element. Your <fireAction> element should look like this:
    <fireAction event="" formSubmitted="true"/>
    9. Set up the employees table.
    Back in the data control palette, select the "EmployeesView4" node, which should be under the "TransientDepartmentsView1" node. Make sure "Drag And Drop As: " is set to "Read-Only Table", and Drag the EmployeesView4 node onto the UIX page. You should see the table appear with appropriate bindings.
    At this point, you should be good to go. Try running the /dataPage1 Data Page from the struts-config.xml editor. When the page first comes up, you should see the default department selected (in our sample, that would be 10/Administration) and the table should display the corresponding employees. When a new department is selected, the <fireAction> triggers a form submission. This in turn causes the selected value to be applied to the transient departments view object, and the linked employees view object to be filtered accordingly. When the page is re-rendered, the employees table should be updated to reflect the currently selected department.
    Hope this helps solve your problem. As I mentioned above, I'm sure there are other ways to do this. If anyone has recommendations for a simpler solution, please let us know!
    Andy

  • EL problem in uix page

    Hi,
    I have a request parameter which I would like display content.
    It's a list which content another list.
    I write this:
    <stackLayout>
    <contents childData="${requestScope.treeSecteurMarque}">
    <styledText text="${uix.current.nomSecteur}" />
    <stackLayout>
    <contents childData="${uix.current.listMarque}">
    <styledText text="${uix.current.nomMarque} />
    <styledText text="${uix.current.nomSecteur}" /> <--- How access to this attribute here which is parent attribute
    </contents>
    </stackLayout>
    </contents>
    </stackLayout>
    My is how I can access to to parent attribute in second stakLayout ?

    unfortunately, there is no way to do this. uix does not support accessing childData properties from a nested childData.

  • ADF UIX:  MessageChoice in a table. NavigationBar.

    Hi,
    I've got two problems with adf uix.
    I would like to have a drop-down list which presents the answers possible to each questions. (An answer is referancing a questions with two columns: quesNumero, and numerodep, sequenced in parent).
    I don't know why, but the visible answers are those of the first question.
    Here are the properties of the list binding editor:
    http://img81.imageshack.us/img81/5376/prob16rj.jpg
    Here's the source code of the list:
    <column>
    <columnHeader>
    </columnHeader>
    <contents>
    <messageChoice model="${bindings.current.Remarque3}">
    <contents childData="${bindings.Remarque3.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </messageChoice>
    </contents>
    </column>
    Here the result:
    The answer is matching only the first question.
    How could I correct that?
    In addition, I would like to have all the recordings on a page. I would like that the table does not use a navigationBar. I have each time between ten and tewnty questions to post and I don't want that the user must change pages to see the last questions. How can I do that?
    http://img72.imageshack.us/img72/6851/prob31el.jpg
    Thanks a lot !
    Nicolas

    Nobody ?
    Message was edited by:
    user481143
    Message was edited by:
    user481143

  • Want to show UIX Media Model link in new page using jdev1012

    Hi, I hope you can help me.
    I have a read only table in uix page
    there's a Column of type ORDDOC
    here is my code for this column:
    <column>
    <columnHeader>
    <styledText text="${bindings.Doc.label}" styleClass="DefaultFont"/>
    </columnHeader>
    <contents>
    <media
    model="${ctrl:createMediaModel(uix.current.Doc,'AppModulLocal')}"
    shortDesc="${uix.current.DocName == null ? 'Doc' : uix.current.DocName}"
    styleClass="DefaultFont"/>
    </contents>
    </column>
    So it works all fine, i get a link to this file, but if I click on this link it shows this file in the same window as my application.
    And i want to get this link open in a new Window. Just like i could make it with link-tag (targetFrame property) and so I'm trying to find a solution to get the medie link in new page.
    So, is there a possibility to geht this media link in new window ?
    I hope somebody know this problem and can help me.
    Thanks a lot
    Sebastian
    Message was edited by:
    Sebastian_ME
    Message was edited by:
    Sebastian_ME

    Hi, I hope you can help me.
    I have a read only table in uix page
    there's a Column of type ORDDOC
    here is my code for this column:
    <column>
    <columnHeader>
    <styledText text="${bindings.Doc.label}" styleClass="DefaultFont"/>
    </columnHeader>
    <contents>
    <media
    model="${ctrl:createMediaModel(uix.current.Doc,'AppModulLocal')}"
    shortDesc="${uix.current.DocName == null ? 'Doc' : uix.current.DocName}"
    styleClass="DefaultFont"/>
    </contents>
    </column>
    So it works all fine, i get a link to this file, but if I click on this link it shows this file in the same window as my application.
    And i want to get this link open in a new Window. Just like i could make it with link-tag (targetFrame property) and so I'm trying to find a solution to get the medie link in new page.
    So, is there a possibility to geht this media link in new window ?
    I hope somebody know this problem and can help me.
    Thanks a lot
    Sebastian
    Message was edited by:
    Sebastian_ME
    Message was edited by:
    Sebastian_ME

  • IOS 5 Calendar app current time bar off after time switch

         Here is a issue I have recently noticed. Yesterday we had time fall back one hour. On my Macbook, Iphone 4, and Ipad2, the system time is showing correctly(the time in menu bar on the Mac, and in the top system bar on iOS). On my two Ios5 devices however, in the "Calendar" app, the little bar with the red dot (i refer to as the "current time bar") still shows one hour ahead. So for example the actual time in Los Angeles, CA right now is 3:19 PM but in the calendar app on both Ios devices it shows as 4:19 PM. Keep in mind that the system time is showing 3:19 PM on both of these devices. I logged into the http://www.icloud.com web site and it shows correctly. On my Mac book running MacOSX 10.7.2 everything shows up ok (both system time and iCals current time bar). I am connected to Wi-Fi and 3G. I do have time zone support enabled on all devices, but turning that off did not help anything and I don't see how that could be causing this. What is causing this? Is this a bug in iOS5? Please let me know if you are experiencing the same issue so we can have Apples developers fix this bug. Thanks have a nice afternoon.
    The issue:
    The "Current time bar" in iOS5 Calendar is showing up one hour ahead after time switch as of yesterday (11/5/2011 Los Angeles, CA)
    What I know:
    System time on Mac, Iphone and Ipad shows up as the right time
    Current time bar in iCal on MacOSX 10.7.2  shows right
    Current time bar in Calendar on icloud.com shows right
    Common posts:
    This post seems to be experiencing the same issue.

    I'm having the same issue... the time is right on my phone, however the time-bar is showing DST (one hour ahead). I've restarted the phone... checked my iCloud time zone, etc... even tried turning on/off the Time Zone support not only for the phone but also in the Calendar... nothing.
    So in the end, correct time but the time-bar is incorrect. I hope this is just a bug that needs fixing by Apple...

  • How to bind to a dynamic View in UIX

    I wish to have a UIX page access data from a dynamic View (i.e. the View is created at runtime). Since the View is not created at design time, I cannot create bindings for it in the UIX page's UIModel. Therefore, how do I reference this view in the UIX page?
    Brad

    Sanjay,
    No -- but I'm experimenting with something simillar to what you mention. Actually, there is a way to iterate over each element if you made the childData attribute of your contents child of the messageChoice your rangeSet, i.e.:
    <messageChoice>
    <contents childData="${bindings.myIterator.rangeSet}">
    <option text="${uix.current.myfield}"/>
    </contents>
    <messageChoice>
    The problem is that this causes a problem with the subsequent submit, the current row, and what selection shows when the page is re-rendered. I am becoming more convinced because of this and some other things I've run into that there are either problems with using ViewLinks, or problems in UIX components where ViewLinks are involved. I'm pretty much abandoning use of ViewLinks altogether. I haven't seen much of anything work with them that isn't done exactly like tutorials and examples. And with regards to those, most tutorials and examples offer very little UIX help (most of them are JSPs), and even the ones that do have in-a-vaccuum style in-line databinding rather than database databinding (you'd think Oracle, a database company, might actually use database examples), which doesn't clarify a bunch of issues someone writing a reall application runs into.
    As to an answer -- no unfortunately. Getting an answer to any ADF/UIX question is a time-consuming, frustrating, and most often fruitless process. Of my 45 some-odd posts on this forum, about 30 of them are unresponded-to posts.
    B

  • ADF UIX: Get value in LOV messageList.

    I have a messageList that bind to a vo but when I call getTxtCodeCat method from the Struts form bean in Action Class, it does always return me a list index (0,1,2...).
    <struts:messageList model="${data.protecteddoc_GN_GnCodeSetupUIModel.CodeDescription}" name="txtCodeCat" prompt="[Code Category]" styleClass="DropdownMedium" required="yes" size="1">
    <contents childData="${data.protecteddoc_GN_GnCodeSetupUIModel.CodeDescription.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </struts:messageList>
    Please advice how do I retrieve the value instead of index from the LOV?

    This thread is a duplicate. Direct all followups to:
    Urgent! ADF UIX:LOV messageList returned index no. during runtime.

  • Sql server partition parent table and reference not partition child table

     
    Hi,
    I have two tables in SQL Server 2008 R2, Parent and Child Table.  
    Parent has date time, and it is partitioned monthly,  there is a Child table which just refer the Parent table using Foreign key relation.   
    is there any problem the non-partitioned child table referring to a partitioned parent table?
    Thanks,
    Areef

    The tables will need to be offline for the operation. "Offline" here, means that you wrap the entire operation in a transaction. Ideally, this transaction would:
    1) Drop the foreign key.
    2) Use ALTER TABLE SWITCH to drop the old data.
    3) Use ALTER PARTITION FUNCTION to drop the old empty partition.
    4) Use ALTER PARTITION FUNCTION to add a new empty partition.
    5) Reapply the foreign keys WITH CHECK.
    All but the last operation are metadata-only operation (provided that you do them right). To perform the last operation, SQL Server must scan the child tbale and verify that all keys are present in the parent table. This can take some time for larger tables.
    During the transaction, SQL Server holds Sch-M locks on the table, which means that are entirely inaccessible, even for queries running with NOLOCK.
    You avoid this the scan by applying the fkey constraint WITH NOCHECK, but this can have impact on query plans, as SQL Server will not consider the constraint as trusted.
    An alternative which should not be entirely dismissed is to use partitioned
    views instead. With partitioned views, the foreign keys are not an issue, because each partition is a pair of tables, with its own local fkey.
    As for the second question: it appears to be completely pointless to partition the parent, but not the child table. Or does the child table only have rows for a smaller set of the rows in the parent?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to access the parent class variable or object in java

    Hi Gurus,
    I encounter an issue when try to refer to parent class variable or object instance in java.
    The issue is when the child class reside in different location from the parent class as shown below.
    - ClassA and ClassB are reside in xxx.oracle.apps.inv.mo.server;
    - Derived is reside in xxx.oracle.apps.inv.mo.server.test;
    Let say ClassA and ClassB are the base / seeded class and can not be modified. How can i refer to the variable or object instance of ClassA and ClassB inside Derived class.
    package xxx.oracle.apps.inv.mo.server;
    public class ClassA {
        public int i=10;
    package xxx.oracle.apps.inv.mo.server;
    public class ClassB extends ClassA{
        int i=20;   
    package xxx.oracle.apps.inv.mo.server.test;
    import xxx.oracle.apps.inv.mo.server.ClassA;
    import xxx.oracle.apps.inv.mo.server.ClassB;
    public class Derived extends ClassB {
        int i=30;
        public Derived() {
           System.out.println(this.i);                  // this will print 30
           System.out.println(((ClassB)this).i);  // error, but this will print 20 if Derived class located in the same location as ClassB
           System.out.println(((ClassA)this).i);  // error, but this will print 20 if Derived class located in the same location as ClassA
        public static void main(String[] args) { 
            Derived d = new Derived(); 
    Many thanks in advance,
    Fendy

    Hi ,
    You cannot  access the controller attribute instead create an instance of the controller class and access the attribute in the set method
    OR create a static method X in the controller class and store the value in that method. and you can access the attribute by 
    Call method class=>X
    OR if the attribute is static you can access by classname=>attribute.
    Regards,
    Gangadhar.S
    Edited by: gangadhar rao on Mar 10, 2011 6:56 AM

Maybe you are looking for