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>

Similar Messages

  • UIX-XML BC4J - Unexpected errors using paths and DeltaTree on a particular UIX page

    We are using a PageDescription to dynamically change a UIX tree using the DeltaTree technique described in the Dynamic Structure for For UIX Pages chapter of the UIX Developers Guide.
    We search for a particular node using PathUtils.FindPathWithNodeID(RenderingContext context, UINode from, java.lang.String nodeID), but this fails when the page contains nested ViewObjectScopes.
    The method throws a NullPointerException, and the render fails:
    29/08/02 9.08 Valutazioni: java.lang.NullPointerException
         oracle.cabo.ui.data.DataObjectList oracle.cabo.ui.collection.DataObjectListNodeList.getDataObjectList(oracle.cabo.ui.RenderingContext)
         int oracle.cabo.ui.collection.DataObjectListNodeList.size(oracle.cabo.ui.RenderingContext)
         int oracle.cabo.ui.BaseUINode.getIndexedChildCount(oracle.cabo.ui.RenderingContext)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         boolean oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.path.PathImpl, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         oracle.cabo.ui.path.Path oracle.cabo.ui.path.PathUtils._findPath(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, oracle.cabo.ui.path.PathUtils$Finder)
         oracle.cabo.ui.path.Path oracle.cabo.ui.path.PathUtils.findPathWithNodeID(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, java.lang.String)
         oracle.cabo.ui.UINode com.websiteitalia.wsdk.uix.pageflow.PageFlowManager.getRootUINode()
         oracle.cabo.ui.UINode oracle.cabo.servlet.ui.UINodePageDescriptionProxy.getRootUINode()
         oracle.cabo.ui.UINode oracle.cabo.servlet.ui.UINodePageRenderer.getRootUINode(oracle.cabo.servlet.BajaContext, oracle.cabo.ui.RenderingContext, oracle.cabo.servlet.Page)
         oracle.cabo.ui.UINode oracle.cabo.servlet.ui.HTMLUINodePageRenderer.getRootUINode(oracle.cabo.servlet.BajaContext, oracle.cabo.ui.RenderingContext, oracle.cabo.servlet.Page)
         void oracle.cabo.servlet.ui.UINodePageRenderer.renderPage(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         void oracle.cabo.servlet.AbstractPageBroker.renderPage(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         oracle.cabo.servlet.Page oracle.cabo.servlet.PageBrokerHandler.handleRequest(oracle.cabo.servlet.BajaContext)
         void oracle.cabo.servlet.BajaServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    We found the element of the UIX page that causes the problem:
    <bc4j:viewObjectScope name="ElementsView" >
    <contents>
         <bc4j:rowScope name="NewElement" >
         <contents>     
              <bc4j:region automatic="false" >
                   <bc4j:key>
                        <bc4j:rowKey name="keyElement"/>
                   </bc4j:key>
                   <contents>
                        <bc4j:attrScope name="FlgState">
                        <contents>
                             <messageChoice name="FlgState" prompt="State" >
                                  <boundAttribute name="selectedValue">
                                       <concat>
                                            <bc4j:attrProperty name="value"/>
                                            <fixed text=""/>
                                       </concat>
                                  </boundAttribute>
                                  <contents>
                                       <!-- This is the nested vo scope causing the error -->
                                       <bc4j:viewObjectScope name="DecodeStateView" >
                                       <contents data:childData="list@DecodeState">
                                            <option data:value="StateCode"
                                                 data:text="StateDescription"/>
                                       </contents>
                                       </bc4j:viewObjectScope>
                                  </contents>
                             </messageChoice>
                        </contents>
                        </bc4j:attrScope>
                   </contents>
              </bc4j:region>
         </contents>
         </bc4j:rowScope>
    </contents>
    </bc4j:viewObjectScope>
    This usage of nested view object scopes has been explained in reply of a previous post, How to databind the children of a UIX XML choice, and before ours attempts to modify the tree it worked fine. Removing the nested view object scope the page makes the page render correctly, but we need it to retrieve the description of its state.
    We get the same behaviour (and a much similar stack trace, with the same oracle.cabo.ui.data.DataObjectList oracle.cabo.ui.collection.DataObjectListNodeList.getDataObjectList (oracle.cabo.ui.RenderingContext) throwing a NullPointerException) if we use NodeUtils.createPreorderDescendentAttributeEnumeration method instead of PathUtils.

    It's a bug in the DataObjectListNodeList class that's up at the top of
    the stack. It's been fixed for 9.0.3. The bit of XML that's triggering
    it isn't the <viewObjectScope>s, but the "data:childData".
    I believe you can workaround this bug by not passing a null RenderingContext to
    findPathWithNodeID(). Now, you don't have a real RenderingContext, and we
    don't especially need one - "null" is legit here, but I think if
    you just pass "new oracle.cabo.ui.RootRenderingContext()" then you'll
    get around this bug.

  • UIX page not displaying data from VO's

    I have an application where my users log in by passing a username/password to a client method in my application module. The Webusers View Object has a view link to the Customers view object, which has a view link to the Orders view object, which has a view link to the OrdLines view object, like this:
    WebusersView
    --CustomersView via WebCustViewLink
    ----OrdersView via CustOrdViewLink
    ------OrdLinesView via OrdOrdlinesViewLink
    I've run this Application Module through the tester and I can see data via all the View Links.
    I have the following code in my login() script:
    w = getWebusersView();
    w.setWhereClause("login = '" + username + "'");
    w.executeQuery();
    I've stepped through the login() code and it works correctly. If I understand BC4J correctly, then all of the View Links should fire and coordinate the data from Customers, Orders, and OrdLines when this query executes successfully.
    I created a UIX page and did a drag/drop of Orders to the page as a read-only table. I found the Orders table by expanding the Webusers entry in the Data Control palette, then the Customers entry below that, to grab the Orders entry there. I think this means that it will follow the WebCustViewLink to get the Customer that goes with the Webuser, then the CustOrdViewLink to get the Orders for that Customer. Is this correct?
    When I try to run this and display the table, I get no records. I know for a fact that records exist under the Webuser username I've chosen.
    What is wrong? Why doesn't my UIX page display the appropriate Orders based on the Webusers->Customers->Orders view links?

    If there, try removing the $. at the beginning of the binding that gets puts there if you select the item from the pop up list.
    I have a text field that is read only and bound without the $. that was working fine for displaying data. I have a drop down that had the $. and was not saving. I removed the $. and now it is getting saved to the XML. However, it does not display on the next render of the form.

  • Is it possible to use several RootAppModules in one UIX Page?

    Hello,
    I want to use two RootAppModules in one uix page. The reason is, that application modules look at different database connections.
    I get this NullpointerException:
    java.lang.NullPointerException
         void oracle.cabo.data.jbo.ui.data.ViewObjectDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.TableDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.CachingDataProvider.init(oracle.cabo.ui.RenderingContext)
         void oracle.cabo.ui.data.provider.DataProviderStack.addDataProvider(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.LogicalNodeRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.composite.CompositeRenderingContext.addDataProvider(oracle.cabo.ui.data.DataProvider)
         void oracle.cabo.ui.laf.base.DataScopeRenderer.prerender(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
         void oracle.cabo.ui.BaseRenderer.render(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
    In my page I have two Registry entries and in my page content I open the second AppModuleScope after closing the first AppModuleScope.
    I am using JDeveloper 9.0.3.2. The documentation says it should be possible???
    Thanks,
    Christian

    I explored my problem yesterday and this are my results.
    Everything works fine, so using different root application modules, if I come from a simply navigation event handler.
    But when I use my own event handler which itself is enclosed in an root application module scope, the next page is not able to render data coming from different root application modules.
    The event handler of my source page looks like this:
    <event name="selectionEvent">
    <bc4j:findRootAppModule name="MyRootAppModule">
    <bc4j:findViewObject name="MySelectionVo">
    <instance class="test.MySelectionEventHandler"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    Regards,
    Christian

  • Customizing Oracle mail UIX Pages

    Dear All,
    Can any one to tell me how to customize Oracle mail UIX Pages.I want to add advertisements and links to our application in oracle mail.I tied to import UMClientApp.ear to JDeveloper 10g preview edition but when i try to open any uix file i had the following error "UIX runtime failed to render the page ...."
    Please ur replies ASAP
    Thanks in Advance

    Please remember this is not supported by Oracle or me. You'll need to get a copy of jspell html war file and deploy it to and OC4J instance as jspellhtml and make sure it works. I created a separate oc4j instance just for this. I also created a spell check button that I can email you if you like. In the $OH/j2ee/OC4J_UM/applications/UMClientApp/um_client/templates there’s a file called message_compose.uix that you’ll need to edit. BACK IT UP FIRST!!!! Read the docs on using JSpell, you’ll only need to add two things. The javascript and the button for the user to click to spell check the email. You should be able to look at the uix code and get a good understanding of what’s going on and where to put the code. If not let me know and I’ll try to help. I could always just send you a copy of my message_compose.uix too.
    I’ve been using it for about 9 months now with no problems. I understand that Oracle will have a spell check in the 9.0.4.2 patchset for OCS. I’ve also been told that it’s not as nice as this hack.
    http://www.jspell.com/html-spell-checker.html

  • How to Include a HTML file in a UIX Page

    I have an old .html file (content.html) which contains some infomation and now I want to present that information inside a Uix Page! Is it possible to do so if then how.
    I tried using uix include tag but no luck.
    Any help is greatly appreciated.
    Thanks
    Kolluru

    Here is the .jsp file and the serverinclude tag is written in the 4th line from last.
    <uix:servletInclude source="layout.html" />
    I want the content of the layout.html in the main content pane but instead it is getting added on to the top or to the SideNav.
    Thanks for the help anyway.
    ====================================================
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="MyBC4JModule" definition="MyUIX.MyBC4JModule" releasemode="Stateful" />
    <jbo:DataSource id="ds1" appid="MyBC4JModule" viewobject="EmpView1" rangesize="4" />
    <%-- user interface begins here --%>
    <HTML>
    <HEAD>
    <TITLE>Oracle Migration Maps </TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY>
    <uix:pageLayout>
    <uix:pageHeader>
    <uix:globalHeader selectedIndex="0">
    <uix:contents>
    <uix:link text="Migration Maps" destination="uixpage1.jsp" />
    <uix:link text="Migration Checklist" destination="http://www.oracle.com" />
    <uix:link text="Templates" destination="http://www.oracle.com" />
    <uix:link text="Scripts" destination="http://mtg.ie.oracle.com" />
    <uix:link text="Release" destination="http://www.oracle.com/" disabled="true" />
    </uix:contents>
    </uix:globalHeader>
    </uix:pageHeader>
    <uix:productBranding>
    <uix:image source="productBrand.gif" shortDesc="product" />
    </uix:productBranding>
    <uix:cobranding>
    <uix:image source="cobrand.gif" shortDesc="brand" />
    </uix:cobranding>
    <uix:copyright>
    <uix:flowLayout>
    <uix:contents>
    <uix:image source="images/info.gif" />
    <uix:link text=" @Copyright 2003, Oracle Corp. " destination="http://www.oracle.com" />
    </uix:contents>
    </uix:flowLayout>
    </uix:copyright>
    <uix:privacy>
    <uix:flowLayout>
    <uix:contents>
    <uix:image source="images/info.gif" />
    <uix:link text="privacy statement" destination="http://www.oracle.com" />
    </uix:contents>
    </uix:flowLayout>
    </uix:privacy>
    <uix:globalButtons>
    <uix:globalButtonBar>
    <uix:contents>
    <uix:globalButton icon="images/returntoportal.gif" text="Home"
    destination="uixpage1.jsp"/>
    <uix:globalButton icon="images/logout.gif" text="Logout"
    destination="http://www.oracle.com"/>
    <uix:globalButton icon="images/preferences.gif" text="Preferences"
    destination="http://www.oracle.com"/>
    <uix:globalButton icon="images/help.gif" text="Help"
    destination="http://www.oracle.com" targetFrame="_blank"/>
    </uix:contents>
    </uix:globalButtonBar>
    </uix:globalButtons>
    <uix:breadCrumbs>
    <uix:contents>
    <uix:link text="Home" destination="uixpage1.jsp" />
    <uix:link text="Qualification" destination="qualification.jsp" />
    <uix:link text="Customer Survey" destination="customersurvey.jsp" />
    </uix:contents>
    </uix:breadCrumbs>
    <uix:quickSearch>
    <uix:messageTextInput prompt="Search" name="QSearch" text="Cabo">
    <uix:end>
    <uix:submitButton accessKey="g" text="Go" />
    </uix:end>
    </uix:messageTextInput>
    </uix:quickSearch>
    <uix:start>
    <uix:sideNav>
    <uix:link text="Home" destination="uixpage1.jsp" />
    <uix:link text="Help" destination="/site1/PageTemplate.jsp" />
    <uix:link text="Migration Process Guide" destination="http://pta.us.oracle.com:9999/" />
    <uix:link text="MSMS v1.1" destination="http://amgdev1.ie.oracle.com/mtg/" />
    <uix:link text="Knowledge Base" destination="http://webiv.oraclecorp.com" />
    <uix:link text="Factory Infrastructure" destination="http://webiv.oraclecorp.com" />
    <uix:link text="BugDB" destination="http://bug.us.oracle.com" />
    <uix:link text="Oracle Migration Workbench " destination="http://webiv.oraclecorp.com" />
    <uix:link text="Application SQL Tools" destination="http://webiv.oraclecorp.com" />
    <uix:link text="Support" destination="http://webiv.oraclecorp.com" />
    <uix:link text="Migration Technology Centre" destination="http://otn.oracle.com/tech/migration/content.html" />
    <uix:link text="Migration Technology Group" destination="http://mtg.ie.oracle.com" />
    </uix:sideNav>
    </uix:start>
    <uix:end>
    <uix:contentContainer text="Related Maps" background="light" icon="testInfo.gif" width="100%">
    <uix:link text="Customer Surveys" destination="http://www.oracle.com" />
    <uix:link text="Survey Request" destination="http://www.oracle.com" />
    <uix:link text="Customer Analysis" destination="http://www.oracle.com" />
    </uix:contentContainer>
    </uix:end>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header styleClass="OraLightHeader" text="Qualification Stage" />
    <uix:styledText styleClass="OraHeaderSubSub" text="" />
    <uix:spacer width="10" height="15" />
    <uix:styledText styleClass="OraDarkHeaderSubSub" text="Qualifying the Customer - Receiving Customer Surveys" />
    <uix:spacer width="10" height="10" />
    <bc4juix:TableDetail></bc4juix:TableDetail>
    <uix:styledText styleClass="OraInstructionText" text="Prospective customers
    are identified by a variety of sources, such as sales consultants and
    Oracle Direct. These customers are asked to complete a customer survey and
    the results are automatically sent to the Migration Factory. The table below
    lists the location of the customer surveys once they are released on the
    Oracle eMarketing system." />
    <uix:spacer width="10" height="20" />
    <uix:servletInclude source="layout.html" />
    </uix:contents>
    </uix:pageLayout>
    </BODY>

  • How do I show use poplist in uix pages?

    Ok here is my problem which I will try to relate it in HR schema example.
    I got a uix page showing departments and employees(one-many) master detail.
    I got another edit uix used to edit old employees or create new employees.
    In this edit/create uix I don't want the user to see the id's like DepartmentId, ManagerId, JobId etc...instead I want them to see the corresponnding Names.
    How do I achieve this? Could some one give me a walk through or some sort of hint?

    Hi,
    Have you checked out the "Oracle ADF UIX How-To's" at http://www.oracle.com/technology/products/jdev/howtos/index.html?

  • How to print a form in a UIX page

    I want to print a form in a UIX page? I have tried a lot of methods,but they did not work.I only want to print the contents in the form ,not including the contents of the page title ,tab bar,etc. Can someone tell me?Thank you!

    Yu -
    You'll want to use the "printable" facet when rendering your page. The following sample page contains a button which allows the user to view the "printable" version of the page. It uses the <showFacet> event handler to switch to the printable facet:
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
    <content>
      <pageLayout xmlns="http://xmlns.oracle.com/uix/ui">
      <tabs>
        <tabBar>
        <contents>
           <link text="Hello"/>
           <link text="World"/>
        </contents>
        </tabBar>
      </tabs>
      <pageButtons>
        <pageButtonBar>
        <contents>
          <button text="Show Printable Page" ctrl:event="showPrintable"/>
        </contents>
        </pageButtonBar>
      </pageButtons>
      <contents>
        <text text="Printable area"/>
      </contents>
      </pageLayout>
    </content>
    <handlers>
      <!-- Use the showFacet event handler to switch over to
           the "printable" facet -->
      <event name="showPrintable">
        <showFacet name="printable"/>
      </event>
    </handlers>
    </page>Andy

  • Can i set the content of input text in a form layout in the uix page center

    Hi
    i have a simple question, how can i set the content of an input text in a form layout in the .uix page center?
    i saw in the page properties but i didn't found.
    thank you for your help.
    Edited by: Islem on 19 déc. 2008 00:22

    Sirrick,
    If I understand your question correctly, you want to programmatically set how many array elements (clusters) to show. You can do this with the Array properties: Number of Rows and Number of Columns. Please see the attached VI.
    Zvezdana S.
    National Instruments
    Attachments:
    Array_Elements.vi ‏20 KB

  • Two LOVs in same UIX page based on the same table

    Hi group,
    Recently I ran into a problem with a UIX page that has two LOVs based on the same database table. In Emp and Job terminology, here's what I tried to do.
    Suppose we have use the Employees and Jobs tables from the HR scheme with one small modification. Add a column called PREFERRED_JOB_ID of type VARCHAR2(10) which is exactly the same as JOB_ID. Hypothetically speaking, this column will be used to allow Employees to select their preferred job in case they want to change their jobs.
    Next, create business components in JDeveloper based on the Employees and Jobs table. In order to be able to generate the LOVs for Job and PreferredJob create two ViewObjects, one called JobsLookupView and one called PreferredJobsLookupView. These both need to be based upon the same Jobs EntityObject. Also include the Jobs EntityObject twice in the EmployeesView ViewObject and give one the alias PreferredJobs. Include the JobTitle attributes of Jobs and PreferredJobs in EmployeesView so they can contain the JobTitles selected in our future LOVs.
    Next create a ViewController project if it's not already there and enable JHeadstart on it. Create an Application Structure File and create the lookups for the two LOVs. When I run the application I see this happening:
    When I click the flashlight icon next to the PreferredJob LOV and select a job, the PreferredJob field is selected in the UIX page but no job title appears. When I next first select the Job LOV and select a new job and then select the PreferredJob LOV again and select a different job, the job that was selected in the Job LOV is now also entered in the PreferredJob field. When I make sure the PreferredJob field isn't required (remove the required="yes" property on the messageLovInput entry for PreferredJobTitle and remove the PreferredJobTitle field from the addRequiredRowItems list in the UIX page) I can save the changes I made in the Employees.uix page. The same JobId is stored in the database for Job and PreferredJob.
    This behaviour is probably due to cacheing issues because both LOVs and the EmployeesView ViewObject use one EntityObject for four values in three ViewObjects.
    So I then modified my model a bit. I created a new EntityObject called PreferredJobs based on the JOBS table. I modified the EmployeesView ViewObject to use this EntityObject for the PreferredJobTitle attribute and modified the PreferredJobsLookupView to use this EntityObject.
    I needed to modify a few things as well in the Application Structure File (which were prompts and whether or not the attribute should be visible in a table) and after regenerating I made sure the PreferredJob attribute isn't required in the UIX page. When I then run the application again, I never see the JobTitle I select in any LOV allthough the PreferredJob field is selected when I select a Job in the PreferredJob LOV. The correct JobId now is stored in the database though.
    Has anyone ever encoutered this behaviour? Would anyone know how to get two LOVs based on the same table in one UIX page?
    Thanks in advance,
    Wouter van Reeven
    AMIS

    OK I figured it out. When I added the second Lookup ViewObject (PreferredJobs) no additional Association was created. Therefore, ADF BC wasn't able to figure out which field to update. When I added the Association between the PreferredJobs Lookup ViewObject and the Employees ViewObject everything started working ok.
    I then recreated my inital situation: one EntityObject for Jobs and one for Employees, now with two Associations between them. After modifying the Employees ViewObject and making sure the Jobs EntityObject was referred twice and via the corresponding Association, everything started working ok.
    Greets, Wouter
    AMIS

  • Getting application exception while running a web application with UIX page

    Hi All,
    I am a new user to JDeveloper. I am practicing Struts and using UIX pages as interface. I did a simple application which is in oracle website. I am running the application using struts-config.xml file. I mea nrightclicking on one of Icon and choose run option. I am getting these below exception. Can any one tell what is the problem?
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdev1012\jdev\system10.1.2.2.0.1929\oc4j-config>
    C:\jdev1012\jdk\bin\javaw.exe -ojvm -classpath C:\jdev1012\j2ee\home\oc4j.jar;C:\jdev1012\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\jdev1012\jdev\system10.1.2.2.0.1929\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    07/11/22 13:12:06 Error instantiating application at file:/D:/Software/jdev1012/jdev/system10.1.2.2.0.1929/oc4j-config/applications/bc4j.ear: Unable to find/read assembly info for D:\Software\jdev1012\jdev\system10.1.2.2.0.1929\oc4j-config\applications\bc4j archive (IO Error: The system cannot find the path specified.
    07/11/22 13:12:09 Auto-deploying file:/C:/jdev1012/jdev/mywork/HelloApplication/ViewController/public_html/ (New server version detected)...
    07/11/22 13:12:32 java.net.ConnectException: Connection timed out: connect
    07/11/22 13:12:32      at java.net.PlainSocketImpl.socketConnect(Native Method)
    07/11/22 13:12:32      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    07/11/22 13:12:32      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    07/11/22 13:12:32      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    07/11/22 13:12:32      at java.net.Socket.connect(Socket.java:452)
    07/11/22 13:12:32      at java.net.Socket.connect(Socket.java:402)
    07/11/22 13:12:32      at java.net.Socket.<init>(Socket.java:309)
    07/11/22 13:12:32      at java.net.Socket.<init>(Socket.java:153)
    07/11/22 13:12:32      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    07/11/22 13:12:32      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    07/11/22 13:12:32      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1659)
    07/11/22 13:12:32      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
    07/11/22 13:12:32 Oracle Application Server Containers for J2EE 10g (10.1.2.2.0) initialized
    07/11/22 13:12:32      at java.lang.Thread.run(Thread.java:534)
    Message was edited by:
    user606886
    I think i did not given sufficient information. This exception is coming when i try to run the Icon in struts-config.xml file. Which will launch an internal server (which come with JDeveloper i did not configure any Tomcat or Oracle Application Server) that run the page.

    Are you using correct Jdeveloper version ?
    Refer http://oraclearea51.com/blog/setting-up-jdeveloper-download-correct-version-of-jdev-and-diagnosing-problems.html?blogger=contactriteshsharma
    -Anand

  • Error while accessing UIX pages when deployed using OC4J

    UIX: 2.1.9
    JDeveloper: 9.0.3
    Database: 8i Release 3.
    Using UIX and BC4J, I created few pages for a small application. I installed the OC4J standalone and configured setting library paths and and deployed this application. I extended the UixPageBroker and TrivialPageFlow engine to suit my application requirements. All pages within the application requires the user to login. While accessing a UIX page, I am getting the error provided below. However, if I am not extending the UixPageBroker and PageFlowEngine, UIX pages are rendered with no problem. Can someone tell me what is the cause of this?
    500 Internal Server Error
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.init(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Unknown Source)

    I found out the workaround but not sure whether it is the right solution.
    When the application is deployed, it will be creating few files under the directory "application-deployments", of which some are configuration files specific to the deployed application.
    Edit the file: orion-web.xml and uncomment the following:
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />Save the file and restart OC4J.

  • Insert Record in Master-Detail by UIX Pages

    I am using Jdeverloper10g v10.1.2 ,ADF,UIX Pages
    My problem is :
    How i can insert a record by UIX Page , Because when i try to inserted a record by click on Create Button there is no action happen .
    So , is there any document can help me in Master_Detail_By_UIX
    with regards
    Naif

    Hi Leo,
    I know that but my application is already set up and I have all the reports and forms in place. However I do not know how to enter an update/insert statement when calling my form. I only can have update or insert.
    for update is working correctly and the reports/forms affected are quite complex I do not want to change anything on it but enter a detail recordset for each record in master table only containing foreign key id and id. then the update statement will work. At the moment I have to save the form (detail table) once to create th primary id and after that I can store values... but that is not feasible for end users...
    Tino

  • How to Deploy UIX pages in AS

    Well iam working on an application made i ADF UIX. The JDeveloper version used is 10.1.2 and I want to deploy this application in Oracle 10G 10.1.2.
    Could some one tell me how do i go about it?

    Dear Sir...
    1- in the application navigator right click the view-controller project
    2- select New
    3- select Deployment profile then select WAR file
    4- click OK and select a name for the WAR file and click ok
    5- a window appears asking for settings of the WAR file.
    6- click on the Specify J2EE web context. and enter a name like /abc. select OK
    7- The deployment WAR file appear, select it and select create EAR file.
    what you have done so far is that you defined a packaging file that will contains all of your web pages and call the code. you also specifies how the context path of the application would be. i.e. you access you web application using the link http://servername/context-root/page1.do and in our case it would be http://servername/abc/page1.do.
    Now copy this EAR file and take it to the application server in order to install it there.
    1- The first step is to create an OC4J. The OC4J is a java virtual machine or a server that your application will be executed inside it. So create a new OC4J and give it a name.
    2- Open this OC4J and select the applications Tab. Here you should install your application.
    3- Select deploy EAR file.
    4- Give the path of your EAR file, and select a name for the application and finish the deployment operation.
    5- Now open the first tab of the OC4J and select start to start the java virtual machine and let your application start.
    6- Now you should be able to access your application using the link : http://servername/context-root/page1.do. In this example the link will be http://SV/abc/dataPage1.do where SV is the server name, abc is the context-root you specified already and dataPage1 is the name of the uix page you want to access.
    you might need some other settings such as specifying the data sources and the connection to the database. For any other details try to read about how to deploy applications to the application server in the otn.
    best regards

  • How to import user defined class in UIX page?

    Does anyone know how to import user defined class in UIX page so that the class can be called in the javascript in the UIX ?
    Thks & Rgds,
    Benny

    what you are referring to is not javascript.
    it is JSP scriptlets. These are very different.
    In order to keep a strict separation between View and Controller, it is not possible to run arbitrary java code from within your UIX code.
    However, you can run java code from within a UIX event handler; see:
    http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/app/oracle/product/IAS904/j2ee/OC4J_ohw/applications/jdeveloper904/jdeveloper/helpsets/jdeveloper/uixhelp.jar!/uixdevguide/introducingbaja.html
    event handler code is run before the page is rendered.

Maybe you are looking for