TextArea... bug?

Not sure what forum from what site I should post this in but since I'm using a c:out to populate a textArea I'm going to give it a shot here.
Simple code that I have is as follows.
<td colspan="6"><textarea name="report" rows="25"
               style="width: 100%; hight: 100%; font-size: 8pt"><c:out
               value="${sessionScope.OCCS99Form.report}" />
               </textarea></td>occasionally when the page is displayed the value that is shown inside the textarea is cut off. If I view the source everything is in the source. This only occurs in IE not FF. I know this is not a JSTL problem, but the only other forum I every get good answers from is devshed.

When it fails it cuts off at 26 every time.Seeing rows=25 is too much of a coincidence.
Notice that you are specifying the height of the textarea in two ways. Once via the "rows" attribute, another via the height style.
Try removing one or the other, and seeing if the issue is still there.
Does it behave the same with a static HTML page?
Just save the source as a static HTML page, and access it directly.
If it is a browser bug, you should be able to reproduce it in static HTML.
Also try it in a standalone page with just a textarea. You are nesting it in a table. Maybe it is something from the table affecting it?
Most of this debugging with HTML is just trial and error. Try different things until it works.
Good luck,
evnafets

Similar Messages

  • JSP Textarea bug

    I have a form a user has to complete, once submitted, i store the userinput values in a fava bean using get and set methods.
    It all works fine, except fot the HTML textarea, it dont want to store it in the javabean?
    <textarea name="comments" rows="5" cols="19">test</textarea>
    I have used this before in my Microsoft ASP pages, and it worked fine, but not in JSP. What can I do to fix this?

    a) i doubt it is a bug
    b) what exaclty is the problem ?

  • TextArea bug on Solaris

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4972534
    My app is getting hit by this bug on Solaris - Java Plugin Version is
    1.5.0_01.
    My component is a TextArea not a TextField, but I am still getting hit
    by it.
    The workaround given on the webpage works - i.e. clicking on the Java
    Console & then on my textArea gives it keyboard focus - but it has to
    be done everytime - i.e. if you click elsewhere & lose focus again, the
    workaround has to be repeated before you can edit the textarea - this
    isn't a good workaround, IMHO.
    Does anyone know any better workarounds, mitigations.
    The page says
    "This bug had been fixed on JRE1.5.0_beat2-b37 on Solaris10-b51."
    What is JRE1.5.0_beat2-b37? Is it downloadable?

    The bug ID for this problem is 6413443. It has been fixed in both the development release and the patch release. Fix should be available in the upcoming patches for Studio 11 and in the next release of Sun Studio Express - SSX3.
    Best regards,
    Boris

  • (Flex SDK 4.6 TextArea bug) How to disable s:TextArea mouse input

    I need a TextArea with no mouse input but when i set mouseChildren="false" and mouseEnabled="false" it receives mouse input anyway. I want that mouse clicks pass through TextArea.
    I did a test using SDK 4.5 and it works as expected, but in SDK 4.6 nothing happens.
    HELP! i need that working in SDK 4.6+.
    Thank you.

    Same..
    Start a new Mobile App, and try yourself please:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         applicationDPI="160">
         <s:TextArea id="txt" skinClass="spark.skins.mobile.TextAreaSkin">
              <s:creationComplete>
                   txt.setFocus();     // crashes
              </s:creationComplete>
         </s:TextArea>
    </s:Application>
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         applicationDPI="160">
         <fx:Style>
              @namespace s "library://ns.adobe.com/flex/spark";
              s|TextArea { skinClass:ClassReference("spark.skins.mobile.TextAreaSkin") }
         </fx:Style>
         <s:TextArea id="txt">
              <s:creationComplete>
                   txt.setFocus();     // crashes
              </s:creationComplete>
         </s:TextArea>
    </s:Application>

  • What`s going on with XML Parser version 2.0.2.7?

    Hi,
    In january, I was told on this forum by Steven Muench to wait version 2.0.2.7 of Oracle XML Parser to correct a textarea bug with <xsl:output method="HTML"... I would like to know what's going on and when should I expect this new version be available to download.
    Thanks!

    It's in testing right now. Will likely still be a couple more weeks before it's out on OTN.

  • BUG: apex_item.textarea default values

    ApEx Team....
    I doubt this was intentional, but perhaps it was. I certainly won't discredit the idea.
    In 4.0.1.00.03, I describe the APEX_ITEM package spec and find that the TEXTAREA function has two parameters, p_rows and p_cols, which have defaults of 40 and 4, respectively. I would venture to say that these defaults are likely reversed inadvertently. I used the defaults to create a textarea and found it a bit difficult to use in practice.
    >
    function textarea (
    -- Generates an HTML input type of text. Basically a single hight form field.
    -- Arguments:
    -- p_idx = The form element name, e.g. 1 equals f01, 2 equals f02, etc.
    -- Typically the p_idx argument is constant for a given column.
    -- p_value = Text displayed in HTML textarea.
    -- p_rows = Height of the textarea (HTML rows attribute)
    -- p_cols = Width of text displayed on screen (HTML cols attribute)
    -- p_attributes = Extra HTML arguments you wish to add
    -- p_item_id = Will set the ID of the item to this value (id="..."). Must be unique! Try concatenating some string with rownum. Required for 508 compliance
    -- p_item_label = Creates an invisible label for an item. Used for Section 508 Compliance. Class is hideMe508.
    -- example(s):
    -- select htmldb_item.textarea(1,ename) from emp
    p_idx in number,
    p_value in varchar2 default null,
    p_rows in number default 40,
    p_cols in number default 4,
    p_attributes in varchar2 default null,
    p_item_id in varchar2 default null,
    p_item_label in varchar2 default null)
    return varchar2
    >
    After setting these parameters explicitly, I got a textarea of my liking.
    I looked through the 4.0.2 release notes and did not find this listed as something it addresses, so I thought I'd post something.
    Shane.

    Hi Shane,
    thanks for letting us know. You are right, these defaults do not make sense. I have filed bug# 10376966.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • IE10 and IE11 BUG: clipboard data modified when pasted into TEXTAREA

    When pasting certain text into a TEXTAREA under IE 10.0.9200.16921 in compatibility mode, IE10 changes the data - sometimes (mysteriously and randomly about half the time).
    The following test web page demonstrates how to reproduce this problem:
    <html>
    <head><title>Test IE10 paste bug 20140616</title></head>
    <body>
    <h1>Test IE10 paste bug 20140616</h1>
    <h2>How to reproduce the bug:</h2>
    <ol>
    <li>Turn on compatibility mode.</li>
    <li>Select the full contents of the textbox below (two lines).</li>
    <li>Copy the contents of the textbox below into the Windows clipboard.</li>
    <li>Delete the contents of the textbox.</li>
    <li>Paste the clipboard contents back into the textbox.</li>
    <li>The lowercase "i" at the end will mysteriously (and randomly) be
    capitalized to "I" (about half the time).</li>
    </ol>
    <p><textarea>/*#!!#*/
    i;</textarea></p>
    </body>
    </html>
    What is happening here?
    Does this happen with other versions of IE? (I only have access to IE5.5, IE6, IE9 and IE10 - only IE10 exhibits this problem so far.)
    I'm developing a simple javascript web application that needs to run accurately in all versions of all browsers - IE10 appears to have a pretty severe bug here.
    Update 2014-06-16 12pm MDT: Another user has reported this behavior running Win7, IE v 11.0.9600 as well. Have updated the title to include IE11 as being affected.

    It appears that this behavior is due to the automatic spelling correction "feature" of IE10. The above mentioned (erroneous) behavior can be avoided by doing one of three things (there may be more but these are the ones I've found so far):
    1. Turn off auto spelling correction entirely by un-checking the following checkbox:
    IE Menu -> Tools -> Manage add-ons -> Spelling correction -> Enable spelling correction.
    2. Turn off compatibility mode.
    3. Add a 'spellcheck=false' property to the TEXTAREA element start tag.
    Note that the last option is not available for pages written in valid XHTML 1.0 Strict because "spellcheck" is not a valid XHTML property for the TEXTAREA element.
    Some might say: "What's the problem? All its doing is fixing your typing errors. This isn't a bug at all."
    The problem is that not all data being pasted into a TEXTAREA is English text. Sometimes the data is very precise and must not be "corrected" by the browser. In my case, the data being pasted into the textbox is a (very precise) regular expression
    statement, (e.g. "var myre = /complex-regex-here/i;"), and IE10 (and IE11) are automatically (and erroneously) changing the "i" modifier to "I" which makes the statement invalid.
    IMHO, this is certainly a BUG and unfortunately, I'm going to have to deal with it with an explanation to my users that the default behavior of IE10 and IE11 may cause their data to become corrupted.

  • Apex4 bug: 'URL Target' textarea of button definition

    Hi,
    at Page Definition page when listing button definitions using prev/next buttons and sticking with 'Condition' section view only, 'URL Target' textarea ( 'Action When Button Clicked' section ) doesn't preserve its size.
    Thanks

    Tom -
    I assume this is the prior post you where talking about : https://forums.oracle.com/thread/2401714
    However, this doesn't cover my problem.  I have tried all the follow, and they all break export / import and copy functionality due to mismatched quotes:
    collapse_all($v(P2130_TREE_ID));
    collapse_all($v('P2130_TREE_ID'));
    collapse_all($v("P2130_TREE_ID"));
    collapse_all('&P2130_TREE_ID.');
    collapse_all("&P2130_TREE_ID.");
    These all allow the collapse button to work.
    NOW, if I change my ID tag to be something like 'P_SCOTT_TREE' then everything works just fine (import/export/copy).  It's having a number in the tag that is cause the problems because the export is casting it to_char and somehow throwing in an extra quote.
    Thanks,
    Scott

  • Textarea character count feature quirk/bug

    Apex 4.1.1.00.23
    I've found a quirky thing about the textarea page item. The character count feature counts carriage-return-line-feed (CRLF) as one character, as you would expect it to, but it's stored as two characters in the database because of the way Windows handles new lines.
    So, aside from using clob columns or explaining to users how Windows handles CRLF characters, any thoughts on how one might manage this quirk?

    >
    Please update your forum profile with a real handle instead of "970995".
    Apex 4.1.1.00.23
    I've found a quirky thing about the textarea page item. The character count feature counts carriage-return-line-feed (CRLF) as one character, as you would expect it to, but it's stored as two characters in the database because of the way Windows handles new lines.
    So, aside from using clob columns or explaining to users how Windows handles CRLF characters, any thoughts on how one might manage this quirk?Assuming the problem is ORA-06502 when the counter shows less than the expected limit, but CR/LF pairs actually push it over?
    Create a Post-Submit Computation on the item that replaces CR/LF with LF...
    replace(:p1_text_area, chr(13) || chr(10), chr(10))

  • Bug in "look up" functionality in textareas in safari

    The first word on a new line of a text area displays funny (highlights NOT where the word originally was) if you use the "look up" functionality (triple-click). See images below.
    Using safari 5.1.3 (7534.53.10) and OSX 10.7.3.

    hi rupesh,
    i would implement it like that:
    program a svc that is called from other services as request reply compoenent.
    svcLookup always gets all data or bits of data that a client (Use1, Use2) needs and replys the data to the requesting service. Use1 and 2 may cache results in case the db is down then the requests to Lookup would timeout.
    DB<------>svcLookup   <------>   svcUse1
                          <------>   svcUse2regards chris
    Edited by: cbrennsteiner on Sep 9, 2008 11:27 AM

  • On Windows 8.1 and Firefox 36.0.1 the textarea in forms has no carriage returns. Earlier versions the forms work. Is there a fix for this?

    Prior to this version of Firefox 36.0.1, the <textarea> in my HTML forms was working; displaying carriage returns. In version 36.0.1 they no longer function properly. Instead when I enter a carriage return, it displays a space instead of a newline. I went to the most basic textarea testing
    &lt;textarea&gt; name="comments" cols=20 rows=10 &lt;/textarea&gt;
    to make sure I wasn't introducing anything with other languages.
    I am using Windows 8.1 Pro. I rolled back to Firefox 35.0 and everything works fine. I install 36.0.1 and it stops working.
    I have access to another Laptop also running the same version of windows and Firefox and it appears to be doing strange things as well. I am suspicious in that I started noticing this immediately after a windows upgrade last night. The laptop also experienced the issues it is having immediately after a windows update yesterday evening.
    I have yet another PC running a different version of windows and Firefox and it too works fine. It looks like the issue is where there is windows 8.1 Pro and Firefox 36.0.1.
    Do you guys have any idea what is going on here?
    Thanks
    JMRAUPE57

    The current release supports the white-space property for a text area and it is possible that the website uses white-space: pre instead of white-space: pre-wrap.
    The former will prevent Firefox from wrapping the text.
    You can check that in the Inspector via the right-click context menu.
    *https://developer.mozilla.org/Tools/Page_Inspector
    See:
    *https://developer.mozilla.org/en-US/Firefox/Releases/36#CSS
    <blockquote>The white-space property is now working on <textarea> HTML elements (bug 82711).</blockquote>
    See also:
    *[[/questions/1050456]] Word wrap problems in 36.0

  • How can i display image in mx:TextArea Component?

    I found display img tag in htmlText of mx:TextArea component
    is very difficult in Flex Air
    I new a simple air project in flex builder, put the code
    below in it, i put a glad.png file in the src folder, every thing
    is OK, when i run it, image cannot be displayed. why this happend,
    I search the google for the solution, it seems there is a bug in
    air, and told me to use mx:HTML coponent, but that component still
    can not display img tag.
    could any one help me with this?
    <mx:TextArea width="100%" height="100%">
    <mx:htmlText>
    <![CDATA[
    <a href='
    http://www.adobe.com'><img
    src='glad.png'/></a>Click the image to go to the Adobe
    home page.
    ]]>
    </mx:htmlText>
    </mx:TextArea>

    I ran into a similar problem and wasn't able to find a way to have regular Flex components (like Text and TextArea) display <img> tags in their htmlText.  Everything works find in a web-based Flex application, but once the same code was used in AIR, the images just wouldn't display.
    I changed my display to use the mx:HTML component and everything worked fine (I was using only external images).

  • Is this a bug in APEX or I'm missing something

    Hi,
    I have a table chr10bug( id number , sample_text varchar2(4000)).
    I am using simple form with textarea to populate sample_text.
    I have a report based on above table.
    The report query is select id , sample_text from chr10bug. The Link tab has Target as URL. URL is javascript:void(0); and Link attribute has a very simple function
    onmouseover="alter('#SAMPLE_TEXT#')"
    Now, my question is when a user hits enter in the textarea eg.
    User enter some text **User Press Enter**
    User enter some text again
    In the reports the onmouseover="alert('#SAMPLE_TEXT#')" does not work for recrod where users pressed enter key. (In fact none of the function which accept string is working) . If we do not press enter while entering data in textarea... the above function is working...
    Example is here....
    http://apex.oracle.com/pls/apex/f?p=32555:1 ( report)
    http://apex.oracle.com/pls/apex/f?p=32555:2 ( form to enter data via text area)
    Is this a bug...
    Regards,
    Shijesh
    Edited by: Apex_Noob on Nov 18, 2010 12:18 PM

    Hi,
    Thanks once again for reply.
    I create two report with same javascript function alert('#sample_text#')
    CASE1 >> Javascript function call is placed in Link attribute section as ** onmouseover="alert('#sample_text#')" >>> This is not working
    CASE2 >> Javascript function call is place in URL section as ** javascript:alert('#sample_text#') >>>> This is working however I'm not able to have onmouseover feature.
    Any alternative to have onmouseover=myFunction('#COLUMN_NAME#').
    http://apex.oracle.com/pls/apex/f?p=32555:1:8742069995710311:::::
    thanks,
    Shijesh
    Edited by: Apex_Noob on Nov 18, 2010 12:45 PM

  • Install Application - TextArea inside JScrollPane

    I've been working on an install application to install another one of my programs (next/accept/next/ finish type of thing) and had a couple questions and would appreciate any help anyone can give.
    Some Background info:
    I made images and have them display as image icons through jlabels for the buttons and background. The labels have classes applying various mouselisteners (Mousepressed, MouseEntered, MouseExited, etc) changing the images and moving from screen to screen. I have my layout set to null, not for any particular reason, but because I have no formal education in layout managers.
    1) Is there a conical solution to moving through various windows? That is, right now I move through the various 'screens' with a check on an int called state, that gets incremented and decremented through forward and back buttons. I looked at some code given to us on a test by our teacher (we had to find bugs) and saw that he had implemented a fake "state" interface, with constants like "Account_State" to control where you were in the program. This seems a bit easier to read than ints, but is there a correct built in version of his states?
    2) On the second screen I have a license agreement (actually required for the application that gets installed), and a checkbox. The license is held inside of a JTextArea(scroll) inside a JScrollPane(textscroll). The JScrollPane is extending in weird ways. The following is a stripped down version of my code (it runs and demonstrates the problem):
    InstalleApp
    import javax.swing.*;
    import java.awt.*;
    public class InstalleApp {
        public static void main(String args[]) {
            InstalleFrame m = new InstalleFrame();
               Container content = m.getContentPane();
            m.setDefaultCloseOperation(3);
            m.setSize(550, 400);
            m.setUndecorated(true);
            m.setVisible(true);
            m.setTitle("Install");
    }InstalleFrame
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.JFrame;
    import java.awt.event.*;
    import java.awt.Rectangle;
    import java.awt.Font;
    import java.awt.BorderLayout;
    import java.util.*;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import java.awt.event.ActionEvent;
    import javax.swing.text.BadLocationException;
    import javax.swing.JSlider;
    import java.awt.Dimension;
    public class InstalleFrame
        extends JFrame implements ActionListener {
      public InstalleFrame() {
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
      public void actionPerformed(ActionEvent e) {
      JScrollPane textscroll;
      private void jbInit() throws Exception {
        this.getContentPane().setLayout(null);
        this.getContentPane().setBackground(UIManager.getColor("window"));
        background.setBounds(new Rectangle(0, 0, 550, 400));
        readcheck.setOpaque(false);
        readcheck.setText("I have read and accept the license agreement");
        readcheck.setBounds(new Rectangle(31, 357, 319, 32));
        scroll.setWrapStyleWord(true);
        scroll.setLineWrap(true);
        scroll.setText(
            "Copyright ? 2006-2007 GonZor228.com \n\nBy using or distributing this " +
            "software (or any work based on the software) you shall be deemed " +
            "to have accepted the terms and conditions set out below.\n\nGonZor228.com " +
            "(\"GonZor\") is making this software freely available on the basis " +
            "that it is accepted as found and that the user checks its fitness " +
            "for purpose prior to use.\n\nThis software is provided \'as-is\', without " +
            "any express or implied warranties whatsoever. In no event will the " +
            "authors, partners or contributors be held liable for any damages, " +
            "claims or other liabilities direct or indirect, arising from the " +
            "use of this software.\n\nGonZor will from time to time make software " +
            "updates available.  However, GonZor accepts no obligation to provide " +
            "any support to free license holders.\n\nGonZor grants you a limited " +
            "non-exclusive license to use this software for any purpose that does " +
            "not violate any laws that apply to your person in your current jurisdiction, " +
            "subject to the following restrictions: \n\n1. The origin of this software " +
            "must not be misrepresented; you must not claim that you wrote the " +
            "original software.\n2. You must not alter the software, user license " +
            "or installer in any way unless given permission to do so.\n3. This " +
            "notice may not be removed or altered from any distribution.\n4. You " +
            "may not resell or charge for the software.\n5. You may not reverse " +
            "engineer, decompile, disassemble, derive the source code of or modify " +
            "[or create derivative work from] the program without the express " +
            "permission of GonZor.\n6. You must not use this software to engage " +
            "in or allow others to engage in any illegal activity.\n7. You may " +
            "not claim any sponsorship by, endorsement by, or affiliation with " +
            "GonZor228.com\n8. You acknowledge that GonZor owns the copyright and " +
            "all associated intellectual property rights relating to the software.\n\n" +
            " This software license is governed by and construed in accordance " +
            "with the laws of Australia and you agree to submit to the exclusive " +
            "jurisdiction of the Australian courts.\n\nBy clicking the \"I agree\" " +
            "button below, you agree to these software license terms. If you disagree " +
            "with any of the terms below, GonZor does not grant you a license " +
            "to use the software ? exit the window.\n\nYou agree that by your installation " +
            "of the GonZor?s software, you acknowledge that you are at least 18 " +
            "years old, have read this software license, understand it, and agree " +
            "to be bound by its terms.\n\nGonZor reserves the right to update and " +
            "change, from time to time, this software license and all documents " +
            "incorporated by reference. You can always find the most recent version " +
            "of this software license at GonZor228.com.  GonZor may change this " +
            "software license by posting a new version without notice to you. " +
            "Use of the GonZor?s software after such change constitutes acceptance " +
            "of such changes.\n\n1.\tOwnership and Relationship of Parties.\n\nThe " +
            "software is protected by copyrights, trademarks, service marks, international " +
            "treaties, and/or other proprietary rights and laws of the U.S. and " +
            "other countries. You agree to abide by all applicable proprietary " +
            "rights laws and other laws, as well as any additional copyright notices " +
            "or restrictions contained in this software license. GonZor owns all " +
            "rights, titles, and interests in and to the applicable contributions " +
            "to the software. This software license grants you no right, title, " +
            "or interest in any intellectual property owned or licensed by GonZor, " +
            "including (but not limited to) the software, and creates no relationship " +
            "between yourself and GonZor other than that of GonZor to licensee.\n\n" +
            "The software and its components contain software licensed from " +
            "GonZor. The licensor software enables the software to perform certain " +
            "functions including, without limitation, access proprietary data " +
            "on third-party data servers as well as GonZor?s own server. You agree " +
            "that you will use the software, and any data accessed through the " +
            "software, for your own personal non-commercial use only. You agree " +
            "not to assign, copy, transfer, or transmit the software, or any data " +
            "obtained through the software, to any third party. Your license to " +
            "use the software, its components, and any third-party data, will " +
            "terminate if you violate these restrictions. If your license terminates, " +
            "you agree to cease any and all use of the software, its components, " +
            "and any third-party data. All rights in any third-party data, any " +
            "third-party software, and any third-party data servers, including " +
            "all ownership rights are reserved and remain with the respective " +
            "third parties. You agree that these third parties may enforce their " +
            "rights under this Agreement against you directly in their own name.\n\n" +
            "2.\tSupport and Software Updates.\n\nGonZor may elect to provide " +
            "you with customer support and/or software upgrades, enhancements, " +
            "or modifications for the software (collectively, \"Support\"), in its " +
            "sole discretion, and may terminate such Support at any time without " +
            "notice to you. GonZor may change, suspend, or discontinue any aspect " +
            "of the software at any time, including the availability of any software " +
            "feature, database, or content. GonZor may also impose limits on certain " +
            "features and services or restrict your access to parts or all of " +
            "the software or the GonZor228.com web site without notice or liability.\n\n" +
            "3.  \tFees and Payments.\n\nGonZor reserves the right to charge fees " +
            "for future use of or access to the software in GonZor?s sole discretion. " +
            "If GonZor decides to charge for the software, such charges will be " +
            "disclosed to you 28 days before they are applied if such fees will " +
            "affect your use of the product.\n\n4.\tDisclaimer of Warranties by " +
            "GonZor.\n\nUse of the software and any data accessed through the software " +
            "is at your sole risk. They are provided \"as is.\"  Any material or " +
            "service downloaded or otherwise obtained through the use of the software " +
            "(such as the \"plug-in\" feature) is done at your own discretion and " +
            "risk, and you will be solely responsible for any damage to your computer " +
            "system or loss of data that results from the download and/or use " +
            "of any such material or service.  GonZor, its officers, directors, " +
            "employees, contractors, agents, affiliates, assigns, and GonZor?s " +
            "licensors (collectively ?Associates?) do not represent that the software " +
            "or any data accessed there from is appropriate or available for use " +
            "outside the Australia.\n\nThe Associates expressly disclaim all warranties " +
            "of any kind, whether express or implied, relating to the software " +
            "and any data accessed there from, or the accuracy, timeliness, completeness, " +
            "or adequacy of the software and any data accessed there from, including " +
            "the implied warranties of title, merchantability, satisfactory quality, " +
            "fitness for a particular purpose, and non-infringement.\n\nIf the " +
            "software or any data accessed there from proves defective, you (and " +
            "not the Associates) assume the entire cost of all repairs or injury " +
            "of any kind, even if the Associates have been advised of the possibility " +
            "of such a defect or damages. Some jurisdictions do not allow restrictions " +
            "on implied warranties so some of these limitations may not apply " +
            "to you.\n\n5. \tLimitation of liability.\n\nThe Associates will not " +
            "be liable to you for claims and liabilities of any kind arising out " +
            "of or in any way related to the use of the software by yourself or " +
            "by third parties, to the use or non-use of any brokerage firm or " +
            "dealer, or to the sale or purchase of any security, whether such " +
            "claims and liabilities are based on any legal or equitable theory." +
            "\n\nThe Associates are not liable to you for any and all direct, incidental, " +
            "special, indirect, or consequential damages arising out of or related " +
            "to any third-party software, any data accessed through the software, " +
            "your use or inability to use or access the software, or any data " +
            "provided through the software, whether such damage claims are brought " +
            "under any theory of law or equity. Damages excluded by this clause " +
            "include, without limitation, those for loss of business profits, " +
            "injury to person or property, business interruption, loss of business " +
            "or personal information. Some jurisdictions do not allow limitation " +
            "of incidental or consequential damages so this restriction may not " +
            "apply to you.\n\nInformation provided through the software may be " +
            "delayed, inaccurate, or contain errors or omissions, and the Associates " +
            "will have no liability with respect thereto. GonZor may change or " +
            "discontinue any aspect or feature of the software or the use of all " +
            "or any features or technology in the software at any time without " +
            "prior notice to you, including, but not limited to, content, hours " +
            "of availability.\n\n6.  \tControlling Law.\n\nThis software license " +
            "and the relationship between you and GonZor is governed by the laws " +
            "of Australia without regard to its conflict of law provisions. You " +
            "and GonZor agree to submit to the personal and exclusive jurisdiction " +
            "of the courts located within Australia. The United Nations Convention " +
            "on the International Sale of Goods does not apply to this software " +
            "license.\n\n7.\tPrecedence.\n\nThis software license constitutes the " +
            "entire understanding between the parties respecting use of the software, " +
            "superseding all prior agreements between you and GonZor.\n\n8.\tSurviving " +
            "Provisions.\n\nSections 1, and 3 through 5, will survive any termination " +
            "of this Agreement.\n\n---------------------------------------------------------------------------------" +
            "---\nIf you accept the terms of the agreements, click I Agree to continue. " +
            " You must accept the agreement to download and use the software. ");
        scroll.setBounds(new Rectangle(36, 36, 478, 305));
        this.getContentPane().add(readcheck);
        readcheck.setVisible(false);
       this.getContentPane().add(scroll);
       textscroll = new JScrollPane (scroll, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                                                JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        textscroll.setBounds(36,36,400,400);
          getContentPane().add( textscroll );
        this.getContentPane().add(background);
      JLabel background = new JLabel();
      JCheckBox readcheck = new JCheckBox();
      JTextArea scroll = new JTextArea();
    }Sorry about all the text for the agreement. I've tried a number of different things I got from searching the forums at different points in the code (setting the number of rows/columns, setting max and min sizes, etc etc) The code above that wraps the text I could have sworn I tried 3 times before it magically worked... I also tried using the awt component for textareas that had the scrollbars built in, but scrapped it after having even more difficulties with that one. I'm trying to get the textbox to only go down about 300 px and 300 px to the right. Using the graphical editor to change it produces a null pointer error at compile time(?!?). Can anyone help me to get the textbox to render as I want it to?
    Edited by: rpk5000 on Jan 27, 2008 9:43 AM

    for instance, boxlayout would work nicely with the installer frame (or dialog)
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.BorderFactory;
    import javax.swing.BoxLayout;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    public class InstalleFrame
        public InstalleFrame()
            try
                jbInit();
            catch (Exception ex)
                ex.printStackTrace();
        private JScrollPane textscroll;
        private JPanel contentPane = new JPanel();
        private JLabel background = new JLabel();
        private JCheckBox readcheck = new JCheckBox();
        private JTextArea scroll = new JTextArea();
        private void jbInit() throws Exception
            contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.PAGE_AXIS));
            contentPane.setBackground(UIManager.getColor("window"));
            contentPane.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));
            scroll.setWrapStyleWord(true);
            scroll.setLineWrap(true);
            String text = "Copyright ? 2006-2007 GonZor228.com \n\nBy using or distributing this "
                            + "software (or any work based on the software) you shall be deemed "
                            + "to have accepted the terms and conditions set out below.\n\nGonZor228.com "
                            + "(\"GonZor\") is making this software freely available on the basis "
                            + "that it is accepted as found and that the user checks its fitness "
                            + "for purpose prior to use.\n\nThis software is provided \'as-is\', without "
                            + "any express or implied warranties whatsoever. In no event will the "
                            + "authors, partners or contributors be held liable for any damages, "
                            + "claims or other liabilities direct or indirect, arising from the "
                            + "use of this software.\n\nGonZor will from time to time make software "
                            + "updates available.  However, GonZor accepts no obligation to provide "
                            + "any support to free license holders.\n\nGonZor grants you a limited "
                            + "non-exclusive license to use this software for any purpose that does "
                            + "not violate any laws that apply to your person in your current jurisdiction, "
                            + "subject to the following restrictions: \n\n\nblah, blah, blah,..."
                            + "\n\n";
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 5; i++)
                sb.append(text);
            scroll.setText(sb.toString());
            contentPane.add(readcheck);
            contentPane.add(scroll);
            textscroll = new JScrollPane(scroll,
                    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            textscroll.setPreferredSize(new Dimension(400, 400));
            contentPane.add(textscroll);
            JPanel bottomPane = new JPanel();
            bottomPane.setOpaque(false);
            final JButton okButton = new JButton("OK");
            final JButton cancelButton = new JButton("Cancel");
            okButton.setEnabled(false);
            readcheck.setOpaque(false);
            readcheck.setText("I have read and accept the license agreement");
            readcheck.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    JCheckBox radioBtn = (JCheckBox)e.getSource();
                    if (radioBtn.isSelected())
                        okButton.setEnabled(true);                   
                    else
                        okButton.setEnabled(false);
            okButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // TODO: whatever needs to be done here
            cancelButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    SwingUtilities.getWindowAncestor(contentPane).dispose();
            bottomPane.add(readcheck);
            bottomPane.add(okButton);
            bottomPane.add(cancelButton);
            contentPane.add(bottomPane);
            //readcheck.setVisible(false);
            contentPane.add(background);
        public JPanel getContentPane()
            return contentPane;
        public static void main(String[] args)
            EventQueue.invokeLater(new Runnable()
                public void run()
                    InstalleFrame install = new InstalleFrame();
                    JFrame frame = new JFrame("Install");
                    frame.getContentPane().add(install.getContentPane());
                    frame.setDefaultCloseOperation(3);
                    frame.setSize(550, 400);
                    frame.setUndecorated(false);  //**
                    frame.pack();  //**
                    frame.setLocationRelativeTo(null); //**
                    frame.setVisible(true);
    }

  • Rich Text Editor bug

    Hello,
    My flex website at
    http://www.theplaygrounds.co.uk/The_Playground.swf
    throws the below error when I click on Contact or B/I/U on the Rich
    Text Editor.
    ReferenceError: Error #1069: Property string not found on
    mx.controls.RichTextEditor and there is no default value.
    at
    mx.validators::Validator/mx.validators:Validator::getValueFromSource()
    at mx.validators::Validator/validate()
    at mx.validators::Validator/::triggerHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::RichTextEditor/__textArea_valueCommit()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::TextArea/set text()
    at
    mx.controls::RichTextEditor/mx.controls:RichTextEditor::commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/::validateProperties()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    What is actually the bug here?
    Also, on the contact page, I need to be able to scroll down
    for the submit button. How could I implement this? I've tried
    everything.
    Thanks

    Hi,
    I have this code for validation:
    <mx:StringValidator
    id="nameValidator"
    source="{userName}"
    property="string"
    minLength="2"
    />
    <mx:StringValidator
    id="nameValidator1"
    source="{userComment}"
    property="string"
    minLength="2"
    />
    <mx:StringValidator
    id="nameValidator2"
    source="{userEmail}"
    property="string"
    minLength="2"
    />
    This acts on the contact form's forms, as these are the only
    textboxes in the web app.♠
    The contact form code:
    </mx:Canvas>
    <mx:Canvas label="Contact" width="100%" height="100%"
    verticalScrollPolicy="off" backgroundAlpha="0.7">
    <mx:Panel
    title="Feedback"
    left="10" top="10" right="10" bottom="10"
    layout="absolute"
    verticalScrollPolicy="on">
    <mx:Script>
    <![CDATA[
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    private const NL:String = "\r";
    private function submitButtonClickHandler
    (event:MouseEvent):void
    var userDetails:String = "You submitted the following
    details:" + NL + NL;
    userDetails += "Name: " + userName.text + NL;
    userDetails += "Email: " + userEmail.text + NL;
    userDetails += "Hide email? " + (hideEmail.selected ? "Yes"
    : "No") + NL + NL;
    userDetails += "Comment:" + NL + NL + userComment.text;
    Alert.show (userDetails);
    private function emailButtonClickHandler
    (event:MouseEvent):void
    var msg:String = "You can use the navigateToURL() method to
    open a URL"
    msg += " using a call similar to the following:\r\r";
    msg += "navigateToURL (new URLRequest
    ('mailto:[email protected]'));";
    Alert.show (msg);
    ]]>
    </mx:Script>
    <mx:Panel
    title="Leave a comment"
    layout="absolute"
    width="523" height="573" x="10" y="10"
    backgroundColor="#E9ECE7" verticalScrollPolicy="on">
    <mx:Label text="Name:" x="10" y="12"/>
    <mx:TextInput id="userName" y="10" right="10"
    left="90"/>
    <mx:Label text="Email:" x="10" y="43"/>
    <mx:TextInput id="userEmail" y="41" right="10"
    left="90"/>
    <mx:Label text="Comment:" x="10" y="99"/>
    <mx:CheckBox
    id="hideEmail"
    y="76" left="90"
    label="Hide my email address"
    selected="true"
    />
    <mx:RichTextEditor x="90" y="126" title="Leave a comment"
    id="userComment" text="Leave A Comment" enabled="true"
    verticalScrollPolicy="auto">
    </mx:RichTextEditor>
    <mx:ControlBar x="120" y="258"
    horizontalAlign="center">
    </mx:ControlBar>
    <mx:Button
    id="submitButton" label="Submit"
    click="submitButtonClickHandler(event);"
    x="355" y="79" fontSize="10" fontWeight="bold"
    mouseDownEffect="{shrink}" mouseUpEffect="{revert}"
    fillAlphas="[0.0, 0.0, 0.0, 0.0]">
    </mx:Button>
    </mx:Panel>
    <mx:Script>
    <![CDATA[
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    private function submitButtonClickHandler1
    (event:MouseEvent):void
    var userDetails:String = "You submitted the following
    details:" + NL + NL;
    userDetails += "Name: " + userName.text + NL;
    userDetails += "Email: " + userEmail.text + NL;
    userDetails += "Hide email? " + (hideEmail.selected ? "Yes"
    : "No") + NL + NL;
    userDetails += "Comment:" + NL + NL + userComment.text;
    Alert.show (userDetails);
    ]]>
    </mx:Script>
    Apologies if this is a basic bug, as I am new to the Flex
    platform.
    Thanks for your help♠♠

Maybe you are looking for

  • It won't compile

    I got the following code from the Oracle web site in fact its from Tom or "Ask Tom". I keep getting an error when I try to run it at the first line that says "Invalid SQL Statement". Its basically getting the long running transactions! Can someone as

  • Difference between SWEC and SWED transactions

    Hi all, SWEC is used to link the Change Doc. Object with Business Object event. SWED is used to link Change Doc. Object with Primary Table. My qus. is -> (1) Change Doc. object which is used in SWEC is linked to table(s) in SCDO tcode. Then what is t

  • Any way to hide/collapse events by year?

    I switched to a Mac and iLife and love it!  However, after importing some 20 years of photos in to iPhoto I have a very unwieldily long list of events.  In the past I had separate folders for each year, and then folders for each event under them.  Is

  • "best practice" documentation for installing/upgrading Apache 2, php, mysql

    does any documentation exist for the recommendation procedures for installing/upgrading Apache 2, mysql, php ??? thanks

  • Compression artifacts in validate dng output - proof attached

    I have uploaded a zip file - out.dng is the output of validate dng. https://dl.dropboxusercontent.com/u/9906333/dngs.zip Look at the edges of the white chair - you will see classic jpeg compression artifacts. Note that this is the default lossless jp