UIX and stuts

I noticed that when I tried to use <uix:dateField> within a struts form (<html:form>) it does not bring up the calendar (datepicker). is there any way to get it to work within a struts form. If not will it be developed, or do I have to create the entire page in UIX just so that I can have access to 2 <uix:dateField>s?

1. You can probably check for the value using java's regular expression (which comes with JDK 1.4) or other reg exp library and set a variable to appropriate scope and then check for this value-using el in your uix page on the rendered attribute.
2. UIX does provide validateRegExp on its onsumbit and onblur validaters which can be attached to input components. This is for your information, but is not of much use in the current context.
Point 1. is more relevant, point 2 is FYI.
Thanks,
Vijay Venkataraman

Similar Messages

  • UIX and Struts ActionForm

    Hi,
    Can I use Struts ActionForm and ADF UIX?
    Thanks

    The "Simple Hello World sample using ADF UIX and JDeveloper 10g Preview" application integrates Struts with ADF UIX.
    http://jjacobi.blogspot.com/2003_11_30_jjacobi_archive.html
    Simple ADF UIX User Input Application
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_uix_userinput_ht/index.html

  • Use UIX and JSP together

    I have some existing jsp application . I want to integrate it with UIX application that is generated from JHeadStart . jsp application is just 10% of whole project.
    I am not sure this is a good way or not . May be We should use JHeadstart to generate JSP more than UIX . but I think it 's more powerful if I use JHeadstart to generate UIX application .
    What do you recommend for this ?
    and if we have to use both together . How dose JSP application pass parameter to UIX application ? and How dose UIX pass parameter to JSP ?. and How UIX use the parameter that 's sent form JSP ?
    thanks in advance

    If JSP is only 10% you might want tpo consider migrating these pages to UIX.
    If this is not an option, you should be able to use both UIX and JSP pages. However, make sure you create separate struts-config.xml files for the JSP-based subsystem and the UIX-based subsystem. This requires two se[parate ViewController projects, that act as one web application. The same setup that has been aplied to Th JHeadstart demo application in Jhs 10.1.2.1. Check out this article from Duncan Mills as well:
    http://www.oracle.com/technology/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html
    One addition to this articel: the source path property of the ViewController projects shopuld be the same as well.
    As far as communication between the pages is concerned: this is no different then between UIX pages. You can pass request parameters around, and since the pages are running in the same web app, they share the same HttpSession.
    Steven Davelaar,
    JHeadstart Team.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Uploading xml file using ADF UIX and storing in ordsys.orddoc field

    I am using ADF UIX and I am using the messageFileUpload tag to upload an XML file into the database (the file contains special characters like hyphens, apostrophes, $, etc). Once in the database I have a procedure which puts it into a clob field using the dbms_lob package. However, what exactly does ordsys.orddoc do with special characters? If I debug my procedure I see that 1 of 4 hyphens and 3 apostrophes have been turned into a character that looks like a square. Anyone know what is going on?

    It should pass binary information only, no conversion at all.
    The conversion is likely in messageFileUpload or the dbms_lob package you are using. Or you may need to tell DBMS_LOB the character set the XML file is in?
    You may want to upload the file using the interMedia tag library... Using uploadFormData?
    http://www.oracle.com/technology/software/products/intermedia/htdocs/descriptions/tag_library.html
    http://www.oracle.com/technology/products/intermedia/htdocs/jsptaglib/html/toc.htm
    Larry

  • ADF UIX and Javascript

    Hello,
    I am new in ADF UIX...
    I have a table in ADF UIX and I would like to use some my javascript functions. I know I have to set: <table proxied="true">....</table> but where I can write my functions, in an included file ? I mean, how does the interaction between the XML configuration file and javascript work ?
    Thank in advance,
    Henry

    Hi Rade Todorovich,
    As mentioned previously, if you had placed the javascript as indexed child of head element it would be fine.
    <Head> is named child of <metaContainer> which inturn is named child of <document> element. The example below should make it clear.
    This is how the UIX document would be
    <?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="test">
    <contents>
    <!-- case 1 -->
    <script source="./cabo/js/test.js"/>
    <script>
    <contents>
    function theFunction()
    alert('the function');
    </contents>
    </script>
    </contents>
    </head>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <!-- case 2 -->
    <contents>
    <script>
    <contents>
    function hi()
    alert('hi');
    </contents>
    </script>
    <button text="call-hi" name="fn" onClick="return hi();"/>
    <button text="call-theFunction" name="fn1" onClick="return theFunction();"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    There are two usages:
    Case 1
    In your html it would just appear the way you would normally write a JS function with in the head
    <html>
    <head>
    <title></title>
    <META>
    <script language="javascript" src="./cabo/js/test.js">
    <!-- case 1-->
    <scirpt language="javascript">
    theFunction()
    </script>
    </head>
    <!-- case 2 -->
    <form ....>
    </form>
    <script language="javascript">
    function hi()
    alert('hi');
    </script>
    </html>
    Case 2
    As such <script> element can occur in HTML document.
    as mentioned in http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1
    In the same way UIX also allows the use of script element with in its <body> element.
    With case 2 you can see the way the script gets inlined in the HTML document. Please run the UIX and view source for the rendered page. It should become obvious.
    Thanks,
    Vijay Venkataraman

  • Adf uix and 800*600 resolution

    We need to develop an application with adf uix and 800*600 resolution.
    It seems that uix rendering is not so fine with 800*600 resolution.
    What is the suggested workaround to this problem?
    Do we need to customize the look and feel (and what customization steps do we need to perform) or what else?
    Thanks in advance, Mauro

    800*600 did work until for a couple of days ago when it did start saying "sync. out of area"
    Its a siemens something screen... 5 years old...
    i did look at the cable to the screen one "pigg" of the 15 "piggs" are missing.. could it be some problem there... all other res. are working without a problem..
    the screen should work at 800*600 at 100hz

  • UIX and JSF

    Wish you all a very happy new year !!
    Any comparisons between Oracle's UIX and JSF.
    Thanks in advance

    As one of the JSF EG members, and a lead developer on the UIX project at Oracle, I'm pretty sure I can help!
    I think of the currently available version of UIX as an ancestor of JSF - a number of the ideas in JSF originate from work we did at Oracle. JSF also resolves some of the architectural limitations we've encountered as we've moved UIX forward.
    We've publicly committed to moving UIX onto the JSF framework; you can read about the details at:
    http://otn.oracle.com/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    Some of the features UIX will bring to the JSF table include a large high-level component set, customizable look-and-feels, WYSIWYG development, and declarative XML UI development.
    BTW, just to be thorough, since I've seen this misstated elsewhere, UIX (and the ADF framework in general) are not tied to the Oracle J2EE server, or the Oracle database. They can be deployed to other servers and other databases.
    -- Adam Winer (EG member)

  • Are JDev9i UIX and BC4J application server dependent?

    Are UIX and BC4J application server dependent?
    If I use JDeveloper9i to build an application using UIX XML + BC4J + Java, then can this be deployed on IBM Websphere, Web Logic, Oracle 9iAS, etc...?

    BC4J and UIX are not tied to any application server. They are "just" a collection of jar files that you can deploy to any application server.
    Check out the how-to section to see the doc about deploying BC4J to other application servers at:
    http://otn.oracle.com/products/jdev/howtos/content.html
    (more info in the online help).
    Also check out otn's home page later today for a daily feature about BC4J openness.

  • File upload, download using ADF UIX and not JSP

    I have examples for the file upload, download using JSP
    But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
    Users will select a file from their desktop
    This will be stored into the database (Any document. Word, Excel)
    When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local system

    Sure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
    The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
    public class ProgressListenerImpl implements ProgressListener {
        private int percent = 0;
        public int getPercentComplete() {
            return percent;
        public void update(long pBytesRead, long pContentLength, int pItems) {
            if (pContentLength > -1) { //content length is known;
                percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
    }So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
    ServletFileUpload upload = new ServletFileUpload();
    ProgressListenerImpl listener = new ProgressListenerImpl();
    upload.setProgressListener(listener);
    request.getSession().setAttribute("ProgressListener", listener);
    ...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
    ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
    response.getWriter().println("" + listener.getPercentComplete());
    ...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
    HTH

  • UIX And MS Internet Explorer

    Hi.
    Why does MS Internet Explorer always give (Error in JavaScript) when usin UIX.
    Netscape and Mozilla firefox does not give any errors.
    Is there any way to solve the problem of the Internet Explorer (Because most of people use MS Internet Explorer).
    Thank's.
    Omar Dawod.

    Hello
    I think i am spotting the iceburg of the problem.
    I managed to recogonize the pattern the leads to such problem, it may be caused by my specific application, because i was not able to re-repoduce it. I will explain the behaviour and the solution more thoroughly when i find the solution... it has something to do with the fact that the URL seems to get stuck to certain address while navigating.. I will resolve it but still do not understand why Mozilla does not have it

  • Oracle ADF UIX and Struts

    Does Oracle ADF UIX use Struts components internally? If yes, Does Oracle Support the issues that arises because this internally used Struts components? (I am using Oracle ADF in my application.
    Thanks,
    Aravind.

    DataForwardAction and DataAction are build on top of struts actions to coordinate ADF databindings and it's life cycle;
    UIX, has xmlns:struts="http://xmlns.oracle.com/uix/struts" this XML namespace has some elements like
    <struts:form> and <struts:messageTextInput> also <struts:dataScope>
    They work like struts jsp tag;
    here a good paper;
    http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/struts.html
    Marcos Ortega
    Brazil

  • How to create search engine (with UIX and BC4J) across nested VOs?

    Suppose I have N:N relationship beetween the DB tables so the intermediary table is created (PK is Primary Key, FK is foreign key):
    table1 (PK_ID1, ATTR11, ATTR12...)
    table2 (FK_ID1, FK_ID3) //where both FKs are Primary Key this is intermediary table
    table3 (PK_ID3, ATTR31, ATTR32...)
    The goal is to create a data model (ie EOs, VOs and AM) so that I can create a search page in UIX that would have search fields from tables 1 and 3 ! However, the search result display should return only table 1.
    for example:
    table1=INDIVIDUALS (IID, FIRST_NAME, LAST_NAME...)
    table2=EMP_PHO(IID, PID)
    table3=PHONES(PID, PHONE)
    so an individual may have more than one phone and one phone may belong to more then one individual (ie family home phone)
    and say, I want to search by phone number (PHONE) and to return individuals in a table?
    Please help

    Hai Nikhil,
    Please find below sample code for your report logic.
    REPORT  ZJAK1.
    tables:makt.
    select * from makt where maktx like 'test%'.
    write:/10 makt-maktx.
    endselect.
    output of this program
    tested
    test
    test forcast
    if useful please provide points.
    Jaheer

  • UIX  and Struts

    I wanted to know where can I find detail technical information about integration of struts and UIX.

    Hi Prashant,
    See the UIX Developer's Guide chapter "Using uiXML With Struts" in the JDeveloper 9.0.3 help system.
    Regards,
    Jeffrey Stephenson
    Oracle Corporation

  • Adf uix and blaf

    Hello I've known The Browser Look and Feel (BLAF). I'd like to use that to do a form printable page (in a new window) without the navigation buttons . In next link there's an explanation but really I can't understand how I must use BLAF in my uix page:
    http://www.oracle.com/technology/tech/blaf/specs/printAndPreview_flow.html
    How can I do to interact a page uix with blaf?
    thanks!!

    The BLAF - as far as I understand it - is the usability concept behind UIX. So, UIX already implements (in part?) BLAF.
    To create a printable version of a page you use the showFacet element. The page "Customization of ADF UIX" will show you how to use it. Search the help for "showFacet".
    The facet already removes lots of elements not suitable for printing from the provided LAFs. You can do a
    rendered="${uix.renderingContext.rendererManager.facet!='printable'}in your controls to further control the visibility of elements.
    Sascha

  • ADF UIX and Database Changes

    We are in the process of designing an entirely new system. Our data model is still changing but we are also trying to develop programs using Jdeveloper ADF UIX. Here is our issue; whenever our database tables change, we have to refresh our developed programs. Doing a synchronize on the view objects doesn't seem to update the xml or java files. Is there an easy way to do this? I find that the xml or java files still reference old fields that have been renamed or removed from the database. We are using Jdeveloper 10g.
    Thanks!

    I am very new to Jdeveloper 10G...First of all i want to create a screen with multiple rows and this screen should open up in Insert mode...and then on the button click i want a database procedure to be called which would then insert these rows into the table after few validations...
    Now could you tell me how to create a screen with multiple rows in insert mode and if you have some example of referring to a database procedure then could you please point me to that?

Maybe you are looking for