Word wrap in multiline text

JDeveloper 11.1.2.0.0
We have a description that is shown in the UI. The width of the component is fixed and is shown in multi-lines.
How can we show the text in multiline with word wrapping?
Thanks in advance,
Navaneeth

Did you simply try an <af:outputText>? That's all it needs. This will wrap just fine without any extra work:
<af:panelGroupLayout id="pgl1" layout="scroll" inlineStyle="width:400px;">
<af:outputText value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a justo sem, tincidunt consequat ante. Cras eros nunc, ornare ut congue quis, fringilla vel diam. Sed quis massa non libero laoreet suscipit sit amet eget leo. Pellentesque gravida leo a diam dapibus placerat porta lorem blandit. Maecenas id odio vitae nulla consequat blandit." id="ot2"/>
</af:panelGroupLayout>

Similar Messages

  • Help for changing the case of a selected word of a multiline text to upper

    DBVersion:10g
    Foms Version:10g
    Hi Experts,
    Actually i have a requirement where i have to change the case of a selected word by a user into upper case.
    ex: FFFFFF hhhhh GGGG
    when user selects hhhhh and click on some button or any other option it should change it to upper case.
    plss help me out.
    regards :(
    Edited by: user123 on May 11, 2011 12:46 PM

    Here is some PL/SQL code to change a particular occurence of a word in a text.
    In this case, I change the second occurence of the "two" word:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2   c varchar2(100) := 'one two three four one two three four one two three four' ;
      3   c2 varchar2(100);
      4   i integer;
      5   j integer := 0 ;
      6   pos integer := 1 ;
      7   occurence integer := 2 ; -- occurence to change
      8  begin
      9   loop
    10    i := instr(c,'two', pos);
    11    exit when j = (occurence-1) or i = 0;
    12    j := j + 1;
    13    pos := pos + i ;
    14   end loop;
    15   i := instr(c,'two', pos);
    16   if i > 0 then
    17     c2 := substr( c,1,i-1) || upper(substr(c,i, length('two')))
    18        || substr(c, i+length('two'));
    19   end if ;
    20   dbms_output.put_line(c2);
    21  end;
    22  /
    one two three four one TWO three four one two three four
    PL/SQL procedure successfully completed.Francois

  • Webforms - Wrap Text/Word Wrap for Column Headings

    I have some member aliases that are set as my webform's column headings, but they are fairly long. Setting the column width to a custom value that fits most of the text in the heading makes the form very wide and ugly to work with. I don't see any option to Wrap Text or use Word Wrap in the column headings. Is there any way to do this?
    Thanks!

    Hi,
    I am not aware of any option which allows you to wrap the text, it may be possible customizing the [CSS |http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/ch12s03.html] though to be honest I am not even sure about that and even if it was possible it would apply to all apps.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to word wrap within text field

    I've created a form with a text field but when filling the form out, the words don't word wrap, but merely go in a single line across the text box field. 
    When can I format the text box to word wrap?
    tks

    I have set my text fields to multi line and the text wraps but it only starts about halfway down the text box.  Please help, this is getting frustrating...

  • Looking for a word processor without word wrap, text edit doesn't cut it

    I'm looking for a word processor without word wrap, text edit doesn't work. In text edit, it automatically scoots my text over to the next line but I just want it to keep going with a horizontal scrollbar. Is there a text editor I can download from the app store or can I get textedit to work somehow where it uses a horizontal scroll bar instead of entering text to the next line?

    Hi,
    thought TextWrangler can do it.
    But it seems that the 'no word-wrap' "feature" isn't that much wanted anymore.
    Maybe one of these http://www.macupdate.com/find/mac/text%20editor can do it.
    Regards
    Stefan

  • Text area and Word Wrapping

    I am creating a email form and am having problems with word
    wraping in the text area. You can view the page and the output if
    you put your email address in the form. The problem is the text
    areas word wrap when inputting your information but all formatting
    is lost in the email. Even if I add spacing for paragraphs. All
    data is just a big run on sentence.
    Here is the
    Page.
    I am using Dreamweaver * and php.
    Thanks

    Someone may have tried this because I received this output in
    an email. You can see the formattint is lost.
    Gear Ad:
    Description:
    This is a test. Line 1 Line 2 Line 3 Line 4 -
    Test...test...test...test...test...test...test...test...test...test...test...test...test. ..test...test...test...test...test...test...test...test...test...test...test...test...test ...done!
    Price:
    test
    Contact:
    This is a test.

  • How can I copy and paste a pdf form onto my Mavericks Clipboard. I only see word-wrapped text.

    How can I copy and paste a pdf onto my Mavericks Clipboard. I only see word-wrapped text.

    Yes, Thank you for using the term Place. You moved my focus off the clipboard, and Place set me back on course. Somewhere, the terms Copy and Paste need to be tagged to Place and Export. I'm a database designer who only uses Illustrator for forms the database fills. My need isn't yet met, but the rest should come with reading the right references. Thanks Larry!

  • AWT only canvas - styled text, images, word wrap and url posting.. how???

    Wassup people!
    Ive created a java chat client which uses the JTextPane to post messeges, emoticons and styled text. But the main problem here is that the majority of web browsers only support awt. Telling the users to download the latest jre with swing is long and most would rather go to another site, so i have reprogrammed the whole client in awt apart from the textpane. I now face the problem of creating a canvas that supports styled text, images, word wrap and url posting.
    I am only a beginner in java and the initial client was quite easy to do using swing, but to program an efficient canvas that supports this has proved to be quite challenging. would anyone beable to show me the best way of doing this? or refer me onto a library that already supports this? or is there even an awt version of the JTextPane somewhere which would save alot of time? any help would be most appreciated.
    Thanks

    I've seen a few APIs that are 100% pure java in 1.1 that implement a styled text area. They aren't free though and I'm pretty sure someone made some money off of the fact that java 1.1 didn't implement a styled text area.
    I understand the problem you are having. Before the days of swing styled text was something you wished you had. Just so you know, there is no easy way of doing this. You could always paint it yourself with a canvas in a scroll pane but then you get to the point where, unless you did some serious mouse handling, highlighting text becomes very difficult.

  • pre div style="word-wrap:break-word" long text /div /pre doesn't force wrap

    <pre><div style="word-wrap:break-word">long text</div></pre> works in IE9 but not FireFox 31. Actual returns do wrap text but the text of long paragraphs extends outside the <div>, despite the word-wrap:break-word style. Maybe I'm expecting too much interpretation from <pre>? But I am thinking if IE can handle this, perhaps FireFox could too?

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    http://forums.mozillazine.org/viewforum.php?f=25
    You'll need to register and login to be able to post in that forum.

  • Multiline(Text should be wrapped) in a Label

    How do we put a Multilined (Text should be wrapped here) in a AWT Label.

    JLabels support HTML content, so just put what you want in html and use <br> (or
    if you're using xhtml) and the text will be as you format it.
    eg.
    JLabel label = new JLabel("<html>... blah.<br>blah...</html>");Hope this helps,
    Stef

  • DataGrid, HTML Text, and WORD WRAPPING

    I have a datagrid, with 2 columns:
    - comment
    - date
    The dataprovider that feeds the datagrid is an array
    collection, with each object containing the following fields:
    - comment
    - date
    - viewed
    What I want to do is BOLD the comment cell if the comment has
    not yet been viewed. What I first tried doing was to just insert
    the <b></b> tags on the server and then feed them up to
    Flex. So here's the code that I had tried to do this with:
    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}" />
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    This works, but I lose the word wrapping for long comments (I
    have wordwrap="true" defined on my DataGrid).
    Then I tried changing my approach and doing something a
    little more simple to try and preserve the word wrapping, like
    this:
    <mx:DataGridColumn dataField="comment" width="100"
    wordWrap="true" fontWeight="{(data.viewed==0 ? 'bold' : 'normal')}"
    />
    Yet that doesn't seem to work either, it appears to just
    completely ignore everything... no bolding whatsoever.
    So my question is: what's the best to to control the BOLDING
    of a DataGrid cell while at the same time retaining the word wrap
    features?
    Thanks,
    Jacob

    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}"
    wordWrap="true" height="100%"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    You might also have a little more luck working with a
    TextArea

  • How can I turn off word wrap in the View Source output?

    I'm trying to extract HTML from Word and one way to do that is to save the Word file as a .htm file and then View Source in a browser and copy that. But the words are wrapped in the View Source file. I want each paragraph to be all on one line. Is there a setting for the View Source feature that will turn off word wrap?
    Once I have that done and copied into a plain text editor, I will use Search>Replace to get rid of all the stuff Word puts there and just end up with the simple paragraph tags at the end of each paragraph, all on one line.

    You can disable wrapping and syntax highlighting in the View menu in the Edit > View Source window.

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • How to set the default text in an input box or a label to be a predefine, multiline text

    how to set the default text in an input box or a label to be a predefine, multiline text. In other words how to break the line in the code of a text box.
    thank you

    There are a couple of ways of doing this:
    If you're editing on the canvas, press Shift + Enter.
    If you're working in Express View (see lower right hand corner of Project Siena), you'll need to copy a hard return from another app such as Notepad.
    I believe a better implementation of hard returns are in the list of requested functionality that you can find here:
    https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
    Thor

  • Word Wrap with a Vertical Grid

    I've got a vertical grid with my headers in the left column and descriptive text in the column immediately to the right.  I'd like to have the descriptive text word wrap but checking the word wrap box on the layout tab doesn't seem to have any effect.
    Any ideas?  I'm using 11.5 SP3

    I'm not sure if it will work with the iGrid in a vertical orientation, but have you tried setting the RowHeight to something like 20 or 30 instead of the default of 0?  This setting will auto adjust the grid lines based upon the font-size, but you may need to force it to a certain height in order for the wrapping to work.
    Regards,
    Jeremy

Maybe you are looking for

  • Javaw.exe has encountered a problem and needs to close.

    I started getting this error a couple of days ago when I installed Open Office. Problem is that it happens with any java applications, not just Open Office. I have tried removing Java completely and then re-installing but so far have had no luck. I h

  • Geting response on same JSP page

    hi everybody i want to select an item from dropdown box and want to display all data related with this selected item on same jsp page plz help me out thx in advance

  • CS4 does not support SmugMug (they did in CS3)

    I wonder why Adobe did not include Photo Services under the "Tool" menu in CS4 so we can easily add photo's to Web Sites such as SmugMug. Doses anyone know if Adobe has a plug in for Bridge CS4 that will allow for this as they did in CS3? It would be

  • Framework page error not able to login into portal

    Hi, we are using EP 6.0 and it's working fine today i'm trying to login into portal but it's gives me the following error. Portal Runtime Error An exception occurred while processing a request for : iView : pcd:portal_content/every_user/general/defau

  • Erdos Miller is Hiring CLDs / CLAs

    Erdos Miller, a Houston based engineering firm, is hiring CLD and CLA level developers for its ever growing team of engineers. We focus on new product development and automation. Our main office is located in Houston, Texas, near the Galleria. At thi