How to accept input Text in UpperCase?

Hi,
How to accept Character Text from users in UpperCase in inputText Field?
I am using ADF BC and Jdev10.1.3.1.
In forms world it is very simple ( setting the visual attributes ), I am searching for such simple solution in Jdev .
Regards,
Seshu.

Hi,
I'm using CSS for uppercase:
<af:inputText ... inlineStyle="text-transform: uppercase"/> Note this doesn't influences an internal value, just displays the value in upperscase.
To store the value in upperscase, you need for example to override setter method.
public void setCode(String value) {
    if (value != null) {
        value = value.toUpperCase();
    setAttributeInternal(CODE, value);
}Rado

Similar Messages

  • How to allow input text field to accept more than one "specific" answer.

    Hi,
    I am working for something and trying to create a type-box-based quiz for one of my classes, where an input text field can change it's border color if 2 or more words from an accepted word list is inputed.
    For example, Say a list has possible answers: R,G, B, Y for the question "Name 2 colors".
    I want to create an input text box where the border of the box will change color if any 2 letters (in the above list) are entered into it.
    I've tried setting up a variable NumberSuccesses and setting it so that the number increases by 1 for each letter entered e.g.
    if (Ex.text == "R");
    NumSuc = NumSuc +1; // the var NumSuc has already been defined earlier in the code
    If (Ex.text ''G")
    NumSuc = NumSuc + 1
    if (NumSuc == 2)
    Ex.borderColor = 0x0000FF
    but that didn't work.. and I tried doing it with another function which I use for multiple input boxes like if there were boxes A, B, C. I could set up a general function where if the correct answers were entered into A, B, an C respectively, only then will say, a checkmark show up using a
    EnableCheckmark (); type function. Not sure how to do it if it's the same text input box though. Also just tried adding it into the same function re.
    If (Ex.text == "R" + "G")
    Ex.borderColor = 0x0000FF
    .. Does anyone know what else I can do?

    The solution of Nishu with Evaluation Logic:
    //These Are the Possible Answers
    var solutions:Array = new Array("A","B","C","D");
    function testInput(_inputText:String):Boolean
        //the delimiter could also be a comma, here it is a space
        var inputStringArray:Array = _inputText.split(" ");
        var counter:Number = 0;
        for (var i:int=0; i<inputStringArray.length; i++)
            for (var j:int=0; j<solutions.length; j++)
                if (inputStringArray[i]== solutions[j])
                    counter++;
        if (counter >=2)
            trace("true");
            return true;
        else
            trace("false");
            return false;
    //Textfield with name input_txt on stage
    input_txt.addEventListener(TextEvent.TEXT_INPUT, answerTxtInp);
    // The function that will be called by the event listener
    function answerTxtInp(txtEvent:TextEvent):void
         // depending on the possible answers of characters, change the border  color
         if(testInput(input_txt.text)){
             input_txt.borderColor = 0xFF0000;
         else{
             input_txt.borderColor = 0x000000;

  • How to get input text values from adf table - Urgent

    Hi Friends,
    This is my requirement. I designed customized master - detail - detail page. I customized the page in below format.
    1. Master Data Field (Input text,etc) .
    2. Detail in table format ( Rows are mapped to child table) and i given two buttons for to create row and delete row. I designed the table based on the example provided in forum for to create customized table. The input text component is mapped to the rows.
    Now i want to retrieve all the data's entered in the rows. The table is mapped to child table. When i read the values from the table its showing null.
    If any one faced this problem and fixed it, please send me the solution.
    Thanks & Regards
    VB

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • How to use input text

    Hi, I have searched the forums and haven't found what I am looking for.
    I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
    Thanks

    You can access the text of an input box using the text propery of it. It will return a string
    var str:String = inputBox.text;

  • How to reset input Text value on click of root menu item navigation link ?

    All,
    Jdeveloper - 11.1.1.6
    I am facing this issue across the pages.
    I have a root_menu.xml based navigation available as links at the top of ADF application. Some of the menu links directly have JSPX pages having the content being loaded , and others are JSPX containing Bounded task flow.
    Issue :
    On the click of the menu links, the page gets reloaded / refreshed , however the input value given on the page remains displayed even after refresh.
    We need the page refresh along with any input test box getting cleared on Menu item click.
    Any pointers as to how we can resolve.
    Thanks

    If your page is in a taskflow (which it should be as you use pageflowscope), you should have a method action in your task flow which you call to clear all the values you use in the UI.
    Timo

  • How to change a value of input text box into uppercase?

    Hi all,
    In my use case I should have a text box in the jsf page and I should store the value that is entered in the text box in a database.
    The requirement is the value which user enters in the text box should get changed to Uppercase
    before getting saved in the database. Kindly help me in achieving this.
    Thanks,
    Phanindra.

    hi user,
    before asking any question.
    right place to search anything is google (the ocean).
    so the way. chris showed.
    if i understood correctly means,
    if you want change any input text into uppercase means :
    use some skinning : -
    <af:inputtext>
    contentStyle = "text-transform:uppercase;"
    </af:inputtext>
    Or
    else
    are you looking for
    while given inputtext saved into db.
    Use something like this in as vo for each and ever attribute,
    public void Desc(String value) {
    setAttributeInternal(DESC, value.toUpperCase());
    }

  • Inputting Text in a java program

    How do you input text in a java progerm? Im relearning java at the min. Havnt looked at it since studying it in uni(3 years ago). One problem I am having is that at uni we used a set of API's the uni had created. The problem with this is that I dont have it anymore. With this if I wanted to input some text I did sopmething similar to the following:
    uuInOut.readLine();

    Have you tried Google? with words like 'Java input"? (Top link gives you an answer :) )

  • How to get the value of an input text in a table

    all,
    i have an adf table component on my jsf page and i added an input text component to one of the table columns. how do i access the value of that input text in my backing bean? normally, i would just do a getValue(), but because the input text is in the table i'm assuming it has to be treated as an array somehow.
    any help would be appreciated,
    paul
    btw. jdev 10.1.3

    Frank,
    I found a solution to fetching the column values. I created a transient attribute on my view object and bound my column to the transient attribute. Then I used this post from Duncan Mills
    http://groundside.com/blog/DuncanMills.php?title=adf_validation_context_in_a_jsf_table&more=1&c=1&tb=1&pb=1
    to get to the data by looping through the table rows.
    However, I'd still like to use the value from this transient attribute in logic to populate some other columns in the table. I
    for example, here's the content of what's submitted:
    name phone transient
    ==== ===== =======
    paul null 555
    mary null 444
    In my backing bean I'd like to get the rows from the table and read the value of the transient attribute, pass it through a function, and set the value of the column phone to some value for each row. Then have that processed to update the db. Is this possible?
    Thanks,
    Paul

  • How to get values of all input text of a form?

    Hi,
    I would like to know how to get all input text value of a form?
    I try this:
            List values = new ArrayList(); 
            values = getBindings().getAttributeBindings(); 
            for (Iterator iterator = values.iterator(); iterator.hasNext();) {
                Object o = iterator.next();
                if (o != null) { 
                    if (o instanceof FacesCtrlAttrsBinding) { 
                        System.out.println("Trace iterator=" + ((FacesCtrlAttrsBinding)o).getName());
    src
    In my jspx, I use panelTabbed component which is in af:form
    With this code, I get all bindings name.
    So I change the [structure |http://h.imagehost.org/0922/jdev.png] putting af:form in each item of my af:panelTabbed without succes.
    The code trace all bindings again, and I just want to get the input text of the form (like *$_POST*, or *$_GET* in php)
    How to do that?
    Thanks for your help.

    Hi,
    I try this:
    private UIComponent getUIComponent(String name) { 
          FacesContext facesCtx = FacesContext.getCurrentInstance(); 
          return facesCtx.getViewRoot().findComponent(name) ; 
    src
    I post the structure again.
    I try:
    // f1 id of af:form
    UIComponent test =  getUIComponent("f1");
    test is not null
    // pfl1 id of af:panelFormLayout
    UIComponent test =  getUIComponent("pfl1");
    but here test is null
    I try
    // f1 id of af:form
    // pt1 id of af:pageTemplate
    // pt2 id of af:panelTabbed
    // sdi1 id of af:showDetailItem
    // ps1 id of af:panelSplitter
    // pgl32 id of af:panelGroupLayout
    // pfl1 id of af:panelFormLayout
    UIComponent test =  getUIComponent("f1:pt1:pt2:sdi1:ps1:pgl32:pfl1");but I have this:
    Error 500--Internal Server Error
    javax.servlet.ServletException: java.lang.IllegalArgumentException: f1So I add
    private static final char SEPARATOR_CHAR = ':';But I have the same error.
    getUIComponent returns null with pt2,sdi1, ps1, pgl32, pfl1 and not null with f1, pt1.
    I don't know why...
    How can I get children (af:inputText) of pfl1 ?
    Thanks

  • How to input text in the SAP ERP intial screen.

    Hello.
    How to input text when I load the SAP ERP system. before log in.
    (this screen show me only the ID and password input fields)
    I saw the initial screen inclued some user-customized text.
    I can not find any information about initial scrren, as before the log in.
    If you know how to do, please let me know.
    thank you.

    The problem was solved.
    I found notes about this case. notes number is 205487.
    process like this:
    1) using transaction se61
    2) change 'document class' field -> 'General text'
    3) input Name field [ZLOGIN_SCREEN_INFO]
    4) Click Create button.
    5) and u can see the text-editor
    6) insert ur message and save.
    that's all
    If u want more information or erre message, read the notes 205487.
    bye

  • ADF Mobile: How to change the font size of an Input Text field in .amx view

    Is there a way to change the font size of the input data (not the label) in a text field? Changing the font size in the Style Font/Text settings doesn't seem to do anything for the label or the value in the input text field. Is this a bug or is there a way to get this to work?

    Hi Anna,
    depending on the UI element there are a range of ways. (and I'm sure people will post plenty of answers to tell you how).
    However, if generically the fonts in you portal/wd applications are too small, you should consider changing your theme so as to have larger texts. Otherwise you will either need to customise all your applications, or you will get quite a lot of inconsistency of presentation between your various WDA applications.
    Do a search on "themes for Web Dynpro ABAP" and you'll find loads of resources.
    Hope this helps,
    Cheers,
    Chris

  • ADF Mobile - How to view or hide input text in List View dynamically

    I've build ADF mobile Application using Jdeveloper 11.1.2.4
    I've added <amx:listView to my page.
    This list view shows a list of Employees from web service and beside each employee
    amx:selectBooleanSwitch
    I want when I switch amx:selectBooleanSwitch to true to display input text beside employee name
    I don't know how to make like this behavior

    I've build ADF mobile Application using Jdeveloper 11.1.2.4
    I've added <amx:listView to my page.
    This list view shows a list of Employees from web service and beside each employee
    amx:selectBooleanSwitch
    I want when I switch amx:selectBooleanSwitch to true to display input text beside employee name
    I don't know how to make like this behavior

  • How To Re-Input More Data To A Text File?

    I was wondering if anyone could tell me how to re-input more data into a text file? I don't want to over-write the text file, but just add more data to it. The current code i have is:
    import java.util.Scanner;
    import java.io.*;
    class trialanderror002 {     
    public static void main(String args[]){     
         Scanner input = new Scanner(System.in);
         String str;
    FileOutputStream out;
    PrintStream p;
    try{
         out = new FileOutputStream("c:\\products.txt");
         p = new PrintStream(out);
         System.out.println("Please insert text to be written to file...");
         str = input.next();
         p.println (str);
         p.close();
    catch (Exception e){
         System.err.println ("Error writing to file");
    Basically, after each time the program is ran, i'd like to insert another line of data into products.txt.
    Is there a way for me to loop the program too and not remove the data from the text file?
    thanx...

    just one more question...
    i've figured out the code to retrieve the text file and print it to screen...but how do i go about only printing parts of my text file?
    So supposing my text file has 5 lines of data/text etc, how would i make it print the first line?...or the second line?...or the third....etc etc...
    the current code i now have is:
    package Assignment1;
    import java.util.Scanner;
    import java.io.*;
    class trialanderror002 {     
    public static void main(String args[]){     
         Scanner input = new Scanner(System.in);
         String str;
    FileOutputStream out;
    PrintStream p;
    try{
         out = new FileOutputStream("c:\\trial.txt", true);
         p = new PrintStream(out);
         System.out.println("Please insert text to be written to file...");
         str = input.next();
         p.println (str);
         p.close();
    catch (Exception e){
         System.err.println ("Error writing to file");
              try {
              FileReader file = new
              FileReader("c:\\trial.txt");
              BufferedReader buff = new
              BufferedReader(file);
              boolean eof = false;
              while (!eof){
                   String line = buff.readLine();
                   if (line == null)
                        eof = true;
                   else
                        System.out.println(line);
              buff.close();
              }catch (IOException e){
                   System.out.println("Error -- " + e.toString());
    }

  • How to refresh the input text value in backing bean

    hi all
    i want to know
    how to refresh the input text value in backing bean?
    i have tried this code ,but it doesnt work
    public void click(ActionEvent actionEvent) {
    tempConId.setValue("111111111111111");
    AdfFacesContext.getCurrentInstance().addPartialTarget(tempConId);
    sb know?
    Edited by: Joe Zou on 2012-4-6 下午9:11

    The code looks good.
    Here is a sample based on your use-case:
    InputTextSample.jspx:
    <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <f:facet name="footer">
                <af:commandButton text="Ok" id="cb1" partialSubmit="true"
                                  actionListener="#{InputTextSampleBean.onClick}"/>
              </f:facet>
              <af:inputText label="InputText" id="it1"
                            binding="#{InputTextSampleBean.myInputText}"/>
            </af:panelFormLayout>
          </af:form>
    InputTextSampleBean.java:
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.context.AdfFacesContext;
    public class InputTextSampleBean {
        private RichInputText myInputText;
        public InputTextSampleBean() {
        public void setMyInputText(RichInputText myInputText) {
            this.myInputText = myInputText;
        public RichInputText getMyInputText() {
            return myInputText;
        public void onClick(ActionEvent actionEvent) {
            this.myInputText.setValue("1234");
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.myInputText);
    }

Maybe you are looking for

  • Problem with type conversion and primary key during row fetch

    [Note, this error occurs in Oracle XE, APEX 2.1.0.00.39] I have been having a problem with Automatic Row Fetch: ORA-01460: unimplemented or unreasonable conversion requested So in an effort to resolve this, I created a PL/SQL process with the query b

  • Cisco 877w -Configuration of subinterfaces and main interface within the same bridge group is not permitted

    Hi, I have another problem - after upgrade ios wirelles connection not work. After reload i have : Configuration of subinterfaces and main interface within the same bridge group is not permitted STP: Unable to get the port parameters. Please configur

  • How to throw a SOAP exception

    Hi, I have a requirement from customer that when they call the WSDL from their app and the workflow will not get what it should, that it should throw standard SOAP exception. To give more details on it, they will send for example input string "A" and

  • How to set image size in iPhone?

    Me and my wife have iPhones and today I noticed that the pics taken with her Iphone were about 4 MB each while mine were about 45 KB, in both cases pictures were taken with the rear camera. Her is version 5.1.1. IPhone 4S model MD239KS and mine the s

  • Failure to Burn due to menu length

    My project for DL DVD completes the process to burn but hangs up at writing lead in and won't continue. My blank disk is kicked out. I get no error messages, but the bar regarding menu length is red. How do I reduce the menu length without shortening