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

Similar Messages

  • 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.

  • 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?

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Migrating Struts/ADF 10.1.2 = 10.1.3, model validation not called

    As said in thread
    reportErrors(PageLifecycleContext ctx) not called
    Old Struts 10.1.2 can remain as is and will work in JDev 10.1.3.
    For some unexplained reason in my new account registration action, the entity validation method doesn't get called after migration?
    This jsp and action are similar to the toyStore new account creation,
    10.1.3 trace extract:
    as you see prepareToCreateNewAccount
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.prepareModel webAccountAM call to prepareToCreateNewAccount
    06/07/08 20:20:38 com.photoswing.model.site.AccountInSiteImpl.create BEGIN
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.prepareModel END
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel BEGIN
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel actionForm: oracle.adf.controller.v2.struts.forms.BindingContainerActionForm
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel curLogin:
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates BEGIN skipCycle: false
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates mystr: null
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates call to super.validateModelUpdates
    06/07/08 20:20:38 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates after call to super.validateModelUpdates, this.hasErrors(ctx): false
    JDev 10.1.2 extract:
    06/07/08 20:41:45 com.photoswing.model.site.AccountInSiteImpl.create BEGIN
    06/07/08 20:41:45 com.photoswing.webview.actions.AccountRegisterAction.prepareModel END
    06/07/08 20:41:45 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel actionForm: oracle.adf.controller.struts.forms.BindingContainerActionForm
    06/07/08 20:41:45 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel curLogin:
    06/07/08 20:41:45 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates BEGIN skipCycle: false
    06/07/08 20:41:45 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates mystr: null
    06/07/08 20:41:45 com.photoswing.webview.actions.AccountRegisterAction.validateModelUpdates call to super.validateModelUpdates
    06/07/08 20:41:45 com.photoswing.model.site.AccountInSiteImpl.validateEntity BEGIN
    etc ...
    Thank you for giving me a clue.
    Fred

    I traced my program, the action form has all the pending values entered in the jsp page but the View Row isn't updated?
    extract of pending values:
    06/07/09 12:05:47 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel actionForm, key: Email, value: [email protected]
    06/07/09 12:05:47 com.photoswing.webview.actions.AccountRegisterAction.processUpdateModel actionForm, key: FirstNameLatin, value: aaaxxx
    For your info:
    Service update 4 was installed.
    The navigation event to the review page is not a commit action.
    My trace shows that:
    -my prepareToCreateNewAccount is called when the jsp is first accessed (no event handling)
    - after activating next button:
    - no new call to prepareToCreateNewAccount => ok
    - processUpdateModel is called
    - the ActionForm gets filled => ok
    - validateModelUpdates is called
    but VO row (based on one Entity) and Entity set and validation methods are not called?
    My page def has only one iterator?
    Question when and where does the framework copy ActionForm values to underlying VO?
    I noticed that there were new ActionForm classes:
    oracle.adf.controller.v2.struts.forms.BindingContainerActionForm
    Do they work with
    <set-property property="v1ActionClass"
    value="com.photoswing.webview.actions.AccountRegisterAction"/>
    I need a clue!
    I'm lost!
    Regards
    Fred

  • HR_IN_LOANS_VALIDATE badi is not called while infotype 45 is changed

    Hi all,
    I have activated badi:HR_IN_LOANS_VALIDATE implementation: ZHR_VALIDATE and its is working fine for creating Infotype 45 (INS) but when i change(MOD) it is not called. ie it does not enter the badi implementation code.
    please see if you can help me.
    thanks
    Ujjaval

    hi IA,
    I have tried different combination in SWEHR3
    E     Business event     1001     Relationships     A025     Is attended by     INS          0     PDOTYPE_E     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     BOKF     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     BOKP     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     BOKW     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     CNOW     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     INS     CPRB     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     BOKF     0     PDRELA_025     MODIFIED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     BOKP     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     BOKW     0     PDRELA_025     CREATED
    E     Business event     1001     Relationships     A025     Is attended by     UPD     CNOW     0     PDRELA_025     CREATED
    i did same thing in SWEHR2....still no luck...
    please guide me if have any alternative options

  • Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Of course! Here ya go
    For the record, I did create a new project with only two slides to try and duplicate the issue. I had the same problem. I unchecked the Mouse Click Sound check box, republished and the slide auto advanced. I'm wondering if a default sound file was somehow moved or deleted? I discussed uninstalling and reinstalling C7 onto my laptop, but that's a frustrating solution haha

  • ADF VO Row Fetch Range Issue: Action is not called after 10th row

    Hi People!
    I am working with an Application here in which one page has a table based on a view object. This table has range navigation, and the VO configuration for Tuning is to fetch rows in batches of 1000, all in one fetch. Now, i have a single selection configured in this table, and also a button on the <tableActions> facet which calls a method on the backing bean.
    The problem is, for the first 10 rows of this table, the method is called (seen through the debugger), but when we move the selection to the 11th row or further, the page only refreshes but does not call the method.
    This is not a problem with the data, because we tried two other approaches:
    1) removed the range navigation and shown all the records in the same page: the error persists for the 11th row ahead
    2) changed the VO query to return only the 11th row from the previous test using its ID: the action is called, now that the row is the first on the rowset.
    Have you experienced similar behavior? Why the Action is not executed when the selected row comes after the tenth row?
    Any help is greatly appreciated!
    Regards
    Thiago Souza

    Hi Frank, thanks for the reply.
    I have assembled a step-by-step based on the HR schema. For this example, i have created an EmployeesVO based on the EMPLOYEES table, and an App Module to provide a data control. From then on:
    1) Create a JSF JSP to list the Employees VO
    1.1) Bind the JSF Page to a Backing bean
    1.2) Create an af:page element on the page
    2) Drag the EmployeesVO from the Data Control Palette to the af:page
    2.1) Read-Only Table, Selection Enabled
    2.2) Do not include table navigation.
    3) Double-Click the automatically created submit button on the TableSelectOne section
    3.1) Bind it to a method on the Backing Bean
    3.2) Add some code to it, in my case i tested:
         FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Teste"));
    4) Run the example and try two approaches:
    4.1) select one of the first ten rows and click on the button: The action is fired.
    4.2) select the eleventh row and click on the button: The action is not fired.
    4.3) select one of the first ten rows again and click on the button: The action is fired.
    This example didn't even include range navigation, but if you want to test you will see the result is the same.
    Please let me know if you want further info.
    Thanks a lot!
    Thiago Souza

  • ADF - ReturnListener not called after many clicks in dialog window

    Hi all,
    I´m using ADF dialog framework to implement a re-usable pop-up search window. Everything works fine except when the user performs serveral (more than 8) searches in the pop-up window.
    When this happens the returnListener is not called and the selection is not made.
    I´m using ADF with MyFaces.
    JSP # 1:
    <af:commandLink id="btn_buscar" styleClass="lin1" partialSubmit="true" useWindow="true" windowHeight="400" windowWidth="400"
    action="#{bean1.buscarAction}" returnListener="#{bean1.cargarAL}" immediate="true" text="#{bundle.abm_general_buscar}">
    </af:commandLink>
    Bean1:
    public String buscarAction() {
    return "dialog:busqueda";
    public void cargarAL(ReturnEvent evento) {
    long idSeleccion = (Long) evento.getReturnValue();
    try{
    if (idSeleccion!=0){
    getFormulario().setId(idSeleccion);
    getFormulario().cargarRegistro(FacesUtils.getUsuarioBean().getUsuario(),true);
    }else {
    inicializar();
    catch (IExcepcion e) {
    FacesUtils.addErrorMessage(e,true);
    inicializar();
    refrescarFormulario();
    JSP # 2 (Dialog):
    <af:commandLink actionListener="#{bean2.elegirAL}" text="#{bundle.abm_general_elegir}"/>
    Bean2:
    public void elegirAL(ActionEvent e){
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.returnFromDialog(getValorElegido(),null);
    afContext.getProcessScope().clear();
    I read lots of tutorials about ADF dialog framework with no luck.
    Any help will be apreciated,
    Thanks in advance.
    Gabriel

    Please see post [SOLVED] Re: ADFFaces: returnFromDialog fails to invoke return listener aft for resolution.

  • I feel that Verizon has conducted and treated a long time customer just to make a few dollars. I added a hotspot feature on my Iphone and its called a plan change. I wanted 1 gig and ended up with 4 gigs. If 1 gig was not available I was not informed. Plu

    I feel that Verizon has conducted and treated a long time customer in a predatory manner just to make a few dollars. I added a hotspot feature on my Iphone and its called a plan change. I wanted 1 gig and ended up with 4 gigs. If 1 gig was not available I was not informed. Plus the charge for the convertion to a new plan. I called today and I cancelled the plan so I 'm being charged another fee for the plan change. I have really enjoyed working with Verizon but I will have to start looking for another provider.

    veldigar wrote:
    ... I was clear that I was not interested in the Edge plan if I could not get the upgrade pricing.  Several times I made this clear.
    Then the employees, and you, don't understand EDGE.  It's not a service plan, it's a PAYMENT option to pay the full price of the phone in installments, and have no "contract" or obligation  to stay with Verizon once the phone is paid for, which you can do at any time.  So if you were trying to get discounted pricing, and the reps were talking EDGE, you were talking at cross purposes....
    In order to get the upgrade pricing, you need to sign a contract for 2 years of service, and agree to an ETF if you leave Verizon before the two years.

  • Does the facetime icon on my dock bounce when someone is calling me?  If not, how can I change notifications in my preferences?

    does the facetime icon on my dock bounce when someone is calling me?  If not, how can I change notifications in my preferences?

    - Apps are locked to the account that purchased them. Thus it appears that yor sone purchased the app.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • ADF Faces: dialog framework calls  twice prepareModel and prepareRender

    Hi ,
    does anybody know why ADF Faces dialog framework calls twice prepareModel and prepareRender lifecycle methods . That's a really problem for me because i'm calling db procedures through backing beans methods which are attached on components properties.
    I cannot allow myself to cal the procedures more than once.
    Can somebody help me?
    Krasi

    Okay, although the servlet doesn't require to be run inside the JSF context, I added "/faces" to the URL simply because this would allow me to query the "postback" flag. In other words, I changed the invocation URL from "/jrrun" to "/faces/jrrun".
    In the servlet's "service()" method I put:
    logger.debug(">>>>>> isPostBack? " + AdfFacesContext.getCurrentInstance().isPostback());
    I also attached a JSF PhaseListener to the whole thing.
    Then I opened the parent page, I clicked on the button and the dialog appeared. The console output follows:
    07/01/19 21:37:05 ------------- start of phase RESTORE_VIEW 1
    07/01/19 21:37:05 ------------- end of phase RESTORE_VIEW 1
    07/01/19 21:37:05 ------------- start of phase RENDER_RESPONSE 6
    2007-01-19 21:37:05,156 - DEBUG - >>>>>> RunJasperReport: beginning
    2007-01-19 21:37:05,156 - DEBUG - >>>>>> isPostBack? false
    2007-01-19 21:37:05,156 - DEBUG - >>>>>> RunJasperReport: repPath=/reports/newRegByBusType_Report.jasper
    2007-01-19 21:37:07,047 - DEBUG - >>>>>> RunJasperReport: report output (PDF) was generated successfully. Its total size is 59596 bytes.
    2007-01-19 21:37:07,047 - DEBUG - >>>>>> RunJasperReport: done
    07/01/19 21:37:07 ------------- end of phase RENDER_RESPONSE 6
    07/01/19 21:37:09 ------------- start of phase RESTORE_VIEW 1
    07/01/19 21:37:09 ------------- end of phase RESTORE_VIEW 1
    07/01/19 21:37:09 ------------- start of phase RENDER_RESPONSE 6
    2007-01-19 21:37:09,625 - DEBUG - >>>>>> RunJasperReport: beginning
    2007-01-19 21:37:09,625 - DEBUG - >>>>>> isPostBack? false
    2007-01-19 21:37:09,625 - DEBUG - >>>>>> RunJasperReport: repPath=/reports/newRegByBusType_Report.jasper
    2007-01-19 21:37:09,672 - DEBUG - >>>>>> RunJasperReport: report output (PDF) was generated successfully. Its total size is 59596 bytes.
    2007-01-19 21:37:09,688 - DEBUG - >>>>>> RunJasperReport: done
    07/01/19 21:37:09 ------------- end of phase RENDER_RESPONSE 6
    By the way, partialSubmit="true" has the same effect as partialSubmit="false".
    I'm not sure I understand you correctly. Or perhaps you don't understand me correctly.
    I haven't got a problem with the parent page. I have a problem with the dialog page. It's executed twice. The RENDER_RESPONSE phase (as well as the RESTORE_VIEW phase) is executed twice.
    I want it to be executed only once. I don't want the servlet to be executed twice.
    Let me point out again that in the Embedded OC4J (inside JDeveloper) everything is okay. The servlet is executed only once. However, the same thing on OAS 10.1.3.1 runs twice.

  • ADF and SiteMinder not working

    Hi,
    I'm working on a project where the CA SiteMinder Authenticator and IdentityAsserter have been configured in a clustered environment alongside the Default Authenticator and IdentityAsserter. An ADF app using a combination basic J2EE security (isUserInGroup/Role type calls to show/hide tabs depending on user's role) and ADF Security roles and policies (used to lock down task flows to specific roles/groups/users).
    The J2EE security call works fine, proving that SiteMinder has populated the security Subject with the correct Principals and authorised correctly.
    However, ADF Security does not work at all, even though I can see the groups that originated in the SiteMinder Authenticator in the Enterprise Manager security config screens.
    I have mapped the ADF Application Roles to J2EE groups successfully, but when I access the application having successfully logged in as a user who is a member of that group, the taskflows don't show up...
    When I run this in a non-clustered WLS environment with only DefaultAuthenticator/IdentityAsserter, all is well, TaskFlows show/hide as expected.
    This falls neatly between Oracle and CA in terms of problem solving, can't get much help from either at the moment.
    Any thoughts or possible lines of enquiry are welcome.
    Edited by: 893022 on 27-Oct-2011 04:23

    Hi Frank,
    I'm just trying that now - reducing the variables seems like a good plan.
    A couple of things we're unsure of:
    1. Does ADF support Siteminder R12? My feeling is that the two are probably not related as ADF accesses the security realm via OPSS and the SiteMinder app server agent is an implementation of the WLS SSPIs, which would never be directly accessed from ADF (as far as I can tell).
    2. I've seen an example on redstack where an ADF application is deployed into an environment that is configured to use an Acitive Directory provider. There is a step includes that involves editing jps-config.xml on the server to include username.attr and user.login.attr properties to the idstore.ldap service instance. Is there similar any FMW-level config I'd need to do for SiteMinder?
    3. When JDeveloper builds the ADF app, it changes the class uses Groups and Users from:
    oracle.seurity.jps.internal.core.principals.JpsXmlEnterpriseroleImpl
    to:
    weblogic.security.principal.WLSUserImpl
    We did some debugging on on our app and saw that the SiteMinder 'Groups' that are fed into WLS by the SSPI are actually of a different class althoghether:
    com.netegrity.siteminder.weblogic.sspi.auth.SmWLSGroupImpl
    I'm building my ADF app with Maven so have used XMLTask to make this change to jazn-data.xml on deploy, but still no joy. ADF just doesn't appear to be able to 'see' the users and groups that have come from SiteMinder providers.

  • Action method not called in Backing Bean

    I am using <x:inputFileUpload> tag inside my jsp page. I am trying to call action method when clicking button, but action method not called.
    My jsp page:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
    <html>
         <head>
              <title>File upload Test</title>
         </head>
         <body>
              <f:view>
                   <h:form id="form1" enctype="multipart/form-data">
                        <h:messages id="asdghsda"/>          
                        <h:outputText value="This is file upload page functionlaity POC" />                                   
                        <h:inputText value="#{fileUploadBean.textField}" />
                        <x:inputFileUpload id="myFileId" value="#{fileUploadBean.myFile}" storage="file" required="true"/>                    
                        <h:commandButton action="#{fileUploadBean.storeFile}" value="Enter here" />                    
                        <h:commandLink value="Clicl Here!!" action="#{fileUploadBean.storeFile}"></h:commandLink>
                   </h:form>               
              </f:view>
         </body>     
    </html>
    My backing bean:
    package com.beans;
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import org.apache.log4j.Logger;
    import org.apache.myfaces.custom.fileupload.UploadedFile;
    public class FileUploadBean {     
         private static Logger logger = Logger.getLogger(FileUploadBean.class.getName());
         private String textField;
         private UploadedFile myFile;
         public UploadedFile getMyFile() {
              logger.info("inside get method");
         return myFile;
         public void setMyFile(UploadedFile myFile) {
              logger.info("inside set method");
              this.myFile = myFile;
         public void storeFile(){          
              logger.info("Inside the storeFile method");
              logger.info("The text field value: " + getTextField());
              try {
                   InputStream in = new BufferedInputStream(myFile.getInputStream());
                   logger.info("The string is: " + in.read());
                   System.out.println(in.read());
                   File f = new File("D:\\share\\sample.txt");               
                   OutputStream out = new FileOutputStream(f);
                   out.write(in.read());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              logger.info("Exit from the storeFile method");
         public String getTextField() {
              return textField;
         public void setTextField(String textField) {
              this.textField = textField;
    My web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>MyJSFProject</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>FacesServlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Can someone help me on this? I need urgently.

    One straight and simple answer which i can give you method associated to action attributes always returns a java.lang.String Object.
    REF :
    action:
    =====
    If specified as a string: Directly specifies an outcome used by the navigation handler to determine the JSF page to load next as a result of activating the button or link If specified as a method binding: The method has this signature: String methodName(); the string represents the outcome
    source : http://horstmann.com/corejsf/jsf-tags.html#Table4_15
    therefore
    change
    public void storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    }to
    public String storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    return "success";
    }else where you can make use of actionlistener property in the following senario.
    but the method signature has to be void storeFile(ActionEvent ae)
    and could be use like
    <h:commandButton actionlistener="#{fileUploadBean.storeFile}" action="success" value="SUBMIT" /> Hope that might help :)
    REGARDS,
    RaHuL

  • ValuechangeListener gets called on navigation

    Dear All,
    I have created my own custom menu model when implementing my train component.
    Please see below code.
    <af:train var="node"
                value="#{menuModel}"
                id="tr1">
      <f:facet name="nodeStamp">
         <af:commandNavigationItem text="#{node.label}"
              action="#{node.action}"
              immediate="#{node.immediate}"
              disabled="#{node.disabled}"
              visited="#{node.visited}"
              id="commandNavigationItem"/>
      </f:facet>
    </af:train>Now, on page 1, I have a booleanCheckBox with autosubmit=true and I added
    a value change listener into it.
    <af:selectBooleanCheckbox text="" label="Page 1 Checkbox"
         id="sbc4"
         autoSubmit="true"
            valueChangeListener="#{pageFlowScope.myBean.onChange}">
    </af:selectBooleanCheckbox>My only problem is this, when I click the Train Command Navigation Item when I want to transition
    to page 2, I notice that my valuechangelistener bean method is called. This is true also, even if I dont select
    the booleancheckbox.
    I am not sure If I miss some JSF concept here but can somebody help me understand if this is normal?
    My thought is that the valuechangelistener gets called only when I do something on that component.
    Thanks
    Thanks

    Hi,
    After some thinking and checking, I notice that I didn't set my component a value.
    <af:selectBooleanCheckbox text="" label="Page 1 Checkbox"
                                  id="sbc4"
                                  autoSubmit="true"
                                  valueChangeListener="#{pageFlowScope.myBean.onChange}"
                                  value="#{pageFlowScope.myBean.checkData}">
    </af:selectBooleanCheckbox>Reading this http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html , I realized that maybe it gets called
    because the value might be different so that why my listener is called. Not sure though.
    Thanks again.

Maybe you are looking for