Setting component attributes through viewhandler

We need to tag each component in a view with a specific attribute.
We are not allowed to inherit and customize the encoding of the components through custom renderer.
Is it possible to tag the components in the tree ,through a custom viewhandler or phaselistener, prior to the rendering?
We find that the phaselistener can get the entire component tree only after the RENDER_RESPONSE phase.
Is ther any other way of achieving this objective?

You might find this post useful: http://blogs.adobe.com/flexdoc/2010/08/creating-flex-view-states-in-actionscript.html

Similar Messages

  • Set component attribute bug

    I use components inside UIData and change thir attributes by children components.
    I tried to use UIComponent.setValueExpression("onclick", ...), UIComponent.getAttributes().put("onclick", ...), UIComponent.setValueBinding("onclick", ...). It works good for components, which is not within UIData. But in this case I have seen the following problem: I set attibute for component on the first row only, but its value is set for the other components too (I mean the same component but on the other rows).
    Is it bug or do I something wrong?

    Yes, I know it. But if I set attribute values on my page, everything is right. If I set it from code, there is an error.
    I think that it is a bug, because component, for which I set attribute, has client id like: UIDataId:rowIndex:componentId. I set value to component on the third row, and have this value on components on the third and the fifth row.
    To tell the truth, I am sure, that it is a bug. If it is not so, please tell me, how an I set attribute value to component, which I need. Is there any way? I think, no. And it is a bug.

  • Update set types attributes

    Dear All,
    i m new to this set types, Please guid me how to update set type attributes through driver program. Through i will get records from ECC, using this i will have to update the corresponding set types of the products matching the Product ID.
    Thanks,
    Chandra

    waiting for your replies. give some solution on this.

  • How to Set Basic compression attribute through Oracle ILM

    Hi,
    I have log a SR with Oracle with regard to this but they redirect to this forum.
    We have configured Oracle ILM in our environment. We have a requirement that after 3 years the data to be moved to a Low Cost Storage. We tested the same through Oracle ILM and it works fine for the above scenario.
    We have another requirement that after moved to Low Cost Storage Tier through Oracle ILM we also want to compress the data.
    When we set the compressed attribute through Oracle ILM it alwasy generated the script
    like the one below
    alter table test_user.range_part
    move partition year4
    tablespace part3
    compress for all operations -----------------Oracle Advanced Compression--------------
    update indexes;
    But we want some thing like below through Oracle ILM
    alter table test_user.range_part
    move partition year4
    tablespace part3
    compress -------------------Basic Compression----------------
    update indexes;
    Can you please help us how to set the Basic compression attribute through Oracle ILM.
    Thanks and Regards
    Ganesan Sivaraman

    Oracle support referred you here?
    Please post the SR number here or send it to me by email for follow-up (damorgan12c (at) gmail.com).
    Thank you.

  • Setting up Custom Priorities for Taxonomy Attributes through Import Manager

    Hi,
    I want to set priority for "n" number of characteristics through Import Manager.
    I know Import manager allows us to set priority to one of the following : "Highest" "High" "Normal" "Low" "Lowest". But I have a requirement to set custom priority for each of the attribute through Import manager so as to avoid manual intervention.
    Has anybody worked on this before?
    Regards,
    Amol.

    Hi,
    Which special properties you are talking about ?
    I will just brief you the concepts of Hierarchy and Taxonomy
    Hierarchy
    Node1
    -    Node11
    -   Node12
    Node2
    -    Node21
      --         Node211
    Only leaf nodes can be assigned at the time of record creation.
    Taxonomy
    Used when particular hierarchy nodes needs some extra fields.
    Example: If your hierarchy is like
    Cars
        - Fiat
        - Maruti
    Bikes
        - Hero Honda
        - Bajaj
    Now for Cars, i want to store its Price but for Bikes i am not interested in Price but I want the Colour info. Now if you create the Price and Colour as fields of the repository then for all the records whose category is Cars will have NULL value for Colour and reverse in case of Bikes. Hence the concept of Taxonomy is introduced so that you can assign the fields (known as attributes) to the Nodes of the hierarchy.
    For Taxonomy Import, refer the below links
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aa1447-80a1-2a10-e483-a76087bcb12f
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
    Regards,
    Jitesh Talreja

  • Using VM level application constant to set the attributes on the interview screen

    Hi All,
    We have a Performed By as one of the interview question which should be defaulted with the user id of the person who launched the OPA session (through web determinations).
    There is a user-id application constant which is available at the VM layer. Is there a way to set the Performed By question on the interview screen with this user-id by modifying the VM templates?
    Please help.
    Thanks,
    KK

    I tried with that code, its giving compile error for this: Can you please let me know what I am missing here:
    PreSeedValues.java:44: isUnknown(com.oracle.determinations.engine.EntityInstance
    ) in com.oracle.determinations.engine.Attribute cannot be applied to ()
                    boolean userIdKnown = (! performedBy.isUnknown()) && (! performe
    dBy.isUncertain() );
    Because an attribute exists for an entity, it can have different values across different instances, so, when you try to get the value (or check its know/unknown state) you need to pass in the entity instance. In you case the global entity instance: performedBy.isUnknown(ruleSessionGlobal) and performedBy.isUncertain(ruleSessionGlobal)
    Also, one more thing, we have around 50 different screens and each screen has this performed by attribute with different name. Now to set this in code, it would not be a good idea to write 50 lines for different performed by attributes. Can we have something like getting the screen name for the current screen in user context and user that as a prefix for the attrubute name. e.g. RA0084_Sheet_Performed_By in this RA0084_Sheet will be the interview screen name.
    It sounds like you want to set the user id when each screen is submitted. The OnInvestigationStartedEvent will only fire once, when the investigation starts. If you want to set an attribute when a screen is submitted, you probably want to use something like a OnValidateScreenEventHandler which is fired when a screen is submitted and has the screen details in the event.
    See Events and Event Handlers in Oracle Policy Automation Developer's Guide

  • Visual attribute through get_item_property

    Hi People,
    I use forms 10g.While designing the form I wish to assign VISUAL ATTRIBUTE property for my TEXT_ITEM.So i tried wrinting the following code in WHEN-BUTTON-PRESSED of a push button.The code as follows,
    declare
         vlbl varchar(20);
         vatt varchar(20);
    begin
    vatt:=get_item_property('VA7',visual_attribute);
    vlbl:=     get_item_property(':block3.TEXT_ITEM6',vatt);
         end;But it shows me an error as,
    FRM-40105: Unable to resolve reference to item.
    Pls can u help me how to assign the Visual Attribute through get_item_property.
    With Regards
    VIDS

    I tried the same but I am getting FRM-41011: Undefined Attribute.Yes, because you are trying with the visual attribute group property and as i check the GET_ITEM_PROPERTY help it should have work. But also the same error as you mentions Undefined Attribute.
    I also checked the value returned by get_item_property('VA7',visual_attribute) using message which is 'CUSTOM' Yes, it is returns the CUSTOM either you specify the visual attribute group or not.
    So in this case the GET_ITEM_PROPERTY is returning "the name of a logical attribute defined in the resource file" is what I feel.I guess.
    Any idea how "the name of a named visual attribute" can be obtained.The task as the code is looking can be achieved by the following code.
    DECLARE
      vAttribName VARCHAR2(100);
    BEGIN
      vAN:=GET_ITEM_PROPERTY('ITEM_NAME',CURRENT_RECORD_ATTRIBUTE);
      SET_ITEM_PROPERTY('ITEM_NAME',CURRENT_RECORD_ATTRIBUTE,vAttribName);
    END;So, it will set the current record visual attribute property dynamically by the code.
    Also would like to know about resource file? What is it.Well, did not get experience about this matter. And haven't tried before. But maybe documentation will help.
    -Ammad

  • Peformance of setting JVM attribute or callback.

    I have a program that receives feeds in the native world and then calls the JVM through JNI with a callback like receivedFeed(attr1, attr2 ....attr20). There are a large number of attributes being passed back for each callback.
    The question I have has to do with performance.
    Is it faster to use this callback approach where the attributes are put in the signature and then reassembled on the java side into an object? Compared to directly setting each attribute on the Java object from within the native world and then prompting the JVM with a callback like updated();

    Very true. I would normally agree. Wrap the parameters in an object to minimize the number of arguments and make it flexible.
    Specifically, I am thinking about performance and I am willing to compromise a bit on the beauty of the solution, if it is faster.
    I have receiving a feed that has about 20 data items. Mostly ints and longs, and maybe a string. This format is relatively fixed and is not likely to change any time soon. If it does, it is all of my own code so the changes are easy.
    In the parameter passing approach, my assumption is that I would have a callback into the JVM with a long signature like
    receiveFeedCallback(jint1,jint2,jint3,...jint20);
    For the object wrapping approach, I would first have to construct an object. and then do the callback:
    jvalue args[4];
         args[0].i=(int) 0;
         args[1].i=(int) val1;
         args[2].i=(int) val2;
         args[3].i=(int) val3;
    jobject trans = jniENV_->NewObjectA(clazz,"<init>",args);
    jniENV_->CallStaticVoidMethod(jObj,_method_JNITEST_callback,feedTransaction);
    In the end, I probably need to know what the overhead of creating a class in Java vs. C++ is compared to the parameter passing approach.
    I may be doing this callback about 20(or more) times per millisecond. About 85% of the time in my program is on this one step so I would like to try the fastest approach possible.
    In the end, I am trying to write a test case to test the performance....which leads me to another questions and likely another thread in the JNI world....to be posted soon.
    Thanks for the help.

  • TreeTable Component - attributes for $selected[*]

    I am trying to pass some query parameters to a new menu item added to the TreeTable component that drives the main menu in IDM 8. Documentation in the treetablelibrary.xml says:
    <Comments>  Define an action by supplying:
                  - a name (action)
                  - a label to display for the action, usually a message key (label)
                  - the selections required for this action (selectionMode):
                    "none", "oneOrNone" (optionally one selection), "single"
                    (exactly one selection), "multi" (one or more), and "any"
                    (any number of selections, including none).
                  - the types of object this action applies to (selectionTypes)
                  - the URL to route the action to (targetURL)
                  - a map of parameters to pass to the targetURL (targetParameters)
                    You can set session attributes by prefixing the parameter name
                    with "Session:".  You can reference the selected items by using
                    a parameter value of "$selected[name]".
                  - the type of this object for authorization purposes (authType).
                    If omitted, selection type will be used.
                  - the right required on the object to perform this action (requiredRight)
                  - an ACL for the action (actionACL).  If supplied, this overrides
                    authType and requiredRight.
              </Comments>The question I have is: What are the attributes that are available for use with the $selected[*] syntax? I see 'id' and 'name' as examples (selected[id] and selected[name]), but would like to understand what else can be accessed in this way.
    To clarify, here is the type of code I would be writing:
    <argument name='targetParameters'>
                                <Map>
                                    <MapEntry key='id' value='$selected[id]'/>
                                    <MapEntry key='name' value='$selected[name]'/>
                                </Map>
                            </argument>Thanks for the help!

    See if example 61 on the ADF Code corner helps:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

  • Trouble setting component property

    I'm a Flash newbie trying to build a custom component using
    Flash MX 2004. basically it's an enhanced version of the standard
    label component. Everything seems to work fine except when trying
    to set default text or assigning a text value in the "properties"
    window (the field displays in the properties window, but any value
    typed into it does not appear during movie playback). Currently,
    the text can be seen only in authoring mode, not when the movie
    plays. The only way for the text to displayed during playback is to
    set it up through code. Does anybody know what I'm doing wrong? .as
    file content follows.
    class CustomComponents.FormFields.lblFieldLabel extends
    MovieClip {
    private var objFieldLabel:MovieClip;
    private var strText:String = "";
    function lblFieldLabel() {
    init();
    public function init():Void {
    public function get displaytext():String {
    return strText;
    [Inspectable(defaultValue="display text", type="String")]
    public function set displaytext(val:String):Void {
    strText = val;
    objFieldLabel.text = strText + ":";
    }

    The reason why I do-not want to use a managed bean is that, I want to do this for all the components in my page(It is reasonably big too). So doing this by a managed bean would mean, I need an interface which has as many getter methods as the no of components in the page. Also, we are still in developement which means everytime some-one adds a new component in the page they need to add a new getter method in the interface. Well not just the interface, but also in all the implementing classes...
    The business use-case is that, I have one page in the application which has different levels of visibility(Some components read-only, some not rendered, some editable) based not just on who is logged in but also on other business conditions decided on the page prior to this. So based on these different conditions I build different schemes or themes(I have like 3/4 themes) which decides which components are read-only, which all are editable etc etc... Now I have to apply this 'theme' on to my page :). The way I am trying to do it now, everytime a new component is added, its visibility just need to be set in the property files of different themes.
    Thanks,
    Julian

  • Setting archive attribute for files

    Hi,
    I've written a program to make backups from files. I'd like to set archive attributes for files so the program knows which files have changed since the last backup.
    Is there any way to do that?

    nope,
    unless you write your own dll with VB or C++ and call this through native methods.
    Try to find a workaround.

  • Declarative component attribute binding

    Hi,
    I'm sure this is an easy one, but I can't find the answer on the forum.
    using JDev 11.1.1.3
    I have created a declarative component with text fields bound to attributes as described in the ADF Code Corner, created the ADF Component lib etc. When I use this component in a task flow in another project, I set the properties to fields in my managed bean which is declared in the task flow, however on submission I find that my text input fields (RichInputText objects) are null i.e. the binding didn't work. I'm not sure if I should be creating 'attribute bindings' in the page definition, or if teh managed bean should be declared in the ADF component library, or if this should just work and I have done something silly.
    The examples usually bind the exposed attribute properties to a data control field, I'm not sure how it works for a managed bean, can anyone point me in the right direction?
    thanks in advance
    steve

    Hi,
    it should work for managed beans as well. If your managed bean exposes a setter/getter pair, then this can be bound to the declarative component attribute binding. However, keep in mind that if the managed bean is in request scope, the bean is refreshed and this re-setted for each request. So the bean should have a scope of at least viewScope
    Frank

  • Time machine Bulk setting Spotlight attributes failed

    Hi,
    I'm having big, ongoing problems with a customers iMac, 10.6.7, when trying to use Time Machine.
    All i want to do now is start afresh.  And want to make sure i clear out everything.  It's no longer the priority to find out what is the cause.
    Here's the setup, and what i plan to do.  If i miss anything, please point out.
    the setup:
    iMac, connected via ethernet, to a Ethernet over Power plug (Airport switched off on iMac)
    EoP plug then connected to Time Capsule, which is in turn connected to the modem
    Internet connection is fine / other mac connected direct to TC backs up fine.
    Mac with the problem (unfortunately i only get the info second hand, after i've visited):
    TM Sys Pref Pane reports No errors, just that the last completed back up was 7th June
    When TM goes through process, it reports 'Preparing xxxxxxxxx items'
    Then takes forever to back up a reported 40GBs, reports something like '4KB completed', then '225MB completed, then back to 10KB completed...', then 'Calculating Changes...'
    There's never any error message, still reports last back up to be 7th of June.  Finally installed backup buddy widget and got the 'bulk setting Spotlight attributes failed' and "Stopping back up to allow ejection of back up destination disk".
    Things tried:
    repairing sparceimage of back in disk utility
    deleting prefs for TM in /Library/prefs
    Tried forcing new back up (without deleting the old one) by renaming the sparcebundle to '...old.sparcebundle' - it carried on trying to back up to the old one, as indicated by the Date Modified in the Get Info window, and lack of new .sparcebundle on TC.
    What i plan to do, to thoroughly reset Time Machine, when i visit (I won't have time /opportunity to hang around, wait for anything.  I just do this sequence of events, then i have to leave, not by choice.  So it's important i get it right, do a thorough reset.):
    Switch off TM on problematic iMac
    Delete the .sparcebundle for the problematic iMac from the TC
    Delete /Library/Prefs/com.apple.TimeMachine.plist on problematic iMac
    Rebuild spotlight index cache: sudo mdutil -E
    Shutdown
    Unplug EoP plugs for 30 seconds / replace ethernet cables
    Restart iMac
    Turn on TM, set up to backup to TC
    Now, surely, this is starting totally afresh.  It is assumed the TC is ok, because another iMac directly connected backs up, no problem, and the SMART status of the TC drive is not reporting problems.
    If i'm missing anything, any comments, or just reassurance, would love to hear comments.  This has been quite traumatic!  And is dragging on way too long, and made more difficult by the fact i can only visit in short time frames, and the results take so long to come through.
    Many thanks,
    C

    Col Kav wrote:
    Ah, ok,  this would be system.log, and then filter 'backupd' ?
    Yup.  And when you find a problem, it might be worth noting the time, removing the filter, and see if there are other messages at about the same time that might be contributing to the problem.
    But as it's going via Ethernet-over-Power plugs, which are 200mbps, excuse my patchy knowledge, but would this account for slowness?  Speed isn't a priority, i mean, just as long as everything got backed up.
    Of course -- they're getting 10% of the speed.  Earlier you posted "I know Time Machine generally takes ages to do the first backup, but is there any reason why it should take 20 minuites+ to make the backup disk available?"  20 minutes is certainly a long time, but if they're only getting 10% of the speed they should, that's gotta be a big part of it.
    The thing is, the internet access is fine, and this customer has offline backups with carbonite.
    If they're trying to do backups and any serious internet access over the same "pipe," it's gonna be very slow. Depending on what they're doing, they may not notice how slow response time is.
    The external disk isn't an option.  i mean, he has the TC, he wants that to work.  Which is fair enough.
    Even if it's like molasses? 
    Can you even temporarily connect the iMac directly to the TC via Ethernet?  If so, see how much faster it is.
    I don't see the point of the TC.  Is it being used wirelessly for anything at all? 
    Since everything's connected by cable anyway, why not plug an external HD into the iMac? 
    From your first post:
    When TM goes through process, it reports 'Preparing xxxxxxxxx items'
    Then takes forever to back up a reported 40GBs, reports something like '4KB completed', then '225MB completed, then back to 10KB completed...', then 'Calculating Changes...'
    That sounds like TM is simply making two "passes," which is common.  If additional changes are made while it's doing the first one, it will make a second pass to catch up what's ordinarily small and quickly backed-up.  You'll see that in the logs.
    But the network or whatever problem is preventing a completed backup; so on each backup, TM isn't sure it got everything the last time (you'll see a UUID message).  Because of that, it will do a "deep traversal," with a message, comparing everything on the Mac to the most recent completed backup, to figure out what's changed and needs to be backed-up.  With an excruciatingly slow connection, that's going to take forever.  And that will be repeated on each backup attempt until one completes normally.

  • Setting an attribute back to null

    Hi All.
    During provisioning to certain resource, I set an attribute to some value (It gets set properly), Now I want to set it back to null(empty string). It is not setting back to null and still displays the old value
    <set name='user.global.attr1'>
    <null/> or <s></s>
    </set>
    Is there any way to set the attribute value back to null or clear that particular attribute
    Thanks,

    Any update on this, Please reply

  • Problem with setting custom attribute and it being searchable

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

Maybe you are looking for

  • SP2, ORA-01400:

    Good morning All, While loading data, I got following messages: SP2-0734: unknown command beginning ORA-01400: cannot insert NULL into What difference between SP2 and ORA? Any help? Thanks in advance, ~NYorker

  • Variable size items.

    Hi, im a PP consultant from bombay, i had a query regarding a client who is inti\o wooden frame manufacturing it is a strictly discrete industry and the client specifications vary with almost every request. at the moment the client is creating a new

  • I want to talk with a representative of the chat, you can get a link to it

    I took acreage on the PC, and the software is installed fixed and mobile me, I bought a new computer, and I removed the old computer software, and is showing me all the time I have left a 20 day etc ... I purchased in Israel told me you have to reset

  • Time and Date not correct

    Hi to all. Does anybody know how to save your cmos settings to a floppy or CD? Is there a program that can assist with saving the cmos settings to floppy or CD? Is there anyway to perform saving the cmos settings within the BIOS to floppy or CD? I re

  • Deleted Sales Orders not Reflecting in BI

    Dear Experts, When ever my customer deletes a SO(Sales Order) in R/3, the reverse posting or deleted SO is not reflecting in BI. The Data source used is 2LIS_11_VAHDR. We are deleting the relavent SO in BW manually. But our customer wants to automate