Repeater nested with custom component

Hello
I am very new to Flex and would appreciate any assistance.
For starters, I have a simple external nested xml file for the data: "book.xml".
<? XML version = "1.0" encoding = "UTF-8"? >
< book >
< section >
S1 < sectionnumber > < / sectionnumber >
< chapter >
C1 < chapternumber > < / chapternumber >
< / section >
< chapter >
C2 < chapternumber > < / chapternumber >
< / section >
< / section >
< section >
s2 < sectionnumber > < / sectionnumber >
< chapter >
< chapternumber > c3 < / chapternumber >
< / section >
< / section >
< / book >

I also have a main app (NestedRepeater.mxml) of a control relay that contains a custom (Section.mxml) mxml component:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml " xmlns:comps ="rate"layout ="absolute">
< mx:XML id = "data" source = "" data / book.xml "/ >"
< mx:VBox >
< mx:Repeater id = dataProvider = "{data.section"Repeater1"}" >
"< sectionNumber =" {Repeater1.currentItem.sectionnumber comps: Section} "xmlSection =" {Repeater1.currentItem} "/ >
< / mx:Repeater >
< / mx:VBox >
< / mx:Application >

And in my component (Section.mxml) custom, I have another relay that is for the chapters in each section.

<? XML version = "1.0" encoding = "utf-8"? >
"< mx:Canvas xmlns:mx = ' http://www.adobe.com/2006/mxml" > "
< mx:Script >
<! [CDATA]
Import mx.controls.Alert;

[Bindable]
public var xmlSection:XML;
[Bindable]
public var sectionNumber:String;

private void save (chapternumber): void {}
var a: alert = Alert.show (chapternumber, "Confirmation", Alert.OK);
}
[]] >
< / mx:Script >
"" < mx:XML id = 'data' source = '... / data / book.xml "/ >
< mx:VBox >
< mx:Panel id = "panel1' set layout ="absolute"title ="Section"width ="166"height ="70">
< mx:VBox >
< mx:Label text = "{this.sectionNumber}" / >
< / mx:VBox >
< / mx:Panel >
< mx:Repeater id = dataProvider = "{xmlSection.chapter"Repeater2"}" >
< mx:Panel layout = "absolute" title = "Chapter" height = "100" width = "166" >
< mx:Label text = "{Repeater2.currentItem.chapternumber}" / > "
< mx:Button x = "0" y = "26" label = "Save" width = click = "save (xmlSection.chapter.chapternumber)"52"" / > "
< / mx:Panel >
< / mx:Repeater >
< / mx:VBox >
< / mx:Canvas >

So the problem I have is when I click on the button in the control panel chapter of each children, I can't transfer the label chapter correctly to the alert popup window. If an article doesn't have only one chapter, when I click on the button Save, the alert shows 'c3' correctly, but if an article contains several children, then in the alert popup, it displays all the children instead of that target:
C1 < chapternumber > < / chapternumber >
C2 < chapternumber > < / chapternumber >

I think the problem is in the for the button click event:
Click = "Save (xmlSection.Chapter.ChapterNumber)" "
But being new Flex, I am unable to understand why.

If anyone has any suggestion, would be greatly appreciated.
Thank you

This property returns an XMLList of all nodes "chapter:
xmlSection.chapter.chapternumber
This isn't what you want.

The best solution is to create a component of chapter and repeat, went to Repeater2.currentItem.

You can also use getRepeaterItem() in the click handler to get the current node of the chapter. It yu can access the chapter number.

Tracy

Tags: Flex

Similar Questions

  • repeater nested with custom component problem

    Hello
    I'm really stuck with this problem and no help from you guys is greatly appreciated.
    For starters, I have a simple external nested xml file for the data: "book.xml".
    <? XML version = "1.0" encoding = "UTF-8"? >
    < book >
    < section >
    S1 < sectionnumber > < / sectionnumber >
    < chapter >
    C1 < chapternumber > < / chapternumber >
    < / section >
    < chapter >
    C2 < chapternumber > < / chapternumber >
    < / section >
    < / section >
    < section >
    s2 < sectionnumber > < / sectionnumber >
    < chapter >
    < chapternumber > c3 < / chapternumber >
    < / section >
    < / section >
    < / book >

    I also have a main app (NestedRepeater.mxml) of a control relay that contains a custom (Section.mxml) mxml component:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml " xmlns:comps ="rate"layout ="absolute">
    < mx:XML id = "data" source = "" data / book.xml "/ >"
    < mx:VBox >
    < mx:Repeater id = dataProvider = "{data.section"Repeater1"}" >
    < sectionNumber = "{Repeater1.currentItem.sectionnumber comps: Section}" / > "
    < / mx:Repeater >
    < / mx:VBox >
    < / mx:Application >

    And in my component (Section.mxml) custom, I have another relay that want it for the chapter in each section as a < mx: state > for the user to be able to show/hide the chapters in each section.

    <? XML version = "1.0" encoding = "utf-8"? >
    "< mx:Canvas xmlns:mx = ' http://www.adobe.com/2006/mxml" > "
    < mx:Script >
    <! [CDATA]
    [Bindable]
    public var sectionNumber:String;
    []] >
    < / mx:Script >
    "" < mx:XML id = 'data' source = '... / data / book.xml "/ >
    < mx:VBox >
    < mx:Panel id = "panel1" layout = "absolute" title = "Section" >
    < mx:VBox >
    < mx:Label text = "{this.sectionNumber}" / >
    < mx:Button id = "btnArticles" label = "show chapters" click = "this.currentState = 'Chapter'" / >
    < / mx:VBox >
    < / mx:Panel >
    < / mx:VBox >
    < mx: states >
    < name mx: State = 'Chapter' >
    < mx:AddChild relativeTo = "{panel1}" position = "after" >
    < mx:VBox >
    < mx:Repeater id = dataProvider = "{data.section.chapter"Repeater2"}" >
    < mx:Panel layout = "absolute" title = "Chapter" >
    < mx:Label text = "{Repeater2.currentItem.chapternumber}" / > "
    < / mx:Panel >
    < / mx:Repeater >
    < / mx:VBox >
    < / mx:AddChild >
    < / mx: State >
    < / mx: states >
    < / mx:Canvas >

    So the problem I have is the relationship of each chapter to its parent section, when I run the application, the result is:
    S1
    C1
    C2
    C3
    S2
    C1
    C2
    C3

    The correct output I want based on the xml, the data provider must be and don't have not all the chapters in each section:
    S1
    C1
    C2
    S2
    C3

    If anyone has any suggestion, would be appreciated greatl.
    Thank you

    Yes, do not try to get new data into the component, simply pass the crux of the entire section in the custom component:

    In this component has a public property or a setter function:
    [Bindable]
    public var xmlSection:XML;

    This variable will now have this in it:


    S1

    C1


    C2

    Repeater2 is therefore:





    Very simple, you follow? I do it very often. Repeater, XML and custom components are an impressive combination.

    Tracy

  • DataGrid with Custom Component does not show under elements

    I hope someone can enlighten me on this matter.

    I have a datagrid with a column that has an element of rendering. No matter if the data 'text' comes from a dataProvider or are static.

    If I do the following, only the first label will appear.


    < mx:DataGridColumn headerText = "Column Title" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:VBox >

    < mx:Label text = "{data.data1}" / > "
    < mx:Label text = "{data.data2}" / > "
    < / mx:VBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    However, if I change the VBox for a HBox both labels will appear.

    < mx:DataGridColumn headerText = "Column Title" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:HBox >

    < mx:Label text = "{data.data1}" / > "
    < mx:Label text = "{data.data2}" / > "
    < / mx:HBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    I use:

    Flex Builder 3 standalone
    Version: 3.0.214193

    OS: Vista

    Any ideas or comments would be appreciated.

    the variableRowHeight = "true" DataGrid value. VBox you are using is not being correctly displayed.

  • 11g Custom Component with SQL IN (val1, val2,..., valN) query

    Hello

    I want to use a query with a parameter of varchar entry into a custom component. The query definition is like this:

    < b >
    QWhereIsAdministrator < td > < table >
    < td > SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN (?) < table >
    varchar < td > UserRoleList < table >
    < /tr >

    I can't pass the value correct settings at the request of IdocScript
    I tried the following:

    < $UserRoleList = $ "" valA1","valA2"" >
    < $executeService ("SITES_WHERE_IS_ADMINISTRATOR") $ >

    < $UserRoleList = "\'valB1\',\'valB2\'"$ > ".
    < $executeService ("SITES_WHERE_IS_ADMINISTRATOR") $ >

    < $UserRoleList = $ js ("' valC1', 'valC2'") >
    < $executeService ("SITES_WHERE_IS_ADMINISTRATOR") $ >

    < $UserRoleList = $ xml ("' valD1', 'valD2'") >
    < $executeService ("SITES_WHERE_IS_ADMINISTRATOR") $ >

    < $UserRoleList = $ url ("' valE1', 'valE2'") >
    < $executeService ("SITES_WHERE_IS_ADMINISTRATOR") $ >

    < $UserRoleList = $ urlEscape7Bit ("' valF1', 'valF2'") >
    < $executeService ("SITES_WHERE_IS_ADMINISTRATOR") $ >

    No result found, the syntax of the request for enforcement is not correct. Here is the REQUEST trace output:

    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ("'valA1","valA2" ') [executed. [Return line (s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ("'valB1","valB2" ') [executed. [Return line (s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ('-"valC1\"-"valC2\" ') [executed. [Return line (s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN (' & #002339; valD1 & #002339; & #002339; valD2 & #002339;) ") [Executed." [Return line (s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE the ADMINISTRATOR IN ('% 27valE1% 27 %2 c % 27valE2% 27') [executed. [Return line (s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE the ADMINISTRATOR IN ('% 27valF1% 27% 27valF2% 27') [executed. [Return line (s): false]




    Thank you for your help.

    Change the type parameter of varchar to varchar.in in your definition of the query. Like this:

    
    QWhereIsAdministrator
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( ? )
    UserRoleList varchar.in
    
    

    In your workbook, put a list separated by commas in param UserRoleList. In java, you can use:

    final List someListOfStrings = ...; // your list of strings
    final String yourUserRoleListParam = StringUtils.createStringSimple( someListOfStrings );
    m_binder.putLocal( "UserRoleList", yourUserRoleListParam );
    

    In your case

    <$UserRoleList = "val1,val2,...,valN"$>
    

    should do the job.

    Kind regards
    Fabian

    Published by: fscherpe on March 24, 2011 07:45 (added iDoc variable saw you want to begin the application of the model, not Java)

  • Puzzled with a custom component. Can anyone help?

    I'm working on something that I would have 3 levels of dream limbo.

    Oh, wait, sorry... I mixed. Although I think my problem is just as artificial and frustrating time to wrap the head around.

    diagram.jpg

    What I REALLY want, is to do a custom component which has 3 levels, and I have problems with the passage of the mouse. My goal is to have a menu of several objects, each custom component. When you click on a component, it "opens" in a similar menu of additional components, which in turn can be hovered over to display an image. This seems to be the easy part.

    I created each element of second level (blue), which, after passage of the mouse displays an image (green). I combined all the people in a single component (red), personalized and individual States for the comprehensive component that 1) shows ONLY the red button and 2) displays the blue components with the red component disabled.

    What I can't figure out is how to make ONLY the (red) item appear for the passage of the mouse, then click on to the up state. What is happening now is that, as far as the browser is concerned, the entire component is the area of mousing. It is therefore impossible to put several (red) elements next to each other.

    I tried to do the (blue) and (green) components hidden or disabled, but it doesn't seem to affect the problem. I can't do these things not 'accept mouseover' because the elements (blue) are supposed to turn to be buttons to view the end frame (green).

    Anyone know what I can do to fix this? I hope that I was able to describe the situation pretty well. Like I said... it's kind of silly and artificial.

    WELL. After you type that on the whole, I think I have found the solution myself, and it of ridiculously simple and did me the same thing for not immediately understand.

    Like everything else in the catalyst, mouse events 'accept' can be changed to the same object in different States. So what you do is uncheck the box "accept...". "while in the top condition for each item and check once more in the lower States. In addition, the "Transparency accepts a mouse" must be unchecked.

    Simple.

  • How can I associate with the component States custom content scroll buttons?

    Hi, I need help I have a deadline to meet in the next few weeks and im stuck!

    Basically, what I did is I made a content scrolling lists, containing about 10 products in each of them, my plan was to make a button for each product so that users could click on this product and bring them to a new page containing more detailed information on this product. When they have finished looking at this product they can click a button to return to the list that they were previously. However I can't do just a State nine for each product there is a limit to 20 States, and I'll need about 50 of them.

    So, what I read, I will need to create custom components. the only problem with that is that I can't link to the component on a different State personal main scenario (I get no option to link to the custom component States).

    If I put the image of the product detailed in the scroll pane, that I can't make a link to it, however, he's inside the scrolling content and it just scrolls autour and stuff that is not what I want. as it gives an appearance of disorder.

    -Basically, I need from the buttons in the drop-down list, a link to a more detailed page for this product. Then be able to go back to the list button.

    If anyone has any input on how to do this, please help me. Start panic now, as this must be finished before September: s

    BTW, I'm happy to share my .fxp which helps produce.

    Thank you, hoping for some useful answers on this topic

    -Tom

    Hi Tom,

    Add this back here to share my wire with the community.

    Brought together a quick .fxp based on the section "product" of your project.

    Take a look at how the product lists are linking in the pages of detail of product within their custom components.

    Using this model, you should be able to expand outside the States of infinite product details.  If a particular area has more than the maximum allowed States, just start a new custom component (part 2 of this section of product).

    Let me know if you have any questions. Hope that it affects you on a path to get your complete project.  It is looking nice.

    Tanya

  • Getting the list of Custom Component ListView

    Hello

    I'm trying to figure out how to get the 'checked' property of a custom component of QML.

    Basically, it's the same as the first example on https://developer.blackberry.com/cascades/documentation/ui/custom_components/index.html

    This is a list, with a listItemComponents, whose type: "item" contains a check box and the label.

    I have an ActionItem whose job is to take all elements that are enabled and do something.

    The ActionItem triggers a C++ code that should get this list.

    Problem is, I can't figure out how to get the selected items. I tried the selected() function but it returns empty.

    I have to turn this into a multiple selection?

    I got so far is the back of GroupModel, after selection, but this does not include anything other than what I fed in the first place. Which makes sense.

    There are a lot of similarities between this issue and the other. Should help to my code and comments in this post, I think: http://supportforums.blackberry.com/t5/Cascades-Development/LstItemComponent-doesn-t-track-the-model...

  • Is it possible to "build" a custom component using a command line script?

    Hi all

    From time to time to replicate our environment in instances of development/sandbox sandbox, we need the current generation of custom components production.

    What we do in general is - Component Wizard allows you to "build" each component one & then download the ZIPs. \

    I wonder if there is some sort of command line to "build" a custom component?

    That would allow me to write a script to quickly create all my custom components in a go, whenever necessary.

    Kind regards
    Prateek

    To answer the original question, Yes, there is a command line tool to build, activate, deactivate and install the components (even with the preferences), her right here:

    / Data/Oracle/user_projects/Domains/my_domain/UCM/CS/bin/ComponentTool

    Usage: ComponentTool [v |-vv] [t trace_section]--enable |-disable name

    ComponentTool [v |-vv] [t trace_section]... - sync

    ComponentTool [v |-vv] [t trace_section]... [- Install] path.hda: path.zip [-path.hda Preferences]

    ComponentTool [v |-vv] [t trace_section]--check-depends name

    ComponentTool [v |-vv] [t trace_section]... - name of the package

    ComponentTool [v |-vv] [trace_section]...--list-enabled|--list-disabled|--list|--interact|--help t

    The only thing is to compile the Java classes for you. For this you will need to an ANT script or something.

  • Alternative to RIDC getResponseStream() in Custom Component

    I am trying to create a custom component that does some work with the primary file and checks in another file. When the replacement file is started, I want to check in the primary file.

    I have found a way to recover the primary file using RIDC, but I'd like to find a way to include this functionality in a custom filter class. Here's a snippet of what I want to reproduce inside the filter:

    ServiceResponse response = idcClient.sendRequest (userContext, binder);

    InputStream fis = response.getResponseStream ();

    OutputStream fos = new FileOutputStream (filename); @

    read of fis, write to fos

    the comparison/work

    My question is mainly to find where the content server provides the input stream for a file that is stored in the database.

    http://www.redstonecontentsolutions.com/technical-blog/Java-filter-retrieving-aFile

    http://www.ecmconsultant.NET/2011/09/UCM-11g-retreiving-rendition-path.html

    Jonathan

    http://jonathanhult.com

  • Question about the use of the custom component class define what declarative component

    12.1.3 jdev

    I'm trying to define a declarative component with my custom component class.

    This is the code for my component jsf declarative. I'm trying to use the label on selectManyListbox attribute to pass queryClass for my component class name. It does not work. I also try to use f: attribute to my component class. It does not work too. Question 1: how to move my declarative component attribute to my class of component?

    < af:panelLabelAndMessage label = "#{attrs.displayLabel}" id = "dc_plam1" > "

    < af:switcher id = "dc_s1" defaultFacet = "a lot" facetName = "#{attrs.single eq 'true'?' unique ': 'a lot'}" >

    < f: facet name = "a lot" >

    < af:selectManyListbox id = "namingp1" simple = "true" label = "#{attrs.queryClass}" "

    ' autoSubmit Binding = "#{dropListComp.selectManyListBox}" = "true" valueChangeListener = "#{dropListComp.selectManyValueChange}" >

    < f: attribute name = "queryClass" value = "#{attrs.queryClass}" / >

    < / af:selectManyListbox >

    < / f: facet >

    < f: facet "single" = name >

    < af:selectOneListbox id = "sl_2" simple = "true" label = "#{attrs.queryClass} '"

    autoSubmit Binding = "#{dropListComp.selectOneListBox}" = "true" valueChangeListener = "#{dropListComp.selectOneValueChange}" > "

    < / af:selectOneListbox >

    < / f: facet >

    < / af:switcher >

    < / af:panelLabelAndMessage >

    That's how I try to retrieve the label or f: attribute queryClass in my component class. I get null for both directions.

    {} public void setSelectManyListBox (RichSelectManyListbox selectManyListBox)
    this.selectManyListBox = selectManyListBox;
    If (this.selectManyListBox.getChildCount () == 0) {}
    queryClass = (String) this.selectManyListBox.getLabel ();
    System.out.println (".. queryClass of the label..." + queryClass);
    If (queryClass is nothing)
    {
    queryClass = (String) this.selectManyListBox.getAttributes () .get ("queryClass");
    System.out.println (".. queryClass of attr..." + queryClass);
    }
    If (queryClass is nothing)
    queryClass = "glog.server.query.powerdata.InvolvedPartyQualQuery";
    this.selectManyListBox.getChildren () .addAll (buildDropListSelectItems (queryClass));
    }
    }

    Thank you.

    Hello

    If your declarative component has a defined class of request attribute then #{attrs.name_of_attribute} called from Java should be able to solve

    Frank

  • GET_SEARCH_RESULTS the inside of the custom component

    Greetings,

    I work with a custom component and have led to a question in the process. Basically, inside my component I have references of hyperlink to items in my content server (ex: [! - $wcmUrl ('resource', 'SAMPLE_CONTENT_ID')-].) Now, is in view of the content of an element ID, possible to find this element web site? I scoured all the possible metadata fields and not seen one, but maybe I'm a lack?

    Also, I have some experience with CRMI services available. However, when I try and run these services thanks to a component, my 'validateCheckInData' filter is not able to be executed. I guess that's due to a conflict between types DataBinder. I am able to easily enter the location of a given element web content on my local machine ID by using the code below:

    IdcClientManager Manager = new IdcClientManager();

    IdcClient idcClient = (idc_host) manager.createClient;

    UserContext IdcContext = new IdcContext (idc_user);

    DataBinder binding = idcClient.createBinder ();

    binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");

    binder.putLocal ("QueryText", "dDocName < match >" "+ CONTENTID +"'");

    RequestResponse ServiceResponse = idcClient.sendRequest (userContext, binder);

    DataBinder serverBinder = requestResponse.getResponseAsBinder ();

    DataResultSet dataresultset = serverBinder.getResultSet ("SearchResults");

    DataObject dataobject = dataresultset.getRows () .get (0);

    String url = dataobject.get ('URL');

    If the web site field is not metadata, is it possible for me to run the service GET_SEARCH_RESULTS of my component? The lines above in bold indicate the issues I have with my code by copying and pasting from my local machine to my component code that is executed on the server.

    Thank you!

    > Would you mind critical code in my original post?

    Your code is absolutely horrible, just a joke, I would not dare to criticize the work of others.

    > A million Red flags arose when I had to start my DataBinder object Cast to point to the RIDC jar

    In general, I would not advise to use RIDC leave within a component. CRMI is a client-side technology, while the components (or filters) reside on the server. You use better intradoc API (see http://jonathanhult.com/blog/2012/12/where-are-the-intradoc-java-classes-located/)

  • Using Custom Component error MEssage display

    Hello

    I built the custom component to validate the size of the file and the file Extension.

    That is, user should be able to check in the document if the size is less than 5 MB and the file extension is one of the "png", "tiff", "doc", "Pdf".

    Here, whenever validation files I'm throwing the exception "Type of file file size exceeds the limit or not valid.

    I am able to get the custom component of work according to the validation. And is alsi recording the error in the log file.

    But I need to show the error message when the click the user on the button control on the page of the Complutense University of MADRID.

    From now on, it shows a generic error saying "cannot perform the function validateStandard and service CHECKIN_NEW_SUB.
    The error was caused by a problem generated internally. The error was logged.

    Any help on this is much appreciated.

    Kind regards
    Helen Shetty.

    Hello

    You can throw a ServiceException in your filter with the message you want to display.

    Roman.

  • Custom component gR 10, 3 of the Complutense University of MADRID

    We have an obligation to build a custom, component in order to change enamel teample for 'Notice of expiry'. From now on, we have a component inside the 'custom' folder called "CS10gR35CoreUpdate" that has the file "query_notification_mail.htm" inside the folder teamplate and many other model. Now I will create a new custom component of the based on the existing "CS10gR35CoreUpdate" and edit the required file 'query_notification_mail.htm' and will allow this component of the Components Wizard and restarts the UCM.

    My Question is: how I'll make sure that new custom component is called when an email is sent for documents to be expired? What abt the existing one?

    Please help me as soon as possible, because I provide the soultion. Thank you!!

    Our custom component is not any file of defination resouce, and I do not see the loadorder in defination of resource. Where can I configure the order of loading on the custom component?

    Yes, that's what I meant (in the .hda folder).

    I have another Q? Is it safe to manually change model "query_notification_mail.htm" who that is on the inside:
    Install dir\custom\CS10gR35CoreUpdate\core\templates\query_notification_mail.htm, I ask this question because I have to make changes only in query_notification_mail.htm, so instead of creating the new component based on exit, if I change the file manually?

    What do you mean by "safe"? Of course, if change you it on a hard drive, it will work (ie. in this particular system, the change will apply). You should be careful when you implementCS10gRXCoreUpdate in the future (a global patch will replace most likely your changes). In general, the change of standard resources is not considered to be a very good practice (quick and dirty), but if it is a change in one system, you can probably live with that.

  • Loss of Focus in a custom component ItemRendered

    I have a custom component which is composed of multiple TextAreas and displayed on the screen with other identical components via itemRenderer where = 'true' useVirtualLayout.

    After I clicked on an text box to give it focus, I want to be able to tab to the next TextArea. But instead of emphasis here, the emphasis is the parent of the itemRenderer, forces me to click in the text box in my component to give it focus.

    I tried to use focusManager.setFocus (parm) - corresponding parm to the id text box , I want to take focus, but if I did that with focusManager.getFocus (), I find that the parent currently has the focus.

    I tried also provide each TextArea with a tabIndex (instead of using focusManager.setFocus). But it seems to be ignored.

    Any ideas?

    You need to maybe get the keyFocusChange event and cancel it.

  • How to manage the focus in the custom component

    Hallo. As you know some flex components have indigenous focus, like buttons, textinput, etc... I created a custom component which is a borderContainer... As you know, by default, if the user press TAB my BorderContainer will never receive the focus... I tryied to set a property as setFocus() and tabFobusEnabled to true, but I still have some problems with my borderContainer development... It's as if my app knows that my custom component is not a native component... Is there a way for my component to receive focus without problems?... Which is the best way to do this?

    Thx a lot

    Max

    Components must implement IFocusManagerComponent in order to receive the focus.

Maybe you are looking for

  • MBP screen flashes green fluo randomly?

    Hello I have a MacBook Pro (15 inch, mid-2012) that I've been to * and return with (several dead HD which Apple has replaced)... For the past year, I have been making this strange green 'flash' on screen every moment again. It seems to happen randoml

  • Voicemail - automatic password entry

    Someone knows how to make the automatic password entry in the box voice stock when you add commas, your password then the sign #? I can't understand how do in KitKat.

  • Why the system operating to deny access to the file specified to run wipe Drive 5

    Why deny operating system access to the specified file for execution unit 5 Wipe to wipe my hard drive, I need permission.

  • E2000 wireless PPPOE connection problems.

    I checked my username and password again and again. When I try to connect the router to the internet, I get an error message saying IP not given. How can I fix it?

  • BlackBerry Bold 9900 UMA smartphones?

    Hi guys,. Sorry if this has been requested may already, see booster signal UMA on the 9900 specs, I was wondering if this is a feature included as I intend to do next week when my upgrade is due on my contract. Also while I am here I noticed none of