Use jbo:InputRender instead of html:text

I'm currently trying JDev 10g preview and i'm using Business Components with Struts. When i use the data control palette to create an input form in a JSP page, all the input are html:text. Is there a way to set the default type of all inputs to jbo:InputRender instead of html:text?
Thanks
J�r�

No, i would like to set the type of each input in my Business Component instead of in the JSP pages. This way, if i want to change the type of an input, i will have to change my business component, not my JSP pages.
So, to be able to do this, i have to change every input from html:text to jbo:InputRender in all my forms. Which i think is not optional, because if the input type is not indicated, jbo:InputRender use the input type (which in most case, except for dates, is html:text).

Similar Messages

  • How to use bean write in  struts html:text tag

    hi,
    i'm new to struts concepts.here i'm trying to write a value in html struts tag using <bean:write>
    my current tag is
    <html:text property="empname" value='<bean:write name="employee" property="empid">' />
    but it gives same tag in the text box.how i can solve this.

    what am I doing wrong?You will notice above that I mentioned
    YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
    (was that loud enough for you to notice this time)?
    Try
    <html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
    //or
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
    better alternative: populate your formbean with your action and just have:
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
    If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
    Cheers,
    evnafets

  • Html text in label is moving when used as a renderer in a table cell

    Hi everybody,
    Because it is impossible to use gradient background for html, I created a custom TableCellRenderer that uses a JLabel (for the html text) inside a JPanel with a gradient background. (I use jdk1.5.0_06)
    However, in the code that I'm posting, something strange happens. The text is moving up and down as I move with the arrow button along the first row, from left to right and backwards, crossing the entire row.
    You can see for yourself. If someone can explain this behavior, please help!
    public class MyFrame extends javax.swing.JFrame {
        public static void main(String args[]) {
               new MyFrame().setVisible(true);
        public MyFrame() {
             setTitle("Use LEFT & RIGHT buttons to test");
            javax.swing.JTable table = new javax.swing.JTable();
            table.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] { {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""} },
                new String []   { "Title 1", "Title 2", "Title 3" }
                public Class getColumnClass(int columnIndex) {
                    return String.class;
            table.setRowHeight(30);
            table.setRowHeight(0,100);
            table.setRowSelectionInterval(0,0);
            table.setColumnSelectionInterval(0,0);
            table.setValueAt("This text MOVES up-down as you move across THIS ROW!!!",0,0);
            table.setValueAt("This text MOVES up-down as you move across THIS ROW!!!",0,1);
            table.setValueAt("This text DOES NOT MOVE as you move across THIS ROW!!!",0,2);
            table.setDefaultRenderer(String.class,new StringRenderer());
            getContentPane().add(table, java.awt.BorderLayout.CENTER);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setBounds(200,200,500,300);
        class StringRenderer extends GradientPanel implements javax.swing.table.TableCellRenderer {
            public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
                   label.setText("<html><p align=center>"+String.valueOf(value)+"</p></html>");
                setColors(new java.awt.Color(255,255,255),isSelected?new java.awt.Color(255,100,100):new java.awt.Color(255,200,200));
                label.setBorder(hasFocus?new javax.swing.border.LineBorder(java.awt.Color.yellow,1):null);
                return this;
        class GradientPanel extends javax.swing.JPanel {
            private java.awt.Color c1,c2;
            protected javax.swing.JLabel label;
            public GradientPanel() {
                label = new javax.swing.JLabel();
                setLayout(new java.awt.GridBagLayout());
                java.awt.GridBagConstraints gbc = new java.awt.GridBagConstraints();
                gbc.fill = java.awt.GridBagConstraints.BOTH;
                gbc.weightx = 1.0;
                gbc.weighty = 1.0;
                gbc.insets = new java.awt.Insets(5,5,5,5);
                add(label, gbc);
            public void setColors(java.awt.Color c1, java.awt.Color c2) {
                this.c1 = c1;
                this.c2 = c2;
                this.repaint();
            public void paintComponent(java.awt.Graphics g) {
                if ( c1 != null && c2 != null ) {
                    java.awt.Graphics2D g2d = (java.awt.Graphics2D)g;
                    g2d.setPaint(new java.awt.GradientPaint(0,0,c2,0,this.getHeight(),c1,false));
                    g2d.fillRect(0,0,this.getWidth(),this.getHeight());
    }

    If someone can explain this behavior, please help!Can't explaing the behavour, but it seems to work fine when you use a JeditorPane or JTextPane which are specifically designed to display HTML.

  • Formatting HTML Text in Text component

    Hi all,
    I'm trying to render some Html text in a text component, I'm
    getting the HTML from within an xml document as such:
    <xml><htext><p><b>Testing HTML
    Text</b></p><p>Here's another
    line.</p></htext></xml>
    If I put that into a Text component with the htmlText=htext
    property, the line spacing is as expected, but it seems to add in a
    blank space character for every character of the html code. (E.g.
    "<b>Testing" adds 3 extra spaces before the word "Testing").
    Renders like (using - as space character):
    Testing HTML Text
    -Here's another line.
    If I use the condeseWhite=true property on the Text
    component, it fixes the extra space characters issue, but then
    stuffs the line spacing up, so <p> becomes rendered like a
    <br>.
    Renders like:
    Testing HTML Text
    Here's another line.
    Any thoughts, or help is much appreciated, thanks in advance.
    Oz
    P.S I was trying to avoid the obvious "br" tag which will
    make it work and render correctly....
    <p><b>Testing HTML Text</b></p>
    <br/><p>Here's another line.</p>

    no. use css.

  • Open hyperlinks in html text using StageWebView instead of external browser

    My iPad app downloads xml data from a server and displays it as html text. The text may contain hyperlinks and currently these are correctly displayed as links in my app. However when I click on the link, it opens the link in an external browser.
    Any idea how I could instead open the links using StageWebView - I know how to open a link using StageWebView - the problem is intercepting whatever causes it to open in the external browser and instead use StageWebView.
    Thanks in advance

    Hi, John, welcome to Apple's user-to-user discussion forums.
    Does anyone here know of a way to open new windows without using command click in a tab?
    If you want links on a web page to open in a new tab, you need to command-click on them. This will work both for links set up to open in the same window and those set up to open in a new window. There is no setting in Preferences to make links on a web page automatically open in a new tab.
    There is a preference setting to open links from other programs, such as Mail, in a new tab. In Safari's Preferences, click on the General icon. Towards the bottom where it says "Open links from applications", check "in a new tab in the current window".

  • JBO-27014 use Attribute Label instead of Name

    Hi.
    By deafult JBO-27014 has a message "Attribute {2} in {1} is required". And {2} represents attribute Name and {1} represents AppModuleName.VOName. This is very user unfriendly. Is it possbile to use for {2} attribute's Label?
    If I have attribute name "ABC" with label "ABCLabel" I want my message to be something like "Attribute ABCLabel is required". Is it possible?
    Regards

    hi user,
    I can not find anywhere how to use Label (UIHints) instead of attribute nameit 'simple .
    go to your vo. select the particular attribute. click pencil icon.
    edit the attribute wizard appears which you want to change the name.
    in that i think click the fourth node "control hints"
    in that label text option will available.
    you may give. as you need.

  • html:text styleid problem while using document.getElementById -very urgent

    Hi all,
    I am using the following struts code in my jsp.
    Each time when I click the checkbox corresponding to each record, I want the screencode to be displayed using the javascript alert.
    But always I am getting the same screencode (only the first screencode).
    What I should do to get the screencode for the corresponding selection of the checkbox
    <logic:iterate id="slist" name="scrlist" scope="session" >
    <html:text property="screencode" name="slist" styleId="sc" indexed="true"/>
    <bean:write name="slist" property="screen"/>
    <html:checkbox property="readchk" alt="Select to enable read right" onclick="javascript:alert(document.getElementById('sc').value)"/>
    </logic:iterate>
    Could anybody help me to fix this problem as soon as possible
    parvathy

    The tricky thing about Ajax is that it's asynchronous. That's the point...
    What you need to do is return a success or fail status from your servlet (or whatever ServiceAuth is...), let's say a 1 or 0. (0 bad, 1 good). You could even get real fancy and return 0 for username doesn't exist, 1 for password doesn't match user name or 2 for success.
    Then have your javascript update the page based on the response received. On a fail response call some javascript method that displays your related Uh-oh message, and on a successresponse call some method that updates the document.location of the page.
    HTH.

  • No getter method when used html:text

    hi frnds,
    this is the way i ve written-->
    <html:text name="bdgtmastForm" property="publicity_code" size="5" maxlength="5">
    but its giving me an error which seems irrelevent..
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /pages/admin/addbdgt.jsp:61
    58: <tr>
    59: <td width="50%" height="25"><strong><small><font face="Verdana">Publicity Code </font></small></strong></td>
    60: <td width="50%" height="25">
    61: <html:text name="bdgtmastForm" property="publicity_code" size="5" maxlength="5"></html:text>
    62: <!-- <input type="text" size="5" maxlength="5" name="publicity_code"></td> -->
    63:
    64: </tr>
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:467)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:371)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    root cause
    javax.servlet.ServletException: No getter method for property publicity_code of bean bdgtmastForm
    org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:846)
    org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:779)
    org.apache.jsp.pages.admin.addbdgt_jsp._jspService (addbdgt_jsp.java:89)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:328)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    root cause
    javax.servlet.jsp.JspException: No getter method for property publicity_code of bean bdgtmastForm
    org.apache.struts.util.RequestUtils.lookup(Request Utils.java:968)
    org.apache.struts.taglib.html.BaseFieldTag.doStart Tag(BaseFieldTag.java:176)
    org.apache.jsp.pages.admin.addbdgt_jsp._jspx_meth_ html_005ftext_005f0(addbdgt_jsp.java:577)
    org.apache.jsp.pages.admin.addbdgt_jsp._jspx_meth_ html_005fform_005f0(addbdgt_jsp.java:184)
    org.apache.jsp.pages.admin.addbdgt_jsp._jspx_meth_ html_005fhtml_005f0(addbdgt_jsp.java:116)
    org.apache.jsp.pages.admin.addbdgt_jsp._jspService (addbdgt_jsp.java:82)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:328)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
    Apache Tomcat/5.5.23
    my bean class is--->
    public String getPublicity_Code()
    return(this.publicity_code);
    why am i getting this error when i ve already declared publicity_code in the bean class????
    regards,
    a_joseph

    hi guyz,
    herz my jsp page for submiting the values,
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html:html>
    <head>
    <title>Budget Master Administration</title>
    <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
    <SCRIPT LANGUAGE="JavaScript" SRC="bscript.js"></SCRIPT>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    </head>
    <body topmargin="0" leftmargin="0" bgproperties="fixed">
    <div align="left">
    <html:form action="/BdgtMastAction" name="bdgtmastForm" type="publicity.BdgtMastForm" method="get">
    <table border="0" width="100%">
    <tr>
    <td width="100%" bgcolor="#DFDFFF" background="images/niceblue.gif"><font face="Tahoma"
    color="#000000"><strong>B u d g e t   M a s t e r</strong></font></td>
    </tr>
    </table>
    <div align="left">
    <table width="60%" height="127">
    <tr>
    <td valign="top" width="50%" height="34"><strong><small><font face="Verdana"></font></small></strong></td>
    <td width="50%" height="34"></td>
    </tr>
    <tr>
    <td valign="top" width="50%" height="27"><strong><small><font face="Verdana">Branch</font></small></strong></td>
    <td width="50%" height="27">
    <!-- <input type=hidden name="option" value="new"> -->
    <html:hidden name="bdgtmastForm" property="option" value="new"/>
    <p>
    <html:select property="branch" size="1">
    <html:option value="Bombay"></html:option>
    <html:option value="Ahmedabad"></html:option>
    <html:option value="Madras"></html:option>
    <html:option value="Bangalore"></html:option>
    <html:option value="Calcutta"></html:option>
    <html:option value="Hyderabad"></html:option>
    <html:option value="Pune"></html:option>
    <html:option value="Lucknow"></html:option>
    <html:option value="Jaipur"></html:option>
    <html:option value="Patna"></html:option>
    <html:option value="Cochin"></html:option>
    <html:option value="Chandigarh"></html:option>
    <html:option value="Bhopal"></html:option>
    </html:select>
    </p>
    </td>
    </tr>
    <tr>
    <td width="50%" height="25"><strong><small><font face="Verdana">Publicity Code </font></small></strong></td>
    <td width="50%" height="25">
    <html:text name="bdgtmastForm" property="publicity_Code" size="5" maxlength="5"></html:text>
    <!-- <input type="text" size="5" maxlength="5" name="publicity_code"></td> -->
    </tr>
    <tr>
    <td width="50%" height="25"><strong><small><font face="Verdana">Annual Budget Alloted (<em>Rs</em>)</font></small></strong></td>
    <td width="50%" height="25">
    <!-- <input type="text" size="10" maxlength="10" name="budget"> -->
    <html:text property="budget" name="bdgtmastForm" size="10" maxlength="10" ></html:text>
    </td>
    </tr>
    </table>
    </div>
    <p align="left">
    <html:submit value="Submit" property="thesubmit" onclick="everything(form)"> </html:submit>
    </p>
    <hr>
    <strong><small><font color="#0080C0">
    <p align="center">�</font><font color="#0080C0" face="Verdana">Response - Corporate
    1998-1999</font></small></strong>
    </html:form>
    </div>
    </body>
    </html:html>
    and the exceptions that im getting when clicked on submit
    when i click on submit normally the javascript validation shud check for improper values,instead its getting submitted,and the below exceptions r the result..
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Column 'Publicity_Code' cannot be null
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'Publicity_Code' cannot be null
         com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
         com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
         com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
         com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
         com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
         com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
         com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1585)
         com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1500)
         com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1485)
         org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
         publicity.BdgtMastAction.execute(BdgtMastAction.java:57)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
    Apache Tomcat/5.5.23

  • Trouble using read() to append html text to JEditoPane()

    Trouble using read() to append html text to JEditoPane()
    I`ve created the method bellow in my GEditorPane class, wich extends JEditorPane. The problem is that, after each appended text, an undesired line break is added. I checked the getText() of the pane, and there was no <br> (but a \n) where the line breaks are localized, what is strange, since html doesn`t break lines with \n.
    Someone can help me ? Thankyou. SrLontra
    public void append(String str) {
    try {
    Document doc = getDocument();
    if (str == null || str.equals("")) {
    return;
    Reader r = new StringReader(str);
    HTMLEditorKit kit = (HTMLEditorKit) getEditorKit();
    kit.read(r, doc, doc.getLength());
    } catch (IOException ioe) {
    UIManager.getLookAndFeel().provideErrorFeedback(this);
    System.out.println("IOException :: appendHTML() :: GEditorPane");
    System.out.println(ioe.getMessage());
    } catch (BadLocationException ble) {
    UIManager.getLookAndFeel().provideErrorFeedback(this);
    System.out.println(     "BadLocationException :: appendHTML () :: GEditorPane");
    System.out.println(ble.getMessage());
    }

    Hello lukik,
    This is not exactly my problem, in my case, the break is not desired. For some reason, just before the appended text, a line break (\n) is inserted in the Document. And I don`t want this to happen. Added to this, why the HTML text breaks with the \n?
    Anyway, the threads were very instructive ^^.
    Thankyou. SrLontra.

  • Can you use html text in flash cc html5 project type?

    I'm attempting to dynamically change font color of various words inside a dynamic text field.
    I have tried both these lines of code below. have you dont this can you correct my code please?
    I'm using flash cc and html5 project type. This was possible in previous versions of flash.
    this.Logger.Log_File.htmlText = "<font color='#000000' size='-1'>"+MyGreatNumber+" "+"</font><BR>"+this.Logger.Log_File.htmlText;
    this.Logger.Log_File.htmlText = "<p style="color:#ff0000">"+MyGreatNumber+"</p><br>"+this.Logger.Log_File.htmlText;

    from the easeljs docs: Please note that Text does not support HTML text, and can only display one font style at a time. To use multiple font styles, you will need to create multiple text instances, and position them manually.
    to resolve, edit text in the js file where it's relatively easy to even use rtl text.

  • When I send or reply my static signature is in text instead of html. this is an issue because there is no space as normal. please advise or work with smartmail to correct. firefox is much quicker than explorer and I've always preferred firefox. thank you

    when I send or reply my static signature is in text instead of html. this is an issue because there is no space as normal. please advise or work with smartmail to correct. firefox is much quicker than explorer and I've always preferred firefox. thank you

    That is a legitimate Mozilla newsletter. As it says in the email:
    You're receiving this email because you subscribed to receive email newsletters and information from Mozilla. If you do not wish to receive these newsletters, please click the Unsubscribe link below.
    Unsubscribe https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/
    Modify your preferences https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/ "

  • How to define special character in html text file used in loadvars

    Hi
    I'm witing some maths software and need to use the division
    sign in a text file which is loaded using LoadVars().
    The variable loaded is then assigned to a text area. Here's
    the variable example.
    &hint1=<title><b>Challenge 1: Instant recall
    of any table</b></title><p>Including table
    divisions eg 56 ÷ 8= </p>
    the division sign is missing or a just a box. I've already
    tried most options: &#x00F7; (which works in XML loaded to
    flash), &divide; %F7
    Can anyone help please?

    Hi Michael. Thank you for your reply.
    There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:
    Default API client:  FmTranslator
    SGML character encoding:  ISO Latin1
    XML character encoding:  UTF-8
    Namespace: Enable
    CSS2 Preferences:
    Generate CSS2: Disable
    Add Fm CSS Attribute To XML: Disable
    Retain Stylesheet Information: Disable
    Entity locations
    Entity search paths
    C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents
    So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)
    Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"
    Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files
    But what I would like to avoid is editing those isoent files each time new character is be needed.

  • Need to compare html text area values by using java script

    I have one html text area in my JSP file. when i click on that text area, a pop-up will come, in that pop-up i have list of items. So after selecting a item from that pop-up list, need to click okay. so that text area will update with the selected value.
    In this case, i need to compare the first text area value and updated text area value. How can i do that in Java Script.

    I suggest you look for a Javascript forum to ask questions about Javascript. This is a Java forum.

  • Using HTML text with an embedded font in Flex 4

    I have spent a day searching the interwebs and have not found a working example of how to use an embedded font with html formatting.
    Anybody know if it can even be done??

    Should be doable, but all fonts used in the html have to be embedded, and
    one of the fonts should be specified as the fontFamily for the component.

  • Set clipboard content using html text

    Hi,
    I have a html text store in a string variable as mentioned below. I want to set this to the clipboard. But when I set this to clipboard I get the same HTML text and not a readable one.
    private
    var str:String
    = "SALE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;22&amp;nbsp;&amp;nbsp;&amp;nbsp;CASH040&amp;nbsp;07:26&amp;nbsp;AM";
    I tried to create a text area and set clipboard content from that but I am getting an error "TypeError: Error #2007: Parameter text must be non-null."
    I tried like
    var textArea:TextArea = new TextArea();
    textArea.htmlText = str;
    System.setClipboard(textArea.text);
    Kindly help me in resolving this.
    I want to set the readable text to clipboard and not the html text
    Thanks,
    Tamil

    Hi,
    I have a html text store in a string variable as mentioned below. I want to set this to the clipboard. But when I set this to clipboard I get the same HTML text and not a readable one.
    private
    var str:String
    = "SALE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;22&amp;nbsp;&amp;nbsp;&amp;nbsp;CASH040&amp;nbsp;07:26&amp;nbsp;AM";
    I tried to create a text area and set clipboard content from that but I am getting an error "TypeError: Error #2007: Parameter text must be non-null."
    I tried like
    var textArea:TextArea = new TextArea();
    textArea.htmlText = str;
    System.setClipboard(textArea.text);
    Kindly help me in resolving this.
    I want to set the readable text to clipboard and not the html text
    Thanks,
    Tamil

Maybe you are looking for