Adding styles to custom as3 components

I understand how to add styles to custom components in Flex
but can anyone shed light on the correct way to define a background
image style in the class constructor? i.e what is the correct
"type" for a backgroundImage:
[Style(name="backgroundImage", type="????", inherit="no")]
thanks in advance to anyone who can help!

If your custom component is a UIComponent, you can use the
setStyle(styleProp:String, newValue:*):void method. You can
override the protected method childrenCreated():void or
commitProperties():void. If you have a lot of properties to style,
you may want to use a css file and set the styleName property of
the UIComponent to a preset style.
In this case, if you have a background image, just do:

Similar Messages

  • How do I add custom style to custom AS3 component via .css file?

    Hi all,
    I have created a flex application which displays a custom component I created in actionscript. My custom component is just an extended canvas component which displays a gradient background. When I add the component to my flex app, see code below, the component works great.
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="http://localhost/mycomps">
        <ns1:GradientCanvas fillColors="[#ffffff, #000000]" />
    </mx:Application>
    However, I also want to support css styles to add the gradient colors to my component, like so
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="http://localhost/mycomps">
        <mx:Style source="test.css" />
        <ns1:GradientCanvas styleName="gradientCanvas" />
    </mx:Application>
    test.css
    .gradientCanvas {
        fill-colors: #ffffff, #000000;
    When I try this my component doesn't display a gradient. I have followed the tutorials online that I could find but it seems to be the same example from Adobe repeated on multiple site and it doesn't work.
    My component code is added below, if anyone could show me how to get this to work it would be much appreciated.
    Thanks in advance,
    Xander
    GradientCanvas.as
    package mycomps {
        import flash.display.GradientType;
        import flash.geom.Matrix;
        import mx.containers.Canvas;
        import mx.styles.CSSStyleDeclaration;
        import mx.styles.StyleManager;
        public class GradientCanvas extends Canvas {
            private static var classConstructed:Boolean = constructStyle();
            public function GradientCanvas() {
                super();
                this.width = 100;
                this.height = 20;
            private static function constructStyle():Boolean {
                var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("GradientCanvas");
                if (style) {
                    if (style.getStyle("fill-colors") == undefined) {
                        style.setStyle("fill-colors", [0xffffff, 0x000000]);
                } else {
                    style = new CSSStyleDeclaration();
                    style.defaultFactory = function():void {
                        this._fillColours = [0xffffff, 0x000000];
                    StyleManager.setStyleDeclaration("GradientCanvas", style, true);
                return true;
            override public function styleChanged(styleProp:String):void {
                super.styleChanged(styleProp);
                if (styleProp == "fill-colors") {
                    this._fillColours = getStyle("fill-colors");
                    this._fillColoursChanged = true;
                    this.invalidateDisplayList();
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                if (this._fillColoursChanged == true) {
                    var direction:Number = 90 * (Math.PI / 180);
                    var matrix:Matrix = new Matrix();
                    matrix.createGradientBox(unscaledWidth, unscaledHeight, direction, 0, 0);
                    graphics.clear();
                    graphics.beginGradientFill(GradientType.LINEAR, this._fillColours, [1,1], [0, 255], matrix, "pad", "rgb", -1);
                    graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
                    graphics.endFill();
                    this._fillColoursChanged = false;
            [Inspectable(category="Gradient", type="Array", format="Color", name="Fill Colours")]
            private var _fillColours:Array;
            private var _fillColoursChanged:Boolean = false;
            public function get fillColours():Array {
                return this._fillColours;
            public function set fillColours(value:Array):void {
                this._fillColours = value;
                this._fillColoursChanged = true;
                this.invalidateProperties();
                this.invalidateDisplayList();

    Never mind, I've discovered how to do it for myself.
    Thanks...

  • Problem Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Prev

    I'm having a problem on Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Preview (http://www.oracle.com/technology/products/jdev/101/collateral/101/adffaces/howto_customcomponents.html)
    The step 1 of 5 isn't visible for me and I don't see the "Install from local file" option to select the adf-faces-bundle.zip from my file system. The OTN check for updates don't prove the ADF Faces...
    What may I do?

    And...
    If "Check for Updates Wizard" is not launched, you can try to set LANG.
    see: 10.1.3 Can't not launch Update Wizard in Japanese environment.
    10.1.3 Can't not launch Update Wizard in Japanese environment.
    Thanks.
    Takuya Ono

  • How do I apply programmatic skins for completely custom drawn components of a Flex library project?

    Hello folks,
    I am looking for best practices advice when (1) creating
    custom components and (2) styling and skinning.
    I already know how to skin a component part of the Flex
    framework. I can make a class extending ProgrammaticSkin and have
    my component skinned using CSS to link the component with the
    reference to my custom class.
    However what about those cases when you are completely
    creating a component from scratch?
    Imagine a "Freehand Drawing Canvas" component that allows the
    user to draw on it and has some buttons to set color styles, line
    styles, etc., or imagine a "Screen Flow Gallery" component that
    displays visual objects in a fashion similar to Cover Flow in the
    Mac.
    In many components I am aware you may reuse other components
    part of the Flex framework but I am trying to picture an scenario
    where you would need to draw everything yourself because there just
    isn't something to base it upon so you will end up drawing it from
    scratch.
    To learn how instead of building one of those components I
    mentioned previously I decided to start with something simple that
    would illustrate this like a LiteButton component that will behave
    just like the Flex mx.controls.Button but will extend UIComponent
    and be completely custom drawn.
    The component will have a default look and will also be
    style-able and skin-able. I will provide styles for users of the
    component to modify and regarding skinning anyone can create a
    custom ProgrammaticSkin adding its own drawing logic and link it to
    the component via CSS with the ClassReference applied to the skin
    selector.
    So far so good and it's clear what I want to achieve. I
    actually know how to do most of the stuff here but I have one
    single problem.
    Here is my question, where should I put my custom drawing
    logic? If I do it in the updateDisplayList inside the class
    extending UIComponent it works, however I thought that it would be
    a better practice to do it using programmatic skins, that way I
    could provide different skin themes for my component set.
    The problem is that I can't make the programmatic work in
    this scenario. I tried instantiating the custom programmatic skin
    during the updateDisplayList of the LiteButton component and adding
    it to my display object via addChild but that didn't do anything. I
    also tried creating a "default.css" stylesheet and tried to use
    ClassReference as I would normally do to skin an already existing
    component (or composite component as well) but that didn't do
    anything either.
    So how do I apply programmatic skins for completely custom
    drawn components of my Flex library project?
    I could do it inside the updateDisplayList of the LiteButton
    class extending UIComponent but again I would like to provide
    different theme sets for my components so it makes sense using
    programmatic skins.

    "jbucaran" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello folks,
    >
    > I am looking for best practices advice when (1) creating
    custom components
    > and
    > (2) styling and skinning.
    >
    > I already know how to skin a component part of the Flex
    framework. I can
    > make
    > a class extending ProgrammaticSkin and have my component
    skinned using CSS
    > to
    > link the component with the reference to my custom
    class.
    >
    > However what about those cases when you are completely
    creating a
    > component
    > from scratch?
    >
    > Imagine a "Freehand Drawing Canvas" component that
    allows the user to draw
    > on
    > it and has some buttons to set color styles, line
    styles, etc., or imagine
    > a
    > "Screen Flow Gallery" component that displays visual
    objects in a fashion
    > similar to Cover Flow in the Mac.
    >
    > In many components I am aware you may reuse other
    components part of the
    > Flex
    > framework but I am trying to picture an scenario where
    you would need to
    > draw
    > everything yourself because there just isn't something
    to base it upon so
    > you
    > will end up drawing it from scratch.
    This may help with that
    http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html
    > To learn how instead of building one of those components
    I mentioned
    > previously I decided to start with something simple that
    would illustrate
    > this
    > like a LiteButton component that will behave just like
    the Flex
    > mx.controls.Button but will extend UIComponent and be
    completely custom
    > drawn.
    >
    > The component will have a default look and will also be
    style-able and
    > skin-able. I will provide styles for users of the
    component to modify and
    > regarding skinning anyone can create a custom
    ProgrammaticSkin adding its
    > own
    > drawing logic and link it to the component via CSS with
    the ClassReference
    > applied to the skin selector.
    >
    > So far so good and it's clear what I want to achieve.
    Actually after
    > playing
    > with the weekend and today I know how to do most of the
    stuff but I have
    > one
    > single problem. So here is my question, where should I
    provide my custom
    > drawing logic? If I do it in the updateDisplayList
    inside the class
    > extending
    > UIComponent it works, however I thought that it would be
    a better practice
    > to
    > do it using programmatic skins, that way I could provide
    different skin
    > themes
    > for my component set.
    These aren't mutually exclusive. When you provide a skin with
    a
    TypeSelector, you have to add it to the display list
    somewhere, and this is
    typically done in updateDisplayList or addChildren. I prefer
    to do it in
    updateDisplayList, because you can then change it if the
    style changes.
    > The problem is that I can't make the programmatic work
    in this scenario. I
    > tried instantiating the custom programmatic skin during
    the
    > updateDisplayList
    > of the LiteButton component and adding it to my display
    object via
    > addChild but
    > that didn't do anything.
    Exactly what did you do?
    > I also tried creating a "default.css" stylesheet and
    > tried to use ClassReference as I would normally do to
    skin an already
    > existing
    > component (or composite component as well) but that
    didn't do anything
    > either.
    I've never had any problem using an approach similar to
    this...but I will
    say that I couldn't see any advantage in creating a
    default.css style sheet,
    since it's not really default in the way that the one that
    comes with Flex
    is. It's much more obvious to anyone using your component
    what's going on
    there if you create a style sheet where they're likely to
    spot it.
    > So how do I apply programmatic skins with the default
    look for custom
    > drawn
    > components?
    It seems like your approach is fine, but maybe you've made a
    mistake in your
    implementation.
    > I could do it inside the updateDisplayList of the
    LiteButton class
    > extending
    > UIComponent but again I would like to provide different
    theme sets for my
    > components so it makes sense using programmatic skins.
    You might want to consider also adding an instance of
    HaloBorder to your
    component. That brings a lot of functionality with it.
    HTH;
    Amy

  • How to style a custom form that's been inserted as HTML into Muse

    Apologies in advance if something similar already exists, and as a print-based designer I'm likely to use incorrect terminology.
    I've created a basic website that requires a custom form. I've created this form using dreamweaver as it requires a dropdown and a check box. The unstyled html from DW I then insert into Muse via the 'Insert HTML' function, on a page called 'booking form'
    To style it I did the following...
    - Opened the form I created back in DW and added classes to the labels .formname, and added a class to some terms and conditions that sits somewhere in the form and called that .formsubtext
    - Copied all of this code and inserted it back into Muse via Insert HTML
    - The form shows up unstyled as expected
    - I export the site as HTML
    - Go into the exported folder into the CSS, and into the corresponding css file booking-form.css
    - Added some custom CSS styling to reflect the font and colour I wanted to use
    - Re-uploaded those edited files
    - The result was that it rendered the class .formsubtext reflecting the terms and conditions as it should but not all the other labels
    Would someone be able to tell me a better way to style a custom form or point out what I've done wrong.
    Thanks!!!

    If you have structured your HTML markup for the form well using appropriate class and id names, then you can just add corresponding CSS using the <style> element in the "HTML for <head>" section in Page Properites > Metadata.
    You may also choose to add all the CSS in a separate file and add reference to that in the HTML for <head> section and then upload the CSS file in appropriate location after publish.
    Cheers,
    Vikas

  • Customer gui components needed?

    I require to build a program with which allows the user to add representations of objects onto the main GUI by adding a seperate square for each object. each square should be capable of being moved, resized, deleted as well as have text displayed in it, and another object associated with it (but I'm currently just dealing with the GUI side of things). Each square will also need to be connected to others by means of an arrow from one square to another. Any suggestions as to where to start as there does not seem to be any appropriate widgets provided by java for this and I am having trouble finding stuff on the net about it. Will creating my own custom GUI components be the best option? If so any tips on how to do this?
    Regards

    Hello Ravi,
    Create a Variable for 0CALMONTH, and use this code,
    ' Declare this in the top
    data : v_startmon(6) type n,
    v_endmon(6) type n,
    ' Include this in the case statement
    when 'VarName'.
    ' Step 2 will execute after the user Input
    if i_step = 2.
    v_year = sy-datum(4).
    v_mon = sy-datum+4(2) - 1.
    ' If the month is Jan
    IF v_mon = '00'.
    CONCATENATE v_year '01' INTO v_startmon.
    CONCATENATE v_year '01' INTO v_endmon.
    ELSE.
    CONCATENATE v_year '01' INTO v_startmon.
    CONCATENATE v_year v_mon INTO v_endmon.
    EndIF.
    clear l_s_range.
    l_s_range-low = v_startmon.
    l_s_range-high = v_endmon.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    append l_s_range to e_t_range.
    Endif.
    Please see this for
    [User Exits in SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23f2f094-0501-0010-b29b-c5605dbdaa45]
    [User Exit Examples|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef]
    Also see this
    [Dependencies for Variables of Type Customer Exit |http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm]
    Thanks
    Chandran
    Edited by: Chandran Ganesan on Mar 17, 2008 1:57 PM

  • Dynamically add custom MXML components in Actionscript

    As there's no constructor for custom MXML components, how to
    dynamically add it as a child using ActionScript?
    I'm looking for some alternative to avoid the need to rewrite
    the entire existent component in ActionScript just to add it this
    feature (a constructor). PopManager is not an alternative...
    Is there any way?
    The case/situation:
    I have a custom MXML component that needs to be dinamically
    added to a NativeWindow created using ActionScript.
    Thanks a lot!
    Vicente Junior
    Independent Web Developer
    http://teclandoalto.blogspot.com

    mxml classes get generated into AS classes with a default
    constructor.
    In fact, there is essentially no difference between an AS
    component and an mxml component, they can be used exactly the same
    way.
    Tracy

  • Custom JATO components

    hi ...
    i have just about started using jato in conjunction with S1Studio
    and find it a real great asset ...
    we are trying to build custom jato components which can be packaged
    into a jar file and used like any other standard jato component ...
    e.g. i have developed this date component which is basically a
    composition of 3 comboboxes - one each for m/d/y ...
    to render these 3 comboboxes i have a "date" tag (DateTag.java)
    which basically includes a file Date.jsp in the parent jsp - the
    contents of Date.jsp:
    <jato:pagelet>
    <jato:combobox name="month"/>
    <jato:combobox name="day"/>
    <jato:combobox name="year"/>
    </jato:pagelet>
    The problem with this approach is that I can't package a JSP in a
    jar since the web server would not be able to determine the path to
    the jsp ...
    Can any of u direct me here? ... Also, if u have an example of a
    similar packaged custom jato component - that'd be of great help!
    thanks much,
    keyur

    Thanks Craig ... but Somehow this didnt work - maybe I didnt follow
    the steps correctly ... here is what i did:
    the jar file -> date.jar
    date.jar has .class files arranged according to their package
    names ..
    there's also the "COMP-INF" directory ...
    in addition to these - i added another folder called "webapp" ...
    and within "webapp" i housed the JSPs ...
    i then copied date.jar to <context root>/WEB-INF/lib folder and
    started the server ...
    however, the web server didn't extract out the JSPs ... did i go
    wrong somewhere? .... am i to do something other than this - like
    create the jar with some special parameter or change some
    configuration in the server?
    thanks!
    keyur
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    Keyur,
    You are in luck. There is a way to bundle the JSPs (or any web resources
    like images and other jar's) in the component jar file so that the tool
    will expand them properly into your web application's doc root.
    It's not officially documented yet, as is the case with creating
    components in general, but here's what you do:
    You have the ability to extract arbitrary files from a component library jar file into the web app's file system. This allows
    libraries to automatically unpack files like additional jars,
    images, pagelets, etc. All that's needed to take advantage of this
    new feature is to create a hierarchy of files in the complib under
    a "webapp" directory (off the root). The files under that directory
    will then be automatically extracted into the web context's
    filesystem.
    >
    For example:
    /webapp/test/foo.html
    will extract to
    <context root>/test/foo.html
    and the following
    /webapp/WEB-INF/lib/foo.jar
    will extract to
    <context root>/WEB-INF/lib/foo.jar
    Anything not under the "webapp" dir in the component jar file will stay packaged in the jar file.
    >
    Does that make sense?
    craig
    Keyur Shah wrote:
    hi ...
    i have just about started using jato in conjunction with S1Studio
    and find it a real great asset ...
    we are trying to build custom jato components which can be
    packaged
    into a jar file and used like any other standard jato component ...
    >>
    e.g. i have developed this date component which is basically a
    composition of 3 comboboxes - one each for m/d/y ...
    to render these 3 comboboxes i have a "date" tag (DateTag.java)
    which basically includes a file Date.jsp in the parent jsp - the
    contents of Date.jsp:
    <jato:pagelet>
    <jato:combobox name="month"/>
    <jato:combobox name="day"/>
    <jato:combobox name="year"/>
    </jato:pagelet>
    The problem with this approach is that I can't package a JSP in a
    jar since the web server would not be able to determine the path to
    the jsp ...
    Can any of u direct me here? ... Also, if u have an example of a
    similar packaged custom jato component - that'd be of great help!
    thanks much,
    keyur
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    Service

  • Styling default AS3 components

    Is there any built in way to style portions of the AS3
    components WITHOUT using a skin Class? I want the functionality
    that I had in AS2, where I could say something like
    setStyle("disabledTrackColor",0xCCCCCC); and have the scrollTrack
    be light grey when disabled.

    Varun,
    The best way to style ADF is to look at the generated HTML page for the components you need with resource debugging turned on.
    When you see code like:
    <div id="train" class="af_train">It means it has been translated from
    af|train {/* css */}The transforming rules are quite simple to figure out and a person with good CSS knowledge should get it quickly for all components.
    Regards,
    JP

  • AS3 Components dissappear from stage when viewed in HTML but not in Flash Player app

    I'm really hoping someone can help me here. I've been working
    on a project for a while now (still very new to AS but I'm getting
    there) and am supposed to be showing an initial release tomorrow. I
    have a main app (Application.swf) that contains all the business
    logic classes. Application.swf then loads Skin.swf which contains
    all of the GUI widgets & design. The idea is that Skin.swf can
    be swapped out for Skin2.swf and customized if desired.
    Skin.swf contains 2 AS3 components: ComboBox & DataGrid
    When I test Application.swf the components appear and work
    fine. When I double click Application.swf and open it in Flash
    Player.app (standalone flash player from Adobe) the components
    appear & work fine. When I export to HTML and view
    Application.swf in a browser page the components are both
    completely missing. Not that they are present but have no data,
    they are just completely absent from the stage.
    I can't figure out how this could be the case unless maybe
    there is a security setting somewhere that's triggered by the .swf
    running in a browser.
    Any help would be HUGELY appreciated.
    Thanks,
    Cliff

    Figured it out. Change wmode to opaque. I just wasted hours
    on this retarded bug.

  • Customizing Business Components Error Messages sample

    hi i have been following this sample and this: http://jobinesh.blogspot.de/2011/03/customizing-business-components-error.html,i have follow the instruction but its not working win my application i re-create the problem,i have check with the working sample i have done everything i can see be done in the working sample but mine still not work can somebody check what am i missing i have upload in this hostfile i used hr schema http://www.datafilehost.com/download-9d37bd8a.html. am using jdeveloper 11.1.1.6.0
    i have created the two class and one of them
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
                 version="11.1.1.59.23" id="DataBindings" SeparateXMLFiles="false"
                 Package="view" ClientType="Generic"
                 ErrorHandlerClass="view.CustomErrorHandler"
    what else am i missing what have i not done,i know am mssing something but don't know what,the sample does not show step by step implementation,it just have a working solution,if somebody know step by step  implementation can you pls explain to meEdited by: adf009 on 2013/03/12 12:09 PM
    Edited by: adf009 on 2013/03/20 2:44 PM

    is not working in my application,in my application am checking primary key constraint not unique constrains like in sample is there a diffirent
    this is my class,i have re-create the problem http://www.datafilehost.com/download-9c3e5f17.html
    import java.util.ListResourceBundle;
    public class CustomMessageBundle extends ListResourceBundle {
        private static final Object[][] sMessageStrings =
            new String[][] { { "UAM_ORGUSERSLINK_PK",
                               "Hello, The user Already Belong to this organisation" }, };
        /**Return String Identifiers and corresponding Messages in a two-dimensional array.
        protected Object[][] getContents() {
            return sMessageStrings;
    i have follow steps in the sample
    am geting this log error,instead of geting my error message
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.servlet.ServletException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[assist03 3099 ].
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.jbo.TooManyObjectsException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25013. Error message parameters are {0=oracle.jbo.Key[assist03 3099 ]}
         at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:604)
         at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:613)
         at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1020)
         at oracle.jbo.server.EntityCache.replaceForAltKey(EntityCache.java:1820)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:4094)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3676)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3301)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
         at ecadastre.gov.za.uam.model.entities.UamOrganisationUserImpl.setUsername(UamOrganisationUserImpl.java:137)
         at OrgDetails.onRowCreate(OrgDetails.java:2057)
         at OrgDetails.addMember(OrgDetails.java:1978)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 38 morehi can anybody help me please
    Edited by: adf009 on 2013/03/26 4:59 PM

  • Adding fields to custom idoc type

    Hi,
    i have a query regarding adding fields to custom idoc type.
    To add fields to custom idoc type we are trying to cancel the release from we30, but we are facing error that 'The release of basis type cannot be reset'
    When we are trying to cancel release from we31we are facing error 'Error while ressting release of segment z type'.
    Kindly suggest the solution to add fields in basic idoc type.
    Thanks & regards,
    Farheen.

    Reason that you are getting these errors is that you cannot cancel
    the release of an extension made in previous version . Instead you have to create a new extension.
    1.It is not possible to change a segment definition which is released in a
    lower release.
    2.You must create a new segment definition for the new release e.g. 620 with a new segment
    field with the appropriate length.
    In transaction WE20, outbound parameters, you can specify
    the "segment release in IDoc type" for the communication.
    Please read the F1 help of this field for further information.
    3.For your own segments you can define a new version of the segment
    tcode  WE31 -> Add Version
    Thanks!

  • Is it possible to adding a "standard" custom approver?

    Hi forum,
    We have a requrement that the user needs to approve the last stage. I've been experimenting with custom field and adding  <virsa_ae_wrkflapvr ID="ZTRAINEE" APPROVER="ZTRAINEE" wftype="AE"/> to the init_clean_snf_insert_data file. As far without success. Is it possible to adding a "standard" custom approver?
    These users will be registred in UME through LDAP.
    Kind Regards,
    Vit Vesely
    Edited by: Vit Vesely on May 17, 2010 9:22 PM

    Hi VIt,
    it is possible to create a custom field that automatically fetches the user id by using LDAP mapping concept.
    What you can  do this bycreate a custom fields in CUP of field type as text. Then Go to Configuration-> fields mapping-> LDAP mapping.
    Now in additional field  select the custom field in AC field and user id ( "sAMAccountName" in case of active directory ) in LDAP field.
    Now when user login from end user form its information will come to CUP application userid will be also populated in the custom field that you have created.
    If you want provisioned user to be the approver it is difficult to achieve but can be done by one solution  In CUP apart from the standard approvers , you can create custom approver determanator. Configuration->Workflow->Custom Approver Determinator. It can be created on the basis of various CUP.attributes like request type, priority, role, custom fields etc. But you have define clearly in this if request has this value for this attribute than this will be the approver. So above created custom fields will have userid right. So you can create CAD for this custom fields. and than can define if User id is this then this is the approver. In you case if Custom field has values USER_NAME that Apprvoer is USER_NAME. All users in this case should exist in UME. Also CAD needs to be maintain for every user this will be tedious task. you can upload this by excel sheet also.
    Hope that it would be helpfull..
    Kind Regards,
    Srinivasan

  • Custom-made components & midp4palm

    Hi all,
    I've developed two simple custom-made components by subclassing canvas. One is a simple button, which you can push with the palm pointer.
    The other is a sort of textfield. The problem arises when I try to input text into this component... the Palm does not have a keyboard! And the little keyboard which pops when you press the dot under the "abc" image does not pop!
    Is there some way to make that keyboard appear?
    Any help would be greatly apreciated.
    Thanks,
    Estanis.

    the current api does not allow text to be placed into the canvas class. i would recommend u to use a textbox class. so if the user clicks on the canvas screen, it will call up the textbox class and allows the user to key in some data.then upon returning back to the canvas class, u can just update the display using repaint method.
    hope this helps.
    regards,
    joseph

  • Facing Problems in screen navigation after adding a New custom tab to MM03

    Hi,
    I have added a new custom tab to MM03 transaction by using SPRO.This new tab is appearing in between Basic data 2 tab and Classification tab in MM03.In my new tab i have 4 sub screens and the Last sub screen has table control.Now the problem is when i slide the vertical bar in my table control it is automatically triggering the Classification screen.
    For preparing the New tab in SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Define structure of data screen for each screen sequence ->
    Here i have created a new screen sequence 'Z5' by copying the already existing sequence '21'.Inside this new screen sequence i have created a new screen of mine by copying the already existing screen '4004'. 
    For maintaining the screen sequence i.e., to place the new tab between Basic data2 and Classification tab go to SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Maintain order of main and additional screens.I have changed the order of main screen sequence to make our new tab the third tab.
    To make this new tab visible only for MM03 transaction i have gone to SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Assign screen sequence to User/Material Type/Transaction/Industry sector.In this in the Transaction screen reference, I have changed the screen reference number for MM03 and i have include this new screen reference entry in the screen sequence control column.
    To create the sub screens required i have gone to  SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Create Program for customized sub screens and have copied the standard Function group MGD1 and created 4 sub screens.
    Now to place these 4 sub screens in the order required for us i have once again gone to SPRO ->SAP Reference IMG  ->Logistics-General->Material Master->Configuring the material master ->Define structure of data screen for each screen sequence and i have selected the new screen sequence created 'Z5' created by me.Inside that i have selected the screen created by me '4004'. Now i have double clicked the Sub screen options and here i gave the sub screens numbers created by me replacing the standard sub screens. 
    Then I activated by custom function group and i started testing the MM03 transaction.
    My screen was getting populated properly and the tab movement is also fine but only problem was when i slide the table control in the fourth sub screen of my new tab i am going to fourth screen (classification).
    Can you please help me by suggesting what the problem may be, why this issue in navigation.

    Hi ,
    I have the same problem now ...
    Did you solved it?
    Thanks a lot!
    Regards,
    Hancila

Maybe you are looking for