3 Replies Latest reply: Jul 9, 2013 12:18 AM by ArunBabu RSS

    ADF Mobile - AMX page inputText to attribute binding not working for text values

    1013328

      Hi There,

       

      As the title states, I'm having problems in assigning values from amx inputText fields to DC binding fields. It always works if the inputType is number but doesn't work most of the time if I change the inputType to text. I have checked my getters/setters for the attributes and they seem correct.

       

      Whats strange is that sometimes the values do get assigned (when if inputType is text). Sometimes some values will get assigned but other won't. Has anyone experienced this issue? Any suggestion about what I should do?

       

       

      Thanks,

      Waqas

        • 1. Re: ADF Mobile - AMX page inputText to attribute binding not working for text values
          Frank Nimphius-Oracle

          Hi,

           

          too many "sometimes" for my taste. Can you provide the code you use to update the field value to the data binding ? I don't understand for example what setter/getter have to do with writing data to the binding layer - anyway you may want to explain this too.

           

          Frank

          • 2. Re: ADF Mobile - AMX page inputText to attribute binding not working for text values
            1013328

            Sorry I am very new to ADF/ADF Mobile. Following is my AMX page value assignment code:

             

                <amx:outputText value="Sky:" id="ot3"/>

                <amx:inputText id="it1" value="#{bindings.PMJ_SKY_CONDITIONS.inputValue}" inputType="text"/>

                <amx:outputText value="Low Temperature:" id="ot4"/>

                <amx:inputText id="it2" value="#{bindings.PMJ_LOW_TEMP.inputValue}" inputType="number"/>

                <amx:outputText value="High Temperature:" id="ot5"/>

                <amx:inputText id="it3" value="#{bindings.PMJ_HIGH_TEMP.inputValue}" inputType="number"/>

                <amx:outputText value="Precipitation:" id="ot6"/>

                <amx:inputText id="it4" value="#{bindings.PMJ_PRECIPITATION.inputValue}" inputType="number"/>

                <amx:outputText value="Wind:" id="ot7"/>

                <amx:inputText id="it5" value="#{bindings.PMJ_WIND_CONDITIONS.inputValue}" inputType="text"/>

             

            And the Java piece of code is:

             

                public void setPMJ_LOW_TEMP(String PMJ_LOW_TEMP) {

                    this.PMJ_LOW_TEMP = PMJ_LOW_TEMP;

                }

             

             

                public String getPMJ_LOW_TEMP() {

                    return PMJ_LOW_TEMP;

                }

             

             

                public void setPMJ_HIGH_TEMP(String PMJ_HIGH_TEMP) {

                    this.PMJ_HIGH_TEMP = PMJ_HIGH_TEMP;

                }

             

             

                public String getPMJ_HIGH_TEMP() {

                    return PMJ_HIGH_TEMP;

                }

             

             

                public void setPMJ_PRECIPITATION(String PMJ_PRECIPITATION) {

                    this.PMJ_PRECIPITATION = PMJ_PRECIPITATION;

                }

             

             

                public String getPMJ_PRECIPITATION() {

                    return PMJ_PRECIPITATION;

                }

             

             

                public void setPMJ_SKY_CONDITIONS(String PMJ_SKY_CONDITIONS) {

                    this.PMJ_SKY_CONDITIONS = PMJ_SKY_CONDITIONS;

                }

             

             

                public String getPMJ_SKY_CONDITIONS() {

                    return PMJ_SKY_CONDITIONS;

                }

             

             

                public void setPMJ_WIND_CONDITIONS(String PMJ_WIND_CONDITIONS) {

                    this.PMJ_WIND_CONDITIONS = PMJ_WIND_CONDITIONS;

                }

             

             

                public String getPMJ_WIND_CONDITIONS() {

                    return PMJ_WIND_CONDITIONS;

                }

             

            I have an object of above class in a datacontrol. I have the attributes of the object as bindings in the amx page. fields with inputType = "number" are assigned but inputType="text" are not assigned.

            • 3. Re: ADF Mobile - AMX page inputText to attribute binding not working for text values
              ArunBabu

              I had implemented a similar use case and this code doesnt seem to have any issue. So may be putting a sample application can give more insight.