Extending UIX components

Hi everybody,
I've started to investigate the UIX extension possibilites, and I have some doubts.
Here goes some questions:
1) How can I use the new defined components at design time? (I haven't found it in the docs)
2) The documentation talks about the possibility of extend components developed by someone else. And there is an example of adding a new property to an existing component, but the fact is that the new behavior doesn't affect rendering. It's possible to modify the renderization of an existing component in an easy way? For instance, add a new property to a MessageTextInput which lets us decide where goes the promp (left or right of the text box). It's not a great change, but it's needed to modify the renderization.
Thank you,
Carles Biosca

You should take a look into templates. Templates provide an easy way to customize components (to some extent) and to combine existing components into new ones. So if it can be done with a template then that is probably the way you should go.
In your case, you could create a new template consisting of a messagePrompt and a textInput in a layout. As base type you should use the textInput.
The position of the prompt you could then control based on an additional template attribute.
The templating stuff should also be in the "Extending UIX" chapter.
Sascha

Similar Messages

  • Jdev 9iRC: deployment of BC4J-UIX components to OC4J !2.0! does not work

    in different threads the problem of deployment of BC4J UIX components to OC4J 1.2.2.x is addressed (see http://forums.oracle.com/forums/message.jsp?id=679060 for example). contrary to the sayings of different members of the jdev-team i face the same problem with OC4J 2.0 (java lang nullpointer exception).
    i'm using jdev9iRC and 9iASWE v2 beta which comes with OC4J 2.0.
    i followed the recommendations of the thread mentioned above, no result. i followed the recommendations of steve muench in thread HELP! Loading Java Classes into Oracle ERROR result is the same error but now already when calling the main.uix. next try was also on recommendation of steve muench somewhere else: i installed the complete jdev 9iRC on my application server and tried to deploy to this "embedded" OC4J. result: uncomplete deployment because of denied access to the files server.xml and http-website-xml:
    Beginning to deploy to Oracle9i Application Server...
    Wrote WAR file to C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.war
    Wrote web EAR file to C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.ear
    Invoking Oracle9iAS admin tool...
    C:\Programme\oracle\jdeveloper\jdk1.3\jre\bin\javaw.exe -jar C:\Programme\oracle\jdeveloper\j2ee\home\admin.jar ormi://bajor.skypages.net admin **** -deploy -file C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.ear -deploymentName F1Administration-F1StammdatenUIX-app
    Auto-unpacking E:\ORACLE\jdev9iRC\j2ee\home\applications\_F1StammdatenUIX.ear... done.
    Auto-unpacking E:\ORACLE\jdev9iRC\j2ee\home\applications\_F1StammdatenUIX\F1StammdatenUIX.war... done.
    java.io.FileNotFoundException: E:\ORACLE\jdev9iRC\j2ee\home\config\server.xml (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.evermind.xml.XMLConfig.storeToURL(XMLConfig.java:433)
    at com.evermind.xml.XMLConfig.store(XMLConfig.java:420)
    at com.evermind.server.ServerComponent.store(ServerComponent.java:756)
    at com.evermind.server.ServerComponent.store(ServerComponent.java:728)
    at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:466)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:79)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Exit status of Oracle9iAS admin tool (-deploy): 0
    C:\Programme\oracle\jdeveloper\jdk1.3\jre\bin\javaw.exe -jar C:\Programme\oracle\jdeveloper\j2ee\home\admin.jar ormi://bajor.skypages.net admin **** -bindWebApp F1Administration-F1StammdatenUIX-app F1StammdatenUIX http-web-site /F1Administration-F1StammdatenUIX-context-root
    Communication error: E:\ORACLE\jdev9iRC\j2ee\home\config\http-web-site.xml (Access is denied)
    Exit status of Oracle9iAS admin tool (-bindWebApp): 1
    ---- Deployment finished. ---- 12.02.2002 12:53:02
    what am i supposed to do? is there a solution?
    please help
    TIA, trevi

    Yes, I can create a new as3 file, but I can't "fill it with
    sensible content". Neither my As3-codes are recognized nor simple
    components are displayed to me in a proper way when testing the
    movieclip.
    Now, I have just reinstalled my CS4 on another computer and
    there it works with AS3. Really strange. Does CS4 need to
    communicate with some internet services while executing a simple
    fla-file or something like that?

  • Custom UIX Components

    Is there any way to customize UIX components? For instance, alter the layout of a List of Values? The List of Values component is basically a complete web form with a search field, table, and buttons. Is it possible to change the presentation at all (besides the colors)? I would really like to re-work the layout if possible (move some things around, change wording, etc...). Thanks!!
    JOHN

    dear sir...
    please check this:
    Create a UIX control
    best regards

  • Extend UI components

    Am I correct that it not currently possible to extend existing UI components and add new properties/behavior. Are there any plans to support this in the <b>near</b> future. I mean, the whole concept of components is a bit useless if you're completely tied to the ones provided by SAP.

    Hi ,
    Yes its true !
    Abt extending UI components.. is there any development framework which supports UI component extension ? I doubt that  part !
    Not exactly an analogy.. but can u extend say , a html dropdown to do something else other than the standard ? (like add a label in front of dropdown)
    If you are talking abt taglibs..
    Its probably to bring a standard then going back to  a mix of HTML tags /HTMLB and lots other...
    Regards
    Bharathwaj..

  • How to localize core UIX components?

    Need to localize some core UIX 2.2.8 components such as:
    Select, Previous, Next, "X-Y of Z", "No records found", etc.
    How?

    Unfortunately, you're mostly correct. Adding additional language/locales to UIX is not officially supported. We'll look at ways to extend the available language / locale list in the future.
    However, there was a similar discussion recently on the forum -> Re: change language (uix jsp)
    But I advise against the approach documented by the user since it would breach the license agreement.
    Regards,
    Tony Jewtushenko

  • Extended Swing Components into Custom Component Palette

    Hi
    As part of my swing application I have a number of GUI components created as an extension of a normal swing component.
    As example is below.
    package com.myapp
    import java.awt.Font;
    import javax.swing.JLabel;
    public class MLabel extends JLabel
    public MLabel()
    this.setFont(new Font("Tohoma",0,10));
    this.setFocusable(false);
    As you can see this simple sets some default attributes. How can I add this custom component into a palette for each access when using the GUI builder.
    I've created a new page in the palette, but am unable to add my components.
    Thanks for your help.
    Nick.

    Hi,
    - create a JAR file with your component(s) in it
    - Create a custom Library in JDeveloper (Tools--> Managed Libraries)
    - Select the JAR file
    - On the component palette (the page you created), select the properties option of the context menu
    - Your library now shows up in the drop down list to choose the component to add
    Frank

  • Extending Swing Components

    I would like to create my own Swing components that I wish to use in my Java GUI programs. I would like to create my own lightweight components and also to create things such as:
    Round buttons
    Sliders
    etc
    I also need to know how to create metallic skins for my Swing application.
    Please can someone give me any simple examples of how to create custom components and also how to create skins of interfaces or give me some URLs that teach you.
    Thanks in advance
    Riz

    I think your best bet is to look at the source of the LookAndFeel's provided with the swing download, mac/windows/motif/metal/basic and figure it all out. I don't know of any detailed sites to help make look and feels.

  • Question about extending uix

    Hi,
    Someone can help me for this problem.
    I have found in the Jdeveloper help, this code:
    // Get the objects we need
    ErrorLog log = ...;
    ParseContext context = new ParseContextImpl(log);
    ParserManager manager = ...;
    NameResolver resolver = ...;
    // And parse.
    YourType result = (YourType)
    XMLUtils.parseSource(context,
    null,
    manager,
    resolver,
    "yourFile.xml",
    YourType.class);
    Someone can help me figure out, how to get the variables : log, manager, resolver and YourType.class??
    Any examples??
    result could be a String??
    Thanks

    Hi!
    What I want to do?
    Well, I am trying to intercept the content (html) that is sent by the servlet to the client.
    Everywhere i look, I can't find where to have this html.
    So I was thinking, if I can parse the page myself, maybe I could have access to the html code...
    I need to find a way to show the page the user requested, in a PDF document.
    Something like this event:
    <event name="printMe">
       <showFacet name="printable"/>
    </event>I would like to have the html code generated by the call to this event and show the result in a PDF document...
    If you can help, it would be very appreciated
    Thanks
    Martin

  • How to Extend ATG10 Multisite's SiteContext or SiteSession components.

    Can anyone let me know if you have come across extending Multisite's SiteContext or SiteSession components? We want to extend these components to hold custom values but i do not find anything related in the documentation. Thanks in Advance.
    -PR

    SiteSession isn't a Nucleus component. The component that instantiates SiteSessions does not provide a way for you to specify an alternate class. SiteContext and SiteSession both have an attributes property that is a Set of name/value pairs. Names are Strings and values are Objects. Once your code gets access to a SiteContext or SiteSession, you can call setAttribute and getAttribute to manipulate your custom properties. Both classes also have a getAttributeNames method you can use to iterate through whatever attributes you've set.

  • Extending default UIX renderers

    Is there any way to extend a default UIX renderer?
    Note that I don't mean extend UIX by implementing my own renderer; I've read the docs regarding that but they don't address the extension of an existing "stock" renderer.
    For example, to derive subTabBar or inlineDatePicker etc... I know simple things like the colour and font can be changed via styles but I can't change the core rendering that way (even in a very small way).
    Thanks in advance!

    Thanks for the reply...
    How do I know what is part of the public API? I have taken a look at the new "Hosted JDeveloper Online Help" - 10g (9.0.5.1) to be exact - which was released this AM on Oracle JDeveloper News RSS thread ( http://helponline.oracle.com/jdeveloper/help/state?navSetId=jdeveloper&navId=0&destination= ) and most of the links in the reference section point to an API prefixed w/ oracle.bali; is this what is considered the public API or did I miss another reference?
    Thanks again for your time!

  • How to open new window in UIX page

    I'm using UIX for view layer. I have text input in the UIX form. When I click on a button, I want to open a new window with the URL built using the value from the input. I want to do it using javascript. Is it possible with UIX?

    Hi Krishnamoorthy,
    Look out the LovXXXX components demo in uix.
    See <script> demo of component guide. This should help you clearly understand the functionalities.
    See documentation of above UIX components
    Like providing handlers to HTML elements, you can attach event handlers to UIX components too. You can attach event handlers on onClick, onMouseOver,... on UIX components just as you would do in HTML.
    http://www.oracle.com/technology/sample_code/products/jdev/index.html
    This link could be of some help to you.
    Thanks,
    Vijay Venkataraman

  • How to bind to a dynamic View in UIX

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

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

  • Flex Data Services does not see remote methods in extended ColdFusion component.

    I have created a remote service base component as a AModelService.cfc file. I extend that file to make my ModelService.cfc. When I configure the ColdFusion data service and point to ModelService.cfc and click next, I don't see any remote methods (there are none explicitly defined in the component) in the Service Operations window.
    If I go back and point to AModelServide.cfc, the parent component, and hit next, I see all the remote methods that are defined in the parent component. So, either I am doing something wrong, or Data Services does not look at methods up the cfc prototype chain, which from an OOP standpoint means that instead of say creating one restful base class and being nice and DRY you can't. I.e. not OOP for data services. Is this a bug, or what?
    Anybody get data services to work with extended service components?
    Mark

    Thanks for the reply. Yes, I did compile all the Java and it
    works OK with a simple Java program. It just will not work in a
    Flex application.
    The java classes are:
    RRA:
    package blah.myPackage;
    import java.util.List;
    import java.util.Collection;
    import flex.data.DataSyncException;
    import flex.data.assemblers.AbstractAssembler;
    class RRA extends AbstractAssembler
    public Collection fill( List fillParameters )
    RRS service = new RRS();
    return service.getSome();
    RRS:
    package blah.myPackage;
    import java.util.ArrayList;
    import java.util.List;
    import java.sql.*;
    import flex.EORS.*;
    class RRS
    public List getSome()
    ArrayList list = new ArrayList();
    String str = "bob";
    RR rr = new RR(str);
    list.add(rr);
    return list;
    RR:
    package blah.myPackage;
    class RR
    private String name;
    public RR() { }
    public RR(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setName(String name)
    this.name = name;
    I started with something that retrieved data from a database
    but watered it down just to try and get some kind of communication
    between Flex and Java.

  • No chart/graph functionality in UIX?

    What functionality is currently available within Jdeveloper 10g 9.0.5.1 to build charts/graphs against a 10g database within a UIX page?
    The Jdeveloper docs says that the the built-in graph component (a part of BI Beans) is not available for UIX - only for JSP:
    From the docs:
    "Easy to integrate with custom applications - Since a graph component is reusable, you can add it to custom applications, including Oracle ADF web applications (currently JSP pages only) and ADF JClient applications."
    What did Oracle use to add charts/graphs to OEM10g ( a UIX application)?
    If we were to use a third-party java chart class and add the class as a component data source, how should we link user input, say from a text box on a UIX page, to the java class? For example, the user browses to a UIX page, types in ORCL, and the bottom half of the UIX page refreshes with a dynamically produced stock chart of Oracle's price history pulled from a 10g database. Or the java class returns a chart of the same data within a read-only table all within a UIX page.

    Thanks, but the issue is including a dynamically generated chart - especially one based on input in the UIX page, not simply including a static image.
    According to the UIX docs, includes do not allow parameters to be set.
    If a user types "ORCL" into a text box, how may my java class receive/obtain that value in order to use it within its charting code? I'm trying to link values on the UIX page to the java classes extending UIX. After reading the UIX docs, I remain unsure how to make this happen.
    I can use a datascope with the method element to bind a UINode to my java class - but how to send parameter(s) to the java class to alter what it returns to the databound UINode?
    I'd like to do something like this:
    (1) Drop into the page a MessageChoice.
    (2) Send the user-selected value of the MessageChoice to a java class bound to a UINode through a datascope - or have the class itself grab the MessageChoice value.
    (3) The class returns a chart generated using the value of the MessageChoice.
    kind of like this:
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <data name="stockChart">
    <method class="yourpackage.ChartDemo" method="getTheChart(VALUE.OF.MESSAGECHOICE)"/>
    </data>
    </provider>
    <contents>
    <image image="${uix.data.stockChart.theChart}"/>
    </contents>
    The seeming lack of any chart/graph functionality within UIX seems like a big loss.
    Does anyone know how Oracle is producing charts/graphs in OEM 10g on UIX pages?

  • Shuttle Component Without UIX

    Hi all,
    Anybody have samples with usage of Shuttle/ADF Business components?
    But can't be with UIX components.
    Thanks.

    Let me try that again. Here is the bottom:
    String display = fieldRowLeading.getAttribute("DisplayName").toString();
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    </jbo:RowsetIterate>
    </uix:contents>
    </uix:list>
    </uix:leading>
    <uix:trailing>
    <uix:list multiple="true">
    <jbo:RowsetIterate datasource="dsUsedDisplayFields" userange="false" >
    <jbo:Row id="fieldRowTrailing" datasource="dsUsedDisplayFields" action="Active"/>
    <% String field = (String)fieldRowTrailing.getAttribute("FieldName");
    String desc = (String)fieldRowTrailing.getAttribute("Description");
    String display = (String)fieldRowTrailing.getAttribute("DisplayName");
    %>
    <uix:option selected="False" value="<%=field%>" text="<%=display%>" longDesc="<%= desc%>" />
    Long postings are being truncated to ~1 kB at this time.

Maybe you are looking for