How can get the value of a HtmlInputText (created in the bean)

Hi All,
I have created a HtmlInputText object in the Backing Bean (the getter and setter are in another Bean used to manage the data, getEditableInputText and setEditableInputText)
//getter and setter in Bean
public HtmlInputText getEditableInputText() {
return this.editableInputText;}
public void setEditableInputText(HtmlInputText editableInputText) {
this.editableInputText = editableInputText;
I set the value in the Backin Bean
The HtmlInputText is bound in the xml in this way:
<h:inputText id="test" binding="#{Bean.editableInputText}"></h:inputText>
When I load the page I can see the TextField with the value that I set previously (in the backin bean).
The problem is when I try to change the value of the texField:
I change the value, then I click on a button (its action is to call a method to get the value of the field).
In debug mode I see that the value is allways the first set instead of the new value inserted.
I tried with getValue and similar but it does not work.
I tried also to put HtmlInputText in a panel (using a similar logic) and then to get it using getChildren() method but also this does not work.
Any idea?
Thanks in advance

Ok (now I understand)
I have used bean.getEditedInputText() and it is not null.(I got the HtmlInputTextObject)
But bean.getEditedInputText().getValue has allways the first value set.
If I don't set previously the value (in the backin bean) the getValue() is allways null.
So my problem is that I can set but I cannot get the Value when I change it.
Edited by: LucaMane on Nov 16, 2008 5:13 AM

Similar Messages

  • How to get Numric value from a Char field in the database?

    I have the following values in a column in Database.
    COMP
    GRADE
    CANC
    CANCELLED
    Comp
    Complete
    INCOMP
    NC
    NS
    85%
    79
    88 .... etc....
    I have to take the value from this field if it is a Numeric other wise I have to ignore that value.
    Please let me know how to handle this?
    Thanks,
    Lakshmi

    Thanks for the inputs.
    Here I want to take the value if it is numeric else I
    will ignore that record.
    Please let me know how to validate the data for a
    Numeric value.
    I don't want to stop my program by throwing these
    exceptions.The sample code catches the exception. At that point you can do whatever you want (set a boolean to say the value is not a number, etc.) - the program does not stop.

  • How to get a value for Select One Choice in the backing bean

    Friends,
    Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
    Below is the my code snippet
    <af:selectOneChoice value="#{bindings.country.inputValue}"
    required="#{bindings.country.hints.mandatory}"
    shortDesc="#{bindings.country.hints.tooltip}"
    id="soc1" autoSubmit="true" valuePassThru="true"
    valueChangeListener="#{pageFlowScope.Bean.onValueChange
    <f:selectItems value="#{bindings.country.items}" id="si2"/>
    </af:selectOneChoice>
    Thanks in advance.

    check my other post at Re: Pass data from a variable to another page

  • How to Get RGB Values from a CMYK Color in the DOM (CS5)

    (CS5, Actionscript)
    Hi all,
    I have an InDesign document containing TextFrames whose border colors are specified as a CMYK array.
    I would like to be able to get its color specification as its closest RGB equivalent.
    Does the InDesign DOM contain a method for doing this for me automatically?  If not, what workarounds are there?
    TIA,
    mlavie

    Here's how to convert RGB to CMYK:
    function rgb2CMYK (r,g,b){
        var color = app.documents[0].colors.add({space:ColorSpace.RGB,colorValue:[r,g,b]});
        color.space = ColorSpace.CMYK;
        var retVal = color.colorValue;
        color.remove();
        return retVal;
    The same idea for the reverse.
    For info on converting to grayscale, check out this:
    http://in-tools.com/article/scripts-blog/convert-colors-to-grayscal-in-indesign/
    HTH,
    Harbs

  • How to get real value from selectOneChoice with javascript?

    Hi,
    How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
    JSF page:
    <af:resource type="javascript">
    function parseAddress(event)
    alert("new value: " + event.getNewValue());
    </af:resource>
    <af:selectOneChoice label="Location:" value="" id="soc4">
    <af:clientListener type="valueChange" method="parseAddress" />
    <f:selectItems value="#{Person.locations}" id="si7"/>
    </af:selectOneChoice>
    HTML :
    <option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
    <option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
    Thanks a lot.

    Something I was missing ,
    You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelBox text="PanelBox1" id="pb1">
    <af:selectOneChoice label="Set Log Level" id="soc1"
    value="#{SelectManagedBean.loggerDefault}"
    valuePassThru="true">
    <af:selectItem label="select one" value="First" id="s6"/>
    <af:selectItem label="select two" value="Second" id="s56"/>
    <af:clientListener method="setLogLevel" type="valueChange"/>
    </af:selectOneChoice>
    <af:resource type="javascript">
    function setLogLevel(evt) {
    var selectOneChoice = evt.getSource();
    var logLevel = selectOneChoice.getSubmittedValue();
    // var logLevelObject = AdfLogger.NONE;
    alert("new value is : " + logLevel);
    //alert(evt.getSelection);
    //alert(logLevelObject);
    evt.cancel();
    </af:resource>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • How to Get checkbox value when List value changed in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
    take value of checkbox item and show it in message .
    SQL for report
    SELECT
    '<INPUT TYPE="checkbox" NAME="f01" VALUE="'
    ||SEQ
    ||'">' SEQ,
    ID,
    DEPT_NO,
    EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
    now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
    i create JavaScript on the page
    function test(pThis) {
    var f01_value = $('select[name="f01"]').value;
    alert('#SEQ : '+ f01_value);
    </script>
    I call this javascript function when list change but the value undefined..
    My Question :
    How can get this value Or any value of item in reports
    regards
    Ahmed

    Hi Ahmed,
    >
    i worked with apex 4.2 and i create normal classic report with one checkbox column and one column change it to select list(named loved) now i want when user change list
    take value of checkbox item and show it in message .
    SQL for report
    SELECT
    '<INPUT TYPE="checkbox" NAME="f01" VALUE="'
    ||SEQ
    ||'">' SEQ,
    ID,
    DEPT_NO,
    EMP_NAME} i change the column attributes of Dept_NO to Display as Select list of department name (named lov).
    >
    You should not create checkboxes like this. Either use the APEX_ITEM.CHECKBOX2 API or change the Column Type to Simple Checkbox.
    >
    now i want when user change name of department the value of SEQ SHOW IN ALERT MESSAGE
    i create JavaScript on the page
    function test(pThis) {
    var f01_value = $('select[name="f01"]').value;
    alert('#SEQ : '+ f01_value);
    </script>
    >
    name="f01" returns an array, what you need is single element value.
    Try
    <script type="text/javascript>
    function test(pThis) {
      var f01_value = $v(pThis);
       alert('#SEQ : '+ f01_value);
    </script>
    {code}
    {quote}
    I call this javascript function when list change but the value undefined..
    My Question :
    How can get this value Or any value of item in reports
    {quote}
    Depends in how you are invoking/triggering the change event. Are you using DA or have you written an "onchange" event on the element?
    Cheers,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • All contacts appear in messages but not phone. How can get them back on phone?

    all 300+ contacts appear in messages but only 52 appear on phone contact list. How can get them back on phone?

    Welcome to the Apple Community.
    What do you mean you have them in iCloud, do you mean you have an iCloud back up, or the contacts are still available at iCloud.com

  • How to get default values while using the transaction "BP"

    Hi Group,
    I have a query on how to get default values while using the transaction <b>BP</b>?
    The thing is:
    when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
    how can I achieve this?
    So please kindly let me know the procedure to achieve this.
    Thanks & Regards,
    Vishnu.

    Hi,
    The events of BDT can be used to default some fields on creating a partner.
    For this create a function module for ISDAT. attach that event in BUS7.
    In the ISDAT funtion modulethe following code should be used.
    For example to set the nationality:
    I_BUSDEFAULT-NATIO = 'DE.
    CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
    EXPORTING
    i_busdefault = I_BUSDEFAULT
    Regards, Smita.

  • How to get actionOverride value in the URL in page Flow

    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

    u can try in JSP:
    DesktopPresentationContext dpCtx = DesktopPresentationContext.getDesktopPresentationContext(request);
    BookPresentationContext bpCtx= dpCtx.getBookPresentationContext();
    ArrayList al = bpCtx.getPagePresentationContexts();
    for(int i=o; i<al.size(); i++) {
    PagePresentationContext ppCtx = (PagePresentationContext )al.get(i);
    List windowCtxList = ppCtx.getWindowPresentationContexts();
    for(int j=0; j<windowCtxList.size(); j++) {
    WindowPresentationContext wpCtx = (WindowPresentationContext)windowCtxList.get(j);
    wpCtx.getLabel();
    "Hitesh" <[email protected]> wrote:
    >
    Joe,
    Thx a lot .
    I got the instance ID for the current portlet with API
    com.bea.netuix.servlets.controls.portlet.PortletPresentationContext.getPortletPresentationContext(request).getInstanceLabel();
    But how to get instance label for other Portlet ? any idea..........
    Thanks ,
    Hitesh
    "Joe" <[email protected]> wrote:
    It is a portlet's instance name. You can see it in the .portal screen
    as a property.
    This is added for portlet scoping. The instance name you might get from
    a
    backing (did not find it yet) or soeme fancy request attribute eventually.
    "Hitesh" <[email protected]> wrote:
    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When
    i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see
    in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • How do I transfer my bookmarks from one computer to another? I have Firefox Home on my phone and I can get them there, but I want to have the same bookmarks on my home computer as I do on my work computer.

    How do I transfer my bookmarks from one computer to another? I have Firefox Home on my phone and I can get them there, but I want to have the same bookmarks on my home computer as I do on my work computer. If I have a user name then where do I sign into Firefox, it should be that easy but I can't seem to figure it out.

    Hey susanneyes,
    Sounds like you want to set up Firefox Sync. This will allow you to keep all of your instances of Firefox synchronized. Just follow the steps in [https://support.mozilla.com/en-US/kb/what-firefox-sync?s=sync&r=0&as=s this article] and you'll be set.
    Hopefully this helps!

  • HT201269 Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account

    Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account please?

    Yes.
    On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs.

  • How to Get the value in a new created view.

    Hi Experts,
    I have create a view along with the fields: Street No. , Street name, apt no,
    how should i capture these values . in a current situation i entering the value but when i check in the debugging mode : in a collection_wrapper (context node class) i am not able the see the value which i have entered. please help me out. it is  very urgent.
    Rohit

    Hi Ashish,
    Thanks for replying. i have already create the context node and in the using the request from field method ,i am getting the value in my work area but how to store the value in the custom fields of that particular order  as well as store the value in the crmd_customer_i table...
    Regards,
    Rohit

  • I loos my APPLE ID, I have a new one, how can get access to data stored in the old one?

    I loos my APPLE ID, Now I have a new one, how can get access to data stored in the old one?

    Do you have the email & password of the old Apple ID?

  • How can i do a variable User exit that present the values before execute

    Hi Gurus,
    How can i do a variable User exit that present the values before execute, i need this:
    a variable that calculate SYS-DATUM until 30 days before (I got the code) but this  variable run automatic because is user exit, i want this variable but first present the values, not execute automatic, this is because the users want the report that automatic present the values , help

    Hi,
    Refer the below links,
    http://documentation.softwareag.com/natural/nat424mf/pdf/ops_mf/conf_usrex.pdf
    http://www.erpgenie.com/component/content/article/1097
    http://www.apentia-online.at/UP/Apentia/files/Article/SAP_BW_User_Exits_and_BAdIs.pdf
    Hope it helps you,
    Regards,
    Ravindra.

Maybe you are looking for