OrdImage with UIX

I'm using OrdImage to load images in via JDBC as the following code fragment shows:
sqlString="Begin INSERT INTO l2i_photo "+
"(photoid, cltype, clid, filename,photo)"+
"VALUES (L2I_PHOTO_SEQ.NEXTVAL, "+clType+","+recId+",'"+fileName+"',ordsys.ordImage.init()) Returning photoid into ?; End;";
st.getConnection().setAutoCommit(false);
cst = (OracleCallableStatement)(st.getConnection()).prepareCall(sqlString);
cst.registerOutParameter(1,Types.INTEGER);
cst.execute();
photoId=cst.getInt(1);
cst.close();
sqlString="Select photo From l2i_photo Where photoid="+photoId+" for update";
OracleResultSet rs = (OracleResultSet)st.executeQuery(sqlString);
rs.next();
photoImage = (OrdImage)rs.getCustomDatum( 1, OrdImage.getFactory());
photoImage.loadDataFromFile(info.pathName+"Photos\\"+rec.fileName);
cst.setCustomDatum(1, photoImage);
cst.execute();
st.getConnection().commit();
st.getConnection().setAutoCommit(true);
This appears to load my images just fine, I can even see those images using JClient with intermedia. However when I try to view the images via uix intermedia using the following code I don't see the image:
<messageFileUpload model="${bindings.Photo}">
<end>
<media model="${ctrl:createMediaModel(bindings.Photo,'AppModuleLocal')}"/>
</end>
</messageFileUpload>
The above uix code works great so long as I load the image with the uix control. Is there something I need to do to make this work with images loaded via the above jdbc?? Thanks in advance for any and all help..

UIX talks to the ADF model directly. So you would need to get your OrdImage into the ADF model. Maybe a person more familiar with the model stuff than I am can comment?

Similar Messages

  • Control-Hints are suppose work with UIX/XML, right?

    Control-Hints are suppose work with UIX/XML, right?
    I've added some control hints and they worked correctly when viewed using UIX/JSP pages. However, none of the Control-Hints appear on UIX/XML pages.
    The documentation suggests that this should work. Am I wrong?
    Bill G...

    There's a bit of confusion here (which is entirely our fault).
    UIX JSP is a subset of UIX XML (almost entirely; a few tags in
    UIX JSP simply wouldn't make sense in UIX XML, like <uix:buildTree>).
    However, BC4J UIX JSP is not a subset of BC4J UIX XML; the two
    are essentially entirely different libraries. (Any JSP tag that
    starts with <bc4juix:> counts as a "BC4J UIX JSP" tag.) I agree
    that this is confusing.
    As far as control hints go: BC4J UIX XML does not currently
    support control hints. It does offer more than enough flexibility
    to tweak all the dials and knobs made available by control hints (and
    a lot more).

  • Search Form with UIX

    Hi all, is it possible in a search form with uix shows always the edit criteria with execute button and not when I click the find button?
    Please help!!!
    Matteo.

    I want show the edit criteria with results. Is it possible? How can I do this?
    Any suggestion will be appreciated.
    Thanks, matteo.

  • UIX/JSP - How to use the UIX Controller with UIX/JSP

    After reading the UIX Developers Guide I am under the impression that I could use the UIX Controller with UIX/JSP pages. Is this correct and are there any available examples?
    Bill G...

    It's correct, but I'm afraid we don't have much (read as "any")
    documentation on how to do that - besides reading through the
    gobs of Javadoc and guessing how to put it together.
    Half of the problem is solved by registering JspPageDescriptions
    on a PageBroker (e.g., UIXPageBroker) to tell the UIX Controller
    to use a JSP to render a particular page, instead of a UIX XML
    document.
    The other half is getting the JSP to send requests back to
    the UIX Controller. Depending on how you've chosen to name
    your pages, create either a DefaultPageEncoder or ExtensionPageEncoder
    inside your JSP, and use that to create destination URLs.

  • How I can use struts with uix jsp

    Hi,
    I want to use struts with uix jsp but I don't know how to set value of uix tag attribut by struts tag
    example :
    I want to change:
    <uix:globalHeader text="title" >
    by
    <uix:globalHeader>
    <bean:message key="title" arg0="Browse"/>
    </uix:globalHeader>
    N.B: I tried to use the tag <boundAttribute> but doesn't works
    Thanks in advance.

    Hi Ghazouani,
    From your sample code it looks like you are trying to use the Struts <bean:message> to provide internationalized text for the links in your globalHeader component. Couple of comments on this particular issue:
    - You'll need to add a <link> element to your globalHeader for each item that you want to display. So, instead of:
    <uix:globalHeader>
    <bean:message key="title" arg0="Browse"/>
    </uix:globalHeader>
    You'll want something which looks like this:
    <uix:globalHeader>
    <uix:link text="Browse"/>
    </uix:globalHeader>
    - If you want to bind the text for each link to some internationalized value which is pulled from a ResourceBundle, you should use the UIX JSP <bundle> data provider:
    <uix:bundle name="l10n" class="your.Bundle"/>
    <uix:globalHeader>
    <uix:link textBinding="title@l10n"/>
    </uix:globalHeader>
    In general when mixing JSP tags from different tag libraries, you need to be careful that you honor the semantics of each tag library. For example, in this particular case, the <uix:globalHeader> expects to have <uix:link> children - using any arbitrary tag (like <bean:message>) is not necessarily going to produce the desired results.
    As far as general UIX/Struts integration goes, we recommend using uiXML as a view for your Struts application. Check out the "Using uiXML with Struts" section of the UIX Developer's Guide for more info.
    Andy

  • Problem with UIX Pages in sub folders

    I want to group my UIX pages into sub folders to maked definition of security constraints more convenient.
    The New UIX Page wizard doesn't allow creation into a sub folder so I have created a blank page and then renamed it into a subfolder using File>>Rename menu option. However, now when I drag Data Control bindings onto the page they fail to bind properly. (No data appears when I run the page.)
    Is there a fundamental problem with placing UIX pages into sub folders? Is it something I shouldn't do? Requiring a flat file structure seems an onerous restriction!
    Thanks
    Matthew

    yes. this is a known problem when you are running UIX pages and not struts dataactions.
    For the model bindings to work, you currently have to keep
    all your uix pages in the top level directory.
    However, if you use the struts-pageflow with UIX pages, then you can keep you UIX pages where ever you want.

  • 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

  • Tomcat 5.0.16 with UIX 2.1.11 / BC4J 9.0.3.3?

    A stable Apache Tomcat 5 release is out (5.0.16). Does anyone has experiences running UIX 2.1.11 / BC4J 9.0.3.3 with it?
    Btw. Tomcat 5.0.16 is a Servlet 2.4 and JSP 2.0 release.
    Thanks, Markus

    It is correct
    -Regards
    ManikantanThanks.It is the continuation of the same doubt.I am unable to get the tomcat running on the console.I get the following erors still,do let me know what could be the problem.
    /********************* Error in the console of tomcat *****************************/
    Feb 2, 2004 12:04:18 AM org.apache.commons.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction targ
    matching "[xX][mM][lL]" is not allowed.
    org.xml.sax.SAXParseException: The processing instruction target matching "[x
    mM][lL]" is not allowed.
    /********************* Error in the console of tomcat *****************************/
    I havent changed the server.xml fle in the %TOMCAT%/conf/server.xml file.
    /***********************************server.xml file*********************************/
    <Context path="/sampleapp" docBase="sampleapp" debug="0" reloadable="true">
              </Context>
    /***********************************server.xml file*********************************/
    The url-pattern in the web.xml is /sampleapp is this fine??.
    Help would be appreciated.
    Thanks
    AS

  • Issue with UIX Editable Table

    Hi,
    I have created a Master-Detail-Detail page using UIX. I want to make the last detail table editable. I have tried the tip mentioned in the following page to make the table editable.
    http://www.oracle.com/technology/products/jdev/tips/jacobi/edittable/tip_adfuixtable_edit.html
    But, the condition in switcher ${uix.current.EmployeeId.inputValue == bindings.EmployeeId.inputValue is always returning false. This is because, the ${bindings.xxxxx} is returning null for all columns.
    Could anyone help me in resolve this issue Please?
    Here is the uix file I am using:
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="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">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <pageLayout>
    <about/>
    <copyright/>
    <corporateBranding/>
    <end/>
    <globalButtons/>
    <pageButtons/>
    <pageHeader/>
    <privacy/>
    <productBranding/>
    <start/>
    <tabs/>
    <contents>
    <stackLayout>
    <contents>
    <header text="Master">
    <contents>
    <table model="${bindings.SyPohdrAckView1}" id="SyPohdrAckView17" partialRenderMode="multiple" partialTargets="_uixState">
    <contents>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'OfdaFileId')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.OfdaFileId}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgmentNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgmentNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'PoNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'PlannedDeliveryDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.PlannedDeliveryDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'PoOrdTotal')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoOrdTotal}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeStatus')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeStatus}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeInfo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeInfo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.AcknowledgeDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPohdrAckView1,'AcknowledgeByCtIdNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeByCtIdNo}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.SyPohdrAckView1Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="detail6 detail12 _uixState" source="SyPohdrAckView17" event="select"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    </header>
    <header text="Detail" id="detail6">
    <contents>
    <table model="${bindings.SyPolineAckView2}" id="SyPolineAckView28" partialRenderMode="multiple" partialTargets="_uixState">
    <contents>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'OfdaFileId')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.OfdaFileId}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgmentNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgmentNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'PoNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoNumber}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'LineItemNumber')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.LineItemNumber}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'SpecItemNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.SpecItemNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'Quantity')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Quantity}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'Cost')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.Cost}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'PlannedDeliveryDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.PlannedDeliveryDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeStatus')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeStatus}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeInfo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeInfo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.AcknowledgeDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'AcknowledgeByCtIdNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.AcknowledgeByCtIdNo}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.SyPolineAckView2,'RowID')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.RowID}" columns="10" readOnly="true"/>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.SyPolineAckView2Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="detail12 _uixState" source="SyPolineAckView28" event="select"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    </header>
    </contents>
    </stackLayout>
    <stackLayout>
    <contents>
    <header text="Detail" id="detail12">
    <contents>
    <table nameTransformed="false" model="${bindings.PoLineView2}" id="PoLineView214" partialRenderMode="multiple" partialTargets="_uixState" formSubmitted="true">
    <contents>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'PoNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PoNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'LineNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.LineNo}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'ItemNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.ItemNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'ItemStyle')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.ItemStyle}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'VendorNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.VendorNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'VendorItemNo')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.VendorItemNo}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'QtyOrd')}"/>
    </columnHeader>
    <contents>
    <switcher childName="${uix.current.PoNo.inputValue == bindings.PoNo.inputValue ? 'selected' : 'notselected'}">
    <case name="selected">
    <textInput model="${bindings.QtyOrd}" columns="10" readOnly="false">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </case>
    <case name="notselected">
    <textInput model="${uix.current.QtyOrd}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </case>
    </switcher>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'UnitPrice')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.UnitPrice}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat columnDataFormat="numberFormat"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'LineAmt')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.LineAmt}" columns="10" readOnly="true">
    <onSubmitValidater>
    <decimal/>
    </onSubmitValidater>
    </textInput>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'DateCreated')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.DateCreated}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <columnFormat cellNoWrapFormat="true"/>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.PoLineView2,'DueDate')}"/>
    </columnHeader>
    <contents>
    <dateField model="${uix.current.DueDate}" readOnly="true">
    <onSubmitValidater>
    <date pattern="yyyy-MM-dd"/>
    </onSubmitValidater>
    </dateField>
    </contents>
    </column>
    <column>
    <contents>
    <submitButton text="Commit" model="${bindings.Commit}" id="Commit15" event="action" disabled="false"/>
    </contents>
    </column>
    </contents>
    <tableSelection>
    <singleSelection model="${bindings.PoLineView2Iterator}" text="Select and ">
    <primaryClientAction>
    <firePartialAction targets="_uixState PoLineView214" source="PoLineView214" event="select" formSubmitted="true"/>
    </primaryClientAction>
    </singleSelection>
    </tableSelection>
    </table>
    </contents>
    </header>
    </contents>
    </stackLayout>
    </contents>
    </pageLayout>
    <formValue name="${bindings.statetokenid}" value="${bindings.statetoken}" id="_uixState"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="goto sort" source="SyPohdrAckView17">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.SyPohdrAckView1Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="SyPohdrAckView17">
    <set target="${bindings.SyPohdrAckView1Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'SyPohdrAckView17')}"/>
    </event>
    <event name="goto sort" source="SyPolineAckView28">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.SyPolineAckView2Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="SyPolineAckView28">
    <set target="${bindings.SyPolineAckView2Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'SyPolineAckView28')}"/>
    </event>
    <event name="goto sort" source="SyPolineAckView213">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.SyPolineAckView2Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="SyPolineAckView213">
    <set target="${bindings.SyPolineAckView2Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'SyPolineAckView213')}"/>
    </event>
    <event name="goto sort" source="PoLineView214">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.PoLineView2Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="PoLineView214">
    <set target="${bindings.PoLineView2Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'PoLineView214')}"/>
    </event>
    <event name="action" source="Commit15">
    <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding" instance="${bindings.Commit}"/>
    </event>
    </handlers>
    </page>

    hi all,
        it looks this where clause not filter with 'N'  data ,Please help me ,how to solve this or help me on this

  • JSR 168 portlets with UIX as front end

    Hi Experts,
    I have been writing a code that creates a wizard when a users gets into the Edit Mode. The first step of the wizard (edit.uix) displays a link, which is an action URL, whose target page is another uix page called "edit.uix". Pasting the code here:
    //Portlet1.java
    package mypackage20;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Enumeration;
    import java.util.Map;
    import java.util.ResourceBundle;
    import java.util.StringTokenizer;
    import javax.portlet.*;
    import mypackage20.resource.Portlet1Bundle;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.servlet.event.PageEvent;
    public class Portlet1 extends GenericPortlet
    public static final String OK_ACTION = "ok_action";
    public static final String APPLY_ACTION = "apply_action";
    public static final String PORTLETTITLE_KEY = "portletTitle";
    public static String actionUrl = "";
    public static String buildValue(PortletPreferences prefs, String key)
    String[] values = prefs.getValues(key, null);
    if (values == null || values.length < 1)
    return "";
    StringBuffer buff = new StringBuffer();
    for (int i = 0;i < values.length;i++)
    buff.append(values[(i)]);
    if (i + 1 < values.length)
    buff.append(',');
    return buff.toString();
    public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException
    // Determine which action.
    String action = request.getParameter("ACTION");
    if("FORM2".equals(action))
    response.setRenderParameter("targetUrl", "/edit1.uix");
    else if("SHOW".equals(action))
    //response.setRenderParameter("targetUrl", "view.uix");
    response.setPortletMode(PortletMode.VIEW);
    protected String getTitle(RenderRequest request)
    // Get the customized title, defaulting to the declared title.
    PortletPreferences prefs = request.getPreferences();
    return prefs.getValue(PORTLETTITLE_KEY, super.getTitle(request));
    protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, IOException
    // Do nothing if window state is minimized.
    WindowState state = request.getWindowState();
    if (state.equals(WindowState.MINIMIZED))
    super.doDispatch(request, response);
    return;
    // Get the content type for the response.
    String contentType = request.getResponseContentType();
    response.setContentType(contentType);
    // Get the requested portlet mode.
    PortletMode mode = request.getPortletMode();
    // Reference a request dispatcher for dispatching to web resources
    PortletContext context = getPortletContext();
    PortletRequestDispatcher rd = null;
    // Dispatch based on content type and portlet mode.
    if (contentType.equals("text/html"))
    if (mode.equals(PortletMode.VIEW))
    rd = context.getRequestDispatcher("/view.uix");
    else if (mode.equals(PortletMode.EDIT))
    String targetUrl = request.getParameter("targetUrl");
    if(targetUrl==null)
    actionUrl = getEditFormSubmitURL(request,response,"FORM2","Start Wizard");
    rd = context.getRequestDispatcher("/edit.uix");
    else
    actionUrl = getEditFormSubmitURL(request,response,"SHOW","Wizard Step 2 ");
    rd = context.getRequestDispatcher(targetUrl);
    else
    super.doDispatch(request, response);
    else
    super.doDispatch(request, response);
    if (rd != null)
    rd.include(request, response);
    else
    super.doDispatch(request, response);
    private String[] buildValueArray(String values)
    if (values.indexOf(',') < 0)
    return new String[] {values};
    StringTokenizer st = new StringTokenizer(values, ",");
    String[] valueArray = new String[(st.countTokens())];
    int i = 0;
    while (st.hasMoreTokens())
    valueArray[(i)] = st.nextToken().trim();
    i++;
    return valueArray;
    public static EventResult loadPage(BajaContext aBajaContext, Page aPage, PageEvent aPageEvent)
    EventResult myEventResult = new EventResult(aPage);
    myEventResult.setProperty("actionUrl",actionUrl);
    return myEventResult;
    public static EventResult loadPage1(BajaContext aBajaContext, Page aPage, PageEvent aPageEvent)
    EventResult myEventResult = new EventResult(aPage);
    myEventResult.setProperty("actionUrl",actionUrl);
    return myEventResult;
    protected String getEditFormSubmitURL(RenderRequest request, RenderResponse response, String actionForm,String title)
    PortletURL nextUrl = response.createActionURL();
    nextUrl.setParameter("ACTION", actionForm);
    response.setTitle(title);
    return nextUrl.toString();
    //edit.uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="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">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <link destination="${uix.eventResult.actionUrl}" text="Click here"/>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="*">
    <method class="mypackage20.Portlet1"
    method="loadPage"/>
    </event>
    </handlers>
    </page>
    The problem is that the parameter that I set through nextUrl.setParameter("ACTION", actionForm) , which means i set a parameter name "ACTION" with value="FORM2". This parameter is not available through String action = request.getParameter("ACTION"); in the processAction method when I click on the "Click here" link in the edit.uix.
    However, I can retrieve one parameter from the action request, which is ";wsrp-interactionState", and whose value is "ACTION=FORM2"
    I have no clue why is this happening. Any pointers in this regard are highly appreciated.
    p.s : It works fine with JSP as the front end.
    Thanks,
    Parul

    If you don't want to use the administration console to create channels based on the porltlets you deployed, you need to create a display profile fragment that create the channels and import using 'dpadmin'

  • Update ORDImage with in memory BLOB?

    According to the interMedia docs, one of your examples is:
    BEGIN
    INSERT INTO emp VALUES (
    'John Doe', 24000, 'Technical Writer', 123,
    ORDSYS.ORDImage(ORDSYS.ORDSource(empty_blob(), NULL,NULL,NULL,SYSDATE,1),
    NULL,NULL,NULL,NULL,NULL,NULL,NULL));
    -- select the newly inserted row for update
    SELECT photo INTO Image FROM emp
    WHERE ename = 'John Doe' for UPDATE;
    --BEGIN
    -- use the getContent method to get the LOB locator.
    -- populate the data with dbms lob calls or write an OCI program to
    -- fill in the image BLOB.
    --END;
    -- set property attributes for the image data
    Image.setProperties;
    UPDATE emp SET photo = Image WHERE ename = 'John Doe';
    -- continue processing
    END;
    However, the part I'm stuck on is the populate the data (using OCI or LOB packages). For a regular BLOB field (or interMedia text), I can use the procedure outlined below:
    sSQL = "SELECT blob FROM store WHERE id = " & ID
    Set oDS = setDS(sSQL)
    oDS.Edit
    Set oBLOB = oDS.Fields("blob").Value
    sRet = oBLOB.Write(oFile.Binary, sSize)
    oDS.Update
    I retrieve the blob field (which was inserted with empty_blob()) into a dynaset using OO4O, edit the current row and write the new blob with the file and size parameters (I get from the rest of my code). This does not work for a fieldtype of ORDImage (the write method is not available). Is there any sample code that will update the blob field with binary in-memory data as opposed to from an external file? Thanks,
    Kevin
    null

    The interMedia object method getContent() returns a blob. This can then be read and write using the BLOB interface.
    So in your example, your SQL would be
    sSQL = "SELECT s.image.getContent() FROM store s WHERE s.id = " & ID
    Then you could uses the fields.value method to get the blob handle.

  • Question with uix:dateField tag

    hi,
    I am trying to use the dateField tag of uix. when we write the dateField tag as <uix:dateField /> it creates a calender. but when I click on the calender nothing shows up. In the tag Itself there are various attribs like the destination, minValue, maxValue etc probably the destination takes us to the calender!! I do have a script that opens up the calender but i suppose the dateField does that for us and If I want to validate the field a client side vadilation also is available
    http://otn.oracle.com/jdeveloper/help/ under <uix:date>
    but how do i use it in my context
    this is the normal HTML code with script that will show the calender and set the value of the datebox(the one I am using now)
    <input type="text" name="datebox" >
    <a href="javascript:show_calendar('protletForm.datebox');
    onmouseover="window.status='Date Picker';return true;"
    onmouseout="window.status='';
    return true; ">
    <img src="/avegaPortlets/cabo/images/cache/c-dp.gif" width=20 height=24 border=0>
    </a>
    how do i get to it with the <uix:datefield> tag along with the validation?? can anybody please help me on this !!!
    thanks,
    vasanth

    hi,
    thanks so much. ::::)
    It did work with the <uix:form name = "something"> tag.
    could you tell me what is the equivalant to the <form action = "something here"> in the <uix:form> tag???? like is it <uix:form destination = "some java class">?? will this work??
    when I hit submit I want to form to be submitted and the values in the form read by my "something here" java class.
    regards,
    vasanth

  • Javascript Error with UIX Page

    Hi all,
    I am using JHeadstart 10.1.2.2.32 with JDeveloper 10.1.2.1.0 to develop UIX pages. I have run into the following problem with one of my UIX pages. We have a page with a table view which uses sortable headers. In certain situations when using the sortable headers in IE 6.0.2900.2180, a javascript error appears. This does not occur using Firefox.
    It says:
    Line: 2894
    Char: 1
    Error: 'type' is null or not an object
    Code: 0
    URL: (the URL of the page)
    I have figured out that the error is occuring in the Common2_2_20.js file on the following line, which is part of the function _multivalidate:
    var a7 = a6.type; The error only occurs in the following situation. If the user has just logged into the system and certain rows in the table are read-only and others are editable. If you click on any of the sortable headers, it will sort fine the first time. However, if you click on the sortable header again, the javascript error appears. It only happens if you click on the sortable headers twice in a row.
    I have tried taking out the line of code, but then I can not sort the headers at all.
    I read in the forum that the error can occur because of the way IE handles the compression of javascript files. We changed the setting on the app server to not compress javascript files. I then undeployed and redeployed the application. However the same error is still occuring.
    If you need any more information, please let me know. Thanks in advance.
    Susan

    We found out that we had a custom script on the page that was interfering with script in the Common2_2_20.js. By moving the script to the end of our page, it solved our problem.
    Susan

  • Jaas ( web.xml) login with uix gives error

    I configured a jaas login (web.xml) with my jheadstart project like the jsp example ( Secure BC4J Applications with Oracle9i VPD and Oracle 9iAS JAAS ) this works fine, I get a login box and after i log in, the oc4j server gives a error.
    Error in CreateMarlinUIXPage.createUITree: no protocol: /uix/HomePage.uix
    what can this be, the jsp example works fine

    here is my web.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>sicma</display-name>
    <description>sicma helpdesk applicatie</description>
    <servlet>
    <servlet-name>sicmaController</servlet-name>
    <servlet-class>oracle.jheadstart.process.controller.JhsHttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>sicmaService.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>sicmaController</servlet-name>
    <url-pattern>/Startsicma</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>startController</servlet-name>
    <servlet-class>oracle.jheadstart.process.controller.JhsHttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>startService.xml</param-value>
    </init-param>
    <security-role-ref>
    <role-name>administrator</role-name>
    <role-link>administrators</role-link>
    </security-role-ref>
    </servlet>
    <servlet-mapping>
    <servlet-name>startController</servlet-name>
    <url-pattern>/Start</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <res-ref-name>jaas</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    </resource-ref>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>jaas</web-resource-name>
    <url-pattern>/</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>administrators</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>jazn.com</realm-name>
    </login-config>
    <security-role>
    <role-name>administrators</role-name>
    </security-role>
    </web-app>

  • Problems with UIX-XML

    We are trying to use the UIX XML framework, but we have some problems:
    1)     We need to show the content of an uploaded file such as PDF, Word, Excel and other multimedia content.
    2)     We need to process the changes on a bc4j table with editable fields (we can read the values, but when we try to update the view object, an error occurs saying that the value is not serializable).
    3)     We need to load the shuttle component with data coming from a bc4j view object and to process the changes on that component (like the order of data).
    4)     We need to use bc4j uix tags in UIX templates.
    5)     We need to read the custom properties of view or entity object.
    TIA

    Renzo,
    I've read that 9.03 is suppost to have UIX/XML-interMedia support (any JDev guys want to confirm that).
    I've has this same issue and had to revert to BC4J-JSP for the interMedia stuff. That said, to get the UIX look, I was able to wrap that up inside of UIX-JSP pages using <rawText> and it work.
    Bill G...
    BTW - What part of Italia are located in?

Maybe you are looking for