Boolean values with Flash

can anyone please help me.
i'm using Flash 8 and have made my connection to a coldfusion
database using components.
There is a section of my project where im calling the
database to return a true or false value into a text box.
My problem is that i want the value to show as a tick or
cross. Does anyone know how to do this. Or even change the value to
an image.??
thanks
mik

I don't know how to put images in a textbox, but if you do
find out I think the code would be something like this:
if (value == true)
textbox.text = (code to display tick image);
else
textbox.text = (code for cross image);
I just searched and found an article on putting images in
textboxes:
http://www.actionscripts.org/tutorials/intermediate/load_images_via_XML/index.shtml

Similar Messages

  • F:selectItems with default boolean value

    Hi!
    I have problem with using tag f:selectItems. I wrote converter in order to connect my items from the ManyChecbox list directly with my objects instead of strings. Now i would like to connect boolean values with my backing bean, so that when the page is rendered the default choice is marked. How can i do this?
    <h:selectManyCheckbox value="#{myBean.selectedItems}"  converter="MyConverter" >
                               <f:selectItems value="#{myBean.allItems}"/>
    </h:selectManyCheckbox>

    well the component is linked to your backing bean property 'myBean.selectedItems', which is probably a list or something. Whatever value in this list is true will be checked, so make the 'default' one true when you initially create the list (for example, in a @PostConstruct annotated method).

  • Sorting a datatable with a boolean value

    Hi all,
    I have a datatable and one of the columns is just a true or false field.
    I'm using the DTOComparator from the BalusC (here: http://balusc.xs4all.nl/srv/dev-jep-dat.html) server but I'm getting the error:
    Error 500: java.lang.RuntimeException: Getter getInclude cannot be invoked.
    It comes from this line of code:
    try {
                c1 = (Comparable) o1.getClass().getMethod(getter, null).invoke(o1, null);
                c2 = (Comparable) o2.getClass().getMethod(getter, null).invoke(o2, null);
            } catch (Exception e) {
                // Obvious. Check if method names are correct.
                throw new RuntimeException("Getter " + getter + " cannot be invoked.");
    Can you not use boolean values with this?
    Thanks for any help!
    Illu

    Instead of a primivive, use a wrapper objects as DTO property which represents a DB entry. Remember, DB2 fields can contain null values.
    So use Boolean instead of boolean. Or just change the comparator to make it compatible with primitives.

  • Cell with boolean value not rendering properly in Swing (custom renderer)

    Hello All,
    I have a problem rendenring boolean values when using a custom cell renderer inside a JTable; I managed to reproduce the issue with a dummy application. The application code follows:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.lang.reflect.InvocationTargetException;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import java.util.logging.Logger;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.SwingUtilities;
    * Simple GUI that uses custom cell rendering
    * @author josevnz
    public final class SimpleGui extends JFrame {
         private static final long serialVersionUID = 1L;
         private Logger log = Logger.getLogger(SimpleGui.class.getName());
         private JTable simpleTable;
         public SimpleGui() {
              super("Simple GUI");
              setPreferredSize(new Dimension(500, 500));
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setLayout(new BorderLayout());
         public void constructGui() {
              simpleTable = new JTable(new SimpleTableModel());
              simpleTable.getColumnModel().getColumn(2).setCellRenderer(new HasItCellRenderer());
              SpecialCellRenderer specRen = new SpecialCellRenderer(log);
              simpleTable.setDefaultRenderer(Double.class, specRen);
              simpleTable.setDefaultRenderer(String.class, specRen);
              simpleTable.setDefaultRenderer(Date.class, specRen);
              //simpleTable.setDefaultRenderer(Boolean.class, specRen);
              add(new JScrollPane(simpleTable), BorderLayout.CENTER);          
              pack();
              setVisible(true);
         private void populate() {
              List <List<Object>>people = new ArrayList<List<Object>>();
              List <Object>people1 = new ArrayList<Object>();
              people1.add(0, "Jose");
              people1.add(1, 500.333333567);
              people1.add(2, Boolean.TRUE);
              people1.add(3, new Date());
              people.add(people1);
              List <Object>people2 = new ArrayList<Object>();
              people2.add(0, "Yes, you!");
              people2.add(1, 100.522222);
              people2.add(2, Boolean.FALSE);
              people2.add(3, new Date());
              people.add(people2);
              List <Object>people3 = new ArrayList<Object>();
              people3.add(0, "Who, me?");
              people3.add(1, 0.00001);
              people3.add(2, Boolean.TRUE);
              people3.add(3, new Date());
              people.add(people3);
              List <Object>people4 = new ArrayList<Object>();
              people4.add(0, "Peter Parker");
              people4.add(1, 11.567444444);
              people4.add(2, Boolean.FALSE);
              people4.add(3, new Date());
              people.add(people4);
              ((SimpleTableModel) simpleTable.getModel()).addAll(people);
          * @param args
          * @throws InvocationTargetException
          * @throws InterruptedException
         public static void main(String[] args) throws InterruptedException, InvocationTargetException {
              final SimpleGui instance = new SimpleGui();
              SwingUtilities.invokeAndWait(new Runnable() {
                   @Override
                   public void run() {
                        instance.constructGui();
              instance.populate();
    }I decided to write a more specific renderer just for that column:
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableCellRenderer;
    * Cell renderer used only by the DividendElement table
    * @author josevnz
    final class HasItCellRenderer extends DefaultTableCellRenderer {
         protected static final long serialVersionUID = 2596173912618784286L;
         private Color hasIt = new Color(255, 225, 0);
         public HasItCellRenderer() {
              super();
              setOpaque(true);
         @Override
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
              Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
              int desCol = table.convertColumnIndexToView(1);
              if (! isSelected && value instanceof Boolean && column == desCol) {
                   if (((Boolean) value).booleanValue()) {
                        comp.setForeground(hasIt);     
                   } else {
                        comp.setForeground(UIManager.getColor("table.foreground"));
              return comp;
          * Override for performance reasons
         @Override
         public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
              // EMPTY
         @Override
         protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
              // EMPTY
         @Override
         public void revalidate() {
              // EMPTY
         @Override
         public void validate() {
              // EMPTY
    } // end classBut the rendering comes all wrong (a String saying true or false, not the expected checkbox from the default renderer) and also there is a weird flickring effect as this particular boolean column is editable (per table model, not show here)...
    I can post the table model and the other renderer if needed (didn't want to put too much code on the question, at least initiallty).
    Should I render a checkbox myself for this cell in the custom renderer? I'm puzzled as I expected the default renderer part of the code to do this for me instead.
    Thanks!
    Edited by: josevnz on Apr 14, 2009 12:35 PM
    Edited by: josevnz on Apr 14, 2009 12:37 PM

    camickr
    Thats because the default render is a JLabel and it just displays the text from the toString() method of the Object in the table model.What I meant to say is that I expected the JCheckbox not a String representation of the boolean value.
    Thats because a different renderer is used depending on the Class of data in the column. Look at the source code for the JTable class to see what the "default >renderer for the Boolean class" is. Then you can extend that or if its a private class then you will need to copy all the code and customize it.At the end I looked at the code and replicated the functionality I needed. I thought than maybe there was a way to avoid replicating the same logic all over again in order to implement this functionality. Good advice, though.
    see you learned nothing from your last posting. This is NOT a SSCCE. 90% of the code you posted is completely irrelevant for the described problem. There is abosutelly no need to post the custom TableModel, because there is no need to use a custom TableModel for this problem. The TableModel has nothing to do with how a column is rendererd.The custom table model returns the type of the column (giving a hint to the renderer on what to expect, right?) and for the one that had a problem it says than the class is Boolean. That's why I mentioned it:
    public Class getColumnClass(int columnIndex) {
        // Code omited....
    You also posted data for 4 columns worth of data. Again, irrelevant. Your question is about a single column containing Boolean data, so forget about the other columns.
    When creating a SSCCE you don't start with your existing code and "remove" code. You start with a brand new class and only add in what is important. That way hopefully if you made a mistake the first time you don't repeat it the second time.That's what I did, is not the real application. I copy & pasted code in a haste from this dummy program on this forum, not the best approach as it gave the wrong impression.
    Learn how to write a proper SSCCE if you want help in the future. Point taken, but there is NO need for you to be rude. Your help is appreciated.
    Regards,
    Jose.

  • JXPath with boolean value

    Hi,
    I want to know if JXPath support boolean value or not, and how to do.Because if i try to get the value of a bollean attribute with the getValue(..) method, it does'nt work..
    Thanks

    Hi,
    This forum is dedicated to JMX.
    You're asking a question about JXPath, which is not even closely related to the technology this forum is about.
    Maybe someone reading your post will have an answer for you, but it would be sheer luck.
    Maybe this link will have the answer you're looking for:
    http://today.java.net/pub/a/today/2006/08/03/java-object-querying-using-jxpath.html
    If not you could try to google search for JXPath, or try to find a better suited forum here:
    http://forum.java.sun.com/index.jspa?tab=java
    Hope this helps,
    -- daniel
    http://blogs.sun.com/jmxetc

  • How to use Boolean values from 2 different sources to stop a while loop?

    I am working on a program for homework that states E5.4) Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. Be sure to include the Time Delay Exress Vi so the user has time to press the stop botton. 
    I am doing this right now but it seems as though I can only connect one thing to the stop sign on th while loop. It won't let me connect a comparision of N and the iterations as well as the stop button to the stop sign on the while loop. So how would I be able to structure it so that it stops if it receives a true Boolean value from either of the 2 sources (whichever comes first)? 
    Basically, I cannot wire the output of the comparison of N and iterations as well as the stop button to the stop button on the whlie loop to end it. Is there a solution?
    Thanks!
    Solved!
    Go to Solution.

    Rajster16 wrote:
    Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. 
    Look in the boolean palette for something similar to the word hightlighted in red above.
    LabVIEW Champion . Do more with less code and in less time .

  • Error - '' is not a valid boolean value

    I have been receiving the error message = '' is not a valid Boolean value quite frequently.  It doesn’t matter which hierarchy I am in but it’s typically when I do an Add or Insert.  When selecting ‘ok’ on the error message, I’m able to continue on with my work but was just curious what causes this error.  Sometimes when this error shows up and I click ‘ok’, it will take me out of the DRM screen and into whatever else I may have open at the moment.  Any thoughts or ideas?  We are on version 11.1.1.2.103

    As Murali stated-
    It could be a property incorrectly configured, check all the boolean type properties and see if any of them are getting a string value by any chance.
    Thanks
    Denzz

  • Unable to view flash content with Flash 10,0,22,87 as an Non Admin

    We currently have an issue with in our Citrix farm with Windows 2003 Servers (x64, R2, SP1) Where Flash Flash 10,0,22,87 is installed and working fine when logged in as a Domain administrator but will not work as a normal (non administrative user) to confirm I've given a user who it did not work for Domain admin rights and it started working straight away. I'm using (and published within Citrix) the 32bit version on IE for compadibility reasons and have also tired this on a Window 2003 Server (x86 R2 SP1) and am getting the same results so I have to assume the issue is with Flash and not with my setup.
    I've tried the following recommendations:
    Remove with Adobe Flash removal tool and Reinstalling via website with an Domain admin login using the change user /install command
    Remove with Adobe Flash removal tool and Reinstalling via install_flash_player_ax.exe installer with a domain admin account using the change user /install command
    Allowing Domain users Modify Premissions (to both the Directories and Files) to the M:\WINDOWS\system32\Macromed\Flash\swflash.ocx & M:\WINDOWS\SysWOW64\Macromed\Flash\Flash10b.ocx
    Following KB article http://kb2.adobe.com/cps/624/624850b5.html and applying the premission changes recommended
    Following KB article http://kb2.adobe.com/cps/191/tn_19148.html and checking the registry premissions on these items
    I've enabled all ActiveX and Java related IE options in Group Policy to allow the to run for the Internet Zone
    When going to http://www.adobe.com/software/flash/about/ either as a Domain admin or a Regular user it confirms that "You have version 10,0,22,87 installed"
    Still I cant seem to get flash components of websites to load when logged in as a non Administrative User.

    this is what fixed the issuefor me:
    Be sure to try this on a test machine and back it up if needed.
    In the system registry
    For each of the following registry keys:
    HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}
    HKEY_CLASSES_ROOT\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}
    HKEY_CLASSES_ROOT\CLSID\{1171A62F-05D2-11D1-83FC-00A0C9089C5A}
    HKEY_CLASSES_ROOT\TypeLib\{D27CDB6B-AE6D-11CF-96B8-444553540000}
    Right-click the key, select "Permissions"
    In the Permissions Dialog click the "Advanced" button Click "Add"
    Enter "Everyone" and click "OK" to accept Select "Allow" for the "Query Value", "Enumerate Subkeys", "Notify" and "Read Control" permissions. Do not change any existing permissions.
    Source -  http://www.adobe.com/go/624850b5

  • Boolean value mapping in udb

    UDB does not support bit data types to my knowledge... what is a recommended way to map a boolean value to a udb database?

    Hi,
    In my opinon INTEGER (or SMALLINT) with 0 (false) and 1 (true) would be ok.
    And then use "Map the Attribute as Object Type".
    Regards,
    Simon

  • Perl cgi upload stopped working with Flash 10

    First let me just say that PHP is not an option in my environment. Its just not allowed to be used.
    I have some really basic Perl upload scripts that work find with flash 9 and below. However since flash 10 these no longer work. I tried using FileRefernce and while I can get all my values as defined by the
    $QUERY_VALS_GV->param statement in Perl, I can not get the file handle $QUERY_VALS_GV->upload("fileName"); Any Ideas ?  
    Snippet
     use CGI;
    use CGI qw(:standard);
    use CGI::Carp qw/fatalsToBrowser/;
    # Values from Flex #
    print header();
    our $QUERY_VALS_GV = new CGI
    our $UPLOAD_FILE_NM_GV = "";
    our $DOC_TYPE_IP = $QUERY_VALS_GV->param("docType");
    our $USER_NAME_IP = $QUERY_VALS_GV->param("userName");
    our $WR_ID_IP = $QUERY_VALS_GV->param("wrId");
    our $WR_TYPE_CD_IP = $QUERY_VALS_GV->param("wrTypeCd");
    our $FILE_NM_IP = $QUERY_VALS_GV->param("fileName");
    our $ACTION_IP = $QUERY_VALS_GV->param("fileAction");our $UPLOAD_FHDL_IP = $QUERY_VALS_GV->upload("fileName");

    The resolution was easy. Use the default value for Filedata passed from filereference
    our $UPLOAD_FHDL_IP     = $QUERY_VALS_GV->upload("Filedata");

  • Setting up a New Site and Having Issues with Flash SWF's

    Hello.  I just set up a new site definition, with a testiing server using MAMP Pro, and everything seems to be functioning properly, except that my swf's are not showing up when you publish to a browser from dreamweaver, instead you get the place holder message to upgrade to the newest version of flashplayer... besides the fact that my computers flash player is up to date.  At this point in time my two other websites swf components work just fine when I publish out of dreamweaver.
    I'd also like to mention that the Live View works perfectly and is displayinig the swf's as they should be.
    Thanks!

    I copied the associated scripts over to the site folder on the testing server and I'm getting the same results.  I'm sure this is something that is really simple.  Here is the code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="description" content="Lorentz Painting Co.: Pristine, Precise and Professional" />
    <meta name="keywords" content="Maciej Lorenz, paint, high quality, interior, exterior, co., painting, professional, New England, Vermont, Nassachussetts, Boston, New York New Hampshire, New England" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The Nantucket Gift Basket Company</title>
    <link href="stylesMain.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="PNGfix.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <style type="text/css">
    #hornav ul li { padding: 0 0 0 10px; }
    </style>
    <![endif]-->
    <!--[if lte IE 6]>
    <style type="text/css">
    #wrapper-body, #wrapper-1, #wrapper-2, #wrapper-3 { height: 1%; }
    </style>
    <![endif]-->
    <script type="text/javascript" src="scripts.js"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <style type="text/css">
    #apDiv1 {
        position:absolute;
        width:1844px;
        height:43px;
        z-index:1;
        left: 64px;
        top: 253px;
    body {
        background-color: #FFF;
    a:link {
        text-decoration: none;
    a:visited {
        text-decoration: none;
    a:hover {
        text-decoration: none;
    a:active {
        text-decoration: none;
    </style>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-5']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-6']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-7']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body>
    <div id="wrapper-body">
    <div id="wrapper-1">
      <div id="branding">
          <h1>
          <div>
            <p>
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="300" id="FlashID" title="The Nantucket Gift Basket Company Logo">
                <param name="movie" value="Nantucket Gift Basket Logo.swf" />
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                <param name="expressinstall" value="Scripts/expressInstall.swf" />
                <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="Nantucket Gift Basket Logo.swf" width="600" height="300">
                  <!--<![endif]-->
                  <param name="quality" value="high" />
                  <param name="wmode" value="opaque" />
                  <param name="swfversion" value="6.0.65.0" />
                  <param name="expressinstall" value="Scripts/expressInstall.swf" />
                  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                  <div>
                    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                  </div>
                  <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
              </object>
            </p>
          </div></h1>
        <div>
          <p>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="50" id="FlashID2" title="The Nantucket Gift Basket Company Navigation Bar">
              <param name="movie" value="NantucketNavBar.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="NantucketNavBar.swf" width="500" height="50">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <param name="expressinstall" value="Scripts/expressInstall.swf" />
                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                <div>
                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object>
          </p>
    </div>
        <div id="wrapper-2">
          <div id="content-top" class="png"></div>
          <div id="wrapper-3">
            <div id="content-2">
              <div class="content-wrap">
                <div id="content-1">
                  <div class="content-wrap">
                    <p>Why Us?</p>
                  </div>
                </div>
                <p> </p>
                <p> </p>
                <p>Pristine, Precise, Professional is our motto at Lorentz Painting Co.  </p>
    <p>We understand how important the appearance of your home or business is to you. We know that first impressions of your home or office are critical to success in any endeavor.  With over ten years in the painting business working in both the residential and commercial sectors, you can have confidence that all of your painting needs will be done in a pristine, precise and professional manner.</p>
                <p><br />
                  To ensure a quality finished product Lorentz Painting Co uses only the industry's finest paints &amp; tools.  We guarantee superb craftsmanship on behalf of our painters, who can work with any paintable surface be it residential or commercial, interior or exterior, oil or latex!  We hope you will consider us for all of your painting needs and we look forward to providing you a high quality service.</p>
                <p> </p>
              <p>Please browse the site to learn more or send us an email using our contact form.</p></div>
            </div>
            <div id="content-bottom"></div>
          </div>
          <div id="footer">
            <p><a href="index.php" title="Lorentz Painting; Why us? We are the best and most affordable painting company in New England, MA, NH, NY, VT, CT, ME and etc.">Why us?</a> - <a href="products_services.php" title="Lorentz Painting Co.: Products &amp; Services; nothing but the finest painting products that can be found in the market., New England, VT, NH, MA, NY, CT, ME">Products &amp; Services</a> - <a href="testimonials.php" title="Feedback about the high quality and affordability of Lorentz Painting Co. Services, New England, VT, NH, MA, NY, CT">Testimonials</a> - <a href="contact.php" title="Contact Lorentz Painting Co. Today for the best painting value in New England, VT, NH, MA, NY, CT">Contact</a></p>
    <p><strong><a href="sitemap.html" title="Site Map of Lorentz Painting Co. the most professional and highest quality painting company in New England, VT, NY, NH, MA, ME, CT">Lorentz Painting Co., 2011</a></strong></p>
            <p><strong><a href="http://cwws.org" title="Common Wealth Web Solutions" target="_new">Designed by CWWS</a></strong></p>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("Lorentz Painting Co.: The best value in painting in New England, NY, VT, NH, MA, ME, CT.  A professional company that produces high quality results.");
    swfobject.registerObject("Lorentz Painting Co.: The most Pristine, Precise and Professional Painting Company in New England, NY, VT, NH, MA, ME, CT.");
    swfobject.registerObject("Lorentz Painting Co.: High Quality painting at an affordable price.  Serving New England, NY, VT, NH, MA, ME, CT.");
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID2");
    </script>
    </body>
    </html>

  • How can I get the element value with namespace?

    I tried to get a element value in xml has namespace but i can't.
    I removed the namespace, i can get a element value.
    How can i get a element value with namespace?
    --1. Error ----------- xml ------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    *<TaxInvoice xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd">*
    <ExchangedDocument>
    <IssueDateTime>20110810133213</IssueDateTime>
    <ReferencedDocument>
    <ID>318701-0002</ID>
    </ReferencedDocument>
    </ExchangedDocument>
    <TaxInvoiceDocument>
    <IssueID>201106294100</IssueID>
    <TypeCode>0101</TypeCode>
    <IssueDateTime>20110810</IssueDateTime>
    <PurposeCode>02</PurposeCode>
    </TaxInvoiceDocument>
    <TaxInvoiceTradeLineItem>
    <SequenceNumeric>1</SequenceNumeric>
    <InvoiceAmount>200000000</InvoiceAmount>
    <TotalTax>
    <CalculatedAmount>20000000</CalculatedAmount>
    </TotalTax>
    </TaxInvoiceTradeLineItem>
    </TaxInvoice>
    --2. sucess ----------- xml ---------remove namespace---------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <TaxInvoice>
    <ExchangedDocument>
    <IssueDateTime>20110810133213</IssueDateTime>
    <ReferencedDocument>
    <ID>318701-0002</ID>
    </ReferencedDocument>
    </ExchangedDocument>
    <TaxInvoiceDocument>
    <IssueID>201106294100</IssueID>
    <TypeCode>0101</TypeCode>
    <IssueDateTime>20110810</IssueDateTime>
    <PurposeCode>02</PurposeCode>
    </TaxInvoiceDocument>
    <TaxInvoiceTradeLineItem>
    <SequenceNumeric>1</SequenceNumeric>
    <InvoiceAmount>200000000</InvoiceAmount>
    <TotalTax>
    <CalculatedAmount>20000000</CalculatedAmount>
    </TotalTax>
    </TaxInvoiceTradeLineItem>
    </TaxInvoice>
    ---------- program ------------
    procedure insert_table
    l_clob clob,
    wellformed out boolean,
    error out varchar2
    is
    l_parser dbms_xmlparser.Parser;
    xmldoc xmldom.domdocument;
    l_doc dbms_xmldom.DOMDocument;
    l_nl dbms_xmldom.DOMNodeList;
    l_n dbms_xmldom.DOMNode;
    l_root DBMS_XMLDOM.domelement;
    l_node DBMS_XMLDOM.domnode;
    l_node2 DBMS_XMLDOM.domnode;
    l_text DBMS_XMLDOM.DOMTEXT;
    buf VARCHAR2(30000);
    xmlparseerror exception;
    TYPE tab_type is Table of xml_upload%ROWTYPE;
    t_tab tab_type := tab_type();
    pragma exception_init(xmlparseerror, -20100);
    l_node_name varchar2(300);
    begin
    l_parser := dbms_xmlparser.newParser;
    l_doc := DBMS_XMLDOM.newdomdocument;
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    l_n := dbms_xmldom.makeNode(l_doc);
    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
    FOR cur_tax In 0..dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, cur_tax);
    t_tab.extend;
    t_tab(t_tab.last).ed_id := '5000000';
    dbms_xslprocessor.valueOf(l_n, 'IssueID/text()', t_tab(t_tab.last).tid_issue_id);
    dbms_xslprocessor.valueOf(l_n, 'TypeCode/text()', t_tab(t_tab.last).tid_type_code);
    END LOOP;
    FORALL i IN t_tab.first .. t_tab.last
    INSERT INTO xml_upload VALUES t_tab(i);
    COMMIT;
    dbms_xmldom.freeDocument(l_doc);
    wellformed := true;
    exception
    when xmlparseerror then
    --xmlparser.freeparser(l_parser);
    wellformed := false;
    error := sqlerrm;
    end insert_table;

    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');try to change as follow
    l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');Edited by: AlexAnd on Aug 17, 2011 12:36 AM

  • AudiCLip.play should return a boolean value

    Java Experts,
    looks like it's a bug in java, the audioClip.play method should return a boolean value indicating whether it was able to play the clip or not. Because sometimes the method doesn't play anything. Right now the method plays asynchronously that may be the reason that it returns a void. Thoughts???
    Q.

    i agree with you..i also encountered this problem sometimes the play method doesn't play and the programmer has no clue to figure this out programmetically...Looks like this problem has no solution..where are java experts in this forum??

  • Newbie - How to retrieve a "Boolean" value in a jsp via jsf ?

    Is it possible to retrieve a Boolean value from a BBean from, from let's say a 'rendered' tag ?
    class BBean
    Boolean secure;
    public Boolean getSecure() {...}
    From the jsf:
    <h:outputText value="#{somebean.whatever}" rendered="#{BBean.? == false}" />
    How do I use the Boolean object in an expression like the one above ?
    Note: I've simplified the example above, but I cannot use a primitive boolean for this, the objects I use
    are generated with "Boolean"s and I have no control.
    Thanks in advance !
    Mark

    You should just use boolean instead of Boolean;
    class BBean
    boolean secure;
    public boolean getSecure() {...}
    <h:outputText value="#{somebean.whatever}" rendered="#{bBean.secure == false}" />

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

Maybe you are looking for

  • Lock Finder view as list in every Window/File picker

    I have my Finder in list view: always and everywhere (except for the occasional pictures folder). Within Yosemite I encounter a lot of differences. Sometimes a folder opens in icon view. When the file picker windows appear (in Pages for example) it i

  • HT1766 backup iphone 4 to multiple pc's

    How can I backup my IPhone 4 to two different PC's, without losing any data?

  • What should I do I can't download itunes

    I am trying to download any one of the itunes software or whatever it's called and it takes me to the thank you for downloading screen but nothig downloads what should i do to fix this?????

  • GR/IR Postings

    Hi SAP Gurus, What could be the possible reason(s) for duplicate / triplicate postings of GR/IR against a purchase order? How could we ensure that this does not happen going forward? Points Guaranteed. Regards

  • Impact of new entries in Table T005

    Hi All, Can anyone please guide me that adding new entries in table T005 will have critical impact at which all places? I understand that this is the master table for countries, but I am not too sure that where all it can impact critically. Thanks.