Forum Stats

  • 3,851,982 Users
  • 2,264,055 Discussions
  • 7,904,924 Comments

Discussions

ValueChnage Listener for af:inputText not getting called in Mobile view

3563520
3563520 Member Posts: 3
edited Jul 24, 2018 6:15AM in WebCenter Portal

Hi all,

We are developing an application for desktop and mobile users. We are using ADF 11g for this.

In one of the page we are using af:inputText and add value change listener on it.

when we run application this component is working properly on desktop view but when we open application in mobile the valueChangeListener is not getting called.

Kindly suggest any solution on this.

Following is code

<af:panelGroupLayout id="pgl7" layout="vertical">

               <af:panelGroupLayout id="pgl3" layout="vertical">

                  <af:outputText value="#{UIBundle.MOBILE_NUMBER_CODE}"

                                 styleClass="staticInputLable" id="ot4"/>

                  <af:inputText id="it1"

                                placeholder="#{UIBundle.CD_BENEFICIARY_MOBILE_NUMBER}"

                                autoSubmit="true" clientComponent="true"

                                maximumLength="10" simple="true"

                                autoComplete="off" label="#{null}"

                                styleClass="inputstyle inputStaticLable col12 inputMobAmtBC"

                                value="#{pageFlowScope.CashWithdrawalBean.mobileNumber}"

                                usage="#{'tel'}"

                                valueChangeListener="#{pageFlowScope.CashWithdrawalBean.onMobileNumberChange}">

                     <af:validateRegExp pattern="^[5-9]{1}[0-9]{9}$"

                                        messageDetailNoMatch="#{UIBundle.INVALID_MOBILE_NUMBER}"/>

                     <af:clientListener method="allowOnlyNumericInput"

                                        type="keyPress"/>

                     <af:clientListener method="enforcePreventUserInput"

                                        type="valueChange"/>

                  </af:inputText>

                  <af:message id="m2" for="::it1" styleClass="terror"/>

               </af:panelGroupLayout>

            </af:panelGroupLayout>

Thanks

Tagged:

Answers

This discussion has been closed.