How to show the white space of the text formatted?

Hello

I use Jdev 11.1.1.6.0 with ADF Faces.

I have a requirement to show a text report page in recorded format. The report in text format is saved as a text report several records with each line containing the maximum 78 characters.

Each drive is formatted with a space to display the data in the column. For example:

SUMMARY

-------

Col1 Col2 Col3

xyz1234 abc9999 mno1234

...

The report data appears currently unformatted. It removes the white space and shows just with a few default spaces. Something like:

SUMMARY

-------

Col1 Col2 Col3

xyz1234 abc9999 mno1234

...

Thus, you cannot read the data with the appropriate column header. If you query the table in SQL Developer, it shows with perfect formatting. Also our legacy Oracle Forms application to display with the correct format.

Currently, I tried following, but it does not work:

< af:outputText value = "#{row.rptText}" id = 'ot1' "

inlineStyle = "do-family:"Courier New";" font-size: 12.0pt; »

noWrap = "false" / >

I tried this on af:column too, especially noWrap = 'false', but so far without success.

Any help is appreciated.

Thank you

JAI

If you can use a converter custom jsf (validation and conversion of entry) to change in the query using "pre" helped the (text with pre sourrounf) when the data is rendered. The converter must implement two methods. Then you can try to use ' ' as a space of unbreakeable instead of simple spaces.

Timo

Tags: Java

Similar Questions

  • How to get the text formatting in the tables

    Dear experts and aid

    For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
    Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).

    The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
    [[Garneau, 1990 #12]]    »   [9]
    The good article can also be locally as text, e.g. [9]
    Then follow the same (or smaller) number of paragraphs with text formatted like this:
    [9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.

    Is it possible to replace in the body of the function below the next song

      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
    

    with this

      while(pgf.ObjectValid()) { 
        gaBibliography.push(pgf);
        pgf = pgf.NextPgfInFlow;
      }
    

    Do I need a special statement of the gaBibliography range?
    And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?

    Currently, I read in the tables as "strings" (function GetText not shown):

    var gaFmtCitsRaw  = [];                           // left column in processed RTF
    var gaFmtCitsFmt  = [];                           // right column in processed RTF
    var gaBibliography= [];                           // bibliography lines from processed RTF
    // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf 
    
    function ReadFileRTF (fileName) {
      var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ;
      var TAB = String.fromCharCode(8);               // FM has wrong ASCI for TAB
      var parts = [];
      
      openParams = GetOpenDefaultParams();
      openReturnParams =  new PropVals();  
      newDoc = Open (fileName, openParams, openReturnParams);  
      pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;  // get first pgf in flow
    
    // --- read the temp/formatted citations  
      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        if (pgfText.substring (0,2) == "[[") {        // citation lines start with [[
          parts = pgfText.split(TAB);                 // get the two parts of the line
          gaFmtCitsRaw.push (parts[0]);               // Push the result onto the global array
          gaFmtCitsFmt.push (parts[1]);
          pgf = pgf.NextPgfInFlow;
        } else { break }
      }
    
    // --- read the bibliography
      while(pgf.ObjectValid()) {                      // until end of doc
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
      newDoc.Close (Constants.FF_CLOSE_MODIFIED);
    } // --- end ReadFileRTF
    

    The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...

    Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.

    // Add a new paragraph after the current paragraph.
    var newPgf = oDoc.NewSeriesPgf (lastPgf);
    var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0));
    
    oDoc.TextSelection = textRange;
    oDoc.Paste ();
    

    -Rick

  • How to show the photo album in Apple Tv screensaver.

    How to show the photo album in Apple Tv screensaver. ?

    You can use your photo stream or albums shared for the screen saver, the iCloud photo library can be viewed only manually.

  • How to show the ink levels on the computer for Officejet 6600

    How to show the ink levels on the computer for Officejet 6600

    What is the full product name or product number?

    is your printer?

    This is the Manual of your printer the following image was derived.

    You can use the printer's built-in web server to get the status of the printer information from a browser.

  • How to show the multiple declaration for an application

    How to show the multiple declaration for an application

    Thanks for your suggestions...

    Looking at the javadocs you can only save an indicator by application. You will need to do three separate applications and package them as an If you want three different indicators to be visible at a time. Or change the flag that (or which group) of the indicators you want to display.

  • How to show the main screen (home screen of blackberry)

    Hi guys,.

    I need to know how to show the main screen (home screen of the blackberry), even if it's in any screen (like saying "Calculator" etc)...

    This must be done by programming... is there a solution for this?

    Thanks in advance,

    I also had. This is to disconnect incoming call and display the main screen (home screen of the blackberry).

    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, 0, 100));
    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, 0, 100));

  • How to show the photograph next to a project?

    How to show the photograph next to a project?

    in Adobe MyPortfolio

    It isn't a way by default to show them side by side, but we are looking in new views of project for the future.

  • Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of a pickture?

    Hello

    Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of the image?

    How to choose the area? Which tool?

    Thank you in advance, Karl

    Make sure first that your range of information is visible: window menu / Info (shortcut F8)

    In this palette, click the small icon 'more '.

    Select "Palette Options".

    and choose HSB to second reading of palette.

  • Cut out white space from a text field (I give the points of response as candy!)

    Hello

    I need to cut all the white space characters that occur before and after all no white space in a text field.
    By white space, I mean:
    -space chr (32)
    -chr (9) horizontal tab
    -line break Chr (10)
    -return Chr (13)

    So, using this example:
    CREATE TABLE test (
    id NUMBER,
    value VARCHAR2(100));
    
    INSERT INTO test (id, value) values (1, chr(32)||chr(9)||chr(13)||chr(10)||'a'
    ||' '||'b'||chr(10)||'c'||chr(13)||chr(10)||chr(32)||chr(9)||chr(32));
    I need to end up with:
    a space b linefeed c
    So I want to get rid of the white space beginning and end, but keep the white space inside the string.

    I can't do it with the TRIM function alone. I could do many iterations of replace the spaces with something bind ' # ' and then cut it, but the characters of white space can be in any order.

    I tried
    REGEXP_REPLACE(value, '[^:space:]')
    but that does not give a correct result.

    Use the trim (regexp_replace ("(\S+) \s* \s*','\1", value)):

    select  id,
            '[' || value || ']' val,
            '[' || trim(regexp_replace(value,'\s*(\S+)\s*','\1 ')) || ']' new_val
      from  test
    /
    
            ID VAL                            NEW_VAL
    ---------- ------------------------------ ------------------------------
             1 [                                [a b c]
               a b
               c
                     ]
    
    SQL> 
    

    SY.

  • Photos showing the text not picture

    When I run the cursor over the thumbnails in the taskbar it shows the text, should not the asit screenshot. How can I change this?

    When I run the cursor over the thumbnails in the taskbar it shows the text, should not the asit screenshot. How can I change this?

    You're NOT on the Aero theme. That's why.
    If your version of Vista has Aero theme option, here is a way to allow him to...
    Right-click on a free space of your desktop > Personalize > Windows Color and customize > select Windows Aero > apply > wait for the init system > then OK.

  • How can I add white space between areas that contain text fields? I use Adobe Acrobat Pro DC 2015.  I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these text fields to be developed and not

    How can I add white space between areas that contain text fields?

    I use Adobe Acrobat Pro DC 2015.

    I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these areas to be developed and do not overlap the text and the text below fields.

    For example:

    1. 1.

    Progress/strategies:

    1. 2.

    Progress/strategies:

    1. 3.

    Progress/strategies:

    1. 4.

    Progress/strategies:

    The space between each 'progress/strategies' increasing needs. A text field is under each of them. If it's a Word doc, I could just press on enter. What is the best way to do this with Adobe Acrobat Pro DC?

    There is no easy way to do it. You need to move the text fields more apart and if there are static elements, then you will need to use the tool edit text & Images to move them, separately.

  • How to wrap the text to &lt; af:commandLink &gt;

    I am building a web application using Jdeveloper 11.1.2.3 fusion

    Question: How can deform the text for < af:commandLink > ?

    < Af:outputText > component there is merit called noWrap where I can choose wrap the text or not. In my case, I have a long title that defined as < af:commandLink > and I want to surround the text of the link, but there is no such opportunity. If it possible anyway, please share information with me. Thank you

    Hello Salman,

    You can use the text output within the command binding and then on top of the textbox output use the style class - inlineStyle = "" white-space: normal; ""

    Thank you

    Prabhat

  • How to get the text of a SystemPrompt (Cascades)

    Hello

    I've been struggling with this for a few hours now. I followed the example of "dialogues" on github, so I have successfully created a SystemPrompt (the dialog box that allows the user to enter text and accept / reject). Curiously, in this example there is no use of user text input. Do you know how to get the text in my QML? Here you have an example of code that I use:

    My QML:

    // Default empty project template
    import bb.cascades 1.0
    import bb.system 1.0
    
    // creates one page with a label
    NavigationPane {
        id: navigationPane
        Page {
            attachedObjects: [
                SystemPrompt {
                    id: prompt
                    title: qsTr("Enter a text for the label")
                    modality: SystemUiModality.Application
                    inputField.inputMode: SystemUiInputMode.Default
                    inputField.emptyText: "Label text..."
                    confirmButton.label: qsTr("Ok")
                    confirmButton.enabled: true
                    cancelButton.label: qsTr("Cancel")
                    cancelButton.enabled: true
                    onFinished: {
                        if (result == SystemUiResult.ConfirmButtonSelection) {
                            lab1.text = ????? // Here is where I don't know what to do
                        }
                    }
                }
            ]
    
            Container {
                layout: StackLayout {}
    
                Label {
                            id: lab1              text: "Label text"
                    objectName: "lab1"
                    textStyle.base: SystemDefaults.TextStyles.TitleText
                    horizontalAlignment: HorizontalAlignment.Center
                }
    
                Button {
                    text: "Update label"
                    horizontalAlignment: HorizontalAlignment.Center
                    topMargin: 150.0
                    onClicked: {
                        //_appUi.editLabel();
                        prompt.show();
                    }
                }
            }
        }
    }
    

    Be sure to add this in your .cpp file or all of app:

    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    

    and don't forget to include them in your app .cpp file (probably not all are needed, but just in case I leave here for the moment):

    qmlRegisterType("bb.system", 1, 0, "SystemUiButton");
        qmlRegisterType("bb.system", 1, 0, "SystemUiInputField");
        qmlRegisterType("bb.system", 1, 0, "SystemToast");
        qmlRegisterType("bb.system", 1, 0, "SystemPrompt");
        qmlRegisterType("bb.system", 1, 0, "SystemCredentialsPrompt");
        qmlRegisterType("bb.system", 1, 0, "SystemDialog");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiError", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiResult", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiPosition", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiInputMode", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiModality", "");
        qRegisterMetaType("bb::system::SystemUiResult::Type");
    

    Thank you very much

    If you look very carefully by the docs, you'll trip over https://developer.blackberry.com/cascades/reference/bb__system__systemprompt.html#inputfieldtextentr...

    So, replace your? with inputFieldTextEntry() and you will get the text you need.

  • How to view the text onto an interactive button in Indesign CC?

    How to view the text onto an interactive button in Indesign CC?

    I'm doing my map.

    I am now able to link a button in my card to a website url, but what I really want is a way to make the text appear next to a button, it shows what kind of construction is by turning over with the mouse.

    One?

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

  • How to make the text bigger in youtube! Cubs in youtube!

    I made the largest text where google search arrives! But when I go on youtube the text is much tinier and I 65 to cataract and I can't read the text at right! How to make the text bigger in youtube? Thank you very much! I tried everything, but nothing changes the size!

    When you view this page hit {Ctrl + 0} < is a zero number -to reset the zoom level for this area.

    https://support.Mozilla.com/en-us/KB/page+zoom

    If you move the scroll wheel, and are now the CTRL key, you can change the zoom level of the page that is viewed - both in & out.

Maybe you are looking for

  • Apple G3 TV - I have to re - authorize third party applications regularly

    I have several Apple TV G3 with Time Warner Cable in New York.  Applications of third party seems to lose the authorization for my TWC on a regular basis - every 2 to 3 months.  Given that this is happening on several Apple TV I thought it is a quest

  • Satellite A-C55-1N1 - how to fix Windows 8.1 after trying Linux?

    Hello Laptop: Satellite C55-A-1N1 In my infinite wisdom, I tried to install Linux in dual boot as my old laptop scenario. I have narrowed the main partition of windows in windows 8.1 first and then installed linux on this partition. After the reboot,

  • HP Pavilion p2-1145 Office running very slow - time to replace drive

    I bought last November, is unfortunately just out of warranty. Last night it froze in reading just email - he says that Windows has stopped responding. He lets me not restart in Mode safe he was however extremely slow. I restarted again and press the

  • RAM Kingston for Y500

    http://www.Kingston.com/datasheets/KHX16LS9P1K2_16.PDF Is Y500 supports PnP?

  • &lt; DUPLICATE &gt; Suggestions

    Suggestions in the Android l: Please provide the support for the gujarati language, so that we can read the messages of gujarati. All the bugs found by other users. Already, Google has released android 5.1. Please bring the android update 5.1 as soon