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

Tags: Flex

Similar Questions

  • 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

  • Mobile with customer AnnyConnect problem

    Problem with any client of annyconnect cisco, password assistance '[' domain '] ' {open and close the hook set} is not authenticated when we use customer annyconnect. Is this bug or there is restriction of using special characters in customer AnnyConnect?

    Here's how to message that is displayed in the history.

    Please enter your username and password.

    Authentication failed.

    Authentication failed.

    Yes, there is a bug related to the use of special characters. It is documented here:

    http://Tools.Cisco.com/support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtn75204

    "It was noted only to apply with"&"and"<" characters="" but="" it="" may="" also="" apply="" to="" the="" brackets="" you="" see.="" can="" you="" upgrade="" to="" the="" current="" anyconnect="" release="" and="" see="" if="" it="" works="">

  • 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.

  • Creating a TableView with a component, problem with my lines.

    I am trying to create a table in a pane. Each row in the table will have three columns. I found an example of code to create the table, but I'm getting additional lines that I don't want.

    I want only lines with 3 columns but I have extra lines, including the content of the last column see image.

    Is someone can you please tell me what is wrong with my code?

        private Pane createPane(String category) {
    
            VerticalFieldManager vfm = new VerticalFieldManager();
    
            vfm.add(new LabelField("Add Task:", Field.FOCUSABLE | LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH));
    
            // Initialize the model if it has not yet been loaded
            _tableModel = new SortedTableModel(StringComparator.getInstance(true), 2);
    
            // Populate the list
            for (int i = 0; i < 3; i++) {
    
                String col1 = i + " 1";
                String col2 = i + " 5";
                String col3 = i + " 3";
    
                _tableModel.addRow(new Object[]  {col1, col2, col3});
            }
    
            // Create and apply style
            RegionStyles style = new RegionStyles(BorderFactory.createSimpleBorder(new XYEdges(1, 1, 1, 1), Border.STYLE_SOLID), null, null,
                null, RegionStyles.ALIGN_LEFT, RegionStyles.ALIGN_TOP);
    
            // Create the view and controller
            TableView tableView = new TableView(_tableModel);
            TableController tableController = new TableController(_tableModel, tableView);
    
            // Set the controller focus policy to highlight rows
            tableController.setFocusPolicy(TableController.ROW_FOCUS);
    
            // Set the behaviour of the controller when a table item is clicked
            tableController.setCommand(new CommandHandler()
            {
                /**
                 * @see CommandHandler#execute(ReadOnlyCommandMetadata, Object)
                 */
                public void execute(ReadOnlyCommandMetadata metadata, Object context)
                {
                    Dialog.alert("Command Executed");
                }
    
            }, null, null);
    
            tableView.setController(tableController);
    
            // Create a DataTemplate that suppresses the third column
            DataTemplate dataTemplate = new DataTemplate(tableView, 1, 3)
            {
                /**
                 * @see DataTemplate#getDataFields(int)
                 */
                public Field[] getDataFields(int modelRowIndex)
                {
                    Object[] data = (Object[]) ((TableModel) getView().getModel()).getRow(modelRowIndex);
    
                    Field[] fields = new Field[3];
                    fields[0] = new LabelField(data[0], Field.FOCUSABLE);
                    fields[1] = new LabelField(data[1], Field.FOCUSABLE | DrawStyle.HCENTER);
                    fields[2] = new LabelField(data[2], Field.FOCUSABLE);
    
                    return fields;
                }
            };
    
            // Set up regions
            dataTemplate.createRegion(new XYRect(0, 0, 1, 1), style);
            dataTemplate.createRegion(new XYRect(1, 0, 1, 1), style);
            dataTemplate.createRegion(new XYRect(2, 0, 1, 1), style);
    
            // Specify the size of each column by percentage, and the height of a row
            dataTemplate.setColumnProperties(0, new TemplateColumnProperties(15, TemplateColumnProperties.PERCENTAGE_WIDTH));
            dataTemplate.setColumnProperties(1, new TemplateColumnProperties(15, TemplateColumnProperties.PERCENTAGE_WIDTH));
            dataTemplate.setColumnProperties(2, new TemplateColumnProperties(70, TemplateColumnProperties.PERCENTAGE_WIDTH));
            dataTemplate.setRowProperties(0, new TemplateRowProperties(ROW_HEIGHT));
    
            // Apply the template to the view
            tableView.setDataTemplate(dataTemplate);
            dataTemplate.useFixedHeight(true);
    
            vfm.add(tableView);
    
            // Pane's title
            LabelField iconTextLabelField = new LabelField(category, Field.FOCUSABLE | Field.FIELD_HCENTER);
            return (new Pane(iconTextLabelField, vfm));
        }
    

    Thanks in advance.

     _tableModel = new SortedTableModel(StringComparator.getInstance(true), 2); <-- "2" sorts it by the object at index 2, which is your "col3". The extra rows you see are like headers for the sorting. I think you should use a different Table Model.
    
            // Populate the list
            for (int i = 0; i < 3; i++) {
    
                String col1 = i + " 1";
                String col2 = i + " 5";
                String col3 = i + " 3";
    
                _tableModel.addRow(new Object[]  {col1, col2, col3});
            }
    
  • Connection with customer view problem

    OK, so it's my first installation of view and I have all the installation program. But when I loaded the client on my PC and tried to enter a VD, I get a message titled "User Interface".

    I've attached a screenshot of the error. I'm guessing this has something to do with the virtual office, I created but I can't understand why. Any help?

    Thank you.

    Sorry, I read the wrong thread.  View agent installed on your virtual machine has GINA installation option.  What version of RDP you have installed on the virtual machine?  We use 6.0 on all are XP devices.

    see this KB as well

    http://KB.VMware.com/kb/1006839

  • 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

  • Problems with custom events

    I'm trying to figure out this problem I'm having with custom events, I've read all the documents and tutorials that I can find, and this bit still makes no sense.

    I have the following configuration:

    LoginForm: custom component (which is created as a popup via the PopupManager)
    ApplicationHeader: custom component (which is added to the MXML application)
    application: creates the LoginForm as a popup via the PopupManager, has ApplicationHeader defined in the MXML.

    When a user logs in the LoginForm dispatches an event customized, there are two defined listeners:

    1. in the application:

    private void showLoginForm(): void {}
    var loginForm:LoginForm = LoginForm (PopUpManager.createPopUp (this, LoginForm, true));
    loginForm.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
    }

    2. in the component custom of ApplicationHeader :

    private function init (): void {}
    parent.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
    }

    When the event is dispatched the request listener picks it up as expected, however the listener inside the custom component sees ever-even if the event is set to bubble.

    The only way I managed to get this working is to do the following in the application:

    private void userLoggedInHandler (event:UserLoggedInEvent.USERLOGGEDINEVENT): void {}
    // .. the event handling logic
    the return of the event
    dispatchEvent (event);
    }

    This makes no sense at all, what happens if I didn't want the application to handle the event itself. There is a line in the documentation of the event
    who says "You can only save a listener of events with an object if that object dispatches the event." who could explain it, but it is still absurd.

    Any help/tips/examples would be most useful as I am pulling my hair out here.

    Never mind, I just read this post ( http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid = 1257178 & highlight_key = y & keyword1 = custom % 20components) and I was pointed in the right direction - I had to add the metadata for the event to the application.

  • Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC

    Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC

    This should be corrected in the next version.

  • 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)

  • Problem in the use of custom component.

    I want to create a component that is customized by using action script
    I use flex builder 2.
    I looked at the flex guide 2 devlopers and tried with the simplest example, having two parts:

    MyButton.as file for the custom component:
    the myControls package
    {
    Import mx.controls.Button;
    public class MyButton extends button
    {
    public void MyButton (): void
    {

    }
    }
    }

    the main application mxml file contains:
    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    layout = "absolute" xmlns:myControls = "myControls.*" >
    < myControls:MyButton width = "100" height = "25" / >
    < / mx:Application >

    When compiling, flex builder displays a message:
    Errors exist in the project (s) required: MyProject
    Continue the launch?

    However, when I remove the following line from the main application file:
    < myControls:MyButton width = "100" height = "25" / >
    It runs successfully.

    Please someone help if there is any question about.

    The only thing I can think is that MyButton.as is not a directory of myControls, with myControls directory is a subdirectory of the directory is your mxml file. It's the only thing I can think of.

  • 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...

  • 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.

  • 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

  • Annoying beep of Satellite P10 873

    Hi, im this annoying beep intermittently from my toshiba, ive had more than 3 years and over the last 3 months or so this started beep to sound. It looks like a number being pressed on a pad of phone, very loud sound and the most annoying numbering a

  • HP Pavilion dv6-6160se: could not find PCI Simple Communications Controller

    Hello I just reinstall windows 7-64 bit and it has this damage that I can not find the suitable driver for. I can't find the PCI of Simple Communications controller on(HP Pavilion dv6-6160se) with this code: PCI\VEN_8086 & DEV_1C3A & SUBSYS_3388103C

  • FPGA VI reference number

    Hello guys,. I have a question/problem about the FPGA VI reference. My situation: I have the state machine on my system in real time, calling successively the different bitfiles. To break it down into two different bitfiles. In situation 1, I call a

  • Old X adapters CA / CC 90 w 61 against common x 230 / x 220 weight/height adapters?

    I can't pin it down due to the number of units 'offbrand '. The size or weight of the 90w adapter has changed since the x 61 Tablet / x 61 output?

  • Using another hard drive to brand in lenovo

    I own a Lenovo Thinkpad R61(8920-B6U) and think to increase storage capacity. It came with 160GB and I'll bring to 250 or 320 GB. In this regard, I have two questions: (1) my laptop will support a 320 GB hard drive? (2) can I use a hard drive other t