Getting error with Accordion,Repeter controls.

  Hi All,
I developed an application using Accordion,repeater controls.In my application i need to get the data from xml and dsiplay that data in accordion header.I developed below code to display the header data in accordion but i am getting an error i.e. "Repeter id is not allowed on the root tag of a component".Please suggest the solution..
code:
<mx:HTTPService id="myRep" url="sample.xml"  resultFormat="e4x" />
  <mx:Accordion>
               <mx:headerRenderer>
                       <mx:Component>
      <mx:Repeater id="myRep" dataProvider="{myRep.lastResult.number}" >
    <mx:Canvas x="64.5" y="132"   width="333" >
    <mx:Image source="@Embed(source='Imagestest.png')" id="img1" width="20" height="17" x="10" y="10"/>
    <mx:Label text="{myRep.currentItem.ssid}" id="lbl" fontSize="14" color="#483F3F" x="29" y="10" width="166"/>
    <mx:Label  text="label2" width="313.5" color="#483F3F"  x="6.5" y="41"/>
    </mx:Canvas>
    </mx:Repeater>
  </mx:Component>
  </mx:headerRenderer>
  <mx:Label text="sample" />
          </mx:Accordion>
Thanking you..

You need some container between Component and Repeater, like this:
<mx:Component>
    <mx:VBox>  
        <mx:Repeater id="myRep" dataProvider="{myRep.lastResult.number}" >
            ..... etc ......
        </mx:Repeater>
    </mx:VBox>
</mx:Component>
If this post answers your question or helps, please mark it as such.

Similar Messages

  • SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory

    SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory
    after retry..again SharePoint Designer requires the following component require to install Microsoft.NET framework version 4 i have downloaded and try to installed but fail not work please answer what to do?
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    For running SharePoint Designer 2013, you need to install Microsoft .NET 4.0 Framework or higher.
    Please uninstall the Microsoft .NET 4.0 Framework, and install it again. After that, reboot your machine.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Import of credit card data(tcode PRCC) getting error with currency

    Hi Everyone,
    Here is one query regarding Credit Card Clearing in Travel Management.
    We were initially using KR files for uploading SAP specific credit card Transactional data to employee buffer and it contained data for only US employees with currency as US. Now we are migrating to use GL1025 files with employees from multiple countries and multiple currency. But the Service Provider (American Express) is sending transactional details with billed currency as USD for all employees(even for employees from other country). On processing the file in PRCC we are getting the below error for non US employees.
    Do we have any configurations or something that needs to be maintained inorder to allow this?
    Awaiting response.
    Thanks in advance...
    Regards
    Binshi

    Hi All,
    For my above requirement, I made two configuration changes and the transaction details are getting loaded with out any error.
    1) Changed the 'Settlement of foreign currency receipts" to 'hard currency' for the trip provision variant in global settings under control parameters for Travel expenses.
    2) Maintained hard currency as USD for the other country(non US) in country settings. non US employee receipts got loaded in buffer in currency USD as required.
    With this configuration change, even the posting document  for all foreign currency receipts including AMEX receipts were created in USD.But our requirement was to make payment for all AMEX receipts in USD and other foreign currency receipts in the employee local currency.
    So we just tried with the third  option for configuration 1. Changed the 'Settlement of foreign currency receipts" to 'choose Between Trip currency and Hard currency per receipt'.
    Now with this, foriegn currency receipts of the employee posting document getting created in employee local currency and AMEX receipts in USD. But we are confused how the currency for posting document is being selected with this option 3. Could anyone help us please??
    Thanks & Regards
    Binshi

  • Getting Error with date parameter field -"Invalid DATE"

    Hi
    I created a report with 9.2 version. And  i created 2 date parameter fields in it. And within crystal reports it works fine.
    But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.

    <p>There&#39;s not enough details to get a good understanding of your scenario, but it sounds like you&#39;re using some kind of date control to retrieve the date value and pass it to the report&#39;s parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>

  • Java.lang.NullPointerExecption error with ExecuteWithParam data control

    Hello,
    my application has a database connexion ; with the wizards, I made a Businness Components from Tables ; after that, I've changed the querry of my one and only View (btw, there are 4 entity objects). I put on a view criteria with a bind variable and the query in the xml file view is like this :
    SELECT CRAH.JOURINPUT,
    CRAH.CODEPROJET,
    CRAH.CODEANA,
    CRAH.DUREE,
    CRAH.DESCRIPTION,
    CRAH.IDUSER
    FROM CRAH CRAH
    WHERE Iduser=:VarIduser
    In my jsf page, I've dragged and dropped the ExecuteWithParams data control (in the same view as above) as an ADF Parameter form. I finally create an ADF table by dragging'n'dropping this very same view's datacontrol.
    The problem is when I run, it works!!! but after like 2 click on the execute with parameter button, I get a java.lang.NullPointerExecption for every attribute in the table.
    Could anybody gets me a piece of advice on this ? The thing is it works when I test with the Application Module. What's the problem here ?

    Hello.
    Well, even with a simple EO/VO for a single table, one view criteria and its bind variable, I get the same error. It still works in the AM test run. I get this error message in the embedded OC4J log :
    08/07/09 09:19:20 [757] **** refreshControl() for BindingContainer :oracle_jbo_uicli_binding_JUFormBinding_140
    08/07/09 09:19:20 [758] DCUtil, returning:oracle.adf.model.binding.DCParameter, for AMCADataControl
    08/07/09 09:19:20 [759] Reusing DC transform for AMCADataControl_sessiondef.view_pageDefs_view2PageDef_VOCA1_0_DynamicRegion
    08/07/09 09:19:20 [760] INFO: getDCKey for data.view_view2PageDef yielded view.DataBindings.cpx
    08/07/09 09:19:20 [761] variables variables passivated >>> ExecuteWithParams_CAVAR=FG
    08/07/09 09:19:20 [772] WARNING: data control: oracle_jbo_uicli_binding_JUFormBinding_140 is unknown in: view.DataBindings.cpx
    08/07/09 09:19:20 [773] INFO: getDCKey for data.view_view2PageDef yielded view.DataBindings.cpx
    So, do you think I did something wrong with the data control ? Because the problems core seems to be here. The thing is that they are automaticly created... so is there something else to do ?
    Frédéric

  • Getting error with Oracle10g Express using SQLPlus?

    I just installed Oracle10g Express on Linux FC6.
    I get errors in Java and SQLPlus when trying to connect to the database, or start it.
    In SQLPlus as "sysdba" when I type "startup" I get this error...
    ORA-27100: shared memory realm already exists
    And in Java or SQLPlus when I try to connect as a valid user I get this error...
    ORA-01034: ORACLE not available
    ORA-27123: unable to attach to shared memory segment
    Please help me.

    Have you set the environment with
    . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh?
    C.

  • Getting error with selectSingleNode in XML DOM

    I have some pages that utilitize the following in XML DOM:
    loadXML
    selectSingleNode
    getElementsByTagName
    I am using JavaScript. I am getting "undefined" errors. Anyone know the proper syntax/capitalization for these methods when using Safari. I had a similiar error with IE 7.0 and posting via an xmlHTTPPost. The problem there was capitalization of one of the methods.
    Thanks.
    Peter

    Hi,
    See below examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    http://www.troobloo.com/tech/xslt.toc.shtml
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Required XSLT Mapping tips!
    Regards
    Chilla..

  • Getting error with word wrap

    So this is the error im getting:
    Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
              at flashx.textLayout.elements::FlowElement/getAbsoluteStart()[C:\Vellum\branches\v1\1.0\dev\ output\openSource\textLayout\src\flashx\textLayout\elements\FlowElement.as:960]
              at flashx.textLayout.compose::TextFlowLine/get location()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayo ut\compose\TextFlowLine.as:262]
              at flashx.textLayout.compose::ComposeState/createTextLine()[C:\Vellum\branches\v1\1.0\dev\ou tput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:369]
              at flashx.textLayout.compose::ComposeState/composeNextLine()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:295]
              at flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()[C:\Vellum\branc hes\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:3 45]
              at flashx.textLayout.compose::ComposeState/composeParagraphElement()[C:\Vellum\branches\v1\1 .0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:264]
              at flashx.textLayout.compose::BaseCompose/composeBlockElement()[C:\Vellum\branches\v1\1.0\de v\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:219]
              at flashx.textLayout.compose::BaseCompose/composeInternal()[C:\Vellum\branches\v1\1.0\dev\ou tput\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:322]
              at flashx.textLayout.compose::ComposeState/composeInternal()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:126]
              at flashx.textLayout.compose::BaseCompose/composeTextFlow()[C:\Vellum\branches\v1\1.0\dev\ou tput\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:288]
              at flashx.textLayout.compose::ComposeState/composeTextFlow()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:102]
              at flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\compos e\StandardFlowComposer.as:678]
              at flashx.textLayout.compose::StandardFlowComposer/internalCompose()[C:\Vellum\branches\v1\1 .0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as: 758]
              at flashx.textLayout.compose::StandardFlowComposer/compose()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:821]
              at flashx.textLayout.container::TextContainerManager/compose()[C:\Vellum\branches\v1\1.0\dev \output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1205 ]
              at flashx.textLayout.container::TextContainerManager/updateContainer()[C:\Vellum\branches\v1 \1.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager .as:1292]
              at spark.components::RichEditableText/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\s park\src\spark\components\RichEditableText.as:2605]
              at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:8531]
              at mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:932]
              at mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core \UIComponent.as:7631]
              at spark.components::DataGroup/getVirtualElementAt()[E:\dev\4.0.0\frameworks\projects\spark\ src\spark\components\DataGroup.as:1430]
              at layouts::SemiCarouselLayout/updateDisplayListVirtual()[C:\ColdFusion9\wwwroot\com\schooli mprovement\pd360\layouts\SemiCarouselLayout.as:745]
              at layouts.supportClasses::NavigatorLayoutBase/updateDisplayList()[C:\ColdFusion9\wwwroot\co m\schoolimprovement\pd360\layouts\supportClasses\NavigatorLayoutBase.as:400]
              at layouts.supportClasses::PerspectiveNavigatorLayoutBase/updateDisplayList()[C:\ColdFusion9 \wwwroot\com\schoolimprovement\pd360\layouts\supportClasses\PerspectiveNavigatorLayoutBase .as:132]
              at layouts::SemiCarouselLayout/updateDisplayList()[C:\ColdFusion9\wwwroot\com\schoolimprovem ent\pd360\layouts\SemiCarouselLayout.as:716]
              at spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.0.0\frameworks\pr ojects\spark\src\spark\components\supportClasses\GroupBase.as:1224]
              at spark.components::DataGroup/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\sr c\spark\components\DataGroup.as:1316]
              at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:8531]
              at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]
              at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:736]
              at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    From what I can tell I have several links and the end of my text flow they are formatted like this "2.nf.5" they reference to a code. If I add text to so that one of them kicks down to then next line the error goes away. also if I change the textAlign to justify it goes away as well. it looks like it has to do with the word wrap. If you have any suggestions or help that would be great thanks.

    "Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds." means there is an endless loop in getAbsoluteStart(). That is to say, one of the elements in the textflow has a incorrect '_parent'. You can debug to see if it's your fault or ours.

  • Always getting errors when trying to control YOKOGAWA 7651 power supply on Labwindows/CVI

    Hi,
    I'm trying to set the voltage on the YOKOGAWA 7651 power supply through labwindows/cvi. I've set up a numeric slide on my userinterface with callback function "yoko7651dcvolts" and constant name "YOKO7651DCVOLTS".
    I always get this error when I run my program:
    "FATAL RUN-TIME ERROR: "DcSource.c", line 53, col 65, thread id 0x00001F3C: Invalid argument type: found 'pointer to double', expected 'pointer to int'."
    This error points to the third argument of the GetCtrlVal function below. The program/compiler wants me pass the variable "yoko1volts" as integer, but I want to (and should) be able to set voltages as floating numbers.
    Plus, even when I declare "yoko1volts" as integer, it stills doesn't work. All I get is zero, zero, and zero...on the power supply meter everytime I press the numeric slide.
    This is the section of the C code that is problemic:
    int CVICALLBACK yoko7651dcvolts (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    double yoko1volts;
    switch (event)
    case EVENT_COMMIT:
    GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651DCVOLTS, &yoko1volts); // to read the values entered on the numerical meter on the user interface
    yk7651_set_volts (yoko76511Panel, yoko1volts); // set the entered values as voltage on the instrument
    break;
    return 0;
    This is the related h-file:
    #define YOKO7651_1 4
    #define YOKO7651_1_YOKO7651SWITCH 2 /* control type: binary, callback function: yoko7651switch */
    #define YOKO7651_1_YOKO7651DCVOLTS 3 /* control type: scale, callback function: yoko7651dcvolts */
    Please help, how can I fix this issue?
    All the drivers (including the YOKOGAWA 7651 power supply) are properly installed and mounted. As a matter of fact, I can successfully turn the power supply on and off with the code below:
    int CVICALLBACK yoko7651switch (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    int yoko7651switchstate;
    switch (event)
    case EVENT_COMMIT:
    GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651SWITCH, &yoko7651switchstate);
    SetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651SWITCH, !yoko7651switchstate);
    yk7651_output (yoko76511Panel, !yoko7651switchstate);
    break;
    return 0;
    It's just setting the voltage on the power supply that is very problematic. Any help is appreciated...Thanks.
    Solved!
    Go to Solution.

    I second Al opinion of a disconnection between the UIR and the variable that holds the panel handle.
    As a side note, I noted that the problematic line is reading the value of the controll whose callback is executed:
    #define YOKO7651_1_YOKO7651DCVOLTS 3 /* control type: scale, callback function: yoko7651dcvolts */
    int CVICALLBACK yoko7651dcvolts (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    double yoko1volts;
    switch (event)
    case EVENT_COMMIT:
    GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651DCVOLTS, &yoko1volts); // to read the values entered on the numerical meter on the user interface
    yk7651_set_volts (yoko76511Panel, yoko1volts); // set the entered values as voltage on the instrument
    break;
    return 0;
    In a situation like this, I would try using GetCtrlVal (panel, control, &yoko1volts); instead, that should get rid of all problems in panel handle / control ID.
    Despite this solution is working, in any case I would deep into the problem as an incorrect panel handle can lead to erratical behaviour in other places of the program.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Getting Error when createing Table control in Module Pool.

    Hi expert ,
    i am creating a module pool program . i want to crate line item value for that i have created table control  on screen 200 .
    but when i am activation to that giving error below mention.
    The field "ZFBDCHALLAN-EBELN" is not assigned to a loop. "LOOP ...ENDLOOP" must appear in "PBO" and "PAI".
    thanks
    chandra

    Its mandatory to have loop endloop in both events
    PBO and PAI
    loop your internal table similarly.
    Please check it should be below format
    PROCESS BEFORE OUTPUT.
    * Set PF Status for screen 100.
      MODULE status_0200.
    * This module will initialize the field
      MODULE init_0100.
      LOOP AT t_custmat_asg INTO w_custmat_asg
          WITH CONTROL tc_1
          CURSOR tc_1-current_line.
    * It will count the record in internal table
        MODULE set_linecount.
    * Screen Modifications
        MODULE status_check.
      ENDLOOP.
    PROCESS AFTER INPUT.
    * Module AT EXIT-COMMAND
      MODULE exit_0200 AT EXIT-COMMAND.
      LOOP AT t_custmat_asg .
        CHAIN.
          FIELD :
          w_custmat_asg-check,
                  w_custmat_asg-kunnr,
                  w_custmat_asg-name1,
                  w_custmat_asg-asgtyp,
                  w_custmat_asg-productcls,
                  w_custmat_asg-sctegry,
                  w_custmat_asg-ctegry,
                  w_custmat_asg-parent,
                  w_custmat_asg-frmdate,
                  w_custmat_asg-todate,
                  w_custmat_asg-frecster,
                  w_custmat_asg-salesrep,
                  w_custmat_asg-flag,
                  w_custmat_asg-username,
                  w_custmat_asg-udate.
    * Validation For Forecaster.
          MODULE validate_forecaster.
    * Validation For Salesrep.
          MODULE valiate_salesrep.
    * Validation for Customer
          module validate_customer.
    * Validate null value
          module validate_null_vals.
    * Validation For Data Changed On The Screen
          MODULE data_changed_0200 ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    Regards
    Satish Boguda

  • I am getting error with Fiscal Year Period

    Hi Gurus
    When i am loading data into Data Target from ODS i am getting this error
    Time conversion from 0CALDAY to 0FISCPER (fiscal year Z1 ) failed with value 02000801
    Can u please help me to solve this issue
    Thanks & Regards
    Mahi

    There is somthing wrong in 0calday value (02000801); it should be 20000801 fro first of augost 2000.
    Che data in your ODS.
    Hope it helps.
    Regards

  • I use blackboard, since the latest update to 3.6.14, I get errors with caching applets, use IE and works fine. Whats happened and what can I do to resolve it?

    Error Cache:
    Unable to update files in cache.
    Name: myApplet
    java.net.MalformedURLException: no protocol: jar/dragndrop_applet.jar
    I get a bunch of these Cache Errors. Happens with application only, its blackboard hosted by continuinged.uml.edu.
    Run the same thing using IE it has no problems. Firefox till the latest upgrade was also working fine.
    What can I do to resolve this problem?

    There's a bug in 3.6.14 with Java applets. 3.6.15 was released last Friday to fix that bug. Use '''Help > Check for Updates''' to start the update process to 3.6.15.

  • Attempting to create an interactive map with flash - getting errors with my actionscript

    I'm currently having an issue creating a set of buttons that are supposed to turn individual layers on and off.  The layers I have are: fishing spots, facilities, trails, map elements, an aerial photo, and parking lots.  It is giving error #s 1119 and 1120.  Could anyone explain possible reasons I'm getting these errors. 
    It might be worth mentioning that I used a tutorial made with Flash CS4, but I'm writing the code in CS5.  Here is the exact code I'm using:
    spots._visible = false;
    facilities._visible = false;
    parking._visible = false;
    elements._visible = true;
    aerial._visible = false;
    trails._visible = false;
    displayedSpots._visible = false;
    displayedFacs._visible = false;
    displayedTrails._visible = false;
    displayedEles._visible = true;
    displayedAerial._visible = false;
    displayedPark._visible = false;
    fsbtn.onPress = function() {
              if (spots._visible == false) {
                        spots._visible = true;
                        displayedSpots._visible = true;
              } else {
                        spots._visible = false;
                        displayedSpots._visible = false;
    facbtn.onPress = function() {
              if (facilities._visible == false) {
                        facilities._visible = true;
                        displayedFacs._visible = true;
              } else {
                        facilities._visible = false;
                        displayedFacs._visible = false;
    trbtn.onPress = function() {
              if (trails._visible == false) {
                        trails._visible = true;
                        displayedTrails._visible = true;
              } else {
                        trails._visible = false;
                        displayedTrails._visible = false;
    mebtn.onPress = function() {
              if (elements._visible == false) {
                        elements._visible = true;
                        displayedEles._visible = true;
              } else {
                        elements._visible = false;
                        displayedEles._visible = false;
    aebtn.onPress = function() {
              if (aerial._visible == false) {
                        aerial._visible = true;
                        displayedAerial._visible = true;
              } else {
                        aerial._visible = false;
                        displayedAerial._visible = false;
    pbtn.onPress = function() {
              if (parking._visible == false) {
                        parking._visible = true;
                        displayedPark._visible = true;
              } else {
                        parking._visible = false;
                        displayedPark._visible = false;

    Only thing i see is that you are using == instead of = , Fixed Example...
    fsbtn.onPress = function() {
              if (spots._visible = false) {
                        spots._visible = true;
                        displayedSpots._visible = true;
              } else {
                        spots._visible = false;
                        displayedSpots._visible = false;
    == Is used for equality.
    = Is used for setting a value or in this case checking a value.

  • Getting error with Log4j

    Hi,
    Not sure if this is the right place to post this as it is a problem with log4j really and not java. Let me know if this needs moving.
    Here goes:
    I have a servlet in tomcat that uses log4j to log details, this works fine on all the systems at home and work, but I get the following error when it is run on our customers site:
    log4j: No appenders could be found for category (some.category.name).
    log4j: Please initialize the log4j system properly.
    I have looked this up on log4j's website, they give the following advice:
    Log4j does not have a default logging target. It is the user's responsibility to ensure that all categories can inherit an appender. This can be easily achieved by attaching an appender to the root category.
    This works fine off site? I have the following log4j.properties in the WEB-INF/classes dir in tomcat:
    log4j.rootCategory=DEBUG, dest1
    log4j.appender.dest1=org.apache.log4j.FileAppender
    log4j.appender.dest1.file=/rmx.log
    log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
    log4j.appender.dest1.layout.ConversionPattern=%-5p %l %x: %m%nAny ideas?
    Thanks in advance.
    Phil Maskell

    I have added code similar to what you suggested,
    being deployed on Tomcat I get the following:
    java.class.path=C:\Program Files\Apache Group\Tomcat
    5.5\bin\bootstrap.jar
    Is this what I should get? This is on my working
    system.That was probably not a good test (in hindsight). Tomcat's classpath is evidently not where its servlet classloader looks for classes.
    My log4j code uses a logFactory, in a final class,
    will this have any effect on the class path?The fact that the class is final will have no effect on any classloading. I doubt whether a logfactory will either, but I don't know what that is.
    P.S I could post my Logger.java, but stupid thing is
    it works fine on all my systems, just not on the
    customers :(I put my log4j.properties in the web app's WEB-INF/classes directory, just like you did. If your customer's system is not working the same as yours then you are probably wasting your time looking at Java code. The two systems are not configured the same and you need to find the difference.

  • Getting errors with tag lib using Web Service

    I have created a web service client in my WEB-INF/classes catalogue. Im having problems because i get this error message when I compile:
    myServices/myCardValidate$Documents/verifyCreditCard_SOAPXML.jsp [-1:-1] This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    myServices/myCardValidate$Documents/verifyCreditCard_TAGLIB.jsp [-1:-1] File "/WEB-INF/Service1Soap.tld" not found
    Errors compiling Web module compiling..
    anyone got a clue ?
    My other .jsp pages located in the WEB-INF catalogue has the http://java.sun.com/jstl/core uri and works fine...
    thanks in advance..

    Answering my own post to help others with the same problem:
    Im using Sun One Studio 5. What causes the error is that Sun Studio generates by default presentation jsp's etc. for the Web service client. At the properties tab of the client I set the Generate presentation parameter to False. No presentation jsp's are now generated and compiling and deployment of the web module works out fine.
    yours Aqoiiye

Maybe you are looking for