# Input text loses the value in robot framework

**URL:** <https://forum.robotframework.org/t/input-text-loses-the-value-in-robot-framework/317>\
**Category:** Robot Framework\
**Created:** [4 June 2020 08:56 UTC](https://forum.robotframework.org/t/input-text-loses-the-value-in-robot-framework/317 "2020-06-04T08:56:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SophiaJeb](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@SophiaJeb](https://forum.robotframework.org/u/SophiaJeb)\
**Post date:** [4 June 2020 08:56 UTC](https://forum.robotframework.org/t/input-text-loses-the-value-in-robot-framework/317/1 "2020-06-04T08:56:37Z")

</div>

Hello all,  
I have an issue with robot framework and I need a help.  
I have an input text that makes an update in my database. I use prime faces in my application , so I use an p:inputtext with an ajax request for the update. When the user makes the update manually, its all ok (makes a submit and I can see the results that I want) , but when robot framework try to make an input, when the framework writes in the input text I see that the value deleted (writes and then deletes into the input) . I use debug in my code when the robot runs and I saw that with robot framework, the value is empty in my java code.

In the robot report , I can see that in every input makes three posts, is that right or could be a problem ??

JSF:

```python
<p:inputText id="#{'particle'.concat(particle.particleId)}"
                    value="#{particle.defaultValue}"
                    style="#{particle.mapValue['inputStyle']}"
                    styleClass="padding-input inputtext"
                    required="#{particle.required}"
                    readonly="#{particle.mapValue['readonly'] == '1' or dynamicMaskView.action == 'Consult'}"
                    validator="#{dynamicMaskView.validator}">
        <f:attribute name="type" value="#{particle.mapValue['typeOfObject']}" />
        <p:ajax event="change" listener="#{dynamicMaskView.onValueChange(particle)}" update="formMasque" process="@this" />
 </p:inputText>

```

Java:

```python
public void onValueChange(ValueChangeEvent event) {
    
    String methodName = "onValueChange";
    profileLogger.logEnter(methodName);

    try {
      Particle particle = (Particle)event.getComponent().getAttributes().get("particle");
      String oldValue = (String)event.getOldValue();
      String newValue = (String)event.getNewValue();
      String defaultValue = particle.getDefaultValue();
      System.out.println(defaultValue); 
      System.out.println(oldValue); 
      System.out.println(newValue); 
      particle.setDefaultValue(newValue);
      changedParticle = particle;
      analyzeMaskAfterInput(particle, "1");
    } catch (Exception e) {
      profileLogger.logException(methodName, LogLevel.ERROR, e);
    }

    profileLogger.logExit(methodName);
  }

```

Robot:

```python
Change fixed rate
    ${count} = get element count id=particle400128
    input text id=particle400128 1,5
    press keys id=particle400128 TAB
    set selenium implicit wait 30s

Check interest column in schedule table data
    click element xpath=/html/body/div[1]/div[3]/div/div/div/div/form/div[2]/button[17]
    wait until page contains Schedule
    sleep 3s
    table column should contain xpath=//*[@id="table_0_0_data"] 8 230.000,00 *

```
