Using a custom Viewstack inside another gives an error

Hi, can anybody tell me why using two custom ViewStacks components inside one another I get this (workspace log) error?
"Custom component model has recursive definition: components.ViewStack"
My component ViewStack.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:ViewStack xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">
</mx:ViewStack>
MyApplication.mxml
    <c:ViewStack id="views" >
        <c:ViewStack id="mainViews2" >   
        </c:ViewStack>
    </c:ViewStack>  
Any combination involving the real mx:ViewStack works fine.
Using FlashBuilder 4.5
Thanks

Thank you. This did the trick
package components {
    import mx.containers.ViewStack;
    public class ViewStack extends mx.containers.ViewStack {
        public function ViewStack() {
            super();
            percentWidth = 100;
            percentHeight = 100;

Similar Messages

  • Using a custom tag inside another tag's attribute value?

    Hi all,
    I have a custom tag, mytag:link, whose use currently looks like this:<mytag:link path="/images/logo.gif"/>Nevermind what the tag does. Here's its TLD:<?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
        <tlib-version>1.1.1</tlib-version>
        <jsp-version>1.2</jsp-version>
        <short-name>My custom tags TLD</short-name>
        <tag>
            <name>link</name>
            <tag-class>test.MyLinkTag</tag-class>
            <body-content>empty</body-content>
            <description>...</description>
            <attribute>
                <name>path</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
        </tag>
    </taglib>I want to replace the path argument of the mytag:link tag to the result of the evaluation of another tag (a SiteMesh decorator tag) like this:<mytag:link path="<decorator:getProperty property="meta.logo"/>"/>This, of course, doesn't work, as I get the following error:org.apache.jasper.JasperException: /decorator.jsp(34,92) equal symbol expected
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
         org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:193)
         org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:143)
         org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1328)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(PageFilter.java:156)
         com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:59) If I replace the call to the other tag with
    <mytag:link path="<%=someVariable%>"/>then it all works fine. This behavior seems correct, as the SiteMesh getProperty tag is writing its output to the Writer returned by pageContext.getOut() as it should. As such, this seems to be a design question, then. How are you supposed to do this?
    Thanks in advance,
    Matthew

    Note that I've also posted a question to the SiteMesh user forums about this. It has more information about the motivation of this question.
    See http://forums.opensymphony.com/thread.jspa?threadID=8561
    I'm still looking for an answer, though.
    --matthew                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Is possible to write a custom tag inside another custom tag ??

    Hi
    I�m trying to reduce the time needed to code mi app presentation layer, it uses some custom tags with certain configuration, i would like to know if its possible to do something like this inside my custom tag doAfterBody().
    public int doAfterBody() throws JspException {
              JspWriter writer=bodyContent.getEnclosingWriter();
              try {
                   writer.print("<customTag:myAnotherTag someEspecificConfigurationParams="someEspecificValues"/>");
              } catch (IOException e) {
                   pageContext.getServletContext().log("Error: "+e.getMessage());
              }return SKIP_BODY;
         }The goal is to simplify the jsp code because the configuration params for the custom tags (css styles and similar) are allways the same.
    That don�t work, it simply prints <customTag:myAnotherTag/> in screen but the tag is not evaluated, i�ve tried too something like
    public int doAfterBody() throws JspException {
              if (repeat) {
                   JspWriter writer = bodyContent.getEnclosingWriter();
                   try {
                        writer.print("<customTag:myAnotherTag/>");
                   } catch (IOException e) {
                        pageContext.getServletContext().log("Error: " + e.getMessage());
                   repeat = false;
                   return EVAL_BODY_AGAIN;
              return SKIP_BODY;
         }And it doesn�t worked worked. Maybe using the taghandler classes and calls to the doAfterBody could make it work, but when you need to nest tags it could be a little hell of coupling calls, so before doing it i would like to know if what i want is possible. After reading some books i tought it could work because the stack of out objects, but i can�t make it work.
    Another idea is to inherit from tagHandler and override some properties in the tags, but i don�t like the idea to much.
    So, can anyone help me??
    Thanks.

    You cannot do that and I have listed out the reason and a possible solution in this post http://forum.java.sun.com/thread.jspa?threadID=697243 from yesterday.
    cheers,
    ram.

  • How to use one hash table inside another hash table

    Hi everyone,
    Any example of hash table inside another hash table.
    Can one here help me how to write one hash table inside another with repeating keys for the first hash table.
    Thanks,
    kanty.

    Do you mean you want the 'value' entries in a hash table to themselves be hash tables? Easy but this often indicates a design flaw.
    Hashtable<String,<Hashtable<String,Value>> fred = new Hashtable<String,<Hashtable<String,Value>> ();But what do you mean by "with repeating keys for the first hash table"?
    Edited by: sabre150 on Jul 2, 2010 10:11 PM
    Looks like you have already handled the declaration side in your other thread. I suspect you should be writing your own beans that hold the information and these beans would then be stored in a Map. The problem I have is that your description is too vague so I can't be certain.

  • Customer master XD01 system gives RUNTIME Error

    Hi all,
    While creating customer master xd01 system takes 10-15 minutes and gives RUNTIME Error.
    can anybody explain it why system behave like this i spoken with my BASIS & ABAPer guy they also dont know the solution
    Your help is required
    Regards,
    Abhijeet

    This is not an SD or even SCN question. Short dump is just a result of time out, but this transaction should not be taking so much time as to time out. There are tools available in SAP to diagnose and troubleshoot the performance. I'm not sure how could neither ABAPer nor Basis admin know about them - you might want to raise this with IT management.
    It's something that has to be analyzed in your system locally, not posted on SCN.

  • Customer self service form gives the error of  "Page cannot be displayed"

    Hi All,
    Customer self service form from Navigation: Recievables -> Customers --> Standard gives the error of "Page cannot be displayed" but the same form gets opened when i navigate that from Order Management responsibility
    Thanks&Regards,
    APPS DBA

    Hi All,
    I have been trying to install the EBS 11i in configured system core 2 duo with 1 gb ram and 250 gb HDD,
    have been following the below steps to install the EBS 11i,
    1.installed Win20003 server edition
    2.VC++ and copyind the link file into windows\system32,
    3.GNU make done the path set everything,
    4.MKS tool kit,
    5IP config and installing MS loopback,
    started the installtion direct from the DVDs,
    Pre-Installtion everything was OK,
    but after done everything I got struck last min, where the popup window appeared as login page responding but i did wait for 30 min and nothing has happened.
    So closed and I restarted the System and I have restarted process putting 1st DVD and given the command rapidwiz -restart.from command prompt.
    and Again its started as a new installtion, and preinstatltion wizard has came.
    where I haeve commited the mistake i did not understand...?
    Please guide me
    regards
    Satya

  • I have just started using the new premiere CC. Gives unknown error when using CBR

    I tried using the same export setting for mpeg2 that I used in CS6, but CC will say Unknown error when I try to export. It will only work with Vpass 1 or 2. Any ideas why?

    Hi MEW1,
    Is the printer connected wirelessly or wired?
    Go to Preferences and under categories go to > Convert to Pdf then select the Image Capture and then hit ok button.
    Close Acrobat and then relaunch it and see if it helps you while you do scanning.
    Regards,
    Rave

  • Using placed/named instances inside another movieclip

    I'm trying to be good and make all my movieclips linked to a
    class file, but I'd still like the convenience of placing and
    naming other instances instead of having to declare a variable,
    instantiating it and addChild-ing it in the class file. Is this
    possible?
    Here's the situation: I've created a library.fla with
    components, for example LCARSButton and LCARSElbow. But now I want
    to build movie clips (inside of library.fla) that use these
    components, for example LCARSPrefs.
    I can create a frame script inside of LCARSPrefs that
    positions the instances of LCARSButton and LCARSElbows that I
    placed and named on the stage of LCARSPrefs. But if I try linking
    LCARSPrefs to a class file, say LCARSPrefs.as, I'll get an 1120
    error telling me that I haven't declared the variables that
    correspond to the instances of LCARSButton and LCARSElbow that I
    placed on the stage.
    Is it impossible to mix these two approaches? If you link to
    a class, are you forced to use code to declare and add instances of
    components?
    I would prefer to have a mix of these approaches because I'm
    trying to create a runtime shared library of components and the
    movies that incorporate these components. For instance, I want
    logs.fla to import LCARSPrefs from the library and I want to see a
    visual representation of that imported instance. But if I can't
    place instances of the components into the LCARSPrefs movieclip
    back in library.fla, I will see nothing when I import it into
    logs.fla.
    I could make LCARSPrefs yet another component, thus giving it
    a livePreview, but that seems overkill to me.
    I'd appreciate any help.
    Thanks,
    Jennifer

    OK, I've attached one solution that just seems horribly
    convoluted to me. I have to create a new variable that's just a
    reference to the placed instance: _square_mc =
    SquareComponent(getChildByName("square_mc"));
    Or is there a simpler method?
    Again, thanks, Jennifer

  • Is it possible to use a seperate form inside another form?

    Hello-
    Creating a new hire vibe process. This process has many components, most of which only new hires need to complete. But there are other areas where both new hires and existing employees may need to complete. Completing a dental insurance application is an example. I currently have a dental insurance form, and a new hire form. Is it possible to add the dental insurance form within the new hire form? Under Layout Options I see an option for Form. I added it to my new hire form but it did not work
    Thanks
    Craig

    Craigcia,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Viewstack inside viewstack?

    hello!
    I'm just creating a simple website. A canvas in the left has
    inside an Accordion and inside of each segment of it I have a
    ToggledButtontBar. So now when I click in a segment of the
    Accordion I access to this Bar on which I have a not visible Button
    toggled (belox Accordion's segment label) and the other buttons.
    This way when I start in a section I have to choose a subsection
    (any of the buttons).
    The Accordion controls a StackView and each of the Bars
    another Stackview within. The problem is there is no way of having
    a viewstack inside another working propertly. Any ideas?
    Thank you!

    You can certainly have a ViewStack inside another ViewStack.
    The following is perfectly legal:
    <mx:ViewStack id="outer">
    ....<mx:Canvas label="First" width="200" height="200"
    backgroundColor="0xFF0000">
    ..........<mx:Button label="Go"
    click="outer.selectedIndex=1;inner.selectedIndex=0" />
    ....</mx:Canvas>
    ....<mx:ViewStack id="inner">
    ..........<mx:Canvas label="Second" width="200"
    height="200" backgroundColor="0x00FF00">
    ...................<mx:Button label="First"
    click="outer.selectedIndex=0" />
    ..........</mx:Canvas>
    ....</mx:ViewStack>
    </mx:ViewStack>

  • Static method ... gives an error

    Program-1
    This is OK.
    Will give expected the output - Hello
    public class test{
    public static void main(String argv[]){
                test t = new test();
         t.Hello();
          public void Hello(){
         System.out.println("Hello");
    Program-2
    This is also OK.
    Will give expected output - Hello
    public class test{
    public static void main(String argv[]){
            Hello();
          public static void Hello(){
         System.out.println("Hello");
    Program-A
    import java.awt.*;
    import java.awt.event.*;
    public class test extends Frame {
    public static void main(String argv[]){
            test mwc = new test();
         mwc.MyWc();
          public void  MyWc(){
            setSize(300,300);
            setVisible(true);
    }This program is much similar to the above Program-1
    This is also give the expected output.
    BUT...
    this is also similar to the above Program-2
    This gives compilation error
    WHY IS THAT ???
    Program-B
    import java.awt.*;
    import java.awt.event.*;
    public class test extends Frame {
    public static void main(String argv[]){
            MyWc();
          public static void  MyWc(){
            setSize(300,300);
            setVisible(true);
    Simply,
    Program-1 and Program-A are logically similar. And they behave as expected.
    (Creating the object and calling the method)
    Also
    Program-2 and Program-B are logically similar.(Seems to be)
    (Call the method without creating the object.used static)
    But why Program-B gives an error ???

    Remember that static methods do not belong to a particular instance of a class. Therefore what are setting the size of and what are you making visible?

  • Custom search using boolean attribute set to True gives no result

    I am setting up an auto-query using the custom search portlet. This is to show all items where a boolean custom attribute is checked, ie = True.
    In step 3 I have tried to set the operator to Equals to and the default value to True. This gives no results even though several items have this attribute set to True.
    The Auto Query check box is checked.

    Found that True = 1 in database. When set to this the search works.

  • Problem using jsp:include from inside a custom tag

    Hi, All !
              I have a problem using <jsp:include> from inside a custom tag. Exception is:
              "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              could not do this. Is it a bug, since in the 1.1 spec is said: "The
              BodyContent is a subclass of JspWriter that can be used to process body
              evaluations so they can retrieved later on."
              My code is:
              <wfmklist:items>
              <jsp:include page="item.jsp" flush="true"/>
              </wfmklist:items>
              

    This is an area of contention with WL. It is not so tolerant with regards to
              the spec. I spent several days recently trying to convince it to accept the
              specification in regards to bodies and includes and it appears to have
              successfully rebuffed my efforts.
              Frankly, this is very disappointing. It appears that some shortcuts were
              taken on the way to JSP 1.1 support, and the result is a very hard-coded,
              inflexible implementation. As I have not seen the implementation myself, I
              hate to assume this, however one could posit that the term "interface" was a
              foreign concept during the implementation, other than as some annoying
              intermediary reference requiring an immediate cast to a specific Weblogic
              class, which in turn is apparently required to be final or have many final
              methods, as if being optimized for a JDK 1.02 JIT.
              I am sorry that I don't have any positive suggestions other than to use a
              URL object to come back in an execute the necessary "include" directly. You
              lose all context (other than session) and that can cause its own problems.
              However, you can generally get the URL approach to work, and you will
              hopefully avoid further frustration.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              Tangosol: How Weblogic applications are customized
              "Denis" <[email protected]> wrote in message
              news:[email protected]...
              > Hi, All !
              > I have a problem using <jsp:include> from inside a custom tag. Exception
              is:
              > "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              >
              > Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              > could not do this. Is it a bug, since in the 1.1 spec is said: "The
              > BodyContent is a subclass of JspWriter that can be used to process body
              > evaluations so they can retrieved later on."
              >
              > My code is:
              > ...
              > <wfmklist:items>
              > <jsp:include page="item.jsp" flush="true"/>
              > </wfmklist:items>
              > ...
              

  • Using iPhoto, can I create events inside another event!?!? Is there a way??

    I would like to create an event inside another one that already exists, is there a way to do that?
    I want to create something like:
    An album called "Euro Trip" and inside this album other albuns called "Madrid, Barcelona, etc"
    By choosing "Divide events", they don't stay in the same "folder".
    Can anyone help me?

    Post this query on the iPhoto forum.  There are people who are oriented to iPhoto issues.
    I don't think you can do it.  The only suggestion I can think of is to start a new iPhoto Library for 'Euro Trip'.
    Ciao.

  • Using a Custom Object to allow an Entity to link to itself

    Hey folks,
    Have a feeling the answer to this is No, but have to ask anyway.
    Is there any way that anyone is aware of to use a Custom Object to link an Entity to itself? For example... We have a CO (Custom Object) which is linked to Service Request. I want to link this CO to Service Request again, allowing one Service Request to be linked to another Service Request via the CO. I can obviously link Service Request to the CO, but the second link doesn't seem likely.
    Cheers,
    Mark

    You can link multiple Service Requests to a single Custom Object (1-3) very easliy. Just expose SRs under related items on the Custom Object and adjust Access Profiles appropriately. Alternately, you can add Custom Objects to related items on the Service Request page layout so SRs can be linked to multiple COs.
    In the end, you can end up with one CO linked to multiple SRs. This should give you what you are looking for - there may be more elaborate solutions involving multiple advanced custom objects.
    The key, of course, is how you need this data to be viewed or reported on. You'll need to assess this solution to see if the output is what you require.

Maybe you are looking for