af:inputtext set to lowercase?

I have an <af:inputtext> box that is accepting an e-mail address. This e-mail address is one of the search items for the query, which is working fine. However, I need to make it to a lower case string before it is being sent to the query.
I tried to make a validator which returns the right result using the toLowerCase() java function, but that value is not being processed to the query. I also tried to do the same action in the button event to validate it but again, I can't seem to get it to work.
This seems like it should be easy but I'm lost at the moment.

You need custom convertor to make it lowercase.
import java.util.Collection;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import org.apache.myfaces.trinidad.convert.ClientConverter;
public class UppercaseConverter implements Converter, ClientConverter {
    public Object getAsObject( FacesContext facesContext, UIComponent component, String stringValue) {
        return stringValue.toLowerCase();
    public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object objectValue) {
        return objectValue.toString();
    public String getClientLibrarySource(FacesContext context) {
        return context.getExternalContext().getRequestContextPath() + "/scripts/FieldAsLowercase.js";
    public Collection<String> getClientImportNames() {
        return null;
    public String getClientScript(FacesContext context, UIComponent component) {
        return null;
    public String getClientConversion(FacesContext context, UIComponent component) {
        return ("new FieldAsUppercase()");
function FieldAsLowercase() {
    this._class = "FieldAsUppercase";
FieldAsLowercase.prototype = new TrConverter();
FieldAsLowercase.prototype.getFormatHint = function() {
    return null;
FieldAsLowercase.prototype.getAsString = function(string,label) {
    return string.toLowerCase();
FieldAsLowercase.prototype.getAsObject = function(string,label) {
    return string.toLowerCase();
}

Similar Messages

  • HST50: Unix - How Headstart calls forms and reports uppercase/lowercase from a Menu

    We are migrating a 'in production' Headstart generated application from Windows to Unix.
    We had to a little time in setting the lowercase implementation names, setting the prefs to generate lowercase file.....
    So good so far. When testing the application on Unix, all files are lowercase, the Forms start without a problem but the Reports won't start.... Renaming the report files to uppercase works fine.
    Going through the Headstart code for calling Forms and Reports I noticed the following:
    When calling Forms the qmslib50.qms$form.call procedure is invoked. In this procedure the follwoing statement is used:
    l_form_name := lower(p_form_name) So only lowercase will be found....
    For calling Reports from the Lauch Report Form the qms0012l.qms$report.run procedure is invoked.
    This procedure calls fill_par_list where the l_module_name is set. But in this procedure no uppercase or lowercase is used......
    Not consequent I think !!
    Is this done for a specific reason ?
    PS: Change qms0012l and it works fine.

    Hi,
    cannot use run_report_object here cause I cannot create a report object in menu (like how we can do it in forms).
    Create a generic named Report node in the forms that you reference from the RunReport object request. This way you can run Reports from a menu
    Frank

  • Problem with lowercase characteristics

    Hi all,
      I have a problem where I am updating ODS with a characteristics which is not set for lowercase (i.e. the infoobject has no lower case check mark) with lowercase data and  its working fine but when I update that data to a datamart ODS its giving SID generation problem for lowercase during ODS activation.
    Is there any ODS level attribute to check for lowercase?
    Regards

    Hi,
    You have no chances to bring into a cube or into an ODS (if it is marked as relevant for BEx queries) infoobjects with lowercase letters. Note that here by infoobject I mean its key field (as it determined in infoobject maintenance). For example, the IO has type CHAR and length 10. It means that you can bring into a cube/ODS the IO’s key field (value) like ‘QWERTYUIOP’. You cannot bring there (under conditions I specified earlier) the value like ‘Qwertyuiop’. It is not allowed. And you MUST convert this lowercase containing value into upper case, for example, as I mentioned before.
    But, if you need these lowercase texts, you can keep them in texts of the infoobject. Set the key field as, for example, NUMBER:
    Key field LongText
    1        ‘Qwertyuiop’     
    2          ‘Asdfghjklz’
    3          ‘Zxcvbnmgf’
    and load into a cube/ODS just these key fields (1,2,3 etc.). In a query you may show long text of the infoobject.
    In case if your infoobject (its key field) is not used in the cubes or ODSs (with BEx reporting) you may check in IO’s properties ‘Lowercase letters’ option. It will allow you to have lowercase letters in the KEY FIELD OF THE INFOOBJECT.
    Hope, now it’s more clear.
    Best regards,
    Eugene

  • ADF : show / hide an inputText

    Hello,
    Suppose I have a buton and an inputText, I would like that when I click my buton
    - inputText become visible
    - buton become disabled
    suppose this start code :
    <af:commandButon text="showMyText" action="myBean.myMethod"/>
    <af:inputText value="my temporary secretText" visible="false"/>How can I make it ? with partial triggers ?
    Thanks

    Valery,
    Partial triggers would be a good way, yes.
    Put an ID on the af:commandButton; also set its partialSubmit property to "true"
    In the af:inputText, set the partialTriggers property to the ID of the af:commandButton.
    In myBean.myMethod, change the visible/enabled properties as you desire. You may also find it easier to do if you bind the af:commandButton and af:inputText to properties in your backing bean (hint: the "bindings" property).
    Best,
    John

  • Trying to auto commit after input text value change

    Hello, I have created a page that contains an input text box. When the user changes something in the input text box, I want to fire off a commit operation.
    As of now, I have valueChangeListener of the inputText set to a method on my managed bean which then grabs the commit operation from my bindings container and executes it.
    At that point, I would expect the changes to a the input text box to be saved after a user modifies it. However, it doesn't seem to be working, because when I refresh the page, the mod I made to the text is not there. The input text still reflects the text that was there before I made a change.
    Anyone know what's happening here?? And how I can make it work?

    Hi Timo,
    Thanks for the response. I tried that, and my commit function in my bean was getting called, but the data still wasnt "REALLY" getting saved.
    I had to bind my input text to a property in managed bean, and call
    inputText.processUpdates(FacesContext.getCurrentInstance());
    doCommit(); // method that simply calls the commit method in my binding container, and does a few other things.
    For simplicity I just bound the panel that all my input components were child of. In this case it was a DecorativeBox. So I bound the DecorativeBox to my bean and just did
    decBox.processUpdates(....)
    doCommit();
    That way all my child input components were updated before the commit took place. That seemed to do the trick nicely (-;
    Edited by: Fonz Desselle on Mar 25, 2013 11:42 AM

  • Case sensitive data in workflow

    I am working with some case sensitive data in a work flow. To set and get the values from the container, I am using the macros swc_set_element and swc_get_element.
    I realized that these macros automatically convert the case of the data I am passing to upper case. I don't want the case conversion to happen, and want to retain the original case of the data (which is a mix of upper and lower case).
    Can somebody suggest an approach to handle the same?? Its kinda urgent.
    Thanks,
    Srihari

    Hi,
      The data is generally converted to Uppercase if the Domain of the data you are using is not marked as case sensitive. You can set the "Lowercase" check box for the respective domains so that data is maintained in a case sensitive manner. May be you can copy the code of these macro's and change them to use your own case sensitive domains.
    Regards,
    Sesh
    Message was edited by:
            Seshatalpasai Madala

  • Autosubmit in input text changing other fields

    Hi,
    I have an af:inputText set to autosubmit. When it gets called it is changing the value of an already set selectonechoice to null. This is causing some major issues in usability. Is this normal behavior? I am using JDeveloper 11.1.1.6
    Here is what my page has:
    <af:selectOneRadio label="#{makepaymentviewcontrollerBundle.XX}"
    requiredMessageDetail="#{makepaymentviewcontrollerBundle.YY}"
    id="sor1" showRequired="true"
    required="true" layout="horizontal"
    autoSubmit="true" immediate="true"
    binding="backingBeanScope.YY.sor1"
    value="#{backingBeanScope.YY.paymentMethod}">
    <af:selectItem label="11" value="11" id="si2"/>
    <af:selectItem label="22" value="22" disabled="true"
    id="si1"/>
    </af:selectOneRadio>
    and
    <af:inputText label="#{makepaymentviewcontrollerBundle.11}"
    id="it4"
    validator="#{backingBeanScope.YY.it4_validator}"
    required="true"
    value="#{backingBeanScope.YY.line1}"
    autoSubmit="true" immediate="true" columns="28">
    Is there anyway to avoid the behavior that the input text is changing the values of the radio button in the managed bean ?
    Edited by: 919315 on Mar 16, 2012 12:11 AM
    Edited by: 919315 on Mar 16, 2012 12:14 AM

    The problem seems to be that you have the value for the radio button bound to backing bean scope. The docs say this about backing bean scope:
    backingBeanScope: Used for managed beans for page fragments and
    declarative components only. The object is available for the duration between the
    time an HTTP request is sent until a response is sent back to the client. This scope
    is needed because there may be more than one page fragment or declarative
    component on a page, and to avoid collisions between values, any values must be
    kept in separate scope instances. Use backingBeanScope scope for any
    managed bean created for a page fragment or declarative component.Backing bean scope (and request scope) beans lose their state in between requests.
    John

  • Issue on Function Module

    Hi Gurus
    I have an issue with function module, i am passing a filepath to the function module which is like this /temp/folder/AFILE.csv.
    to pull the data from application server. When ever it enters to the function module it is changing the file name as /TEMP/FOLDER/AFILE.CSV( it is changing the entire thing to capitol letters), I just want to know that there is any way where i can pass the file path as it is.
    Regards
    Kumar.

    If it is a custom Function module then goto the domain of the file parameter of the FM (if u r using std. domain then change it to a custom domain)  and set the lowercase checkbox under Definition tab.
    Regards,
    Joy.

  • Input List of values

    I currently have a input text field.
    How do I convert to a "Input List of values".
    I do have the lookup VO that needs to be used in the list of values.
    I tried the "right click" -> convert -> that does not show the "Input List of values".
    Thanks

    create lov popup manually..have af:inputText (set autoSubmit to true) & af:commandImageLink (get magnifier image from adf image lib). within af:commandImageLink invoke popup.
    create af:popup
    d&d vo as table
    to search pass inputText binding and execute vo
    have a ok button and get the selected row value

  • BI Content Warning Errors

    Hi Experts,
    I am Activating the BI Content I am getting Following below Warning Errorsr
    Issue -1
    Object InfoObject 0ABCKEY: Merge with the Content Version
    InfoObject 0ABCKEY: Application component  transferred from Content version
    InfoObject 0ABCKEY: InfoArea  transferred from the Content version
    Issue -2
    Checking InfoObject 0ADDR_LINE0
    Characteristic 0ADDR_LINE0: Lower case makes selection of char. values difficult
    Please look this issue, please any one provide me solutions ASAP....
    Thanks & Regards,
    Kumar.

    Hi ,
    for Issue -2
    Checking InfoObject 0ADDR_LINE0
    Characteristic 0ADDR_LINE0: Lower case makes selection of char. values difficult
    Check whether at the time of load from source you had done setting as lowercase .Check infoobject setting and if it is checked as lowercase uncheck it .
    Regards,
    Jaya

  • ALV Grid and Uppercase

    Hi all!
    I'm using an OO ALV Grid to display/change some data. Some of the fields are just used for put comments. My problem is that when I'm trying to save the changes to a BD these texte fields are converted to uppercase, and I don't want that. I want these fields saved in the same format that the user has entered the text.
    Is the user enters: "This is an Example" I want the text saved in that exact format and not like: "THIS IS AN EXAMPLE".
    Any ideas?
    TIA, Mauro.

    Solved.
    I just need to set gt_fieldcat-lowercase = 'X' in the field catalog.

  • SQL CLR function stops working sometime after processing 10,000 web requests....

    The CLR functon below works fine up to around 12,000 requests and then stops working. Am I missing something? If I remove then redeploy the function it again will work for another 12,000 requests. I don't see a memory leak but then my C# skills are rusty. Thanks!-----------------------------------------------------------------------------------------------
    -- Web Request CLR functions.
    USE MyDb
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetWebRequest]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
    DROP FUNCTION [dbo].[GetWebRequest]
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PostWebRequest]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
    DROP FUNCTION [dbo].[PostWebRequest]
    GO
    BEGIN TRY
    DROP ASSEMBLY [SqlClrLibrary]
    END TRY
    BEGIN CATCH
    SELECT 'SqlClrLibrary not found.... creating'
    END CATCH
    CREATE ASSEMBLY [SqlClrLibrary]
    FROM 'c:\\SqlClrLibrary.dll'
    WITH PERMISSION_SET=UNSAFE;
    GO
    -- PostWebRequest
    USE MyDb
    GO
    /****** Object: UserDefinedFunction [dbo].[PostWebRequest] Script Date: 07/18/2014 12:03:32 ******/
    CREATE FUNCTION [dbo].[PostWebRequest](@uri [nvarchar](256), @postdata [nvarchar](max), @UserAgent [nvarchar](256), @ContentType [nvarchar](256))
    RETURNS [nvarchar](max) WITH EXECUTE AS CALLER
    AS
    EXTERNAL NAME [SqlClrLibrary].[SqlClrLibrary.Functions].[POST]
    GO
    // Below is the CLR code....
    using System;
    using System.IO;
    using System.Net;
    using System.Text;
    using Microsoft.SqlServer.Server;
    namespace SqlClrLibrary
    /// <summary>
    /// CLR Functions.
    /// </summary>
        public static class Functions
    /// <summary>
    /// Send an Http Post request and return a scrubbed result.
    /// NOTE: The response is always set to lowercase... This is due to performance issues related to sql injection scrubbing.
    /// See SqlInjectionScubber.Scrub.
    /// </summary>
    /// <param name="Uri">Web address for the POST request.</param>
    /// <param name="PostData">Payload name value pairs for request parameters.</param>
    /// <param name="UserAgent">Http user agent sending this request.</param>
    /// <param name="ContentType">Mime type.</param>
    /// <returns></returns>
    [Microsoft.SqlServer.Server.SqlFunction(DataAccess = DataAccessKind.Read)]
    public static string POST(string Uri, string PostData, string UserAgent, string ContentType)
    var postByteArray = Encoding.UTF8.GetBytes(Convert.ToString(PostData));
    // Set up the request
    var req = WebRequest.Create(Uri);
    req.Method = "POST";
    req.ContentType = ContentType;
    ((HttpWebRequest)req).UserAgent = UserAgent;
    // Submit the POST data
    var dataStream = req.GetRequestStream();
    dataStream.Write(postByteArray, 0, postByteArray.Length);
    dataStream.Close();
    // Collect the response, put it in the string variable "document"
    var resp = req.GetResponse();
    dataStream = resp.GetResponseStream();
    if (dataStream != null)
    var rdr = new StreamReader(dataStream);
    var document = rdr.ReadToEnd();
    // Close up and return
    rdr.Close();
    dataStream.Close();
    resp.Close();
    // Scrub the result.
    return document;
    return String.Empty;
    Scott Mitchell

    Hi Scott,
    There's not enough information there to troubleshoot the problem. Try looking in the forum for similar problem postings (there have been a few, IIRC). First thing to try would be issuing the same number of requests in a batch program, to isolate the behavior
    to "code is running in SQLCLR". That would also help you isolate memory leaks, if any. Also:
    Need version of SQL Server (version, service pack, and cumulative updates, is it 32 or 64 bit version). It matters.
    Define "stops working". Does it produce an error message or appear to hang or something else? Does it bring down the appdomain (there's messages for that in SQL Server log). And does "redeploy" mean just DROP/CREATE assembly? Or bounce
    SQL Server, or something else?
    And since it's a web service you're calling... if you trace to network traffic, is the message actually sent? Is the message received at the service? Does the service return a response? And does the SQL function process the response? Is it "your"
    service or an "outside" service (perhaps there's a limit on number of requests or number of requests in a certain time period. Is it exactly 12000 requests or about 12000, and how many requests per minute? Isolate where in the intersystem communication
    it fails.
    It could be a memory shortage or fragmentation problem. SQLCLR memory handling differs in SQL Server 2012 vs. other releases and also differs in 32 vs. 64 bit SQL Server. You can look at memory consumed by SQLCLR (sys.dm_os_memory_objects where
    type like '%CLR%'). You can look at perfmon counter(s) for SQL Server or .NET perfmon counters for the SQL Server process to track CLR garbage collections (which does work differently in SQLCLR). You can look at sys.dm_os_wait_stats if it's hanging. And in
    SQL Server log for SQL Server errors.  SQLCLR can fragment memory in older versions so that there's not a big enough fragment left to allocate. If it's pre-2012 read up on "mem-to-leave or mem-to-reserve" (two different terms for the same
    thing).
    Hope this helps, Bob

  • DWMX not saving file changes

    This is weird.
    I am changing the onMouseOver to all lower case so it
    vaildates with a xhtml
    doctype.
    So I make the change, save the file, even close DW.
    But when I open it up again, the onmouseover is now back to
    onMouseOver.
    I was able to change all other instances of onMouseOver via a
    sitewide ctrl
    find and replace and it even shows as if it's replaced this
    one file's
    instances, but every time I open this file, it's back to the
    mixed case
    rather than lower case.
    It's a similar situation with another file that just will not
    accept
    onsubmit and keeps reverting back to onSubmit. It's a
    conspiracy! :)
    Anyone have any suggestions?
    Cheers,
    Lossed
    __when the only tool you have is a hammer, everything looks
    like a nail __

    Glad you solved it. Get that nut fixed, will you? 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Lossed" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks for getting back to me Murray,
    >
    > It was the nut behind the wheel that was faulty.
    >
    > In the code format preferences, I have the default case
    for tags and
    > attributes set to lowercase, and I have it set to
    override the case of
    > tags and attributes.
    > This I assumed would set all tags and attributes to
    lowercase irrespective
    > of what the tag library settings were. I mean, that is
    what I consider
    > 'override' to mean - it overrides the users typeing or
    more specific tag
    > library settings.
    >
    > But it doesn't privide that kind of global setting, it
    seems.
    >
    > After individually setting the attributes of each of the
    tags in the tag
    > library, it does keep the code lowercase as I had
    originally intended.
    >
    > thank goodness for that. I can ill-afford to lose
    anymore hair :)
    >
    >
    >
    >
    >
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> What do your preferences specify about rewriting
    code?
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Lossed" <[email protected]> wrote in
    message
    >> news:[email protected]...
    >>>
    >>> This is weird.
    >>> I am changing the onMouseOver to all lower case
    so it vaildates with a
    >>> xhtml doctype.
    >>> So I make the change, save the file, even close
    DW.
    >>> But when I open it up again, the onmouseover is
    now back to onMouseOver.
    >>>
    >>> I was able to change all other instances of
    onMouseOver via a sitewide
    >>> ctrl find and replace and it even shows as if
    it's replaced this one
    >>> file's instances, but every time I open this
    file, it's back to the
    >>> mixed
    >>> case rather than lower case.
    >>>
    >>> It's a similar situation with another file that
    just will not accept
    >>> onsubmit and keeps reverting back to onSubmit.
    It's a conspiracy! :)
    >>>
    >>> Anyone have any suggestions?
    >>>
    >>> --
    >>> Cheers,
    >>> Lossed
    >>> __when the only tool you have is a hammer,
    everything looks like a nail
    >>> __
    >>>
    >>
    >>
    >
    >
    >

  • How to set background color in af:inputText in an af:table

    Hi,
    how to set background color in af:inputText in an af:table depending on the value of af:inputText.
    For example, how to set background red if the af:inpuText is empty
    Thanks

    Hello Pavo,
    it's also possible to take the code from ebitar and use the expression within styleClass instead of inlineStyle.
    E.g. you can define a custom style "StyleClassEmptyText" in your skin and set this styleclass if af:inputtext is empty.
    By using style classes you can have the same style in the whole application and you are able to change this style on a single point(in the styleclass) for the whole application.
    br
    Peter

  • Setting read-only property for a RTL inputtext.

    HI,
    I am using JDeveloper version 11.1.2.2.0. In my fusion web application, in the af:inputtext field, if the language is, RTL or LTR the value is displaying according to that. Suppose, if it is English, the value is displaying left to right. If it is, Arabic, the value is displaying from left to right. But if I set the column value is read-only, everything is displaying as left to right. Here is the code of my input text field.
    <af:column sortProperty="#{bindings.PhraseTranslationView3.hints.Description.name}"
    sortable="true"
    headerText="#{bundle['PhraseTranslation.des']}"
    id="c5">
    <af:inputText value="#{row.Description}" id="ot6"
    inlineStyle="border-style:none; overflow:hidden;border-color:rgb(255,255,255);direction:#{row.TextDirection};border-width:thin;height:16px; font-weight:bold; color:rgb(0,0,0); font-size:8.0pt;font-family:Arial Unicode MS;"
    label="Label 6">
    </af:inputText>
    </af:column>
    What is going wrong in this?

    Yeah, I have set it to 'True'. If I set it, the value is not displaying from left to right.
    Here is the code.
    <af:inputText value="#{row.Description}" id="ot6"
    inlineStyle="border-style:none; overflow:hidden;border-color:rgb(255,255,255);direction:#{row.TextDirection};border-width:thin;height:16px; font-weight:bold; color:rgb(0,0,0); font-size:8.0pt;font-family:Arial Unicode MS;"
    label="Label 6"
    styleClass="rtl" readOnly="true">
    </af:inputText>
    Regards,
    Infy

Maybe you are looking for

  • Two ipods on same Mac??

    I have a new iPod shuffle and my husband would like one also, but does not like my music choices. Can I have two itunes libraries on this iMac so he'd have his own music list? If so, how do I set that up? Thanks in advance!!

  • OBIEE 11g Recent Reports in a custom dashboard

    Hi, I have a requirement to put "Recent Report" of a user in a Custom built Dashboard. I know this functionality is available in OBIEE 11g home page. But our requirement is to put the same sections in few Custom Dashboards. Please let me know if this

  • Does Time Machine Backup irritate wireless Mighty Mouse?

    Hi there. I'm having a strange issue here. With an iMac that came with bluetooth mouse and keyboard, OS out of the box (no software updates installed because there's no internet connection), each time Time Machine is backuping files, the Mighty Mouse

  • Problem starting Repository Browser Service on Windows Server 2008

    Using the default Warehouse Builder installation in the 11g (11.1.0.7.0) databaseinstallation on a clean Windows Server 2008 64-bit installation. Warehouse Builder installed and populated ok, OWB client works fine etc. When trying to start the Reposi

  • Querry report for p.o values

    how can we write a querry report for p.o more than a specified value using 3 databse tables/ transaction tables  without help of any abaper