Access properties of component within an itemRenderer

I have a VBox (vbox1.mxml) component that contain a 2 childs
component, which is Image and Label. Some snapshots of the code is
<!—vbox1.mxml - ->
<mx:VBox>
<mx:Image id="videoImg" width="100%" height="100%"
cachePolicy="off" source="{data.videoImage}" name="{data.secs}"
completeEffect="{fadeIn}" />
<mx:Label id="segmentLabel" width="50%" color="white"
textAlign="center" text="At {data.secs} secs" />
</mx:VBox>
Then I have the main application mxml (main.mxml) that will
use this component (vbox1.mxml).
<mx:TileList id="segmentTileList" width="100%"
height="95%" itemRenderer=" vbox1"
dataProvider="{vsRO.findVideoDetails.lastResult}"
rowHeight="120" columnWidth="120" backgroundColor="#646D7E"
backgroundSize="100%"/>
Question is how am I able to access the Label value that
resides within the item renderer? How can I read/write its values
from my main.mxml?

The code you have shown here looks correct to me.
What do you get when you print ${item.value} and ${item.value.subject}?
Just to query the base assumptions
- Is it a map of Message objects? Try the expression ${item.value.class} to see what the class of the returned object is.
- Do you also have a setter for the subject in the Message class?
I presume the Message and MessageCenter classes are in a package?
Hope this helps,
evnafets

Similar Messages

  • Accessing Datagrid row data from within an itemRenderer

    I would like to know how I can access another row's data from within an itemRenderer.  I need to do some formatting of my cells based on other row data. Here's what I mean... I have a datagrid and in row 0 col 2's itemRenderer I would like to access row 1 col 1's data in order to do a comparison so I can determine how to format row 0 col 2's data and so on.  Is there a way from within the item renderer to reach into another row and access the data?  I can't seem to find a clear answer so I thought I'd go to the pro's.
    Thanks!!

    You can use this code to get to the dataProvider of the grid.
    var o:Object = this.parent.parent;
    var dp:Object = o.dataProvider;

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • How to access properties of symbols in loaded SWF?

    I'm making the migration from Flash to Flex, but I'm running
    into a dead end on one particular area: accessing and manipulating
    properties of symbols in a loaded SWF.
    The SWF is actually a simple library of a detailed parts
    illustration. I would like to load the entire SWF in position, and
    be able to change the attributes (i.e. colors) of individual
    symbols (or parts of the illustration). I can load, display and
    manipulate each symbol separately, but I need the parts to remain
    in place.
    The original art was created in Illustrator and exported as
    SWF using the symbols palette.
    I can always go back to Flash, but I'm forcing myself to move
    forward and do this project in Flex (baptism by fire!!).
    Is there some sort of dot notation to access the symbols from
    within the SWF, without loading them all separately?
    Let me put this another way: it appears that I can load an
    SWF and then instantiate each symbol in that SWF, and then load
    each symbol to the 'stage' (or whatever it's called in Flex)
    separately.
    I can certainly instantiate each symbol separately, and then
    align it on stage, but it seems to me to be bass-ackward to do it
    that way, expecially since I created the original SWF with
    everything in position.
    Is there no way to access the attributes of the individual
    symbols within an SWF without separately instantiating them?
    I'm just having trouble getting my head around this. Any help
    is greatly appreciated.

    Okay, I took a look at this info and it's what I was already
    doing.
    Here's a simplified example of what I'm trying to do, using
    the example in the swf9.pdf file.
    Let's assume I've created a SWF with a "BlueSquare" movieclip
    (in the symbols panel in Flash, exported for AS). In that clip,
    there is another symbol called "Star". I import the SWF and
    BlueSquare symbols in with the following code:
    <mx:Script>
    <![CDATA[
    [Embed(source=”../assets/circlesquare.swf”)]
    [Bindable]
    public var LogoCls:Class;
    [Embed(source=”../assets/circlesquare.swf”,
    symbol=”BlueSquare”)]
    [Bindable]
    public var LogoClsBlueSquare:Class;
    </mx:Script>
    If I instantiate the BlueSquare on stage, it includes the
    Star symbol when previewed, but I can't figure out how to get at
    the Star symbol to change color. If I apply a color change to the
    symbol, it changes the entire BlueSquare symbol.
    If I instantiate the Star symbol separately, I can then
    position it on the stage and make changes, but that requires
    positioning it with actionscript. I'm trying to not have to
    position a sub-element of my actual artwork because of it's
    complexity.
    I'd like to display the main movieclip (or sprite) with the
    ability to access the attributes of a sub-movieclip or
    sprite.

  • Accessing properties of loaded WindowedApplication from the Main WindowedApplication.

    Hi Friends.
    I am trying a project and according to my plans I am trying
    for some thing but don't know is it possible..
    I am compiling multiple air applications and One of them will
    be the main application. and another will not be actually *.air but
    the compiled swf file.
    In my final Air package I am going to package the Main
    application withe the other swf file too.
    So the main application will load the second swf file on
    requirement.
    Now my issue is i am able to access properties/functions of
    main application from the loaded WindowedApplication but I am not
    getting the idea how to access the loaded WindowedApplication
    properties/function from the MAIN application..
    This i am doing Because I can later Modify only the other
    application with out EFFECTING the MAIN.. like software updates..
    But getting the issue... Local Connection is Success. but
    still I want to establish a direct connection between the two
    WindowedApplications so to avoid lots of code what we write for
    LocaConnection objects.
    Please Give me any idea.

    I'm not sure how successful you will be with this in the long
    run. The WindowedApplication component is meant to be used as a
    singleton.
    If your goal is simply to modularize your code, you might be
    better off creating components that your main application loads,
    rather than trying to create multiple separate AIR applications and
    then combining them.

  • TS3899 I recently discovered that I can no longer access websites pointed to within the content of an email message on my iPad Air by clicking on the highlighted HTML text or symbols. What should I do to correct this issue?

    I recently discovered that I can no longer access websites pointed to within the content of an email message on my iPad Air by clicking on the highlighted HTML text or symbols. What have I done to create, and what should I now do to correct, this issue?

    Or you could include a width to your body style:
    body {
    background-image: url(Logo/sky1.jpg);
    background-position: center center;
    background-attachment: fixed;
    width: 75%;}
    It might work or not depending on your other color scheme.

  • I can no longer access "properties"

    I have an HP LaserJet 1536dnfMFP.  I'm running Windows 8.1.
    I can no longer access "properties" from the print screen.  And, I've tried right-clicking on the printer icon in the control panels.  Either nothing happens or the screen flashes and nothing happens.  I can no longer open properties.
    I've tried accessing properties on my other installed printer, it works fine.
    I've uninstalled and re-installed the software.  I've updated the drivers.  I still cannot access Properties.  The one reason I bought this printer was for the duplex printing option, and now I cannot access it.  Any suggestions?

    Hello njs216,
    Welcome to the HP Forums!
    I understand you're unable to access properties using the Laserjet 1536dnf MFP. I will do my best to assist you! First, I need to find out what type of programs you're printing from that you notice this issue?
    I would like you to access you go into Devices and Printers on your computer. Right-click on the Laserjet 1536dnf printer icon. Click Properties and click the Device Settings tab. Please see if you have an option to make sure the duplex is installed by following this HP document on  Configure Auto-Duplex, 2-sided Printing On Both Sides. 
    You can also select to print double sided in the Device settings tab, then try to print a document. Also, try running a System File Checker by following this HP document here. This will scan for corruptions in Windows system files and restore corrupted files.
    Please post your results, as I will be looking forward to hearing from you. Have a great day! 
    I worked on behalf of HP.

  • Safari Error:cannot connect to server.Was able to click on all tabs within website many times,no issues.Now can't access the"shop" tab within website-What do I do Now?

    Safari and/or internet question:
    I have MacDeskTop W/Intel/OS X Lion 10.8.2   and Safari:Ver6.0.2(8536.26.17)
    Currently I am having a big issue to access within this website's the "SHOP section(tab)" I ca click on the tabs and read the info in each section, except for the "Shop" Tab.
    While in the process of paying for my items in my cart, I received a website message saying something
    To the affect that this website is being updated. Your items in your cart will be in your cart.
    Then the website's screen kicked me out the door.
    A few days later I accessed the main page of this website with no problem.
    I can read the information on the main web page pertaining to items I need to purchase, etc., with no problems.
    I click and maneuver from on one tab to another from the main page within this website with no issues.
    When I click on the "SHOP section(tab)" within this website to complete my purchase.
    Part of this website an error occurs on this "SHOP tab".
    "Safari can't connect to the server".
    Safari can't open the page "https://and the name of this website" because Safari can't connect to the server "www.the name of this website".
    I click on the reload from the view of the toolbar and I can't access this website's"Shop section(tab) at all.
    I e-mailed the webmaster of this website a few times, but no response.
    In the past I was able to access the "Shop section(tab") within this website many times to purchase items with no issues.
    Now I am at my wits end as I really need to complete my purchase from this website.
    I cannot purchase these items from other websites. Only this website.
    So, I really need anyone's tech expertise to help me access the "SHOP" tab within this website.
    I also have another website that i have visited numerous times within the last 6 months with no issues.
    Now I can't access this website at all.
    Safari error: "Safari can't connect to the server".
    I can't figure this out
    No issues with:
    * Comcast tech says that My modem, Wi-Fi connections are fine.
    * Cables and wires and Power strip unit to protect my electronics are fine
    * Utility bill is up to date.
    I have a Mac Desktop 23 inch screen (Purchased 01-01-2013)
                                                      Lion: OS X
                                                      Version 10.8.2
                                                      Processor: 2.7 GHz Intel Core i5
                                                      Memory: 8 GB 1600 MHz  DDR3
    I use Safari: Version 6.0.2 (8536.26.17)
    I use the Mail app that shows a postage stamp with the picture of an eagle 
                                                      It is the Version 6.2 (1499)
    I really need help access the "Shop section(tab)" of the website to complete my purchase.
    What is the next step to fix my dilemma?
    Thank-you all in advance with your expertise, and patience.
    Very Much Appreciated.
    With Kindest Regards
    Mac Desktop, OS X Mountain Lion (10.8), Safari: Version 6.0.2 (8536.26.17)

    Hi There Linc Davis,
    Wow, you are the best.
    Yip this is what the website looks like. Great job Linc Davis.
    Not surprised that the "Shop" tab is missing. Darn.
    Well can you try to access it's "sister" website: astralmusic.com and astralmusicshop.com?
    Since you are awesome with the "Flash" can you investigate if this website has a issue withis this "Flash" too?
    Please Linc Davis

  • How can I access properties in my photo files. I uused to be able to tag my pictures in photo viewer but now it either does not come up when clicked on or it is greyed out or blocked out.

    Why can't I access properties nor add to the tags in picture properties when in photo viewer or at all?

    Not sure why you didn't get it when the other guys did, it seems you want to be sure to point out how stupid my question is instead of trying to make sense of it. I'll reply to clear things up also in hopes you might be a bit more corteous when replying to something you are obviously missing, as two separate individuals have already posted clear answers.
    -Why would you preview in the store if the item is in your library?
    Because there is no preview option in the library, thus my question
    -Find the album, select the first song then press Play.
    As I said in my question, I want a preview from the middle. More often than not it will take time to get to the point where the song actually starts/drops
    -When you decide you like it or not, rate it/add to a playlist then skip to the next song.
    -Preview All is the same as skipping thru all songs on an album.
    No, Preview All is automatically scanning through each song one by one playing an excerpt, it completely different.
    -Something comes up? Run to your Mac?
    I can understand your confusion on this bit - when a song plays that I like, I can return my focus to my mac and rate or add that particular song. You must understand that people listen to music while doing other things, and given the MBP has speakers, it is safe to say I may not be tethered to it with headphones while listening.

  • "accessibility.properties" file does not work in J2SDK1.4.2

    Hi,
    What is the file that is equivalent to "accessibility.properties" in J2SDK1.4.2 . I tried adding "assistive_technologies=EventTest" to "accessibility.properties" file by creating a new file. but the JRE is not loading this class by default. But the same class is loaded suucessfully when i use "Java -D" parameter in command prompt. Can someone please tell me a way so that my class will be loaded always when ever a Java Application is loaded. or is there any other way to achieve this ?
    Thanks and Regards,
    Srinivas.

    ArrayList ar = new ArrayList();
    FileReader fr = new FileReader("studinfo.csv");
         BufferedReader br = new BufferedReader(r);
         String line = "";
         while((line = br.readLine()) != null)
              ar.add(new ar.(line));
         Collections.sort(ar);
    my studinfo file contains fname, lastname,e-mail,age,state.
    i need to sort it through fnaME
    i also need to sort it by state wise.
    can u plz help me.

  • PLEASE HELP. How do you access properties files in WEB-INF  and classes directory

    We have a war file that needs to access properties files that are in the WEB-INF directory
    of the war file. We also need to load one of the properties files from the classpath.
    However, when we deploy the application ( an ear which inlcludes an ejbjar and a
    war and the libraries both the ejbjar (with a manifest setting the classpath ) and
    war need ) the properties don't get extracted.
    In some of our servlets we are trying to access those files with the path "WEB-INF/foo.properties"
    and we get a FileNotFoundException. Then we check and see that NO properties files
    have been extracted into their appropriate places ( not even those we throw into
    the WEB-INF/classes directory ).
    PLEASE HELP,
    Christian Hargraves

    The file doesn't have to be extracted from the war. For example, you can place
    test.properties into your app WEB-INF and write a simple JSP to see how it
    works:
    <%
    InputStream in = application.getResourceAsStream("/WEB-INF/test.properties");
    %>
    It will return you a zip inputstream if you deployed your application as a .war.
    Christian Hargraves <[email protected]> wrote:
    I try this, but I get a NullPointerException. The file never actually gets extracted
    from the war. Under tomcat and resin this works great ( that's why I am having all
    of the trouble i am having ), but there are absolutely no properties files in the
    extracted directories for WebLogic deploys. only:
    WEB-INF/some_tmp_dir/WEB-INF/lib
    and then some dynamically generated jor file with all of the classes that would normally
    go in WEB-INF/classes ( all except the properties, of course, which are no where
    to be found. ).
    There has to be some kind of setting I am missing. Please don't make me seperate
    these properties files from the war/ear and then put the path to these properties
    files in the CLASSPATH, changing one step to three steps to deploy!!
    I have found a documented bug where you can't even put the properties files in a
    jar file and that bug will never be fixed for WebLogic 6.1.
    "Dimitri I. Rakitine" <[email protected]> wrote:
    To access files in WEB-INF you can use ServletContext.getResourceXXX("/WEB-INF/filename")
    Christian Hargraves <[email protected]> wrote:
    We have a war file that needs to access properties files that are in theWEB-INF directory
    of the war file. We also need to load one of the properties files fromthe classpath.
    However, when we deploy the application ( an ear which inlcludes an ejbjarand a
    war and the libraries both the ejbjar (with a manifest setting the classpath) and
    war need ) the properties don't get extracted.
    In some of our servlets we are trying to access those files with the path"WEB-INF/foo.properties"
    and we get a FileNotFoundException. Then we check and see that NO propertiesfiles
    have been extracted into their appropriate places ( not even those wethrow into
    the WEB-INF/classes directory ).
    PLEASE HELP,
    Christian Hargraves--
    Dimitri
    Dimitri

  • Flex 4 - insert combobox or other interactive component within RichEditableText

    As part of my massive quest to convert a large application from AS2 to Flex AS3, I am going to need to insert a UI component within a RichEditableText component.
    Is that actually possible?
    In AS2, I had created each word of a paragraph as a separate textField and then positioned them all together, inserting input fields and combobox components as required.... however... project requirements means I have to try and insert components within full paragraphs, if possible... Dynamically and in actionscript.  I'm not sure where to start attempting this... if anyone has any ideas which might help, I'd be truly grateful !!!
    This is a question paragraph.  The first answer to this paragraph question is [combobox] and the second might be [combobox] so select your answers and press the check button.
    Thanks.

    Have you discovered TinyTLF yet? I believe it will enable you to create the sort of controls you're looking for. http://guyinthechair.com/

  • How can i access properties from APP server through JNLP with ot using JAR

    Hello
    i want to retrive a Properties file from WL-7 app installed location like :bea/home/externalized.properties
    now i want to use this properties file throgh out the application. if any property is changed in "externalized.properties" that could be reflect dynamically in my code.
    So my requirement is :
    The current implementaion is using the JNLP down load the required code which contains the properties in .jar files, i have around 500 properties which are embedded in differnet .jar files with differnt property name. So i want to make all 500 properties to get out side from the jar files. and keep that consolidated properties in a single location and access it dynamically after deployed my ear file in wl7 app server.
    my application is implemented in SWING and EJB now i want to create an ear file which can be deployed any instance or cluster of WL7 app server.
    My Q:
    1. How can i access properties file through JNLP? (not a single property, want to access all properties in externalized.properties)
    2. is thare any known issue with SUN to load properties file through JNLP?
    your help is highly appreciated.
    -Siva

    Hey Thanks for your response,
    My question is Still not answered,
    see infact i have different type of environments to launch my application.
    infact my weblogic is deployed at remote location whihch is installed in linux,
    code is exist in our local system.
    At the time of code build for my local system i'm not able to get the properties from remote WL server,
    so at the time of code compilation and making the EAR file i'm not having this externalized properties file in newly generated EAR file.
    so once i copied my EAR in to WL7 cluster and i'm running the application using startAdminserver.sh, in this script file i'm defining the
    java -DexternalizedProperty=$WL_HOME/externalizedProperty.properties so now i'm able to get this properties to 'externalizedProperty"
    But when i download my application required jars, at this time i does not having the property file in my downloaded JAR files.
    So i want to access the remote properties file in suh sistuation.
    now i'm runnig the application at my local side to launch and Server side as well.
    So i have 2 runtimes 1 is my local and another is my server. In this case using "-DexternalizedProperty" i'm able to get this in server side,
    once control is come to local system it is not able to find this "-DexternalizedProperty" [externalizedProperty].
    Hope now u get my scenario..
    Thanks,

  • Accessing a gui component directly via getSource()

    Hi,
    to access a gui component I can access it by getting its object variable and casting it to its class type, e.g.:
    public class Tab02 extends JFrame {
         JTable tab = new JTable (rows, head);
         JTextField txt = new JTextField ("dimensions");
         JTree tree = new JTree(node.getRoot());
    class DragDropNode implements TreeSelectionListener, MouseMotionListener, MouseListener {
    public void mouseDragged (MouseEvent me ) {
         Cursor dragcurs = new Cursor(13);
    // me.getSource().setCursor (mdragcurs) does not work as getSource delivers an object type
         JTree tmp = (JTree)me.getSource();
    // me.getSource().setCursor (mdragcurs)
         tmp.setCursor (mdragcurs);     // as me.getSource().setCursor (mdragcurs)
         JTable tmp = (JTable )me.getSource();
         tmp.setCursor (mdragcurs);
    How can I cast the object automatically to the genuine type?
    Is there a method that returns the type and I can use this method to cast me.getSource()?
    Thanks

    Navigate to the folder enclosing it and enter Library in the Go to Folder command.
    (70632)

  • How to create a sling:OsgiConfig property and access it in component Jsp ?

    How to create a sling:OsgiConfig property and access it in component Jsp ?
    I have created a OSGI config property under apps/<Project>/config and it is reflected on OSGI console but I am not able to access ie in component jsp.
    Any pointers are appreciated

    Use this code in the scriplet in your required components jsp:
    <%@page import="org.osgi.service.cm.ConfigurationAdmin"%>
    <%@page import="org.osgi.service.cm.Configuration"%>
    <%
    Configuration conf = sling.getService(org.osgi.service.cm.ConfigurationAdmin.class).getConfiguration("Name of the config");
    String myProp = (String) conf.getProperties().get("property key");
    %>

Maybe you are looking for

  • System preferences not saving

    Every time I log out, any system preferences I had set up are not saving. Such as what should boot up in the dock or what programs should be in the system bar or the settings for the keyboard and mouse. Thanks for any guidance on this issue.

  • Vertical scroll ONLY

    Hi, I'm trying to make a JTextArea scrollable in vertical direction only. I've not found even one solution on this forum and many others. AWT version of JTextArea (ie TextArea) allowed vertical or horizontal scroll only, simply with constants given t

  • CFImage EXIF Retrieval Error

    Need to utilize ImageGetExifMetaData to retrieve jpg orientation and size information to determine if modifications need to be made to photo. The tag is very inconsistent returning exif data. 80% of the time throws the following error: Exception occu

  • Problem in ESS (Personnal Information)

    Hi, We are implementing Employee Self Services in ECC6, we are facing a problem that, in the Area page for Personnal Information is having only EIC Authendication. We are not able to view Address and Bank Details here in that area page. Kindly show s

  • Modifying Numbers Template

    I opened the workout template in Numbers. I would like to change the predefined content in the summary table to the type of exercise I do (default drop down is running, swimming, biking, weight training) - how do I change predefined attributes so I c