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.

Similar Messages

  • Displaying Text as HTML in the UIscrollbar component

    Greetings.
    I have a window on my Flash stage that has some scrollable copy in it.  The problem is, I can't seem to have any formatting for the text ... if I select a word or two to make bold, it all turns bold.  I gather I need to use the "Display Text as HTML" checkbox and then paste in some HTML formatted text but this doesn't seem to work.  I searched this forum and found that others were designating "htmlText" in Actionscript instead of just "text" ... that didn't work either.  I probably just did it wrong, or maybe it's becuase I'm using the UI component "UIscrollBar" for it's scrolling of the text.
    Is there anything else I need to do to be able to format some text with strong tags and maybe some href links?
    I have my properties inspector with the following check marks:
    Display as HTML
    Multiline
    Dynamic Text
    selectable
    Thanks everyone.

    Shamelss bump

  • Forgot how to format HTML  in Text Area

    Hello all,
    I totally forgot something. How do you format HTML when rendering in Text area
    Suppose I pass in a string that a text area grabs for display.
    xxx.getAdditionalComments(existingComments + "\n"  +  "<B>" + date + "<\B> " + name);The text are will always display the <B> instead of displaying the date in bold.
    I remember putting escape characters eons ago but I forgot how that worked. Anyone know how to render this with date being bolded?
    Thanks.

    If you mean the textarea HTML tag for text entry fields, you don't. If you forgot anything it's that you can't do things like that.

  • Scrollbar doesn't show all text in RichEditableText component ...

    The program is loading text from an external XML-file into a RichEditableText component.
    However, scrolling an scrollbar does not show all the available text.
    To me, it looks like the scrollbar is not updated to adopt itself to the new text.
    Does someone has any pointers, how to fix this, because I have no clue where to look?
    Thanks in advance,
    Peter
    Code snippets:
    The bindable 'data' is filled with an html-formatted text, when the XML-file is loaded.
    TextFlow is used to display the html-formatted text.
    MyTextScrollPanel component contains VScrollBar and component MyTextScrollPanelScrollingContentSkin:
    <s:VScrollBar id="vscrollbar" left="185" right="0" top="0" bottom="0" fixedThumbSize="true"
    viewport="{contentGroup}" />
    <components:MyTextScrollPanelScrollingContentSkin id="contentGroup" clipAndEnableScrolling="true"
    left="0" right="20" top="0" bottom="0"/>
    MyTextScrollPanelScrollingContentSkin component:
    <fx:Script>
              <![CDATA[
              [Bindable] public var data:String;
              ]]>
    </fx:Script>
    <s:RichEditableText id="textContent" d:userLabel="Text" x="0" y="0" width="185" height="682"
                                  editable="false" selectable="false" color="#ffffff"
                                  fontFamily="Myriad Pro" fontSize="12" tabStops="S0 S50 S100 S150 S200"
                                  textFlow="{TextConverter.importToFlow(data, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                                  whiteSpaceCollapse="preserve" >
    </s:RichEditableText>

    One (practical) solution I came up myself, is adopting the height of the RichEditableText to the length of the data:
    <s:RichEditableText id="textContent   ...  height="{data.length}"      .... />
    A practical height value turns out to be {data.length/2}, indicating that 50% of the text is html-tags and whitespaces (??)
    Does someone knows or could point to a more elegant solution?
    Note: the division "/2" worrows me, since the customer is proving the text.
    Thanks,
    Peter

  • Sending Email using both HTML and plain text

    I could use some advise on how to start researching email for
    both HTML and plain text messages.
    I have a script called class.phpMail.php, but the code is
    alittle advanced for me. Basically I can't get
    it to work on my server and I don't know where to begin the
    learning process here.
    I talked to my provider, "HOST" company goDaddy.com and I was
    told that to connect so that I could send email I would need this
    line of code. They didn't say it should by in my php.ini file but
    that was where I found it.
    SMTP = relay-hosting.secureserver.net
    This is the smtp address that my provider uses to make the
    connection with my mail client.
    I was told that with this line of code I would not need a
    password or username
    I did some further reseach and I found an article that stated
    that my original error:
    Warning: fsockopen() expects parameter 2 to be long, string
    given in ...../php/class.smtp.php on line 105
    was being caused by this code because the $port value needed
    to be between 1 - 65365:
    $this->smtp_conn = fsockopen($host, # the host of the server
    $port, # the port to use ----- "this is line 105"
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    In particular the $port value was coming in corrupted and
    that I needed to cast it.
    I did as they suggested and made it an (int) as they
    suggested.
    $this->smtp_conn = fsockopen($host, # the host of the server
    (int)$port, # the port to use
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    It resolved part of the error message however, the other half
    of the error message is shown below:
    Message could not be sent.
    Mailer Error: Language string failed to load: connect_host
    What exactly is the connect_host they refer to in this
    message?
    Would it be the string in my php.ini file refering to the
    SMTP = relay-hosting.secureserver.net
    I have allot of what I think are disconnected questions as I
    really have just begun to work
    with the mail() function. If anyone has the time to educate
    this newbie into the wonderful
    world of email() I would appreciate it.
    Thank You
    Kevin Raleigh

    Sorry to dig up an old post, but we've spent the last few days trying to work out why an email campaign being sent from BC is going into the Junk folder of recipients that use MS Exchange. We've fixed quite a lot of issues, including the fact that Legacy Templates have random JS injected just before they get sent, so we had to switch to the new template system. We've narrowed the issue down to one of three things:
    1. A missing alt tag on the tracking image that BC drops into the email (pretty unlikely)
    2. The BC Europe IP (54.240.14.45) is blacklisted here: UCEPROTECTL2 (possible, but if you actually look it's not the IP itself, but another IP on the same network, so unlikely)
    3. The fact that the HTML email has no text component.
    I agree, BC is late on this but I think that it needs to be added, even if most users have HTML-ready email clients, spam checkers do seem to prefer multi-MIME emails.
    This is backed up by the following SpamAssassin rule, which we are currently unable to resolve:
    -1.105
    MIME_HTML_ONLY
    Message only has text/html MIME parts
    You should also include a text version of your message (text/plain)
    So in my opinion, BC do still need to add this as a feature, otherwise the system is not viable for our customers and we'll have to look elsewhere.

  • Displaying Text in List Component

    I am using AS3 to load data from an XML document into an Array and use the Array as a dataProvider for a List Component. If I addChild the list to the main timeline, everything works fine. All 38 elements show up in the list with readable text. When I addChild the list into a MovieClip, all 38 rows of the list get created, but no text shows up. What the hell is going on? Does anyone know what the fix for this is and why in the world this is happening?
    Here's my code:
    TOCList = new List();
    TOCList.dataProvider= new DataProvider(TOCArray);
    TOCList.labelField="theLabel";
    TOCList.y=75;
    TOCList.width=250;
    TOCList.height=350;
    addChild(TOCList);
    When I change the addChild(TOCList) to navBar.sceneMenu.addChild(TOCList) the list shows up formatted correctly, just no text.

    I figured it out with help from another web site's forum and the problem was that the MovieClip that I was loading into was masked, so the font needed to be embedded and my code...
         var myFormat:TextFormat = new TextFormat();
        myFormat.font="Tahoma";
        TOCList.setStyle("embedFonts", true);
        TOCList.setStyle("textFormat", myFormat);
    ...wasn't working, but I didn't know, because the text wasn't showing.
    The fix was actually to use the StyleManager...
    StyleManager.setStyle( "textFormat", new TextFormat("Arial") );
    StyleManager.setStyle( "embedFonts", true );
    ...to force all components to this style.
    I have no idea why the above code doesn't work. If anybody knows, please tell me!!!

  • Convertir un rapport Html en rapport texte

    convertir un rapport Html en rapport texte

    Bonjour,
    Vous voudriez convertir un fichier de format HTML en un fichier de format texte en utilisant LabVIEW.
    * Il existe des VIs qui pourront vous aider à faire cela : Allez dans Palettes Fonctions>>Avancé>>Manipulation de données>>XML. Le VI "Décoder une chaîne XML" vous aidera peut être.
    * Si vous utilisez les fonctions classiques LabVIEW d'ouverture et lecture de fichiers avec un fichier de format HTML comme entrée, vous obtiendrez en sortie le contenu de votre fichier HTML sous format "brut", soit sous forme de balises.
    L'exemple ci-joint permet d'extraire du code HTML le contenu.
    Cf. : Fichier joint.
    * Enfin, ci-dessous le lien d'une discussion forum dont le sujet est assez proche du votre :
    http://exchange.ni.com/servlet/ProcessRequest?RH
    IVEID=101&RNAME=ViewQuestion&HOID=506500000008000000CC980000&ECategory=LabVIEW.LabVIEW+General
    J'espère que ma réponse vous aidera à voir plus clair.
    Sanaa TAZI
    Application Engineer
    National Instruments
    Attachments:
    Extract_Content_from_HTML[1].vi ‏55 KB

  • Writing HTML data in TEXT File

    I am writing HTML content in TEXT file ...I read it in a string and then write using PrintStream...
    But it writes all content on one line ..I want to write it as it was in source HTML file...

    Perchance, the OP is referring to the lack of carriage returns in his outputted data, and querying where they have absconded to? An analysis of his posts to date reveals that he has read the contents of a File into a String variable, and wants to write the (presumably modified) String back to a file (uncertain as to whether this is the same file or a different one) In the process of outputting to said file, carriage returns previously contained in the original input file are not present in the output. I would hazard a guess that the OP does not want said carriage returns in the String to disappear.
    Is my analysis of the situation correct?
    An example of the code that you have written to date would be of extreme usefulness to us in aiding you in your noble quest.
    Without such a resource, I must rely on my intuition instead.
    Possible places that the carriage returns are being "dropped"
    1 - On reading in. Are you discarding carriage returns while building up your variable?
    2 - On manipulating. Are you processing this line by line, or reading it all into one large variable?
    3 - On output - are you using "print" or "println" in the output?
    I look forward to further correspondence with you sir
    kind regards,
    evnafets

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • How to get the source code of an HTML page in Text file Through J2EE

    How to get the source code of an HTML page in Text file Through J2EE?

    Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
    - Saish

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • How to Set Up TextEdit as an HTML or Plain Text Editor?

    How to Set Up TextEdit as an HTML or Plain Text Editor?

    Well,
    There are 5 choices to choose from on the page. In the description of the choices at the bottom of the page there are 7, and the two additional choices talk about having to first have registered the site with SSO. So...I'm interpreting that as meaning that other 2 possible choices would be displayed if the site is registered with SSO. That, plus the fact that the page which describes how to add the site to SSO seems to think that the SSO choices are displayed in the wizard.
    So, no, there's no "exact launguage" that says what the reason is for the choices not being displayed. Can you point me to some exact language that tells me how to get those choices displayed?

  • 'Format Payment Instructions with Text Output' program ending in error

    Hi All,
    'Format Payment Instructions with Text Output' program of the payment cycle is completing in to error.
    error is:
    length of the output - baos::4914
    After formatting, periodicSeq is null or empty.{}
    length of the output - baos::4914
    Exit: iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCommon()
    Saving format output.
    Enter: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
    Querying file system output attributes
    ppDir: null
    ppExt: null
    ppPre: null
    File system output settings that override the concurrent program default: {}
    Exit: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
    Enter: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
    Concurrent request output file name: /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/out/o19301342.out
    Opened file in append mode: /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/out/o19301342.out
    Exit: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
    Enter: iby.scheduler.FDExtractAndFormatting.saveFormatOutput()
    Nov 25, 2009 7:59:16 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create application module.;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModuleInternal(OAApplicationModuleFactory.java:476)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModule(OAApplicationModuleFactory.java:608)
    at oracle.apps.iby.util.OAAttachmentServerUtilsWrapper.<init>(OAAttachmentServerUtilsWrapper.java:35)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.saveFormatOutput(FDExtractAndFormatting.java:450)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:421)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:251)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException: Unable to load metamodel definition because the mmd file file:/NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml is invalid.
    /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml (No such file or directory)
    at oracle.adf.mds.internal.ElementData.<init>(ElementData.java:113)
    at oracle.adf.mds.internal.MElementImpl.<init>(MElementImpl.java:480)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.getSubstitution(JBODefManagerHelper.java:240)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.getSubstitution(JBODefManagerHelper.java:178)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.listBindings(JBODefManagerHelper.java:124)
    at oracle.adf.mds.jbo.JBODefManager.listBindings(JBODefManager.java:100)
    at javax.naming.InitialContext.listBindings(InitialContext.java:406)
    at oracle.jbo.mom.DefinitionManager.findSubstituteName(DefinitionManager.java:451)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:411)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)
    at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)
    at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
    at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)
    at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModuleInternal(OAApplicationModuleFactory.java:428)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModule(OAApplicationModuleFactory.java:608)
    at oracle.apps.iby.util.OAAttachmentServerUtilsWrapper.<init>(OAAttachmentServerUtilsWrapper.java:35)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.saveFormatOutput(FDExtractAndFormatting.java:450)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:421)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:251)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    An error occurred. Roll back any changes.
    Done roll back changes.
    Request completed in error.
    Has anybody came across this error. If yes, what needs to be done to resolve this error?
    Thanks in advance for your help.
    Thanks Again,
    Sachin

    Hi,
    oracle.adf.mds.exception.MDSRuntimeException: Unable to load metamodel definition because the mmd file file:/NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml is invalid. Please see if (Note: 556812.1 - R12 Error When Running The Payment Format: JRADElementList.xml is Invalid) is applicable.
    Regards,
    Hussein

  • HTML instead of text for the worksetItems of the SAPUI5 Shell

    How to put HTML for the worksetItems?
    Now, it is only text (example with the dashboard title):
    worksetItems: [new sap.ui.ux3.NavigationItem("WI_home",{key:"wi_home",text:"Dashboard"}),
    Do you know how to put HTML instead of text?
    I need it to to put an image next to the title with the font :
    <span class="icon-statistics"></span>
    Vincent

    Hi Vincent,
    worksetItems accepts only aggrgetion of type sap.ui.ux3.NavigationItem[]
    css could be applied for the id of the worksetITem
    like
    <style>
      #WI_home {
        background-color: green;
      </style>
    an example
    JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;icon&quot; href=&quot;http://static.jsbin.…
    Thanks and Regards, Venkatesh

  • How to display text file text in aTextArea component

    Hello
    ive managed to display the text file text in the console, but i want it to show up in the textArea component i have in a frame,
    it seems to display the last character . in the text area
    wheres the rest of the text...this was a lot easier in VB.NET
    any help would be much appreciated
    heres my code...
    private void openButtonActionPerformed(java.awt.event.ActionEvent evt)  {//GEN-FIRST:event_openButtonActionPerformed
    // TODO add your handling code here:
         FileNameExtensionFilter filter = new FileNameExtensionFilter("Text Files Only","txt");
         editorFileChooser.setFileFilter(filter);
         int returnVal = editorFileChooser.showOpenDialog(this);
         if (returnVal == JFileChooser.APPROVE_OPTION){
              System.out.println("You chose to open this file: " + editorFileChooser.getSelectedFile().getName());
              openFileName = editorFileChooser.getSelectedFile().getName();
              openFile = new File(openFileName);
              try {
                   this.readFile = new FileReader(openFile);
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              int inputCharacters;
         try {
         while ((inputCharacters = readFile.read()) != -1){
              System.out.print((char)inputCharacters);
              char[]CHARAARAY = {(char)inputCharacters};
              s3 = new String(CHARAARAY );
              this.editorTextArea.setLineWrap(true);
         this.editorTextArea.setText(s3.toString());
         readFile.close();
         catch(IOException ex){
              System.out.println();
    }//GEN-LAST:event_openButtonActionPerformed

    >
    wheres the rest of the text...this was a lot easier in VB.NET>If you only need to code for Windows, use VB. For code that works on computers, learn the Java idioms, especially with regard to X-plat issues with Files.
    >
    heres my code...>That was a code snippet. You will get better chance of help around these parts, if you can prepare an SSCCE. The code below* is an SSCCE.
    There was a basic problem in the logic of that code, that resulted in the assumption (by the JRE) that every file the user attempted to load, was located in the 'current directory'. It was fixed by abandoning the String based file name of the file, and instead setting openFile to the selected file in the chooser. I also demolished the loading code by replacing the JTextArea with a JEditorPane (much easier).
    * Altered code;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import java.io.*;
    class TestLoadFile extends JPanel {
      JFileChooser editorFileChooser;
      File openFile;
      JEditorPane editorTextArea;
      TestLoadFile() {
        super(new BorderLayout());
        editorTextArea = new JEditorPane();
        add(
          new JScrollPane(editorTextArea),
          BorderLayout.CENTER );
        JButton load = new JButton("Load File");
        load.addActionListener( new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
              openButtonActionPerformed(ae);
        add( load, BorderLayout.SOUTH );
        editorFileChooser = new JFileChooser();
      public static void main(String[] args) {
        TestLoadFile tlf = new TestLoadFile();
        JOptionPane.showMessageDialog(null, tlf);
      Dimension preferredSize = new Dimension(600,400);
      public Dimension getPreferredSize() {
        return preferredSize;
      private void openButtonActionPerformed(java.awt.event.ActionEvent evt)  {
        //GEN-FIRST:event_openButtonActionPerformed
      // TODO add your handling code here:
        FileNameExtensionFilter filter = new
          FileNameExtensionFilter("Text Files Only","txt");
        editorFileChooser.setFileFilter(filter);
        int returnVal = editorFileChooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION){
          System.out.println("You chose to open this file: " +
            editorFileChooser.getSelectedFile().getName());
          // wrong!
          //openFileName = editorFileChooser.getSelectedFile().getName();
          //openFile = new File(openFileName);
          // right!
          openFile = editorFileChooser.getSelectedFile();
          try {
            editorTextArea.setPage(openFile.toURI().toURL());
          } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
      }//GEN-LAST:event_openButtonActionPerfor
    }

  • Text and Image component Image placing not working!

    Hi Guys,
    For some odd reason, when I drop text and image component to the page I do not see the left or right option to place image in "Styles" tab.  The styles tab shows blank and by default paragraph gets placed after image.  This only happens in my site, not in Geomatrix. Am I missing something to include??
    Thanks in advance.

    geometrixx site has extended the text&image component thats why it shows that option. earlier in 5.4 version they directly overrided in geometrixx apps but now you wont find it there. But if you want to achieve this functionality then you have to override same component locally in your apps and add some more configuration to style tab as below.
    <tab4
                jcr:primaryType="cq:Widget"
                xtype="componentstyles">
                <items jcr:primaryType="cq:WidgetCollection">
                    <controlstyle
                        jcr:primaryType="cq:Widget"
                        fieldLable="ControlStyle"
                        name="./ControlStyle"
                        title="ControlStyle"
                        type="select"
                        xtype="selection">
                        <options jcr:primaryType="cq:WidgetCollection">
                            <Left
                                jcr:primaryType="nt:unstructured"
                                text="Left Align"
                                value="left"/>
                            <Right
                                jcr:primaryType="nt:unstructured"
                                text="Right Align"
                                value="right"/>
                        </options>
                    </controlstyle>
                </items>
            </tab4>

Maybe you are looking for