ADF: InputText (AutoCompletion, no valueChangeEvent)

Hi all, i'm new and i'm french so please forgive my english.
So, here's my probleme. I developped an AutoCompletion component with a InputText (of course). This inputText have a ValueChangeListener. When I type some text, everything's normal, the listener is well called. But when i select one of the possibility in the autoCompletion list, after the text in the InputText is changed, nothing happen (till a re-rendering).
The InputText has autoSubmit and Immediate attributes set to true...
If someone has an idea...
Thx :)
Message was edited by:
goodvampire

In an ADF Faces input text component there is an API .resetValue() whihc will force the input to re-read from the value binding that is associated with it. I suspect you will have to do the same thing in your component.

Similar Messages

  • OpenScript - do not record ADF adf.inputText actions

    Hello,
    I'm wondering why openscript engine do not records ADF adf.inputText actions  ? with a buttons, radio buttons etc. recording works correctly but not input fields?
    I constructed manualy adf.inputText  and it seems works , but why when I'm recording not works? Can anybody help me ?

    Hi,
    i'm having the same issue.
    I'm using Weblogic 10.3.4, Jdeveloper / ADF 11.1.1.4 and OpenScript 9.2.1.0.
    In previous versions of ADF and OpenScript i had to change some "Correlators" to make things work.
    When will OpenScript work 100% with ADF?
    Anybody else? Any tips?

  • Openscript: Recording adf.inputText values

    Hi,
    When recording ADF scripts with Openscript I have noticed that adf.inputText values are not recorded. It seems that everything else is recorded successfully, except for these values I enter with my keyboard (e.g. a login name). Do I have some sort of incorrect setting? My openscript version is 12.3.0.1 and I'm recording in IE 10.0.9200.
    This question has been asked before, but on that topic nobody ever responded (see thread 2556359).
    thanks,
    Sjoerd

    Spent some more time trying to fix the issue. Our best guess is that the combination of Openscript, IE9 and Windows 7 simply isn't a very good match, possibly due to very restrictive administrator rights for this IE version (wild guess though...)
    With some help of my colleagues we have taken the following steps:
    1. Added configuration to our deployed ear web.xml file, as described in the guide:
    <context-param>
    <param-name>oracle.adf.view.rich.automation.ENABLED</param-name>
    <param-value>true</param-value>
    </context-param>
    2. Upgrade IE back to version 10
    3. Reinstall the browserHelpers for Openscript
    These steps now seems to get the recording working. We previously did add this configuration to our development web.xml file, but not in the xml that was deployed (hence the confusion on our end).

  • ADF inputText component not displaying the password value in desired format

    Hi All,
    I have an ADF <af:table component with a selectOneChoice as its partialTrigger. The problem is that when I navigate to the concerned page for the 1st time, the password textfield of the table displays the password in the desired format (dots), but when I change the value of the selectOneChoice component to another value and then reset it back to the original value with which the password should be displayed in dots format (as for the 1st time), the textfield is displayed as blank.
    Help appreciated.
    Message was edited by:
    user562826
    Message was edited by:
    user562826

    Thanks Frank,
    My system is a Windows XP Pro SP2 version 2002, I don't use JDeveloper, I am using Eclipse 3.2 and tomcat 5.5
    This is a step-by-step to reproduce the problem:
    I move from a .jspx screen by clicking a commandLink component which takes me to an edit screen with the following table component:
    <af:table id="methodProperties"
    emptyText="#{res['info.noitems']}"                                             value="#{mbAdminMethod.tableModel}"                                        binding="#{mbAdminMethod.adminList.table}"
    partialTriggers="methodType"
    var="row"
    banding="row"
    bandingInterval="1"
    width="100%">
    <af:column                                                  headerText="#{res['admin.methodPropertyName']}" width="40%" noWrap="true">
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column                                                  headerText="#{res['admin.methodPropertyValue']}" width="60%" noWrap="true">
    <af:inputText id="propertyValue"
    value="#{row.value}"
    secret="#{row.password}"
    columns="40"/>
    </af:column>
    </af:table>
    The partialTrigger "methodType" is a selectOneChoice component.
    Once you navigate to this edit screen for the first time, the password is displayed in the right format (dots). While you are on this page and you select another value from the selectOneChoice, the page is refreshed. The problem is that, when you reset the value of the selectOneChoice component to the original value (which displayed the password in the right way), this time the password textField is displayed as blank.
    Thanks.

  • Oracle ADF inputText refreshing problem in subform

    Hi guys.
    There are inputText, outputText and inputDate components in the form's of in a pop-up window(twitter bootstrap).
    This components is in a subform.
    The current values of the outputText and inputDate components (in managed bean) are reflected value in partial update. However the current values of the inputText components (in managed bean) aren't reflected value in partial update.
    Components appear to be empty.
    My code:
    <af:panelFormLayout partialTriggers="::i1:DetailButton1 ::i2:DetailButton2 ::i3:DetailButton3">
    <af:panelLabelAndMessage rendered="#{null != sessionScope.userID}" label="#{viewcontrollerBundle[&apos;lang.baslik&apos;]}">
    <af:inputText value="#{detailBean.title}" columns="65" contentStyle="font-size:10pt" simple="true"
    shortDesc="#{viewcontrollerBundle[&apos;lang.baslik&apos;]}" id="it2"/>
    </af:panelLabelAndMessage>
    <af:message for="it2"/>
    <af:inputDate value="#{detailBean.createDate}" readOnly="true" id="id1" contentStyle="font-size:10pt;"
    label="#{viewcontrollerBundle[&apos;lang.olusturulmaTarihi&apos;]}">
    <af:convertDateTime pattern="dd/MM/yyyy"/>
    </af:inputDate>
    <af:inputDate value="#{detailBean.editDate}" contentStyle="font-size:10pt" readOnly="true" id="id2"
    label="#{viewcontrollerBundle[&apos;lang.degistirilmeTarihi&apos;]}">
    <af:convertDateTime pattern="dd/MM/yyyy"/>
    </af:inputDate>
    <af:inputText label="#{viewcontrollerBundle[&apos;lang.goruntulenme&apos;]}" contentStyle="font-size:10pt"
    value="#{detailBean.totalView}" readOnly="true" id="it4" />
    <af:panelLabelAndMessage rendered="#{null == sessionScope.userID}" label="#{viewcontrollerBundle[&apos;lang.icerik&apos;]}">
    <af:outputText value="#{detailBean.content}" inlineStyle="font-size:10pt"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage rendered="#{null != sessionScope.userID}" label="#{viewcontrollerBundle[&apos;lang.icerik&apos;]}">
    <af:inputText value="#{detailBean.content}" shortDesc="#{viewcontrollerBundle[&apos;lang.icerik&apos;]}"
    columns="67" rows="10" id="ot9" contentStyle="font-size:10pt" simple="true" />
    </af:panelLabelAndMessage>
    <af:message for="ot9"/>
    </af:panelFormLayout>
    My jDev version 11.1.2.3.0
    What is the reason for this problem?
    Edited by: hakdogan on Nov 22, 2012 2:59 PM

    I can see partialTriggers only on the parent component i.e panelFormLayout .. can you try puttin them on individual inputTexts which won't refresh and check ?

  • ADF: InputText height

    Hi
    I am using JDev11 and i unable to increase the height of the inputText component
    my code is
    <af:inputText value="#{bindings.IssueBind.inputValue}"
    shortDesc="Enter your issue"
    columns="50" id="issueBindId" clientComponent="true"
    rows="1" accessKey="e" inlineStyle="height:30px" />
    if any one knows the solution, help me
    Thanks in advance
    GiriBabu

    yes i given that... this is my code
    <af:table emptyText="No items were found" id="questionList"
    width="100%" value="#{pageFlowScope.QuestionList}"
    columnStretching="last"
    partialTriggers="::qstBtn2 ::qstBtn3 ::cb1"
    visible="#{virtusa_Bean.hdnQstEnd.value=='0' || virtusa_Bean.hdnQstEnd.value=='1'}"
    contentDelivery="immediate" autoHeightRows="10"
    var="row">
    and tryid with this also
    columnStretching="column:qstColumn1" here qstColumn1 is the last column

  • ADF-InputText, ValueChangeListener not called w/o change of focus

    Hi,
    im using BarCode Reader which reads the value into the ADFInputText field.
    Now, i need its value in the backing bean just wen it reads a value. but actually, the page waits for causes change of focus in order to call the valueChangeListener.
    Is there any property which sets the form is auto submit mode in such a way that whenever a value is read into a field the value change listener is called.
    the other way is to instantiate a thread with a timer and call it after every certain while and read the value explicitly.
    pointers appreciated.
    Regards,
    Rabs

    Hi,
    there is no other way then stepping put of it. Duncan Mills wrote an article about using Ajax in JSF, which is the only alternative I can imagine
    http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    Frank

  • ADF 11g: inputText - mark the hole text when move into text field

    Hallo,
    is it possible to change the behavior of a inputText component in a way that the hole text is marked when changing the focus to this component? In the standard case the cursor is on the left-aligned position of the inputText. The goal would be to achieve a quick-edit mode with an overwriting of the old value.
    Thanks for any advice
    regards
    Markus

    Hi Markus,
    It seems passing parameter to javascript method is not supported in adf or I may not know the way,
    However, I made below changes to the code provided, it selects the text on clicking on the inputtext but doesn't keep the selection, not sure whether this is a bug:
             <af:inputText ... clientComponent="true" id="it1">
                          <af:clientListener method="selectText" type="focus"/>
             </af:inputText>
                function selectText(){ 
                    var it = document.getElementById("<parent-id>:it1::content");
                    it.select();
                }You can use standard jsf h:inputText component for time being, I will reply once I found solution to use it with adf inputText component:
         <h:inputText ... onfocus="selectText(this)"/>
         function selectText(it){
              it.select();
         }Sireesha

  • Skin prob in adf 11g release 1

    Hi,
    I am using Oracle Jdev 11g release 1.
    prob:
    <af:resource type="css">
    .AFDefaultFontFamily:alias {
    font-weight:bold;
    </af:resource>
    <af:inputText id="testid"
    contentStyle="width:150px" value="#{ADFStandardsLeftMenu.input3}"
    visible="false"
    styleClass="AFDefaultFontFamily"/>
    But this input text filed which is disabled mode, bold is not reflecting.
    i tried with styleClass="AFFieldTextMarker" also.
    thanks in adv.
    regards,
    sandeep

    Hi,
    im using oracleADF 11.1.1.3.0 version.
    Actually my requirement is for adf inputtext which is disabled=true i should apply font color to that text.
    Becoz text is not visible for MAC users.
    my code,
    <af:inputText id="cscid"
    disabled="true" value="#{ADFStandardsLeftMenu.input4}"
    />
    thanks in advance.
    regards,
    sandeep

  • IllegalStateException in View (using JBOSS and ADF)

    Hi:
    I have a project using JBOSS and ADF. I have a form with the following code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page contentType="text/html"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh" %>
    <f:view>
    <afh:html id="html">
    <afh:head title="FisaSystem">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252" />
    <link rel="stylesheet" type="text/css" media="screen" title="screen" href="<%=request.getContextPath()%>/common/skins/fisaClassic/screen.css" />
    </afh:head>
    <afh:body id="body">
    <h:form id="form">
    <af:panelPage>
    <af:showOneTab id="showOneTab" position="above">
    <af:showDetailItem text="" id="showDetailItem">
    <af:panelForm id="panelForm">
    <af:inputText id="clasificationDescription" binding="#{clasificationManager.clasificationDescription}" required="true" />
    </af:panelForm>
    </af:showDetailItem>
    </af:showOneTab>
    <f:verbatim>
    <div class="actions">
    </f:verbatim>
    <af:panelButtonBar>
    <af:commandButton id="saveButton" text="#{internationalizationManager.saveButton}" action="#{clasificationManager.saveClasification}" />
    <af:commandButton id="cancelButton" text="#{internationalizationManager.cancelButton}" action="#{clasificationManager.cancelClasification}" immediate="true" />
    </af:panelButtonBar>
    <f:verbatim>
    </div>
    </f:verbatim>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    the backing bean for that form i like this:
    package com.fisa.efisa.document.manage.bean;
    import java.util.Collection;
    import oracle.adf.view.faces.component.UIXInput;
    import oracle.adf.view.faces.component.UIXTable;
    import oracle.adf.view.faces.context.AdfFacesContext;
    import oracle.adf.view.faces.event.LaunchEvent;
    import oracle.adf.view.faces.event.ReturnEvent;
    import com.fisa.efisa.document.dto.EFPClasification;
    import com.fisa.efisa.document.manage.common.CommonBackingBean;
    import com.fisa.efisa.process.document.persistence.TdmmClasification;
    import com.fisa.efisa.process.document.service.ServiceClasification;
    import com.fisa.efisa.process.document.service.delegate.ServiceClasificationDelegate;
    import com.fisa.efisa.process.engine.service.ServiceProcessEngine;
    import com.fisa.efisa.process.engine.service.delegate.ServiceProcessEngineDelegate;
    import com.fisa.util.Action;
    import com.fisa.util.message.FTransactionMessage;
    import com.fisa.util.message.Field;
    import com.fisa.util.message.FisaMessage;
    public class ClasificationBackingBean extends CommonBackingBean {
    private final String CLASIFICATION_IDENTIFIER = "clasification";
    ServiceClasification serviceClasification;
    ServiceProcessEngine serviceProcessEngine;
    UIXTable clasificationTable;
    UIXInput clasificationDescription = new UIXInput();
    public ClasificationBackingBean() {
    serviceClasification = new ServiceClasificationDelegate();
    serviceProcessEngine = new ServiceProcessEngineDelegate();
    public Collection getClasificationList() {
    return serviceClasification.findAllClasification(getFisaUserData());
    public String addClasification() {
    return ADD_OUTCOME;
    public String editClasification() {
    TdmmClasification row = (TdmmClasification) this.clasificationTable.getSelectedRowData();
    if (row != null)
    storeObjectInRequest(this.CLASIFICATION_IDENTIFIER, row.getClasificationId());
    else
    return null;
    return EDIT_OUTCOME;
    public String saveClasification() {
    return LIST_OUTCOME;
    public String deleteClasification() {
    if (this.clasificationTable.getSelectedRowData() != null)
    return CONFIRM_DELETE_KEY;
    return null;
    public void handleConfirmDeleteReturn(ReturnEvent event) {
    if (event.getReturnValue() != null) {
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.clasificationTable);
    public void handleConfirmDeleteLaunch(LaunchEvent event) {
    Object row = this.clasificationTable.getSelectedRowData();
    if (row != null)
    event.getDialogParameters().put(DELETE_OBJECT_KEY, row);
    public String cancelClasification() {
    return LIST_OUTCOME;
    public UIXTable getClasificationTable() {
    return clasificationTable;
    public void setClasificationTable(UIXTable clasificationTable) {
    this.clasificationTable = clasificationTable;
    public UIXInput getClasificationDescription() {
    if (this.getClasificationFromRequest() != null)
    clasificationDescription.setValue(this.getClasificationFromRequest().getDescription());
    return clasificationDescription;
    public void setClasificationDescription(UIXInput clasificationDescription) {
    this.clasificationDescription = clasificationDescription;
    private EFPClasification getClasificationFromRequest() {
    Long rowId = null;
    if (retrieveObjectFromRequest(this.CLASIFICATION_IDENTIFIER) != null) {
    rowId = (Long) retrieveObjectFromRequest(this.CLASIFICATION_IDENTIFIER);
    FisaMessage fisaMessage = new FisaMessage();
    fisaMessage.setHeader(getMessageHeader());
    FTransactionMessage transactionMessage = new FTransactionMessage();
    transactionMessage.setFtmApplicationId(getApplicationId());
    transactionMessage.setFtmSourceSystemId(getSystemId());
    transactionMessage.setFtmSubSystemId(getSubsystemId());
    transactionMessage.setFtmBusinessTemplateId(getClasificationBtId());
    EFPClasification efpClasification = new EFPClasification(transactionMessage);
    Field field = new Field();
    field.setValue(rowId.toString());
    transactionMessage.addField(efpClasification.CLASIFICATION_ID, field);
    transactionMessage.setFtmActionId(Action.QUERY_LIVE);
    transactionMessage.setBtDataKey(rowId.toString());
    fisaMessage.getFTransactionMessages().put(getClasificationBtId(), transactionMessage);
    fisaMessage = this.serviceProcessEngine.executeMessage(fisaMessage);
    transactionMessage = fisaMessage.getFTransactionMessages().get(getClasificationBtId());
    efpClasification = new EFPClasification(transactionMessage);
    return efpClasification;
    return null;
    And this is my faces-config
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    <!--param-value>server</param-value-->
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.USE_APPLICATION_VIEW_CACHE
    </param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.ENABLE_DMS_METRICS
    </param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.CHECK_FILE_MODIFICATION
    </param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.CHANGE_PERSISTENCE
    </param-name>
    <param-value>session</param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>
    oracle.adf.view.faces.webapp.AdfFacesFilter
    </filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>faces</servlet-name>
    </filter-mapping>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <!-- resource loader servlet -->
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>
    oracle.adf.view.faces.webapp.ResourceServlet
    </servlet-class>
    </servlet>
    <!-- Faces Servlet Mappings -->
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <!-- Welcome Files -->
    <welcome-file-list>
    <welcome-file>index.jspx</welcome-file>
    </welcome-file-list>
    <!-- ADF Faces Tag Library -->
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces</taglib-uri>
    <taglib-location>/WEB-INF/af.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces/html</taglib-uri>
    <taglib-location>/WEB-INF/afh.tld</taglib-location>
    </taglib>
    <!-- Faces Core Tag Library -->
    <taglib>
    <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
    <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
    </taglib>
    <!-- Faces Html Basic Tag Library -->
    <taglib>
    <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
    <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
    </taglib>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    </web-app>
    As you see there's nothing really weird about this at all; if i use this page as displayed, i click on any of the buttons and everything works fine. But, if i add any other property to the clasificationDescription adf:inputText (a label for example), then it crashes with this error:
    java.lang.IllegalStateException: Invalid index
    oracle.adf.view.faces.bean.util.StateUtils.restoreKey(StateUtils.java:57)
    oracle.adf.view.faces.bean.util.StateUtils.restoreState(StateUtils.java:129)
    oracle.adf.view.faces.bean.util.AbstractPropertyMap.restoreState(AbstractPropertyMap.java:94)
    oracle.adf.view.faces.bean.FacesBeanImpl.restoreState(FacesBeanImpl.java:247)
    oracle.adf.view.faces.component.UIXComponentBase.restoreState(UIXComponentBase.java:761)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:749)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1019)
    oracle.adfinternal.view.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:330)
    com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:228)
    oracle.adfinternal.view.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:232)
    com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    What can be happening ???

    This forum is only for questions directly related to the Sun Web Server. I think you should post your questions in the jboss forums. Alternative, you could use one of the sun products and then we would be able to help you ;)

  • Openscript - adf   unable to identify object value

    Hi Everyone,
    Please find the screenshot in the below shared link, where the adf inputtext object value is not identified while doing object test.
    https://docs.google.com/file/d/0B0qqXKChgAG1VkRmR1Y0eEYyQlE/edit?usp=sharing
    Kindly suggest on this whether it is a bug .
    Regards,
    Mohan.

    Can we also get a screenshot of all the read-only attributes of that object?

  • How to get selected value from SelectOneChoice

    Hi,
    I'm facing a problem to get selected value from SelectOneChoice. I have valueChangeListener event on a (SelectOneChoice)item. After user makes a choice I want to store selected value in a bean property to pass it to a method.
    For example List item shows dname from dept table after user makes a choice I want to get deptno and populate into bean which I use to pass into my method.
    If I use valueChangeEvent.getNewValue() I always get negative value instead I want deptno selected. Sample code pasted below.
    public void setDeptno(ValueChangeEvent valueChangeEvent) {
    BindingContainer b = getBindings();
    OperationBinding oB = b.getOperationBinding("setDeptno");
    //Checking instance of because same method is called from another text inputText item.
    if (valueChangeEvent.getSource() instanceof CoreSelectOneChoice){
    CoreSelectOneChoice cN = (CoreSelectOneChoice)valueChangeEvent.getSource();
    if (columnName.getId().toString().equals("deptDname")){
    JSFUtils.setManagedBeanValue("dept.deptDeptno",valueChangeEvent.getNewValue());
    }

    if your selectOneChoice has value equal to #{bindings.deptno} bound to the iterator Dept1Iterator,
    then the backing code will look more like
                    public void setDeptno(ValueChangeEvent valueChangeEvent) {
                        BindingContainer b = getBindings();
                        OperationBinding oB = b.getOperationBinding("setDeptno");
                        //Checking instance of because same method is called from another text inputText item.
                        if (valueChangeEvent.getSource() instanceof CoreSelectOneChoice){
                            CoreSelectOneChoice cN = (CoreSelectOneChoice)valueChangeEvent.getSource();
                        if (columnName.getId().toString().equals("deptDname")){
                            FacesContext ctx = FacesContext.getCurrentInstance();
                            Application app = ctx.getApplication();
                            ValueBinding bind = app.createValueBinding("#{bindings.Dept1Iterator.currentRow}");
                            Row row = (Row)bind.getValue(ctx);
                            JSFUtils.setManagedBeanValue("dept.deptDeptno", row.getAttribute("deptno"));
                    } I haven't tested it, so it could perfectly not work at all

  • Defect while invoking a Webservice using WSDL

    Hi all,
    I am trying to invoke a web service by creating a web service data source using the wsdl of the web service.
    I dragged the web service data control on to my jspx page as ADF Parameter form. The web service, once gets
    invoked should insert a row in the data base using the pay load that we send with the request.
    The application is running with out any errors but when I submit the data it is getting inserted 2 times into the database
    where the web service should insert only once. I tried sending the payload to the webservice manually then it inserted
    only once. I am unable to find the problem.. Kindly help me on this.
    Thanks & Regards,
    Phani.

    Hi Frank,
    I did that but still the problem persists. Actually what I did was like this.
    I have created a webservice proxy and a datasource using the wsdl of the proxy which has a metod "*CreateReference*" in it.
    inside this create reference there is a "*parameters*" folder in which I have all the payload parameters and
    a "*return*" method which has a table with statuscode and statusmessage attrubutes that gives the result
    which would be a "Success" or a "Fault".
    I have created a jspx page with three layout and on First layout I have dragged all the fields that are there
    in the parameters folder as ADF Inputtext with Lable and I have dragged the CreateReference method from the data source as a ADF Button.
    I have dragged the table that is there in the result on to the second half of the jspx page.
    when I run this and click on the button after entering the info into the lables it should create a row in the database.
    in my case it is creating row twice where it should create only once.
    In my page definition I have default(deferred) as the refresh for all the iterators.???
    Can you kindly help me on this...
    Thanks,
    Phani.
    Edited by: 887737 on Jan 2, 2012 2:00 AM

  • Openscript - unable to get value in adfinputtext

    Hi,
    I am not able to get value from adfinputtext field using the following command
    String value = adf.inputText("/web:window[@index='1' or @title='http://wlintqatest2.wfs.com/TripPlanningFunctional/faces/com/wfs/tripPlanning/functional/ui/Welcome.jspx?_adf.ctrlstate=q8nte391j_4']/web:document[@index='0']/web:ADFInputText[@label='Local Currency' and @absoluteLocator='pt1:r1:t6[0]:it20']").getAttribute("value").trim();
      info("value is ..."+value);
    Kindly suggest a solution for this.
    Regards,
    Mohan.

    This below test case works absolutely fine:
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <f:loadBundle basename="resources.application" var="bundle"/>
    <f:view>
    <html>
       <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <script type="text/javascript">
           function editValue(){
             var spanObj = document.getElementById('testForm:dCode1');
             if(spanObj.innerHTML == ''){
               spanObj.innerHTML = 'Delivery Code';
             }else{
               spanObj.innerHTML = '';
             return false;
         </script>
       </head>
       <body>
         <h:form id="testForm">
           <h:outputText id="dCode1" styleClass="font_size" value="Delivery Code"/>     
           <h:commandButton value="Hide" onclick="return editValue();"/>     
           <h:commandButton value="Show" onclick="return editValue();"/>
         </h:form>     
       </body>
    </html>
    </f:view>Still if things doesn't work for you, I am afraid your issue has got nothing to do with JSF.
    ~SirG

  • Af:autoSuggestBehavior

    on Jdeveloper 11g Release 2.
    I got an af:autoSuggestBehavior working in this way :
    Accountid is the field with the autoSuggest
    type: 1 show
    1000
    1010
    1020
    1030
    I want this
    Type : 1 show
    1000 Petty Cash
    1010 Cash on Hand
    1020 Regular Checking
    1030 Saving Accounts
    is this posible? and when we select from the dropdown list, take only the first field. it should be GREAT.
    thank you

    This link will helpful for you
    please see this link specially this is oracle document
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/62-autosuggestbehavior-177811.pdf
    http://www.gebs.ro/blog/oracle/oracle-adf-autosuggest-behavior/
    http://www.gebs.ro/blog/oracle/oracle-adf-form-autocomplete-using-autosuggest-behavior-search-view-add-edit/

Maybe you are looking for

  • Photoshop CC downloading error

    although enough space on HDD (more than 400 GB) it continueously shows error below. please advise what has to be done to install Photoshop CC Regards Katharina Mitterbauer Exit Code: 30 Please see specific errors below for troubleshooting. For exampl

  • List: Budget/Actual/Commitments

    Gurus, Good day! Seeking your assistance in finding the table for the <b>Budget, Actual, Commitment, and Alloted</b>. The list is displayed in t-code: <b>S_ALR_87013019</b> by entering the Internal Order. In which tables are they stored?

  • IMovie import stopped working on my account

    I am using iMovie V 8.0.5 on a Mac Mini with Snow Leopard. After a few days of use, the "Import Movie" function started hanging (beach ball) when the form is displayed. Also, no files show in the folder area. This only happens in my account (Admin),

  • USB mic?

    Hi. I am in the market for a headset. Thing is, I have some excellent headphones, so I really only need a mic that will clip onto my headphones or my shirt - basically anywhere except on my imac or my desk (picks up typing sounds - no good). Is there

  • HTML DB Developers' or users' guide?

    Hi, is there developers' or users' guide for HTMLD DB? The tutorials are pretty on OTN, but it presents the product in a somewhat ad hoc way. Thanks in advance. Tamás Szécsy