Auto increase the lines of input text

JDev 11.1.1.5.0 BPM SOA

You need to increase the number of lines of an element of input text automatically according to the data. If the data is large enough to display several lines, or if it is small, display it in a single line.

You can try putting an EL on the rows attribute, which points to a method of bean when you calculate the number of rows to display:

public Integer getRows() {}

BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

AttributeBinding attr = (AttributeBinding) bindings.getControlBinding ("myString1");

Dim str As String = (String) attr.getInputValue ();

If (str is nothing)

Return 1;

int len = str.length ();

If (len<= 10)="">

return 2;

} ElseIf (len<=>

return 3;

on the other

return 4;

}

and on the page:

value = "#{Bindings.myString1.inputValue} '"

Rows = "#{Page1Bean.Rows}" autoSubmit = "true" / > "

If the bean is registered under the Page1Bean and the vaule inputText property is bound to "myString1 '.

Timo

Post edited by: TimoHahn

Tags: Java

Similar Questions

  • How to concatenate strings with the lines of a text file

    Hello
    I tried concatenate strings with the lines of a text file, but something is wrong with my code and I belive is the agruments I use in the cycle for. If anyone can help me I will appreciate it very much.
    My code is:
    [code]@echo off
    the value "input=C:\Users\123\Desktop\List.txt".
    for /f "usebackq tokens = *" % in (' input % ') do)
    the value 'str1 = C:\some directory\ ".
    the value ' str2 = %% ~ F '.
    the value "str3 = .pdf".
    the value "str4 = str1% str2% str3%.
    echo.%STR4%
    ) [/ code]
    and the text file is something like:
    121122 [code]
    122233
    123344
    124455 [/ code]
    But I get only one wrong answer and I have to run it like 3 times to get a real result and it is a mistake, the first two are empty spaces and gives the third one as the last line of the text file but repeated n times, where n is the number of lines in the text file.
    Result:
    [code] C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\Users\123\Desktop>[/code]
    So if anyone has an idea about what is wrong please let me know.
    Concerning
    -Victor-

    Hi Victor,

    This forum is dedicated to the support of the Office of consumer Windows (fonts, colors, personal settings).  Since your question is about programming and usually outside the context of most of the customers, I suggest you post your question in the forums as http://msdn.microsoft.com - the Microsoft network to users will be more adapted to help you in your quest.
  • How to increase the contrast in scanned text?

    How to increase the contrast in scanned text?

    Edit the file in an image editor, like Photoshop.

  • Use the lines of a text file as input to an SQL command

    Hello

    I have a text file containing the lines...

    123

    1234

    I would like to use as input for a SQL command running in a script. ie

    Update flag set < table > = 'Y' where job = < the text file lines >;

    Any help much appreciated.

    See you soon

    External table will do.

    For reference...

    CREATE TABLE Hold'em (SEQ_NUM NUMBER (10));

    insertion in hold select SEQ_NUM in task where proc like '% PROC;

    update set hold_flag = task ' ' where in SEQ_NUM (select hold SEQ_NUM);

  • HP ENVY 5534: increase the size of printed text

    Printed text is very small, how do I increase the size

    Hello

    You need to change requests. What application are you using to print? Web broswers like IE and Firefox, to chlorinated print options font sizes.

    Kind regards.

  • Why are the lines of my text-images "off"?

    Hello.

    I have a number of images text threaded at the other. tfLK [0] (the first in an array of managers of related texts) a (visually) lines 29 , but ' $.writeln(tfLK[0].lines.length) ' returns to 33, and indeed, when I target 'tfLK [0].lines.items (32) "I get the 4th line on the second image. Like-Wise, when I target ".lines.items (32) tfLK [1] ' (the second image of the thread), I get the 4th line of the third image. "

    What is going on?

    Can I fix?

    Any help would be appreciated.

    I get an error in ESTK

    Same thing.

    I found my mistake. I had reduced the first block of text of the wire after the search of line number, that's why I got the wrong results.

    Thanks for trying to help

  • How to increase the height of a text element.

    How to increase the height of an element of text field

    See what {message identifier: = 10399675}

  • count the lines in a text/csv file.

    Can you advice me how can I get the total number of lines in a text/CSV file please using java code.

    I will get the contents of the text/csv file in a string variable to no not as a file.

    EX: string var = "123\n234\n123\n3456\nsdfsd\n" this is \n in the new line.

    for that I have to get the total rows 5.

    Please advice.

    Thank you.

    I think I have to try a split of the string and see how big the table is either simply to count the number of newline characters. Since you said you have a huge file and your data are contained in 1 chain, then you should be able to do it more conveniently.

  • How to increase the line width

    I used PSE 7 for a couple of monthe, mainly for basic photo editing. I am

    try learning how to make graphic art a little for my business. The project, I am working is to brand cattle of the client, which is a simpleton with a X connected by one leg to the bottom of the T. Y there a way to increase the thickness of the lines without changing the proportions of all?TX brand.jpg

    One way is to choose the logo, then > modify > Expand and fill the selection with the color of the logo.

    In your example, I used the magic wand to select the logo, then expanded 10 px.  Note however that the edges are now rounded, which may or may not be appropriate.  You can work this around by then drawing a straight line on the curves using the background color (white in this case) and a brush. This will of course change a little the original proportions, but again, this could be acceptable.

    I have PSE2 and maybe later versions have a better way.

  • Basic question on the lines in a text box

    How do you get a stroke in a text box to automatically extend at the edge of the box?

    If I could control the length of the lines as below just by resizing the text box.

    2009-05-11_122901.png

    I know this is possible because I saw him in the old Pagemaker files.

    Use a right-indent tab and apply underscore tab.

  • How to use substr and instr, where the line of input Multi text

    Hi all

    with

    data in the form of)

    Select ' Mary America.1234 Southridge Park Dr... Samna Lorie.MO.31234..' double val

    Union of all the

    Select 'Bill Johnson.Apartment 3 b. Sterling.VA.20166.3 Plaza Falke' of the double

    )

    Select

    regexp_substr (shipping_instructions, "[^ #] +' 1, 1") name

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 2") address

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 3") city

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 4") State

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 5") zip

    , regexp_substr (shipping_instructions, "[^ #] +' 1, 6") County

    FROM (select REGEXP_REPLACE (val, ' \.)) () [^.])', ' #\1 ") data shipping_instructions)

    (1)'Mary America.1234 Southridge Park Dr... Samna Lorie.MO.31234..'

    (2)'Bill Johnson.Apartment 3 b. Sterling.VA.20166.3 Falke Plaza. »

    "Mary America. 1234 Southridge Park Dr. Samna Lorie. MO.31234..'

    NAME ADDRESS CITY ZIP County SATE

    ---------                  --------                                ------------           ------           -------    -- -----

    Married America 1234 Southridge Park Dr.    Samna Lorie MO 31234  NULL VALUE

    "Bill Johnson. Apartment 3B. Sterling. VA. 20166. Falke Plaza 3... "

    NAME ADDRESS CITY ZIP County SATE

    ----------------      -----------------        -------       -----        ---         --------

    Bill Johnson apartment 3B Sterling, WILL 20166 3 Falke Plaza.

    Problem

    ---------

    (1) if the value, if the County (if null) value then it shows the ZIP with dot's (.) value, in the 31234 above..,.

    How to solve this problem?

    (2) another possible to fix the code, I want to use substr and InStr.

    (3) who is the best approach?

    Conditions:

    --------------

    (1) shipping_instructions column has the value with "Mary America.1234 Southridge Park Dr... Samna Lorie.MO.31234... »

    This means it combined all the similar name, address, city, State, zip

    (2) we insreted in the table separately.

    =========================

    / * Use Substr and Instr * /.

    =========================

    I used substr and instr, but I'm getting the money results (no point in the address).

    "America Mary. 1234 Southridge Park Dr. Samna Lorie.MO.31234..'


    NAME ADDRESS CITY ZIP County SATE

    ---------                  --------                                ------------           ------           -------    -- -----

    Mary America 1234 Southridge Park Dr. Samna Lorie MO 31234  NULL VALUE

    But I need the results (no point in the address)

    NAME ADDRESS CITY ZIP County SATE

    ---------                  --------                                ------------           ------           -------    -- -----

    Mary America 1234 Southridge Park Dr.    Samna Lorie MO 31234  NULL VALUE

    Hello

    994122 wrote:

    Hello

    (1) how do to do this, use the substr and instr functions?

    Thank you

    You can't do all the work with SUBSTR and INSTR; you need regular expressions to obtain a string delimited by a #.

    Once you have such a string, then you can use SUBSTR and INSTR (instead of REGEXP_SUBSTR) to get the separate secondary strings:

    WITH got_delimited_string AS

    (

    SELECT REGEXP_REPLACE (val

    , '\. ([^ .]| $)'

    , '#\1'

    ) AS delimited_string

    FROM the data

    )

    got_pos AS

    (

    SELECT delimited_string

    , INSTR (delimited_string, "#", 1, 1) AS pos_1

    , INSTR (delimited_string, "#", 1, 2), pos_2

    , INSTR (delimited_string, "#", 1, 3) AS pos_3

    , INSTR (delimited_string, "#", 1, 4) AS pos_4

    , INSTR (delimited_string, "#", 1, 5) AS pos_5

    , INSTR (delimited_string, "#", 1, 6) AS pos_6

    OF got_delimited_string

    )

    SELECT SUBSTR (delimited_string, 1, pos_1 - 1) AS the name

    SUBSTR (delimited_string, pos_1 + 1, pos_2 - (pos_1 + 1)) AS address

    SUBSTR (delimited_string, pos_2 + 1, pos_3 - (pos_2 + 1)) AS city

    SUBSTR (delimited_string, pos_3 + 1, pos_4 - (pos_3 + 1)) AS State

    REPLACE (SUBSTR (delimited_string, pos_4 + 1, pos_5 - (pos_4 + 1))

    , '.'

    )                                                           AS zip

    SUBSTR (delimited_string, pos_5 + 1, pos_6 - (pos_5 + 1)) AS the County

    OF got_pos

    ORDER BY delimited_string

    ;

  • What is the line outside my text box?

    Can someone help me please understand that this lighter blue line is above the text box? It seems to be an extension of the text box, or a spacer/padding? I was given this file by another designer and unforunately, I'm not familiar with this feature. I would use it in the future - remove/change/add - to text boxes...  Thank you!!!

    Screen Shot 2015-06-05 at 12.14.05 PM.png

    I guess you see a text wrap the area where the skin is attached to:
    the values of left, right, down: 0

    top: the amount that you recognize as 'thin blue line '.

    Like this (German UI):

    Uwe

  • the audio via the line-in input on a dell inspiron 640 m

    Hello.

    When I play audio on the mic/line jack I can record audio from an external sound source with no problems, but I can't make audible somehow through the laptop speakers (or via the headphone/line-out Jack connected to an external amplifier with speakers). Is it possible to switch to reading the entry to the Jack line-in, as if connect you an external mp3 player to the computer to play through the laptop speakers?

    Regards and thanks in advance for any comments, Niek


  • CLEAR the VALUE of INPUT TEXT when the button is clicked

    Hi all

    I have a box of 2 inputText in my page in which the user enters a value, click on a button on this box. Now, what I want is to erase the other inputbox, during the click on the button against the inputBox in which the user entered value.
    I did partialTriggers of two boxes to the buttons and buttons are partial shipment.

    Now at the bean (session scope), I write something like firstInputBox.setValue(null);/firstInputBox.setValue("");/firstInputBox.setValue(false). When you click on buttons.

    But still my boxes are not erasing.

    Why can't he be?

    action listener to the button write-

    firstInputBox.resetValue();
    firstInputBox.setValue("");//if it takes a string input
    AdfFacesContext.getCurrentInstance().addPartialTarget(firstInputText);//always better to do programmatic PPR when there is some logic already on click of button .. do for declaritive ppr when ur whole soln. is declaritive
    
  • How can I stop complete auto on the line of the browser search

    I'm operating in private research. I deleted the search history. But when I start to type in a topic of research, Firefox suggests historical precedent research corresponding letters I typed in so far. I would like to stop and delete all.

    Click in the right search box and uncheck the show suggests.

    or

    Options > privacy > Location Bar > when you use the suggest bar location > select anything

Maybe you are looking for

  • Stay at random - 1st generation (2001-mechanical wheel) iPod classic

    Hi all Thank you for taking the time to read my post here. Informative advice would be greatly appreciated! After 15 years of daily use, the girl begins to show its age. Does anyone have an idea how to fix this? Question iPod will perform a hard rese

  • Re: Satellite L850 - screen went black

    Suddenly I've woke up today and turned my laptop Toshiba Satellite L850 on discovery of the screen is black, worked fine last night.The laptop is immaculate and never moved, haven t set new updated BIOS or anything irregular, tried to remove the batt

  • waveform editing with VI wave generation

    Hi all One can you please explain or give link to the good example of waveform VI integrated. (1) my question is how the input waveform will get changed as output, when the three terminals (input waveform, dt, y) are bound to certain data. (2) what w

  • Replace the subset of table does not not for me

    I have a loop IN which I want to use a 1-d output Boolean of the comparison table.  There is a one-to-one correspondence between the index of the loop AND array index, so the number of loops and the size of the table are the same.  I first tried usin

  • Update for dell photoAIO inkjet printer causes an error of connection without

    Checking update failures; found an old for my Dell Photo AIO printer.  It's critical if he ran.  Now, my printer can not connect.  Tried to find it in Add or remove but is not there.  Need to get rid of or repair.  Any ideas.  Unfortunately, it was i