Updating value of af:inputText.

Hi!
I'm trying to modify the value of af:inputText using backing-bean, and I have the problem that the JSP Page doesn't update the values.
The code is the following:
JSP:
<af:inputText readOnly="false" columns="30"
binding="#{BckAltaATecnicas.zona}">
</af:inputText>
Backing:
zona.setSubmittedValue(new String("2"));
zona.setValue(new String("2"));
Thanks in advance,
Jaime.

Modify:
<af:inputText readOnly="false" columns="30"
binding="#{BckAltaATecnicas.zona}">
</af:inputText>
to:
<af:inputText readOnly="false" columns="30"
binding="#{BckAltaATecnicas.zona}" value="#{BckAltaATecnicas.zona}">
</af:inputText>

Similar Messages

  • Updating data in h:inputText field

    In my <h:inputText> field, first time user enter a number to search, and the number saved in the session, later on from page to page navigation, sometime user can selected another order number , save the number in session and refresh the whole web content, the value in this <h:inputText> field should update the new number from session everytime the web page reloaded, this actually working fine in the <h:outputText> field as following code <h:outputText value="#{MyPageCode.orderNumber}"/> which getting the orderNumber from session,
    but it is not working in the <h:inputText> getting the new number from session, it always keep the first time user entered number there, can someone help me to solve the problem?
    Thanks a lot !
    <h:form styleClass="form">
      <h:outputText  value="Order#: "/>
         <h:inputText  value="#{mySession.orderNo}">  </h:inputText>
              <f:param name="orderNo" value="#mySession.orderNo}">
              </f:param>
    <h:commandLink  style="padding-top:3px;" action="#{myBean.searchAction}">
       <h:outputText  value="Search" >
       </h:outputText>
    </h:commandLink>
    <h:outputText  value="Order number is#: "/>
    <h:outputText value="#{MyPageCode.orderNumber}"/>
    </h:form>

    Here you are, hope I did not lost anything... Thanks!
    faces-config.xml:
    ====================
    <managed-bean>
              <managed-bean-name>mySession</managed-bean-name>
              <managed-bean-class>myManagedSession</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
                   <managed-bean-name>myBean</managed-bean-name>
                   <managed-bean-class>MyManagedBean</managed-bean-class>
                   <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
         <managed-bean>
                   <managed-bean-name>MyPageCode</managed-bean-name>
                   <managed-bean-class>MyManagedPageCode</managed-bean-class>
                   <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
         =================================
         public class MySession {
            private Integer orderNo;
                 public Integer getOrderNo() {
                      return orderNo;
                 public void setOrderNo(Integer orderNo) {
                      this.orderNo = orderNo;
                public void setOrderNumber(int on) {
                  // set order number in session
          ===================
           public class MyBean {
         public String searchAction() {
                   Integer orderNo = getMySession().getOrderNo();
                   if(orderNo != null){               
                      int orderNumber = orderNo.intValue();
                      getRequestScope().put("OrderNumber", new Integer(orderNumber));
                      getMySession().setOrderNumber(orderNumber);                    
                   return "page1";
         protected MySession getMySession() {
                   if (mySession == null) {
                        mySession = (MySession) getFacesContext()
                                  .getApplication().createValueBinding("#{mySession}")
                                  .getValue(getFacesContext());
                   return mySession;
    =========
    public class MyPageCode {
        public int  getOrderNumber() {
             // get from session
    }

  • Not able to view actual Price updated 'Value' in Change Tracker

    I was able to get my Change tracker to work and it is functioning. (SRM 5.0 MDM5.5 )... Configured Portal iViews for change tracker.
    If I change a description I can see it in the change tracker application. But if I try and track a Price change it only shows me a date-time  and user as to I when the price was changed it doesnu2019t show me the actual value changed, for my audit purposes.
    On the portal the change tracker "Field" dropdown shows -> Price Updated. this is what is tracking any change of price.
    In MDM Console-> Admin->Change Tracker I am tracking under Catalog Items: Price information, Price Updated, Special search terms, long description.
    When I look at the Data manager in the Record Detail, I see  u2018Price Updatedu2019 and it only has a Date and time stamp. In this same Record Detail,  I see the field Price Information that contains :Lower bound, Purchasing Info record ID, Purchasing Organization, Amount and Currency.  Amount-> contains the actual price value. This is what i want to see in the portal iView as Old value and New value....this is what I am unable to view? theres one small step i am not doing...
    I am trying to track the actual change in the filed u2018Amountu2019u2026 I have tried to search for it in the Portal iView fields (table, record contains, fields, record)
    cheers
    alex

    Hi Alex,
    I would not here comment on change Tracking functionality but can you suggest another workaround to achieve this requirement. If it fits in your requirement you can go ahead with it.
    In MDM, Create another field in Main table say Initial Price and for already existing field Amount replace its name with Updated Price in Qualified table Price.
    now after this you will see that your by default Updated Price has values as it was your Amount field earlier and Initial Price field as empty. Now for next time, if any record comes using Import Manager then MDM workflow should trigger at Record Import.
    This workflow contains following steps.
    Start(Checkout)>Assign>Stop(CheckIn)
    Assign step should have below expression and assignment:
    Price Information.Updated Price
    Where I am assuming Price Information is the field in main table which is look up to this qualified table Price.
    So in this way you can maintain both existing and updated values of Price and cant then show in your Catalog.
    suppose you have already existing record say 1 which has value of Amount as 20.
    So that means you have Updated Price as 20 and Initial Price as empty(Null)
    Now when same record 1 updates with new Amount say 40, it triggers this workflow on record import which will then assign value of existing updated Price 20 to Initial Field after that Updated Price will update by 40.
    Note: This Assignment works well only if your main table record has this Qualified table link as single record. If your main table record contains more than one qualified links then this Assignment would not work fine. So use only if it fits.
    Regards,
    Mandeep Saini

  • Get Updated values in valueChangeListener of af:selectManyShuttle

    I am using Jdeveloper 11.1.1.3.0
    I have applied the valueChangeListener in selectManyShuttle to get the values in backing bean.
    But the problem is, it's not giving me the updated values.
    For example, for the 1st time, the left side list is empty. So, 1st time when I moves some values, it doesn't give me any value but next time, it gives me the the ID of previously moved items.
    How to resolve this problem?

    You can try to put the following line as the 1st line in your valuechangelistener method.
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    Thanks and Regards,
    S R Prasad

  • How to get updated values from the loops while they are running

    Hello,
            I am having difficulty solving a very basic problem, how to access the updated values from the 'FOR loop' while its running?  Basically, the VI  I am currently working on calls two sub VIs. Each sub VI has a for loop, and both VIs may or may not run for same number of iterations. My goal is to read the values at each terminal inside the loop of both sub VIs, in the Main VI. I tried to achieve it using Global Variables, but in main VI it displays only the last iteration value from both sub VIs. Could anyone please tell me whrere am I going wrong? Is there any other/better way to achieve this.
    I appreciate any input on this issue.  
    Kudos are (always) welcome for the good post. :-)
    Solved!
    Go to Solution.

    Dennis,
                In attached VI, I can see the values changing in the sub VI from the main VI with the numeric indicator whose reference is passed on to the sub VI. Now if I wanted to store or use those values how do I do that? I tried to chnge the indicator to control and read from it (in the attached VI) , but the the indicator updates only once. Tried to create a property node and read the Value from it and it didn't work either.
    Thanks in Advance!
    -Nilesh
    Kudos are (always) welcome for the good post. :-)
    Attachments:
    main-1.vi ‏8 KB
    sub-1.vi ‏9 KB

  • How to update values in ValueChangeEvent..

    Hi Everyone,
    I am using Jdeveloper 11.1.2.0.0.
    I have a scenario as follows. I have 2 input fields as Password and Confirmpassword.
    I wrote a ValueChangeListener for the field Password to do some validations and I wrote another ValueChangeListener for the Confirmpassword field inorder to compare the values entered in both fields.
    But here.., In ValueChangeListener event of Confirmpassword field, iam unable to fetch the value of Password field to compare.
    The reason is ..., ValueChangeListener  occurs in ApplyRequestPhase/ProcessValidationsPhase, and values get updated in UpdateModelPhase, hence values are not updating and unable to fetch in ValueChangeListener  event.
    In order to update values to the component tree in ValueChangeListener event, i tried using below code
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    But values are not updating..Kindly suggest me to achieve my scenario. Do the needful. Thanks in advance.
    Regards
    Alekhya

    Hi Nitish...
    Thanks for the response...
    I tried fetching password field value in Confirmpassword field by 2 ways as follows
    1. I binded value of the field as #{backingBeanScope.LoginPage.pwd} and tried to get value using getPwd() method.
    2. I fetched Ui component of  password inputfield and tried to get value using password.getValue()
    By both ways Iam getting null value in ValueChangeListener event of Confirmpassword.
    After clicking a button on the page , as usual the setters, ValueChangeListeners are executing and during this sequence..Iam getting value . But my scenario is this validation should be performed bu tabbing out of the field , not after clicking on a button .
    autoSubmit property is set to true.
    Kindly suggest me to proceed further. Thanks in advance.
    Regards
    Alekhya

  • How to give a default value in an inputText on a Form (Jdev 11G Preview2)

    First Test :
    In the .jspx I have a Form with an inputText :
    -id = inputText1
    -value=#{bindings.ppartId.inputValue}
    In the page Def (in the <methodAction ..for the submit button) I modified the NDValue in order to have
    <NamedData NDName="ppartId" NDType="java.lang.Integer"
    NDValue="${ParticipantInfo.participantId}"/>
    --> After clicking on the submit button I got a null value for the ppartId (in my model method) [In my ManagedBean ParticipantInfo, participantId is OK]
    Second Test
    In the .jspx I have a Form with an inputText :
    -id = inputText1
    -value=#{bindings.ppartId.inputValue}
    I replace the value
    -id = inputText1
    -value=#{ParticipantInfo.participantId}
    --> I saw the correct value when running the form but After clicking on the submit button I got a null value for the ppartId (in my model method)
    So my problem is : I just want to give a default value on an inputText on a form with a Managedbean. How to do that ?
    Could I modify the code of the action ofthe submit button to do that but how ?
    public String saisierapide_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("SaisieRapide");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    }

    Hi,
    if your attribute binding is bound to a variable, then you can achieve this by setting the DefaultValue attribute for the variable to the desired value. E.g.
      <variable Name="ppartIdVariable" Type="java.lang.String"
                DefaultValue="${ParticipantInfo.participantId}"/>
    <attributeValues id="ppartId" IterBinding="variables">
      <AttrNames>
        <Item Value="ppartIdVariable"/>
      </AttrNames>
    </attributeValues>HTH,
    Patrik

  • Oracle Alert: Access before and after update values of a table column

    We have a requirement where a notification needs to be sent when 'END_DATE' attribute (column in a table X) is set, in an Oracle Applications form.
    I have defined an Event based Oracle Alert which fires 'On Update' of the table X.
    Could anyone please let me know as how to access the value of 'END_DATE' before and after update (i.e :new.END_DATE and :old.END_DATE) in the sql query of the alert.
    The need to use the before update and after update values of the attribute 'END_DATE' is that if we add the condition END_DATE is not null, the alert is sent even if any other attrbutes are updated in the Oracle form which is not the intended behavior.
    Appreciate any help.
    Thanks

    Hi
    use selectionlistener for your first table then add clientlistener and serverlistener so that you will get the rows on click in back bean.
    then get second table vo and and create and add row for that view object. add partial target to refresh your second table from back bean.
    on click of save call commit operation.

  • Update values of custom fields in table HRPAD506-Additional Data for PAD506

    Hi Experts,
    my requirement is write a report program to upload a file with records.
    I have to capture this records into an internal table and have to update values of 5 custom fields based on ADATANR.
    Can anyone suggest me about any FM or any way of doing this.
    Urgent requirement.
    Will HRIQ_RFC_BOOKING_CHANGE help.
    thankx.
    Duttad.

    hi,
    Above mentioned that when the values are entered in the customised fields they are not updating in the to the table mara.
    so, the program name and screen number which you are configuring in the spro, in that program name and in that screen number code it as below:
    (you could find the field statements in that screen for the standard fields like FIELD MARA-MEINS.)
    for example:
    PROCESS BEFORE OUTPUT.
           PROCESS AFTER INPUT.
          FIELD MARA-zzfieldname.
    Refer the oss note : 38229
    Thanks and regards.

  • How to update value in internal table from cdpos taking fname n value_new?

    hello everyone,
              i want to insert  value in internal table from cdpos table taking field name  from fname and value from value_new.but the problem is i am not getting how to map the corresponding field of internal table with fname value  which is the field name.
    for example
    i
    fieldname
    value
    name1
    raj
    name2
    sharma
    i want to update field name1. this name1 is there in fname with updated value in value_new  how to make name1 with fname value
    thanks and regards
    laxmikant soni

    Hi Laxmikant,
    If I have understood your requirement correctly, you need to update an internal table with latest 'value_new' from cdpos table where  'fname' = 'fieldname' .
    Hope the below logic will help you:
    FIELD-SYMBOLS: <wa_intab> LIKE LINE OF lt_intab.  "the internal table you want to change
    LOOP AT lt_intab ASSIGNING <wa_intab> .
       READ TABLE lt_cdpos INTO wa_cdpos           "lt_cdpos contains latest data selected from CDPOS
        WITH KEY fname = <wa_intab>-fieldname.
       IF sy-subrc = 0.
         <wa_intab>-value = wa_cdpos-value_new.    
       ELSE.
         "//logic if the name is not there in CDPOS
       ENDIF.
       CLEAR  wa_cdpos.
    ENDLOOP.
    If you wish to improve performance, I suggest using
    1. "transporting value_new" addition in READ TABLE,
    2.  select only the data which you require from CDPOS,
    3.  create the internal tables with only fields which you require,
    4.  when you are using SELECT,LOOP AT statements, limit records by using WHERE condition
    Regards,
    Kavya

  • After refreshing browser .as file loss updated value

    Hi Friend's
    1.
    I have some problem in flex. I have two .mxml file and one
    .as file when i change value of a variable which i declared in .as
    file from one .mxml file and getting in other .mxml file it
    displaying default value not that value what i changed in one .mxml
    file .
    what is problem with that can anybody help me
    2.
    Suppose i have first.mxml file and one .as file and i change
    property .as file from first.mxml file after changing i click on
    refresh button of browser then it get default value but i want
    updated value is there any option in flex to fix this issue or give
    me any Suggestion.
    thanks in adv

    refreshing browser, reloads flashplayer and flash application
    it is running, so all variables will be reset,

  • My Sites "Updating values in this field is disabled temporarily"

    Managed metadata is configured and I am able to access and add terms, etc. I am able to go to the User Profile Service in Central Admin and update the managed metadata fields such as "Ask Me About", "Past Projects", "Skills",
    etc. However, when I go to the My Site host and try to edit my profile there, I get the error:
    There was a problem retrieving data for this field. Updating values in this field is disabled temporarily. You can still update values in other fields.
    Managed Metadata Service is available:
    I am able to go to the Managed Metadata service in Central Admin, add terms, etc.
    Service Connection settings:
    Checked - This service application is the default storage location for Keywords
    Checked - This service application is the default storage location for column specific term sets
    Editing profile from My Site host:
    Ask me About: There was a problem retrieving data for this field. Updating values in this field is disabled temporarily. You can still update values in other fields.
    Edit the same profile in Central Admin works fine:
    Ask Me About: No error, able to add data.
    All the solutions for this error that I have been able to find are not working, but they are for when the managed metadata service is inaccessible, or the fields cannot be updated in Central Admin either. I've recreated both the User Profile
    service and the Managed Metadata service. Any ideas?
    Thanks

    Hi tammylj,
    Based on your description, you should use the different service accounts for your CA web application and MySite host site web application, since "Ask Me About" is working for CA but not for MySite host site, the service account for MySite may not read
    and write managed metadata term store.
    please check and make sure your MySite web application service account is added in the Managed Metadata service application with permission "Read Access to Term Store" and "Read and Restricted Write Access to Term Store", then it should work.
    http://james-brennan.co.uk/2011/10/19/failed-background-check-when-the-managed-metadata-service-says-no/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Jsf page not getting refreshed with updated values?

    Hi All,
    - managed-bean - session scope.
    - On a request, Even though, I am updating the bean's properties(values), my Jsf page is not getting refreshed with updated values as it is displaying the older values.
    Can anybody throw some light?
    Thanks in advance.
    - Sri

    Please try to give us more information, follow BalusC suggestion.
    For this moment I only can say you that the more common cause to this problem (in my expirence) is that you have problems with your conversion/validate phase.

  • Update value in database(access-connectivity toolset )

    Hello,
    I am using the database connectivity toolset and I am trying to change values of an existing database.
    I used the "Update" command but i got an ERROR!!!.
    "Exception occured in Microsoft JET Database Engine, Syntax error in UPDATE statement..  in Conn Execute.vi->...."????
    What to do???
    Regard's
    Eyal.
    Attachments:
    update value.jpg ‏23 KB

    Hi
    The shearch statement (after Where) shud be anather field than the field you are trying to change.
    I am using defoult value on cursor type with sucsess.
    I hope this will help you
    Rune

  • BAPI to update value of Progress Tab under Network Activity in CJ20n

    Hi  all,
    can anybody tell me about a BAPI that insert or update value of Progress Tab under Network Activity in Project System(CJ20n)?
    Thanks in advance.
    Regards.
    Sarbajit.

    Hey Sarbajit Majumdar , you'r try this BAPI .
            CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
              EXPORTING
                I_PROJECT_DEFINITION       = LT_PROJ_DEF
                I_PROJECT_DEFINITION_UPD   = LT_PROJ_DEF_UP
              IMPORTING
                RETURN                     = LT_RETURN_MAINTAIN
              TABLES
                I_METHOD_PROJECT           = LT_METHOD
                I_WBS_ELEMENT_TABLE_UPDATE = LT_WBS_UP
                I_WBS_ELEMENT_TABLE        = LT_WBS
                I_NETWORK                  = LT_NETWORK
                I_NETWORK_UPDATE           = LT_NETWORK_UP
                I_ACTIVITY                 = LT_ACTIVITY
                I_ACTIVITY_UPDATE          = LT_ACTIVITY_UP
                E_MESSAGE_TABLE            = LT_METH_MESSAGE.
    I hope this help you .
    Akkadech.T

Maybe you are looking for

  • Significance of purchasing view in Material master

    Hi, What is the significance of purchasing view in Material master. What could be effect if this view is not maintained? Like for material type FERT there is no Purchasing view, but we can do procurement for FERT items. So what is the significance of

  • SO from PO using idocs --same sap client

    Hello SAP Gurus, We need help with the following . The requirement is we need to create the Sales order from Purchase order using idocs within the same client . We created the partner profile of the customer and the vendor . Customer ---maintained an

  • How to use ADD_METADEF to add a custom metadata field

    Hi All, I am trying to add a custom metadata field to check in profile, and this I want to do using RIDC library through my java program. I have tried the following code, but some how I could not see its getting added to Information Fields and also t

  • COGS not capture in COPA

    Hi, I had a scenerio that there is pricing error in SD when the user create the billing documment and the cost of good sold was not capture in the billing document after the user created the condition type. However the invoice cannot be cancelled and

  • Usb flash drive not mounting when inserted (SOLVED)

    Hi, I am (now) using fvwm-crystal with rox as my file manager and when i insert a usb flash drive in to a usb port nothing happens. I check /media and nothing is there. Yes i do have hal started at boot. I reinstalled arch with xfce4. Last edited by