OSB: cvc-elt.1 , cvc-elt.4.2

Good day!
I started to continue developing Oracle Service Bus project installing it on weblogic server 10.3.5. (I recently installed wls and did not test on any existing projects yet).
OEPE shows me hundreds of errors like following:
cvc-elt.1: Cannot find the declaration of element 'object-persistence'.
cvc-elt.4.2: Cannot resolve 'base-expression' to a type definition for element 'base'.
cvc-elt.4.2: Cannot resolve 'column' to a type definition for element 'field'.
All of them are in or-mappings.xml files.
What should i do to fix it?
Edited by: 917050 on 26.02.2012 7:07

does there also occure when you create a new configuration project and import these existing projects in it ?
clean compile on these project, does that help ?

Similar Messages

  • Problem in creating Data/Service in FlashBuilder 4 beta 2 with this error .cvc-elt.1: Cannot find the declaration of element 'model'

    hi
    i have a problem after installing flashBuilder 4 beta2 .
    when i want to create Data/Service with BlazeDs and when i click on button finish
    this error shown and I can't do anything with it .
    in flashBuilder beta1 it's work perfect .
    if any one in thereand know why?
    please help me
    ERROR: XML parse error : Error on line 1 of documen : cvc-elt.1:Cannot find declaration of element 'model'. Nested exeption:Cannot find declaration of element 'model'.
    thanks

    Hi,
    Thanks for your feedback
    Can you attach your sample project and provide details on the Flash Builder and BlazeDS builds you are using?
    Also add your vote to http://bugs.adobe.com/jira/browse/FB-23479 a similar known issue
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • SAXParseException: cvc-elt.1 - XSD validation

    Hello,
    I'm trying to validate some generated XML against an XSD. The error I'm receiving is:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'user'.
    The generated XML starts like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <user>
       <userName>...The start of the XSD looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="user">
    ...The Java code I'm using is this:
    DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
    documentBuilderFactory.setNamespaceAware(true);
    DocumentBuilder builder = documentBuilderFactory.newDocumentBuilder();
    Document document = builder.parse(new ByteArrayInputStream(bytes));
    SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = schemaFactory.newSchema(url);
    Validator validator = schema.newValidator();
    validator.validate(new DOMSource(document));... where "bytes" is a byte array containing the XML that I have generated and "url" is a URL object containing the location of my XSD file.
    I'm using Java version 1.6.0_12.
    Have had a look elsewhere for reports of similar error messages but couldn't find anything definitive on what the problem is or any suggested solution.
    Thanks for any assistance,
    Von Entenduck

    Not sure what your version of OIM is, but I have seen this in R2PS1 even though all the OOTB jobs and custom jobs are working fine. So I guess this can be safetly ignored.
    -Bikash

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

  • Error::cvc-elt.4.2 -- namespaces

    Hi all,
    I have this entry message for a web service (deployed in BPEL 10.1.3.1):
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    >
    <SOAP-ENV:Header>
    <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:hdr="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <UsernameToken>
    <Username>XXXX</Username>
    <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</Password>
    </UsernameToken>
    </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <Dummy_Input xmlns="http://xmlnssns.oracle.com/DummyTypes" xmlns:s01="http://xmlnssns.oracle.com/DummyTypes">
    <InputData xsi:type="s01:InputData" xmlns:s="http://www.w3.org/2001/XMLSchema">
    <CodeEnt xsi:type="s:string">XXXX</CodeEnt>
    <NumUt xsi:type="s:decimal">397143067</NumUt>
    </InputData>
    </Dummy_Input>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    If I have the property VlidateXML=True, gives me the folowing error:
    Invalid xml document.
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-elt.4.2: Cannot resolve 's:string' to a type definition for element 'CodeEnt'.
    Error::cvc-elt.4.2: Cannot resolve 's:decimal' to a type definition for element 'NumUt '.
    Please make sure that the xml document is valid against your schemas.
    If the property VlidateXML=False runs well.
    Can you help me to understand what is the error in the xml?
    Thank you in advance
    CD
    Dummy.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://xmlnssns.oracle.com/DummyTypes"
    targetNamespace="http://xmlnssns.oracle.com/DummyTypes"
    elementFormDefault="qualified">
    <xsd:element name="Dummy_Input" type="Dummy_Input"/>
    <xsd:complexType name="Dummy_Input">
    <xsd:sequence>
    <xsd:element name="InputData" type="InputData" minOccurs="1"
    maxOccurs="1"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="InputData">
    <xsd:sequence>
    <xsd:element name="CodeEnt" type="xsd:string" minOccurs="1"/>
    <xsd:element name="NumUt" type="xsd:decimal" minOccurs="0"
    nillable="false"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

    Try following entry message:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    <SOAP-ENV:Header>
    <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:hdr="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <UsernameToken>
    <Username>XXXX</Username>
    <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</Password>
    </UsernameToken>
    </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <Dummy_Input xmlns="http://xmlnssns.oracle.com/DummyTypes" xmlns:s01="http://xmlnssns.oracle.com/DummyTypes">
    <InputData xsi:type="s01:InputData" xmlns:s="http://www.w3.org/2001/XMLSchema">
    <CodeEnt>XXXX</CodeEnt>
    <NumUt>397143067</NumUt>
    </InputData>
    </Dummy_Input>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Regards

  • Cvc-elt.1: Cannot find the declaration of element 'html'

    I was getting an error when I was trying to validate the following XML file as below:
    cvc-elt.1: Cannot find the declaration of element 'html'
    However the error below goes away when I type in
    <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
    instead of "<html xmlns="http://www.w3.org/1999/xhtml"
    I am not sure why the second way works. I am not familiar with namespaces, so if anyone could tell me why the second approach works, i would be grateful. Or, is there any other reason also that makes the error appear..Please demystify. Thanks very much
    The error:
    *cvc-elt.1: Cannot find the declaration of element 'html'*
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    *<html xmlns="http://www.w3.org/1999/xhtml"*      xmlns:xhtml="http://www.w3.org/2002/Xforms"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www/w3.org/2001/XMLSchema-instance"
         xmlns:xxforms="http://orbeon.org/oxf/xml/xform"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:fe="http://example.com/form/xform"
         xmlns:f="http://orbeon.org/oxf/xml/formatting"
         xmlns:xforms="http://w3.org/2002/xforms">
                   <head>
                        <title> ProtoType Complaint Form - 2 </title>
                        <!-- We are going to use an external CSS file here -->
                        <!-- <link rel="stylesheet" type="text/css" href="my_styles.css"/> -->
                        <!-- Let us use an Internal Style sheet as well -->
                        <!-- Let us use or adapt the Form Editor CSS in the form as suggested by Mike, Dan, Intalio -->
                        <!--We are going to be using CSS Rules:
                        A CSS rule comprises of a selector, and a property:value pair (declaration). -->
                        <!--
                        selector:
                             how content can be selected for styling, for example, the selector for a level-one
                        heading element is h1; selectors include element name, ID and class
                        property:
                             how a presentation attribute of an element can be targeted, for example, the font-family
                             property refers to the typeface content should be set in
                        value:
                             the values permitted for each property; for example, a colour can be set using a keyword:
                             red, green, blue; or a hexadecimal code: #f00, #0f0, #00f
                        -->
                        <!--
                        We are going to use Solitary ID selectors:
                             those that can apply to any type of element and have the simple syntax
                             #idname, for example, #title. This selector selects the single element on a page
                             that has an ID of "title".
                        -->
                        <!-- SideNote: Keyword - "CSS pseudo elements" -->          
                        <style type="text/css">
                        <!-- #xforms_cntrl_COMPLAINT_TYPE {position : absolute; top : 30; left : 270; width : 195; height : 29; margin : 0; padding : 0;} -->
                             h1
                                  font: bold 20pt helvetica,verdana;
                             h2
                                  font: bold 18pt helvetica,verdana;
                             h3
                                  font: bold 16pt helvetica,verdana;
                             /* blue background for Group labels */
                             /* h4 { font: bold 14pt helvetica,verdana; background-color: #1078E1; } */
                             h4
                                  font: bold 14pt helvetica,verdana;
                             .xforms-group {
                             /* border: 10px; */
                             border: thin solid #0000FF;
                             background-color: #ffffcc;
                             PADDING-RIGHT: 0.5em;
                             DISPLAY: block;
                             margin-bottom:5px;
                             /* display: table-row; */
              .xforms-label { font-weight: bold }
                        </style>
                        <!-- define the form model -->
                        <!-- We will constrain instance data by specifying an XML schema -->
                        <!-- xforms:model starts here -->
                        <xforms:model schema="test2.xform.xsd" id="COMPLAINT_DATA">
                             <!-- Task input -->
                             <xforms:instance id="taskinput">
                                  <fe:input>
                                       <fe:Arrestee_Last_Name/>
                                       <fe:Arrestee_First_Name/>
                                  </fe:input>
                             </xforms:instance>
                                  <xforms:instance id="taskmetadata">
                                  <!-- if I need to populate some instance using an XSL stylesheet and eXist ?? -->
                                       <taskmetadata/>
                                  </xforms:instance>
                             <!-- Task Output -->
                             <xforms:instance id="taskoutput">
                                  <fe:output>
                                       <fe:Arrestee_Last_Name/>
                             <fe:Arrestee_First_Name/>
                                  </fe:output>
                             </xforms:instance>     
                             <!-- the xforms-ready event is used here to trigger setValue -->
                             <!-- We set Instance Values with the xforms:setvalue Action -->
                             <xforms:action ev:event="xforms-ready">
                                  <xforms:action xforms:if="string(instance('taskoutput')/@saved) != 'true'">
                                       <xforms:setValue ref="instance('taskoutput')/fe:Arrestee_Last_Name" value="instance('taskinput')/fe:Arrestee_Last_Name" />
                                       <xforms:setValue ref="instance('taskoutput')/fe:Arrestee_First_Name" value="instance('taskinput')/fe:Arrestee_First_Name" />
                                  </xforms:action>
                             </xforms:action>
                             <!-- can I use type="xsd:string ?? -->
                             <xforms:bind nodeset="instance('taskoutput')/fe::Arrestee_Last_Name" relevant="true()" type="xs:anyURI" />
                             <xforms:bind nodeset="instance('taskoutput')/fe:Arrestee_First_Name" relevant="true()" type="xs:anyURI" />     
                        </xforms:model> <!-- xforms:model ends here -->
                   </head>     
              <body>
                        <h3>
                             <center>
                                  <font color="blue">
                                       Criminal Complaint <br></br>
                                  </font>
                             </center>
                        </h3>          
                        <!-- Use Later??
                        <div id="intalio-bpms-form">
                             <div id="xforms_cntrl_output105">
                                  <xforms:output ref="instance('taskoutput')/fe:output105"/>
                             <div>
                        <div> -->
                        <xforms:group appearance="full">
                        <p class="proto">
                             <xforms:input model="COMPLAINT_DATA" ref="instance('taskinput')/fe:input/fe:Arrestee_Last_Name">
                                  <xforms:label>Arrestee Last Name: </xforms:label>
                             </xforms:input>     
                        </p>
                        <p class="proto">
                             <xforms:input model="COMPLAINT_DATA" ref="instance('taskinput')/fe:input/fe:Arrestee_First_Name">
                                  <xforms:label>Arrestee First Name: </xforms:label>
                             </xforms:input>     
                        </p>
                        </xforms:group>     
              </body>
         </html>

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • Validation error: cvc-elt.1: Cannot find the declaration of element

    I use JAXP to do XML Parsing and validation. I use DOM and not SAX.
    My code is as follows:
    SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
    File schemaLocation = new File("C:\\config\\JMS_properties.xsd");
    Schema schema = schemaFactory.newSchema(schemaLocation);
    // Create the validator
    Validator validator = schema.newValidator();
    // Add an error handler to the validator
    JMSErrorHandler errorHandler = new JMSErrorHandler();
    validator.setErrorHandler(errorHandler);
    // Create the dom factory
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    // Set the namespace property
    domFactory.setNamespaceAware(true);
    // Create the document builder
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Parse the xml file
    Document doc = builder.parse(xmlFile);
    // Create the dom source and destination
    // The destination will contain the doc augmented with the default attribute/element
    DOMSource source = new DOMSource(doc);
    DOMResult result = new DOMResult();
    // Validate and augment the source
    validator.validate(source, result);
    // Error checking
    if ( errorHandler.validationError == true ) {
        // errors occured during the parsing
        System.out.println("XML file is not valid");
        System.exit(1);
    // Get the augmented document
    this.augmented = (Document) result.getNode();When executing my code, I got:
    Validation error: cvc-elt.1: Cannot find the declaration of element 'JMSProperties'
    But the xml file has this element in it so I do not understand the meaning of that error.
    ??????

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • Org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of ..

    Hello,
    I try to validate a DOM Document using:
    SchemaFactory factory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Source schemaFile=new StreamSource("myschema.xsd");
    schema schema=factory.newSchema(schemaFile);
    Validator validator=schema.newValidator();
    validator.validate(new DOMSource(document));
    I don't validate using the parse(File) method, because I already have a DOM Tree in memory.
    BUT now I receive the following error:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'catalogue'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.XMLSchemaValidator.validate(Unknown Source)
    at javax.xml.validation.Validator.validate(Unknown Source)
    catalogue is my rootElement.
    I'm using jdk 1.4.
    Does somebody know how to solve this?
    Thank you!
    Katja

    extra information
    a part of the XSD schema:
    <?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">     <xsd:element name="catalogue">    <xsd:complexType>      <xsd:sequence>        <xsd:element ref="date_created"/>        <xsd:element ref="date_modified"/>        <xsd:element ref="comment"/>        <xsd:element ref="books"/>        <xsd:element ref="cds"/>      </xsd:sequence>    </xsd:complexType>  </xsd:element>the code I'll using:
    public class DomWriterWithValidation extends AppBo{
         public static void main(String[] args) {
              DocumentBuilderFactory dbFactory=DocumentBuilderFactory.newInstance();
              dbFactory.setNamespaceAware(true);
              final String OUR_SCHEMA="C:/_develop/asja/lib/local/domxmlliblocal/properties/xmlfiles/catalogueBig.xsd";
              SchemaFactory schemaFactory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              try{
                   Source schemaFile=new StreamSource(new FileInputStream(OUR_SCHEMA));
                   Schema schema=schemaFactory.newSchema(schemaFile);
                   Validator validator=schema.newValidator();
                   DocumentBuilder domBuilder=dbFactory.newDocumentBuilder();
                   File file=new File("C: /xmlfiles/catalogueDOMW1.xml");
                   Document document=domBuilder.newDocument();
                   Catalogue catalogue=getCatalogue(10,10);
                   writeXMLFile(file,catalogue,document,validator);
              }catch (Exception e) {
                   e.printStackTrace();
    public static void writeXMLFile(File file,Catalogue catalogue,Document document,Validator validator)throws SAXException{
              //1. BUILDING THE DOM TREE
              Element rootElement=document.createElement("catalogue");
              document.appendChild(rootElement);
              Element dateCreated=document.createElement("date_created");
              rootElement.appendChild(cds);
              OutputStream outputstream=null;               
                   try{
                        //2. WRITE THE DOM TREE TO AN XML FILE
                   TransformerFactory transformerFactory = TransformerFactory.newInstance();
                      Transformer transformer = transformerFactory.newTransformer();
                      transformer.setOutputProperty(OutputKeys.METHOD,"xml");
                      transformer.setOutputProperty(OutputKeys.INDENT,"yes");
                      outputstream=   new FileOutputStream(file.getPath());
                      /*With VALIDATION */
                        validator.validate(new DOMSource(document));
                   /*With VALIDATION */
                      transformer.transform(new DOMSource(document), new StreamResult(outputstream));      
              }catch (SAXException saxException){
                        System.out.println("The XML-file you are trying to create is not valid");
                        throw saxException;
              catch(Exception e){
                   e.printStackTrace();
              }finally{
                   try{
                   outputstream.close();
                   }catch (IOException ioException){
                        ioException.printStackTrace();
                        throw new RuntimeException(ioException);
    }A little part of the valid XML file I want to create:
    <?xml version="1.0" encoding="UTF-8"?><catalogue><date_created><day>1</day><month>7</month><year>2008</year></date_created><date_modified><day>1</day><month>7</month><year>2008</year></date_modified>

  • Problem with xerces2 J (cvc-elt.1: Cannot find the declaration of element)

    cvc-elt.1: Cannot find the declaration of element 'Unternehmen'.
    Can anyone help me to get this problem solved?
    I am using xerces to validate a xml with a xsd scheme and i think there must be a error within the scheme. But the XSD Validator on w3c.org says that the xsd is fine !? :-o
    scheme (xsd)
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <xsd:complexType name="PersonTyp" abstract="true">
         <xsd:sequence>
           <xsd:element name="Vorname" type="xsd:string" maxOccurs="3"/>
           <xsd:element name="Name" type="xsd:string"/>
           <xsd:element name="Geburtsdatum" type="xsd:date"/>
         </xsd:sequence>
       </xsd:complexType>
       <xsd:complexType name="MitarbeiterTyp">
         <xsd:complexContent>
           <xsd:extension base="PersonTyp">
             <xsd:sequence>
               <xsd:element name="Gehalt">
                 <xsd:simpleType>
                   <xsd:restriction base="xsd:float">
                     <xsd:minInclusive value="10000"/>
                   </xsd:restriction>
                 </xsd:simpleType>
               </xsd:element>
             </xsd:sequence>
           </xsd:extension>
         </xsd:complexContent>
       </xsd:complexType>
       <xsd:element name="Unternehmen">
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="Mitarbeiter" type="MitarbeiterTyp"
               maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
    </xsd:schema>xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Unternehmen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="Beispiel.xsd">
    <Mitarbeiter>
      <Vorname>Hagen</Vorname>
      <Vorname>Dieter</Vorname>
      <Name>Becker</Name>
      <Geburtsdatum>1967-08-13</Geburtsdatum>
      <Gehalt>39512.34</Gehalt>
    </Mitarbeiter>
    <Mitarbeiter>
      <Vorname>Jutta</Vorname>
      <Name>Stehl</Name>
      <Geburtsdatum>1976-09-11</Geburtsdatum>
      <Gehalt>42500.34</Gehalt>
    </Mitarbeiter>
    </Unternehmen>

    forget about this thread.
    i have read a chapter of http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html this document and found out that i missed a statement within my java code.
    Next, you need to configure the parser factory to generate a parser that is namespace-aware parser, as well as validating:
      SAXParserFactory factory = SAXParserFactory.newInstance();
      factory.setNamespaceAware(true);
      factory.setValidating(true); I MISSED THE factory.setNamespaceAware(true); LINE!!!!

  • Error cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'

    Hi! Ive got an error: cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'
    My WSDL file was generated by PI.
    After import this WSDL-file to my Business Process to section Service Interfaces - I've got this error.
    But, it seems to be OK when I created the project, create a model by choosing the WSDL-file. All validators do not give me any error.
    Whats wrong?!

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • Cvc-elt.1: Cannot find the declaration of element 'mesa'.

    When I trying to send a Soap request I am getting the following exception.
    Soap request
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/mesa" xmlns:web="http://www.webservice.stockquotein">
    <soapenv:Header/>
    <soapenv:Body>
    <web:GetQuote xmlns:web="http://www.webservice.stockquotein">
    <web:symbol>test</web:symbol>
    </web:GetQuote>
    </soapenv:Body>
    </soapenv:Envelope>
    XSD
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://www.webservice.stockquotein"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mesa="http://www.sterlingcommerce.com/mesa">
    <xs:element name="GetQuote">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="symbol" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="symbol" type="xs:string"/>
    </xs:schema>
    WSDL (initial lines not complete as its very big)
    <wsdl:definitions xmlns:mesa="http://www.sterlingcommerce.com/mesa" xmlns:mesa_xsd="http://www.sterlingcommerce.com/mesa" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns0="http://www.webservice.stockquotein" xmlns:tns1="http://www.webservice.stockquoteout" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="StockQuote_no_attachments" targetNamespace="http://www.sterlingcommerce.com/mesa">
    <wsdl:types>
    <xs:schema xmlns="http://www.sterlingcommerce.com/mesa" xmlns:tns="http://www.sterlingcommerce.com/mesa" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.sterlingcommerce.com/mesa">
    What can be the issue?
    Thanks
    Abhishek

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • CallableStatament for selection stored procedure

    hello,
    i write a jsp page where there are inputs. when i click on a button i want to search elements in my sql server database. to do that, i call a stored procedure :
    CREATE PROCEDURE PS_ELTS
    @param0 VARCHAR(40),
    @param1 VARCHAR(10),
    @param2 VARCHAR(6),
    @param3 VARCHAR(6),
    @param4 VARCHAR(40)
    AS
    SELECT ELTS.NAME,
    ELTS.TEL,
    ELTS.ADR1,
    ELTS.ADR2,
    ELTS.SERV
    FROM ELTS
    WHERE (ELTS.NAME LIKE @param0 OR @param0 IS NULL)
    AND (ELTS.TEL LIKE @param1 OR @param1 IS NULL)
    AND (ELTS.ADR1 LIKE @param2 OR @param2 IS NULL)
    AND (ELTS.ADR2 LIKE @param3 OR @param3 IS NULL)
    AND (ELTS.SERV LIKE @param4 OR @param4 IS NULL)
    ORDER BY ELTS.NAME, ELTS.TEL
    i have a java class elts as business object. in the class, there is a method search which takes an elts event, connects to the database and gets elements which are ok. if all parameters are null, i get every lines of ELTS table. it's ok. if one or more of the parametre is not null, i don't get any line. this is the method :
    public void search(UtilBean bean) throws Exception {
    int i = 0;
    Class.forName(driver);
    Connection connection = DriverManager.getConnection(url, login, password);
    if (connection != null) {
    connectionOk = true;
    this.setNAME(beanrecherche.getNAME());
    this.setTEL(beanrecherche.getTEL());
    this.setADR1(beanrecherche.getADR1());
    this.setADR2(beanrecherche.getADR2());
    this.setSERV(beanrecherche.getSERV());
    String aProc = "{call PS_ELTS(?,?,?,?,?)}";
    CallableStatement aStatement = connection.prepareCall(aProc);
    aStatement.setString(1, fmt_sqlChaineLike(this.getNAME()));
    aStatement.setString(2, fmt_sqlChaineLike(this.getTEL()));
    aStatement.setString(3, fmt_sqlChaineLike(this.getADR1()));
    aStatement.setString(4, fmt_sqlChaineLike(this.getADR2()));
    aStatement.setString(5, fmt_sqlChaineLike(this.getSERV()));
    aStatement.execute();
    ResultSet rs = aStatement.getResultSet();
    while (rs.next()) {
         i++;
    UtilBean util = new UtilBean();
    util.setNAME(rs.getString("NAME"));
    util.setTEL(rs.getString("TEL"));
    util.setADR1(rs.getString("ADR1"));
    util.setADR2(rs.getString("ADR2"));
    util.setSERV(rs.getString("SERV"));
    listUtil.add(util);
    do i do something wrong ? is there a solution to this problem ?

    i found what's wrong. in my stored procedure, i defined parameters like this :
    @param0 VARCHAR(40),
    @param1 VARCHAR(10),
    @param2 VARCHAR(6),
    @param3 VARCHAR(6),
    @param4 VARCHAR(40)
    when i use :
    aStatement.setString(1, this.getNAME());
    java sends a 40 characters long string to the stored procedure so if i write 'hello', the stored procedure gets 'hello '. any element is like that in the database so i must change the stored procedure :
    (ELTS.NAME LIKE @param0 OR @param0 IS NULL) became (ELTS.NAME LIKE rtrim(ltrim(@param0)) OR @param0 IS NULL)

  • Answer for the Interview Questions

    Hello Experts,
            Below is the list of questions from DP and SNP which I took it from APO Interview Questions thread. Please provide us the answers for the questions. It will be really helpful for the beginners like me. If every one in the forum contributes then it will be very great.
    Thanks for your reply.
    Best Regards,
    Raj.
    Where do you define Info-objects?
    Info-objects comprise of?
    What is Administrator Workbench is used to create and manage?
    What are the different types of data in liveCache?
    what is the difference between Storage Bucket Profile and Planning Bucket Profile?
    How can you setup two grids in the Planning Book / Data View?
    What can be sources of data in the timeseries keyfigure?
    What is the use of ex-post forecast in Univariate Statistical Forecasting?
    What are the types of Keyfigure aggregation in terms of characteristics/Calc Type?
    What are the types of Keyfigure aggregation in terms of time?
    Where do you maintain keyfigure aggregation?
    What are aggregates?
    What is the difference between planning characteristic and navigational attribute?
    What are selection profiles used for?
    What are the different ways of creating CVCs?
    How many levels does a macro have?
    What are the different types of standard macros?
    When is the exit and default macro executed?
    What is process chain and how is it used in Demand Planning?
    what is an Infospoke? Where do you find the configuration in BW Admin Workbench?
    what is the basis of creation of planning books and data views considering background job performance?
    Where do you set the level at which a DP background job activity has to execute?
    How can you setup custom alert types for DP and SNP?
    what is the difference between Dynamic and Database alerts?
    Where are database alerts stored (table name)?
    What is realignment and explain the process?
    What is cannibalization group?
    What are the different forecast error measures and which is most preferred?
    What are the different types of keyfigures you can use in a Planning Book?
    What is planning version and planning area initialisation?
    What is the master data in APO Demand Planning?
    what is meant by Release of Demand Plan to SNP?
    How do you create proportional factors? What is the standard keyfigure for Proportional Factor?
    1. What is the difference between order series and time series data. How does different types of transaction data get mapped to Interactive Planning keyfigures?
    2. What are the different methods of doing Supply Network Planning namely Heuristic, Optimiser, Multi-Level Demand Supply Match (CTM)?
    3. What are aggregates and how are they used in SNP.
    4. What is SNP Stock Transfer Horizon? What is the relation with Planning Time Fence?
    5. What is SNP Horizon? What is the relation with PPDS Horizon?
    6. What is the key difference in planning with SNP vs PPDS?
    7. What is the master data required for planning in SNP?
    8. How are SNP Plans different from PPDs Plans.
    9. How can capacity constraints considered in SNP.
    10. What are Quota Arrangements and how are they used?
    11. How do you get forecast in SNP? What is forecast consumption?
    12. How does the different transaction data aggregate and show up in different keyfigures in Interactive SNP?
    13. What are the different types of SNP Heuristics possible?
    14. What are the different Safety Stock calculation methods that can be sued in SNP?
    15. What is Netting and Forecast Consumption? Explain Backward and Forward Consumption?
    16. Are requirements and receipts in SNP pegged? How is it different from PPDS?
    17. What is the relationship between SNP Horizon and PPDS Horizon?
    18. Briefly describe the different ways of managing safety stock in SNP
    19. What is the difference between a model and a version
    20. In what scenario Capable-to-Match is applicable.
    21. Briefly explain how SNP optimiser can be setup and used.

    Dear Raj,
      you  can go through the following questions and answers which will help you.
    How can a planning version be frozen and unfrozen?
    A Planning Version can be frozen and unfrozen using Function Module /SAPAPO/TS_PAREA_VERSIO_FREEZE so that no further changes to the planning version can be done.
    What is Release Profile?
    Release Profile is used to release timeseries data from DP to SNP/PPDS. You need to define the DP Planning Area and timeseries keyfigure the data in which is released and the SNP Category Type (typically FA) to which data is released. You may maintain a Daily Buckets Profile it will define the number of working days (working days determined based on Shipping Calendar maintained for the location master) starting on and from the From Date if released online/ interactively or that many workdays of the planning horizon when release is carried out in background. The Period Split (blank, 1 and 2) field in the SNP2 tab of location-product master determines how demand plan is released to SNP from DP (how bucketed data is disaggregated to the workdays).
    What is the usage of Period Factor?
    Period Factor maintained in the SNP PPM or Transportation Lane determines the Availability Date of a Receipt element within a time bucket (period). The system determines the exact availability date/time of the receipt elements within a period, by adding a time interval (that it gets by multiplying the period factor with the period length) to the start time of the period. You can enter a factor between 0 and 1, where 0 is the start of the period, 0.5 the middle, and 1 the end of the period. When calculating the availability date/time, the system takes into consideration all weekdays, meaning that it does not take into consideration any days that have been defined as non-workdays in the calendars.
    Period Factor used is .71 = 7x0.71 = 4.97 or 5 days from ptimizer of weekly bucket resulting in a Friday.
    If Period Factor is not maintained in PPM or Transportation Lane then the User Period Factor indicator and the Period Factor value maintained in the Lot Size tab of the location-product combination is used. If this is not maintained a default value of 0.5 is used.
    What determines stock categories displayed in Stock on Hand keyfigure?
    The categories defined in Category Group ST1 (can be maintained in table /SAPAPO/APOCGC) determine the stock categories that are displayed in the Initial bucket in the Stock on Hand keyfigure. Subsequent buckets are dynamically computed.
    Does dynamic alerts show up in Alert Monitor?
    Dynamic Alerts do not show up in the stand-alone alert monitor. Network alerts are to show pegging relationships.
    What is the report to execute MASSD?
    The report for executing MassD in background job is MASSBACK.
    What is the shortcut to change location type in APO?
    Report /SAPAPO/CHECK_LOCATION_TYPE can be used to change location type (say from 1001 to 1002 or vice-versa) of existing locations in APO. The table to refer is /SAPAPO/LOCMAP. SAP does not recommend this process.
    How can a transaction be executed even when no authorization?
    SE93 - Transaction code for Transaction Code E.g. CRC1 Create Resource has txn code CRAH. So if you do not have authorization to create resource you can use SE93 and enter txn CRAH and then Test F8 button to go to the txn.
    How to copy a Process Chain?
    To copy a process chain to another process chain, goto the Process Chain you want to copy and then type copy in the tool tar and hit enter. It will allow you to copy the Process Chain to another Process Chain that can be modified as per user's requirement, saved, activated and used.
    What is the process to copy planning versions in R/3?
    Use OLIX to first delete previous MRP planning versions. Then use MCB& to create the new MRP planning versions by choosing the appropriate version you want to create as ICO Version. The info structure in this case is S094.
    How to use create planning book with two tables?
    To use two tables on one screen of Planning Book/Data View - select indicator next to second page title and give name. Additional tab page is displayed in Planning Book Maintenance wizard to define the keyfigures for the second table.
    What is Master Data in DP?
    Master Data in Demand Planning primarily is Charcateristic Value Combinations commonly termed CVCs. CVCs are the planning combinations against which data is stored in keyfigures.
    What is the behaviour of Procurement Type X?
    Procurement Type X - source selection is based on matching due date then priority then cost. If both In-house Production and External Procuremnet is possible then In-house Production (PPM) is chosen as source of supply.
    What is PPDS Fixing Horizon?
    PP/DS fixing Horizon defines the PP/DS time Fence - within that period if heuristic is run no orders get changed.
    What is the reuse mode in Product Heuristic?
    Reuse mode in Product Heuristic - makes the system to reuse orders already present in the heuristic run i.e. orders are not deleted and recreated.
    What is Planning Procedure?
    Planning Procedure in Product Master (PP/DS) defines that when you convert a planned order to process order it is in Deallocated state and not Scheduled state and more.
    <u><i><b>Award me if helpful</b></i></u>
    Regards
    Srikanth

  • Group degradation in perceived performance

    Hi there,
    We recently upgraded to SDK 4.5.1 and noticed that our application took a hit in perceived responsiveness in the process. After digging around a bit I ran into a change in the Group class that is responsible for this degradation, the change itself is in bold:
        override public function set scrollRect(value:Rectangle):void    {        // Work-around for Flash Player bug: if GraphicElements share        // the Group's Display Object and cacheAsBitmap is true, the        // scrollRect won't function correctly.         var previous:Boolean = canShareDisplayObject;        super.scrollRect = value;         if (numGraphicElements > 0 && previous != canShareDisplayObject)            invalidateDisplayObjectOrdering();          if (mouseEnabledWhereTransparent && hasMouseListeners)        {                    // Re-render our mouse event fill if necessary.            redrawRequested = true;            super.$invalidateDisplayList();        }    }
    Below please find a small application that illustrates this problem. Note that I have monkey patched Group in the default package so that it is possible to compile with and without the code above. I find that a large screen and Chrome help showcase the problem.
    The part that I am not getting is what was the code in bold trying to fix in the first place?
    Thanks!!
    ~ Miguel
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        minWidth="955" minHeight="600"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:local="*">
        <fx:Script>
            <![CDATA[
                private var _moveMode:Boolean = false;
                protected function monkeypatchedgroup1_mouseMoveHandler(event:MouseEvent):void
                    // TODO Auto-generated method stub
                    if (_moveMode)
                        redBox.x = event.stageX;
                        redBox.y = event.stageY;
                protected function bordercontainer1_mouseDownHandler(event:MouseEvent):void
                    // TODO Auto-generated method stub
                    _moveMode = true;
                protected function monkeypatchedgroup1_mouseUpHandler(event:MouseEvent):void
                    // TODO Auto-generated method stub
                    _moveMode = false;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <local:MonkeyPatchedGroup
            width="100%" height="100%"
            mouseMove="monkeypatchedgroup1_mouseMoveHandler(event)"
            mouseUp="monkeypatchedgroup1_mouseUpHandler(event)">
            <s:BorderContainer id="redBox"
                width="50" height="50"
                backgroundColor="red"
                mouseDown="bordercontainer1_mouseDownHandler(event)"/>
        </local:MonkeyPatchedGroup>
    </s:Application>
    Here is the monkey patched group:
    //  ADOBE SYSTEMS INCORPORATED
    //  Copyright 2008 Adobe Systems Incorporated
    //  All Rights Reserved.
    //  NOTICE: Adobe permits you to use, modify, and distribute this file
    //  in accordance with the terms of the license agreement accompanying it.
    package
        import flash.display.BlendMode;
        import flash.display.DisplayObject;
        import flash.geom.Rectangle;
        import mx.core.FlexVersion;
        import mx.core.IFlexModule;
        import mx.core.IFontContextComponent;
        import mx.core.IUIComponent;
        import mx.core.IUITextField;
        import mx.core.IVisualElement;
        import mx.core.IVisualElementContainer;
        import mx.core.UIComponent;
        import mx.core.mx_internal;
        import mx.events.FlexEvent;
        import mx.graphics.shaderClasses.ColorBurnShader;
        import mx.graphics.shaderClasses.ColorDodgeShader;
        import mx.graphics.shaderClasses.ColorShader;
        import mx.graphics.shaderClasses.ExclusionShader;
        import mx.graphics.shaderClasses.HueShader;
        import mx.graphics.shaderClasses.LuminosityShader;
        import mx.graphics.shaderClasses.SaturationShader;
        import mx.graphics.shaderClasses.SoftLightShader;
        import mx.styles.IAdvancedStyleClient;
        import mx.styles.ISimpleStyleClient;
        import mx.styles.IStyleClient;
        import mx.styles.StyleProtoChain;
        import spark.components.ResizeMode;
        import spark.components.supportClasses.GroupBase;
        import spark.core.DisplayObjectSharingMode;
        import spark.core.IGraphicElement;
        import spark.core.IGraphicElementContainer;
        import spark.core.ISharedDisplayObject;
        import spark.events.ElementExistenceEvent;
        use namespace mx_internal;
        //  Events
         *  Dispatched when a visual element is added to the content holder.
         *  <code>event.element</code> is the visual element that was added.
         *  @eventType spark.events.ElementExistenceEvent.ELEMENT_ADD
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
        [Event(name = "elementAdd", type = "spark.events.ElementExistenceEvent")]
         *  Dispatched when a visual element is removed from the content holder.
         *  <code>event.element</code> is the visual element that's being removed.
         *  @eventType spark.events.ElementExistenceEvent.ELEMENT_REMOVE
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
        [Event(name = "elementRemove", type = "spark.events.ElementExistenceEvent")]
        //  Styles
         *  Color of text shadows.
         *  @default #FFFFFF
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
        [Style(name = "textShadowColor", type = "uint", format = "Color", inherit = "yes", theme = "mobile")]
         *  Alpha of text shadows.
         *  @default 0.55
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
        [Style(name = "textShadowAlpha", type = "Number", inherit = "yes", minValue = "0.0", maxValue = "1.0", theme = "mobile")]
        //  Excluded APIs
        [Exclude(name = "addChild", kind = "method")]
        [Exclude(name = "addChildAt", kind = "method")]
        [Exclude(name = "removeChild", kind = "method")]
        [Exclude(name = "removeChildAt", kind = "method")]
        [Exclude(name = "setChildIndex", kind = "method")]
        [Exclude(name = "swapChildren", kind = "method")]
        [Exclude(name = "swapChildrenAt", kind = "method")]
        [Exclude(name = "numChildren", kind = "property")]
        [Exclude(name = "getChildAt", kind = "method")]
        [Exclude(name = "getChildIndex", kind = "method")]
        //  Other metadata
        [ResourceBundle("components")]
        [DefaultProperty("mxmlContent")]
        [IconFile("Group.png")]
         *  The Group class is the base container class for visual elements.
         *  The Group container takes as children any components that implement
         *  the IUIComponent interface, and any components that implement
         *  the IGraphicElement interface.
         *  Use this container when you want to manage visual children,
         *  both visual components and graphical components.
         *  <p>To improve performance and minimize application size,
         *  the Group container cannot be skinned.
         *  If you want to apply a skin, use the SkinnableContainer instead.</p>
         *  <p><b>Note:</b> The scale grid might not function correctly when there
         *  are DisplayObject children inside of the Group, such as a component
         *  or another Group.  If the children are GraphicElement objects, and
         *  they all share the Group's DisplayObject, then the scale grid works
         *  properly.</p>
         *  <p>Setting any of the following properties on a GraphicElement child
         *  requires that GraphicElement to create its own DisplayObject,
         *  thus negating the scale grid properties on the Group.</p>
         *  <pre>
         *  alpha
         *  blendMode other than BlendMode.NORMAL or "auto"
         *  colorTransform
         *  filters
         *  mask
         *  matrix
         *  rotation
         *  scaling
         *  3D properties
         *  bounds outside the extent of the Group
         *  </pre>
         *  <p>The Group container has the following default characteristics:</p>
         *  <table class="innertable">
         *     <tr><th>Characteristic</th><th>Description</th></tr>
         *     <tr><td>Default size</td><td>Large enough to display its children</td></tr>
         *     <tr><td>Minimum size</td><td>0 pixels</td></tr>
         *     <tr><td>Maximum size</td><td>10000 pixels wide and 10000 pixels high</td></tr>
         *  </table>
         *  @mxml
         *  <p>The <code>&lt;s:Group&gt;</code> tag inherits all of the tag
         *  attributes of its superclass and adds the following tag attributes:</p>
         *  <pre>
         *  &lt;s:Group
         *    <strong>Properties</strong>
         *    blendMode="auto"
         *    mxmlContent="null"
         *    scaleGridBottom="null"
         *    scaleGridLeft="null"
         *    scaleGridRight="null"
         *    scaleGridTop="null"
         *    <strong>Events</strong>
         *    elementAdd="<i>No default</i>"
         *    elementRemove="<i>No default</i>"
         *  /&gt;
         *  </pre>
         *  @see spark.components.DataGroup
         *  @see spark.components.SkinnableContainer
         *  @includeExample examples/GroupExample.mxml
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
        public class MonkeyPatchedGroup extends GroupBase implements IVisualElementContainer, IGraphicElementContainer, ISharedDisplayObject
             *  Constructor.
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function MonkeyPatchedGroup():void
                super();
            //  Variables
            private var needsDisplayObjectAssignment:Boolean = false;
            private var layeringMode:uint = ITEM_ORDERED_LAYERING;
            private var numGraphicElements:uint = 0;
            private static const ITEM_ORDERED_LAYERING:uint = 0;
            private static const SPARSE_LAYERING:uint = 1;
            //  Overridden properties
            //  baselinePosition
             *  @inheritDoc
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            override public function get baselinePosition():Number
                if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_5)
                    return super.baselinePosition;
                if (!validateBaselinePosition())
                    return NaN;
                var bElement:IVisualElement = baselinePositionElement;
                // If no baselinePositionElement is specified, use the first element
                if (bElement == null)
                    for (var i:int = 0; i < numElements; i++)
                        var elt:IVisualElement = getElementAt(i);
                        if (elt.includeInLayout)
                            bElement = elt;
                            break;
                if (bElement)
                    return bElement.baselinePosition + bElement.y;
                else
                    return super.baselinePosition;
            [Inspectable(category = "General", enumeration = "noScale,scale", defaultValue = "noScale")]
             *  @private
            override public function set resizeMode(value:String):void
                if (isValidScaleGrid())
                    // Force the resize mode to be scale if we
                    // have set scaleGrid properties
                    value = ResizeMode.SCALE;
                super.resizeMode = value;
             *  @private
            override public function set scrollRect(value:Rectangle):void
                // Work-around for Flash Player bug: if GraphicElements share
                // the Group's Display Object and cacheAsBitmap is true, the
                // scrollRect won't function correctly.
                var previous:Boolean = canShareDisplayObject;
                super.scrollRect = value;
                if (numGraphicElements > 0 && previous != canShareDisplayObject)
                    invalidateDisplayObjectOrdering();
                if (mouseEnabledWhereTransparent && hasMouseListeners)
                    // Re-render our mouse event fill if necessary.
                    redrawRequested = true;
                    trace("Calling invalidateDisplayList in GroupBase");
                    super.$invalidateDisplayList();
             * @private
            override mx_internal function set hasMouseListeners(value:Boolean):void
                if (mouseEnabledWhereTransparent)
                    redrawRequested = true;
                super.hasMouseListeners = value;
             *  @private
            override public function set width(value:Number):void
                if (_width != value)
                    if (mouseEnabledWhereTransparent && hasMouseListeners)
                        // Re-render our mouse event fill if necessary.
                        redrawRequested = true;
                        super.$invalidateDisplayList();
                super.width = value;
             *  @private
            override public function set height(value:Number):void
                if (_height != value)
                    if (mouseEnabledWhereTransparent && hasMouseListeners)
                        // Re-render our mouse event fill if necessary.
                        redrawRequested = true;
                        super.$invalidateDisplayList();
                super.height = value;
            //  Properties
            //  alpha
            [Inspectable(defaultValue = "1.0", category = "General", verbose = "1")]
             *  @private
            override public function set alpha(value:Number):void
                if (super.alpha == value)
                    return;
                if (_blendMode == "auto")
                    // If alpha changes from an opaque/transparent (1/0) and translucent
                    // (0 < value < 1), then trigger a blendMode change
                    if ((value > 0 && value < 1 && (super.alpha == 0 || super.alpha == 1)) || ((value == 0 || value == 1) && (super.alpha > 0 && super.alpha < 1)))
                        blendModeChanged = true;
                        invalidateDisplayObjectOrdering();
                        invalidateProperties();
                super.alpha = value;
            //  baselinePositionElement
            private var _baselinePositionElement:IVisualElement;
             *  The element used to calculate the GroupBase's baselinePosition
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function get baselinePositionElement():IVisualElement
                return _baselinePositionElement;
             *  @private
            public function set baselinePositionElement(value:IVisualElement):void
                if (value === _baselinePositionElement)
                    return;
                _baselinePositionElement = value;
                invalidateParentSizeAndDisplayList();
            //  blendMode
             *  @private
             *  Storage for the blendMode property.
            private var _blendMode:String = "auto";
            private var blendModeChanged:Boolean;
            private var blendShaderChanged:Boolean;
            [Inspectable(category = "General", enumeration = "auto,add,alpha,darken,difference,erase,hardlight,invert,layer,lighten,multiply,normal,subtract,screen,overlay,colordodge,colorburn,exclusion,softlight,hue,saturation,color,luminosity", defaultValue = "auto")]
             *  A value from the BlendMode class that specifies which blend mode to use.
             *  A bitmap can be drawn internally in two ways.
             *  If you have a blend mode enabled or an external clipping mask, the bitmap is drawn
             *  by adding a bitmap-filled square shape to the vector render.
             *  If you attempt to set this property to an invalid value,
             *  Flash Player or Adobe AIR sets the value to <code>BlendMode.NORMAL</code>.
             *  <p>A value of "auto" (the default) is specific to Group's use of
             *  blendMode and indicates that the underlying blendMode should be
             *  <code>BlendMode.NORMAL</code> except when <code>alpha</code> is not
             *  equal to either 0 or 1, when it is set to <code>BlendMode.LAYER</code>.
             *  This behavior ensures that groups have correct
             *  compositing of their graphic objects when the group is translucent.</p>
             *  @default "auto"
             *  @see flash.display.DisplayObject#blendMode
             *  @see flash.display.BlendMode
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            override public function get blendMode():String
                return _blendMode;
             *  @private
            override public function set blendMode(value:String):void
                if (value == _blendMode)
                    return;
                invalidateProperties();
                blendModeChanged = true;
                //The default blendMode in FXG is 'auto'. There are only
                //certain cases where this results in a rendering difference,
                //one being when the alpha of the Group is > 0 and < 1. In that
                //case we set the blendMode to layer to avoid the performance
                //overhead that comes with a non-normal blendMode.
                if (value == "auto")
                    _blendMode = value;
                    // SDK-29631: Use super.$blendMode instead of super.blendMode
                    // since Group completely overrides blendMode and we
                    // want to bypass the extra logic in UIComponent which
                    // has its own override.
                    // TODO (egeorgie): figure out whether we can share some
                    // of that logic in the future.
                    if (((alpha > 0 && alpha < 1) && super.$blendMode != BlendMode.LAYER) || ((alpha == 1 || alpha == 0) && super.$blendMode != BlendMode.NORMAL))
                        invalidateDisplayObjectOrdering();
                else
                    var oldValue:String = _blendMode;
                    _blendMode = value;
                    // If one of the non-native Flash blendModes is set,
                    // record the new value and set the appropriate
                    // blendShader on the display object.
                    if (isAIMBlendMode(value))
                        blendShaderChanged = true;
                    // Only need to re-do display object assignment if blendmode was normal
                    // and is changing to something else, or the blend mode was something else
                    // and is going back to normal.  This is because display object sharing
                    // only happens when blendMode is normal.
                    if ((oldValue == BlendMode.NORMAL || value == BlendMode.NORMAL) && !(oldValue == BlendMode.NORMAL && value == BlendMode.NORMAL))
                        invalidateDisplayObjectOrdering();
            //  mxmlContent
            private var mxmlContentChanged:Boolean = false;
            private var _mxmlContent:Array;
            [ArrayElementType("mx.core.IVisualElement")]
             *  The visual content children for this Group.
             *  This method is used internally by Flex and is not intended for direct
             *  use by developers.
             *  <p>The content items should only be IVisualElement objects.
             *  An <code>mxmlContent</code> Array should not be shared between multiple
             *  Group containers because visual elements can only live in one container
             *  at a time.</p>
             *  <p>If the content is an Array, do not modify the Array
             *  directly. Use the methods defined by the Group class instead.</p>
             *  @default null
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function set mxmlContent(value:Array):void
                if (createChildrenCalled)
                    setMXMLContent(value);
                else
                    mxmlContentChanged = true;
                    _mxmlContent = value;
                        // we will validate this in createChildren();
             *  @private
            mx_internal function getMXMLContent():Array
                if (_mxmlContent)
                    return _mxmlContent.concat();
                else
                    return null;
             *  @private
             *  Adds the elements in <code>mxmlContent</code> to the Group.
             *  Flex calls this method automatically; you do not call it directly.
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            private function setMXMLContent(value:Array):void
                var i:int;
                // if there's old content and it's different than what
                // we're trying to set it to, then let's remove all the old
                // elements first.
                if (_mxmlContent != null && _mxmlContent != value)
                    for (i = _mxmlContent.length - 1; i >= 0; i--)
                        elementRemoved(_mxmlContent[i], i);
                _mxmlContent = (value) ? value.concat() : null; // defensive copy
                if (_mxmlContent != null)
                    var n:int = _mxmlContent.length;
                    for (i = 0; i < n; i++)
                        var elt:IVisualElement = _mxmlContent[i];
                        // A common mistake is to bind the viewport property of a Scroller
                        // to a group that was defined in the MXML file with a different parent   
                        if (elt.parent && (elt.parent != this))
                            throw new Error(resourceManager.getString("components", "mxmlElementNoMultipleParents",
                                                                      [ elt ]));
                        elementAdded(elt, i);
            //  Properties: ScaleGrid
            private var scaleGridChanged:Boolean = false;
            // store the scaleGrid into a rectangle to save space (top, left, bottom, right);
            private var scaleGridStorageVariable:Rectangle;
            //  scale9Grid
             *  @private
            override public function set scale9Grid(value:Rectangle):void
                if (value != null)
                    scaleGridTop = value.top;
                    scaleGridBottom = value.bottom;
                    scaleGridLeft = value.left;
                    scaleGridRight = value.right;
                else
                    scaleGridTop = NaN;
                    scaleGridBottom = NaN;
                    scaleGridLeft = NaN;
                    scaleGridRight = NaN;
            //  scaleGridBottom
            [Inspectable(category = "General")]
             *  Specifies the bottom coordinate of the scale grid.
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function get scaleGridBottom():Number
                if (scaleGridStorageVariable)
                    return scaleGridStorageVariable.height;
                return NaN;
            public function set scaleGridBottom(value:Number):void
                if (!scaleGridStorageVariable)
                    scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
                if (value != scaleGridStorageVariable.height)
                    scaleGridStorageVariable.height = value;
                    scaleGridChanged = true;
                    invalidateProperties();
                    invalidateDisplayList();
            //  scaleGridLeft
            [Inspectable(category = "General")]
             * Specifies the left coordinate of the scale grid.
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function get scaleGridLeft():Number
                if (scaleGridStorageVariable)
                    return scaleGridStorageVariable.x;
                return NaN;
            public function set scaleGridLeft(value:Number):void
                if (!scaleGridStorageVariable)
                    scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
                if (value != scaleGridStorageVariable.x)
                    scaleGridStorageVariable.x = value;
                    scaleGridChanged = true;
                    invalidateProperties();
                    invalidateDisplayList();
            //  scaleGridRight
            [Inspectable(category = "General")]
             * Specifies the right coordinate of the scale grid.
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function get scaleGridRight():Number
                if (scaleGridStorageVariable)
                    return scaleGridStorageVariable.width;
                return NaN;
            public function set scaleGridRight(value:Number):void
                if (!scaleGridStorageVariable)
                    scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
                if (value != scaleGridStorageVariable.width)
                    scaleGridStorageVariable.width = value;
                    scaleGridChanged = true;
                    invalidateProperties();
                    invalidateDisplayList();
            //  scaleGridTop
            [Inspectable(category = "General")]
             * Specifies the top coordinate of the scale grid.
             *  @langversion 3.0
             *  @playerversion Flash 10
             *  @playerversion AIR 1.5
             *  @productversion Flex 4
            public function get scaleGridTop():Number
                if (scaleGridStorageVariable)
                    return scaleGridStorageVariable.y;
                return NaN;
            public function set scaleGridTop(value:Number):void
                if (!scaleGridStorageVariable)
                    scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
                if (value != scaleGridStorageVariable.y)
                    scaleGridStorageVariable.y = value;
                    scaleGridChanged = true;
                    invalidateProperties();
                    invalidateDisplayList();
            private function isValidScaleGrid():Boolean
                return !isNaN(scaleGridLeft) && !isNaN(scaleGridTop) && !isNaN(scaleGridRight) && !isNaN(scaleGridBottom);
            //  Overridden methods: UIComponent
             *  @private
             *  Whether createChildren() has been called or not.
             *  We use this in the setter for mxmlContent to know
             *  whether to validate the value immediately, or just
             *  wait to let createChildren() do it.
            private var createChildrenCalled:Boolean = false;
             *  @private
            override protected function createChildren():void
                super.createChildren();
                createChildrenCalled = true;
                if (mxmlContentChanged)
                    mxmlContentChanged = false;
                    setMXMLContent(_mxmlContent);
             *  @private
            override public function validateProperties():void
                super.validateProperties();
                // Property validation happens top-down, so now let's
                // validate graphic element properties after
                // calling super.validateProperties()
                if (numGraphicElements > 0)
                    var length:int = numElements;
                    for (var i:int = 0; i < length; i++)
                        var element:IGraphicElement = getElementAt(i) as IGraphicElement;
                        if (element)
                            element.validateProperties();
             *  @private
            override protected function commitProperties():void
                super.commitProperties();
                invalidatePropertiesFlag = false;
                if (blendModeChanged)
                    blendModeChanged = false;
                    // Figure out the correct blendMode value
                    // to set.
                    // SDK-29631: Use super.$blendMode instead of super.blendMode
                    // since Group completely overrides blendMode and we
                    // want to bypass the extra logic in UIComponent which
                    // has its own override.
                    // TODO (egeorgie): figure out whether we can share some
                    // of that logic in the future.
                    if (_blendMode == "auto")
                        if (alpha == 0 || alpha == 1)
                            super.$blendMode = BlendMode.NORMAL;
                        else
                            super.$blendMode = BlendMode.LAYER;
                    else if (!isAIMBlendMode(_blendMode))
                        super.$blendMode = _blendMode;
                    if (blendShaderChanged)
                        // The graphic element's blendMode was set to a non-Flash
                        // blendMode. We mimic the look by instantiating the
                        // appropriate shader class and setting the blendShader
                        // property on the displayObject.
                        blendShaderChanged = false;
                        switch (_blendMode)
                            case "color":
                                super.blendShader = new ColorShader();
                                break;
                            case "colordodge":
                                super.blendShader = new ColorDodgeShader();
                                break;
                            case "colorburn":
                                super.blendShader = new ColorBurnShader();
                                break;
                            case "exclusion":
                                super.blendShader = new ExclusionShader();
                                break;
                            case "hue":
                                super.blendShader = new HueShader();
                                break;
                            case "luminosity":
                                super.blendShader = new LuminosityShader();
                                break;
                            case "saturation":
                                super.blendShader = new SaturationShader();
                                break;
                            case "softlight":
                                super.blendShader = new SoftLightShader();
                                break;
                // Due to dependent properties alpha and blendMode there may be a need
                // for a second pass at committing properties (to ensure our new
                // blendMode or blendShader is assigned to our underlying display
                // object).
                if (invalidatePropertiesFlag)
                    super.commitProperties();
                    invalidatePropertiesFlag = false;
                if (needsDisplayObjectAssignment)
                    needsDisplayObjectAssignment = false;
                    assignDisplayObjects();
                if (scaleGridChanged)
                    // Don't reset scaleGridChanged since we also check it in updateDisplayList
                    if (isValidScaleGrid())
                        resizeMode = ResizeMode.SCALE; // Force the resizeMode to scale
             *  @private
            override public function validateSize(recursive:Boolean = false):void
                // Since IGraphicElement is not ILayoutManagerClient, we need to make sure we
                // validate sizes of the elements, even in cases where recursive==false.
                // Size validation happens bottom-up, so now let's
                // validate graphic element size before
                // calling super.validateSize()
                if (numGraphicElements > 0)
                    var length:int = numElements;
                    for (var i:int = 0; i < length; i++)
                        var element:IGraphicElement = getElementAt(i) as IGraphicElement;
                        if (element)
                            element.validateSize();
                super.validateSize(recursive);
             *  @private
            override public function setActualSize(w:Number, h:Number):void
                if (_width != w || _height != h)
                    if (mouseEnabledWhereTransparent && hasMouseListeners)
                        // Re-render our mouse event fill if necessary.
                        redrawRequested = true;
                        super.$invalidateDisplayList();
                super.setActualSize(w, h);
             *  @private
            override public function validateDisplayList():void
                // call super.validateDisplayList() and let updateDisplayList() run
                super.validateDisplayList();
                // If the DisplayObject assignment is still not completed, then postpone validation
                // of the GraphicElements. invalidateDisplayList() will be called during the next
                // commitProperties() call since needsDisplayObjectAssignment=true,
                // so we will be re-running validateDisplayList() anyways
                if (needsDisplayObjectAssignment && invalidatePropertiesFlag)
                    return;
                // DisplayList validation happens top-down, so we should
                // validate graphic element DisplayList after
                // calling super.validateDisplayList().  This is
                // gets tricky because of graphic-element sharing.  We clear
                // Group's graphic's object in updateDisplayList() and handle the
                // rest of the DisplayList validation in here.
                // Iterate through the graphic elements. If an element has a displayObject that has been
                // invalidated, then validate all graphic elements that draw to this displayObject.
                // The algorithm assumes that all of the elements that share a displayObject are in between
                // the element with the shared displayObject and the next element that has a displayObject.
                var sharedDisplayObject:ISharedDisplayObject = this;
                if (numGraphicElements > 0)
                    var length:int = numElements;
                    for (var i:int = 0; i < length; i++)
                        var element:IGraphicElement = getElementAt(i) as IGraphicElement;
                        if (!element)
                            continue;
                        // Do a special check for layer, we may stumble upon an element with layer != 0
                        // before we're done with the current shared sequence and we don't want to mark
                        // the sequence as valid, until we reach the next sequence.  
                        if (element.depth == 0)
                            // Is this the start of a new shared sequence?         
                            if (element.displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT)
                                // We have finished redrawing the previous sequence
                                if (sharedDisplayObject)
                                    sharedDisplayObject.redrawRequested = false;
                                // Start the new sequence
                                sharedDisplayObject = element.displayObject as ISharedDisplayObject;
                            if (!sharedDisplayObject || sharedDisplayObject.redrawRequested)
                                element.validateDisplayList();
                        else
                            // If we have layering, we don't share the display objects.
                            // Don't update the current sharedDisplayObject
                            var elementDisplayObject:ISharedDisplayObject = element.displayObject as ISharedDisplayObject;
                            if (!elementDisplayObject || elementDisplayObject.redrawRequested)
                                element.validateDisplayList();
                                if (elementDisplayObject)
                                    elementDisplayObject.redrawRequested = false;
                // Mark the last shared displayObject valid
                if (sharedDisplayObject)
                    sharedDisplayObject.redrawRequested = false;
             *  @private
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                // let user's code (layout) run first before dealing with graphic element
                // sharing because that's when redraws can be requested
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                // Clear the group's graphic because graphic elements might be drawing to it
                // This isn't needed for DataGroup because there's no DisplayObject sharing
                // This code exists in updateDisplayList() as opposed to validateDisplayList()
                // because of compatibility issues since most of this code was
                // refactored from updateDisplayList() and in to validateDisplayList().  User's code
                // already assumed that they could call super.updateDisplayList() and then be able to draw
                // into the Group's graphics object.  Because of that, the graphics.clear() call is left
                // in updateDisplayList() instead of in validateDisplayList() with the rest of the graphic
                // element sharing code.
                var sharedDisplayObject:ISharedDisplayObject = this;
                if (sharedDisplayObject.redrawRequested)
                    // clear the graphics here.  The pattern is usually to call graphics.clear()
                    // before calling super.updateDisplayList() so what happens in super.updateDisplayList()
                    // isn't erased.  However, in this case, what happens in super.updateDisplayList() isn't
                    // much, and we want to make sure super.updateDisplayList() runs first since the layout
                    // is what actually triggers the the shareDisplayObject to request to be redrawn.
                    graphics.clear();
                    drawBackground();
                    // If a scaleGrid is set, make sure the extent of the groups bounds are filled so
                    // the player will scale our contents as expected.
                    if (isValidScaleGrid() && resizeMode == ResizeMode.SCALE)
                        graphics.lineStyle();
                        graphics.beginFill(0, 0);
                        graphics.drawRect(0, 0, 1, 1);
                        graphics.drawRect(measuredWidth - 1, measuredHeight - 1, 1, 1);
                        graphics.endFill();
                if (scaleGridChanged)
                    scaleGridChanged = false;
                    if (isValidScaleGrid())
                        // Check for DisplayObjects other than overlays
                        var overlayCount:int = _overlay ? _overlay.numDisplayObjects : 0;
                        if (numChildren - overlayCount > 0)
                            throw new Error(resourceManager.getString("components", "scaleGridGroupError"));
                        super.scale9Grid = new Rectangle(scaleGridLeft,
                                                         scaleGridTop,
                                                         scaleGridRight - scaleGridLeft,
                                                         scaleGridBottom - scaleGridTop);
                    else
                        super.scale9Grid = null;
             *  @private
             *  TODO (rfrishbe): Most of this code is a duplicate of UIComponent::notifyStyleChangeInChildren,
             *  refactor as appropriate to avoid code duplication once we have a common
             *  child iterator between UIComponent and Group.
            override public function notifyStyleChangeInChildren(
                styleProp:String, recursive:Boolean):void
                if (mxmlContentChanged || !recursive)
                    return;
                var n:int = numElements;
                for (var i:int = 0; i < n; i++)
                    var child:ISimpleStyleClient = getElementAt(i) as ISimpleStyleClient;
                    if (child)
                        child.styleChanged(styleProp);
                        if (child is IStyleClient)
                            IStyleClient(child).notifyStyleChangeInChildren(styleProp,
                                                                            recursive);
                if (advanceStyleClientChildren != null)
                    for (var styleClient:Object in advanceStyleClientChildren)
                        var iAdvanceStyleClientChild:IAdvancedStyleClient = styleClient as IAdvancedStyleClient;
                        if (iAdvanceStyleClientChild)
                            iAdvanceStyleClientChild.styleChanged(styleProp);
             *  @private
             *  TODO (rfrishbe): Most of this code is a duplicate of UIComponent::regenerateStyleCache,
             *  refactor as appropriate to avoid code duplication once we have a common
             *  child iterator between UIComponent and Group.
            override public function regenerateStyleCache(recursive:Boolean):void
                // Regenerate the proto chain for this object
                initProtoChain();
                // Recursively call this method on each child.
                var n:int = numElements;
                for (var i:int = 0; i < n; i++)
                    var child:IVisualElement = getElementAt(i);
                    if (child is IStyleClient)
                        // Does this object already have a proto chain?
                        // If not, there's no need to regenerate a new one.
                        if (IStyleClient(child).inheritingStyles != StyleProtoChain.STYLE_UNINITIALIZED)
                            IStyleClient(child).regenerateStyleCache(recursive);
                    else if (child is IUITextField)
                        // Does this object already have a proto chain?
                        // If not, there's no need to regenerate a new one.
                        if (IUITextField(child).inheritingStyles)
                            StyleProtoChain.initTextField(IUITextField(child));
                // Call this method on each non-visual StyleClient
                if (advanceStyleClientChildren != null)
                    for (var styleClient:Object in advanceStyleClientChildren)
                        var iAdvanceStyleClientChild:IAdvancedStyleClient = styleClient as IAdvancedStyleClient;
                        if (iAdvanceStyleClientChild && iAdvanceStyleClientChild.inheritingStyles != StyleProtoChain.STYLE_UNINITIALIZED)
                            iAdvanceStyleClientChild.regenerateStyleCache(recursive);
            //  Content management
             *  @private
            override public function get numElements():int
                if (_mxmlContent == null)
                    return 0;
                return _mxmlContent.length;
             *  @private
            override public function getElementAt(index:int):IVisualElement
                // check for RangeError:
                checkForRangeError(index);
                return _mxmlContent[index];
             *  @private
             *  Checks the range of index to make sure it's valid
            private function checkForRangeError(index:int, addingElement:Boolean = false):void
                // figure out the maximum allowable index
                var maxIndex:int = (_mxmlContent == null ? -1 : _mxmlContent.length - 1);
                // if adding an element, we allow an extra index at the end
                if (addingElement)
                    maxIndex++;
                if (index < 0 || index > maxIndex)
                    throw new RangeError(resourceManager.getString("components", "indexOutOfRange",
                                                                   [ index ]));
             * @private
            private function isAIMBlendMode(value:String):Boolean
                if (value == "colordodge" || value == "colorburn" || value == "exclusion" || value == "softlight" || value == "hue" || value == "saturatio

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • Basic TableUI element to Reset Data in WEbDynPro For Java

    Hi Experts,
    I am new to webdynPro for java . Can anybody plz help me out.
    i wrote the following code to retrieve data from DB. which is working very much fine.
    public void
    onActionGetRecords(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    while(rs.next()){
    tabstrip.comp.wdp.IPrivateSearchEmployee.IEmpDetailsElement elt= wdContext.nodeEmpDetails().createEmpDetailsElement();
                          elt.setSNo(rs.getString(1));
                          elt.setName(rs.getString(2));
                          elt.setPlatform(rs.getString(3));
                          elt.setPhNo(rs.getString(4));
                          elt.setCity(rs.getString(5));
                          wdContext.nodeEmpDetails().addElement(elt);
    Now my problem is when i call this action its adding the rows to Table UI elements.
    Can anybody please help
    how to reset values in TableUI element when i click on reset button OR when i call onActionGetRecords(-----) methods,
    Please help me .....
    thanks and Regards,
    Shashikiran

    hi,
    if you want the data to be erased(reset)
    in your code
    tabstrip.comp.wdp.IPrivateSearchEmployee.IEmpDetailsElement elt= wdContext.nodeEmpDetails().createEmpDetailsElement();
    elt.setName("");
    elt.setPlatform("");
    elt.setCity("");
    wdContext.nodeEmpDetails().addElement(elt);
    by this way you can reset all the values present in the table
    and can you make it more clear for on action getrecords
    or  you acn use the remove method to remove the table element
    wdContext.nodeXXX().removeElement();
    thanks and regards
    fazal
    Edited by: fazal ahamed on Apr 2, 2008 4:10 PM

Maybe you are looking for