On Execute operation, the bean getter is being called multiple times

Hi,
I have a JCR data control, i am trying to write a method that returns predicate, but this method is being called multiple times, when executing the advanced search operation.
  public List<Predicate> getPredicates() {
  ArrayList<Predicate> predicates = new ArrayList<Predicate>();
   // predicates.add(new Predicate("jcr:content/idc:metadata/idc:xScope",Operator.EQUALS,"GLOBAL"));
  DCBindingContainer bc=(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
  JUCtrlListBinding attrBinding=(JUCtrlListBinding)  bc.findCtrlBinding("StateId");
  Object stateId= attrBinding.getSelectedValue();
  if(stateId instanceof Row){
  predicates.add(new Predicate("jcr:content/idc:metadata/idc:xState"
  , Operator.EQUALS
  ,((Row)stateId).getAttribute("StateId").toString()));
  attrBinding=(JUCtrlListBinding)  bc.findCtrlBinding("DistrictId");
  Object districtId=attrBinding.getSelectedValue();
  if(districtId instanceof Row){
      predicates.add(new Predicate("jcr:content/idc:metadata/idc:xDistrict",Operator.EQUALS,((Row)districtId).getAttribute("DistrictId").toString()));
    attrBinding=(JUCtrlListBinding)  bc.findCtrlBinding("Scope");
    Object scopeId=attrBinding.getSelectedValue();
    if(scopeId instanceof Row){
        predicates.add(new Predicate("jcr:content/idc:metadata/idc:xScope",Operator.EQUALS,((Row)scopeId).getAttribute("ScopeType")));
    AttributeBinding tempAttrBinding=(AttributeBinding)bc.findCtrlBinding("CreatedDate");
    Object createdDate=tempAttrBinding.getInputValue();
    if(createdDate!=null){
        predicates.add(new Predicate("jcr:content/jcr:created",Operator.EQUALS,createdDate.toString()));
    if (predicates.size()>0){
      return predicates;
  return Collections.emptyList();
  } The problem is while it's being called multiple times different list's are being returned which is causing the method not to work . The bean is in pageFlowScope .

That is bc ADF life cicle... Is always executing 2 times...

Similar Messages

  • Finalize() method being called multiple times for same object?

    I got a dilly of a pickle here.
    Looks like according to the Tomcat output log file that the finalize method of class User is being called MANY more times than is being constructed.
    Here is the User class:
    package com.db.multi;
    import java.io.*;
    import com.db.ui.*;
    import java.util.*;
    * @author DBriscoe
    public class User implements Serializable {
        private String userName = null;
        private int score = 0;
        private SocketImage img = null;
        private boolean gflag = false;
        private Calendar timeStamp = Calendar.getInstance();
        private static int counter = 0;
        /** Creates a new instance of User */
        public User() { counter++;     
        public User(String userName) {
            this.userName = userName;
            counter++;
        public void setGflag(boolean gflag) {
            this.gflag = gflag;
        public boolean getGflag() {
            return gflag;
        public void setScore(int score) {
            this.score = score;
        public int getScore() {
            return score;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getUserName() {
            return userName;
        public void setImage(SocketImage img) {
            this.img = img;
        public SocketImage getImage() {
            return img;
        public void setTimeStamp(Calendar c) {
            this.timeStamp = c;
        public Calendar getTimeStamp() {
            return this.timeStamp;
        public boolean equals(Object obj) {
            try {
                if (obj instanceof User) {
                    User comp = (User)obj;
                    return comp.getUserName().equals(userName);
                } else {
                    return false;
            } catch (NullPointerException npe) {
                return false;
        public void finalize() {
            if (userName != null && !userName.startsWith("OUTOFDATE"))
                System.out.println("User " + userName + " destroyed. " + counter);
        }As you can see...
    Every time a User object is created, a static counter variable is incremented and then when an object is destroyed it appends the current value of that static member to the Tomcat log file (via System.out.println being executed on server side).
    Below is the log file from an example run in my webapp.
    Dustin
    User Queue Empty, Adding User: com.db.multi.User@1a5af9f
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    Joe
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin pulled from Queue, Game created: Joe
    User Already Placed: Dustin with Joe
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    INSIDE METHOD: false
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    User Dustin destroyed. 9
    User Joe destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    It really does seem to me like finalize is being called multiple times for the same object.
    That number should incremement for every instantiated User, and finalize can only be called once for each User object.
    I thought this was impossible?
    Any help is appreciated!

    Thanks...
    I am already thinking of ideas to limit the number of threads.
    Unfortunately there are two threads of execution in the servlet handler, one handles requests and the other parses the collection of User objects to check for out of date timestamps, and then eliminates them if they are out of date.
    The collection parsing thread is currently a javax.swing.Timer thread (Bad design I know...) so I believe that I can routinely check for timestamps in another way and fix that problem.
    Just found out too that Tomcat was throwing me a ConcurrentModificationException as well, which may help explain the slew of mysterious behavior from my servlet!
    The Timer thread has to go. I got to think of a better way to routinely weed out User objects from the collection.
    Or perhaps, maybe I can attempt to make it thread safe???
    Eg. make my User collection volatile?
    Any opinions on the best approach are well appreciated.

  • Function being called multiple times

    Hi,
    In my custom workflow, when the user approves a notification, it goes to the next function in the workflow. I have used insert command in that function to insert data into a custom table. I see that the data is inserted 2 times with different values.
    I was wondering how the insert statement is called 2 times when it was supposed to do only once?
    Any suggestions?
    Thanks in advance.

    2 Scenarios that can occur:
    1) Check if you have a post notification function which is also doing an insert into the custom table.
    2) Make sure that the procedure being called by your function activity have proper if conditions for funcmode. Pasting the extract from Workflow Developer Guide:
    Standard API for PL/SQL Procedures Called by Function Activities
    All PL/SQL stored procedures that are called by function or notification activities in an Oracle Workflow process should follow this standard API format so that the Workflow Engine can properly execute the activity.
    Important: The Workflow Engine traps errors produced by function activities by setting a savepoint before each function activity. If an activity produces an unhandled exception, the engine performs a rollback to the savepoint, and sets the activity to the ERROR status. For this reason, you should never commit within the PL/SQL procedure of a function activity. The Workflow Engine never issues a commit as it is the responsibility of the calling application to commit.
    For environments such as database triggers or distributed transactions that do not allow savepoints, the Workflow Engine automatically traps "Savepoint not allowed" errors and defers the execution of the activity to the background engine.
    Oracle Workflow components that continue workflow processing asynchronously, such as background engines and the Notification System, do issue commits when appropriate on behalf of the calling application.
    The example in this section is numbered with the notation (1) for easy referencing. The numbers themselves are not part of the procedure.
    (1) procedure <procedure name>
    (itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout out varchar2) is
    (2) <local declarations>
    (3) begin
    if ( funcmode = 'RUN' ) then
    <your RUN executable statements>
    resultout := 'COMPLETE:<result>';
    return;
    end if;
    (4) if ( funcmode = 'CANCEL' ) then
    <your CANCEL executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (5) if ( funcmode = 'SKIP' ) then
    <your SKIP executable statements>
    resultout := 'COMPLETE:<result>';
    return;
    end if;
    (6) if ( funcmode = 'RETRY' ) then
    <your RETRY executable statements>
    resultout := 'COMPLETE:<result>';
    return;
    end if;
    (7) if ( funcmode = 'VALIDATE' ) then
    <your VALIDATE executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (8) if ( funcmode = 'RESPOND' ) then
    <your RESPOND executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (9) if ( funcmode = 'FORWARD' ) then
    <your FORWARD executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (10) if ( funcmode = 'TRANSFER' ) then
    <your TRANSFER executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (11) if ( funcmode = 'QUESTION' ) then
    <your QUESTION executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (12) if ( funcmode = 'ANSWER' ) then
    <your ANSWER executable statements>
    resultout := 'COMPLETE';
    return;
    end if;
    (13) if ( funcmode = 'TIMEOUT' ) then
    <your TIMEOUT executable statements>
    if (<condition_ok_to_proceed>) then
    resultout := 'COMPLETE';
    else
    resultout := wf_engine.eng_timedout;
    end if;
    return;
    end if;
    (14) if ( funcmode = '<other funcmode>' ) then
    resultout := ' ';
    return;
    end if;
    (15) exception
    when others then
    WF_CORE.CONTEXT ('<package name>', '<procedure name>',
    <itemtype>, <itemkey>,
    to_char(<actid>), <funcmode>);
    raise;
    (16) end <procedure name>;

  • C# Constructo​r being called multiple times when I run my VI

    Hi all,
    We are runing LabVIEW 8.51 in the lab and have been using a bodged together C++ DLL which was crude but got the job done. Now looking at rewriting it in C# to make it easier to maintain and support long term.
    Ive got the C# DLL appearing in Labview and can happily call my test functions from the VI to prove both the DLL inputs and outputs are working fine (the simple input a number, add 1 and return result type of code).
    However, this DLL will end up managing a Serial port connection so the contstructor must only be called once as its responsible for making my .net serial port object. Ive added a text log message in the constructor and have found that just running the VI is causing the constructor to be called at least 5 times a second. There is no user input causing this....just running the VI.
    Both VI and C# source is attached.
    Any ideas folks? Im a complete newbie at LabVIEW having taken this on from another developer.
    The VI is in \Release and this is where the Log file is generated.
    Mat
    Attachments:
    Bus Pirate LabVIEW.zip ‏78 KB

    Ummmm.. yes, loop. That big thing gray rectangle that surrounds your code. Have you done any LabVIEW tutorials? That isn't even a LabVIEW question, but a basic programming question.
    To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.

  • H:commandLink and an Action being called multiple times.

    Hi everyone. I'm more or less relatively new in terms of JSF, though I've had to do a lot of "catching up" recently.
    I've been reading that with managed-beans, the getters/setters are not gaurenteed to be called once. http://www.jsf-faq.com/faqs/faces-misc.html#106
    My question is, are there any reasons why an action method would get called twice? An example of my jsp page.
    <h:commandLink action="#{exploreCaseAction.exploreCase}" >                    
         <h:outputText value="#{case.caseNumber}"/>
         <f:param name="caseId" value="#{case.caseId}"/>
    </h:commandLink>My faces-config
    <managed-bean>
       <managed-bean-name>exploreCaseAction</managed-bean-name>
       <managed-bean-class>com.unyric.cias.cm.web.action.ExploreCaseAction</managed-bean-class>
       managed-bean-scope>request</managed-bean-scope>
       <managed-property>
          <property-name>caseTreeHelper</property-name>
             <value>#{caseTreeHelper}</value>
       </managed-property>
       <managed-property>
          <property-name>caseId</property-name>
             <value>#{param.caseId}</value>
       </managed-property>     
       <managed-property>
          <property-name>sessionManager</property-name>
             <value>#{sessionManager}</value>
       </managed-property>               
    </managed-bean>When I click on one of the links and set a breakpoint, it comes up twice. Here's the crazy part. if I use <af:commandLink> then it only runs once.
    Personally I'd rather not use oracles components (I know it got donated and is/will be Trinidad).
    Anyone with any ideas?

    Would you be willing to try the RI (1.1_02) [1] to see if you have the same problem?
    [1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=0

  • Webservice being called multiple times throws strange error

    This is something that just started occurring and doesn't make much sense to me.
    Using JDK 1.7 and doing the following:
    FlashlineRegistryTr registry = new FlashlineRegistryTrServiceLocator().getFlashlineRegistryTr(lUrl);
    ((Stub)registry).setMaintainSession(true);
    I can call registry.authTokenCreate(USERNAME, CREDENTIAL);  ONCE and it works fine.  When I immediately call it again, same command, it fails with the exception below.
    The issue has to do with setting the Maintain Session to true.  If I remove that line it works fine, however I need that in there.
    Any thoughts on where to even begin to look? 
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: Tried to invoke method public com.flashline.cmee.openapi.databeans.AuthTokenBean com.flashline.cmee.openapi.service.FlashlineRegistry.authTokenCreate(java.lang.String,java.lang.String) throws com.flashline.framework.exception.OpenAPIException with arguments java.lang.String,java.lang.String.  The arguments do not match the signature.; nested exception is:
      java.lang.IllegalArgumentException: object is not an instance of declaring class
    faultActor:
    faultNode:
    faultDetail:
      {http://xml.apache.org/axis/}hostname:slc03rii.us.oracle.com
    Tried to invoke method public com.flashline.cmee.openapi.databeans.AuthTokenBean com.flashline.cmee.openapi.service.FlashlineRegistry.authTokenCreate(java.lang.String,java.lang.String) throws com.flashline.framework.exception.OpenAPIException with arguments java.lang.String,java.lang.String.  The arguments do not match the signature.; nested exception is:
      java.lang.IllegalArgumentException: object is not an instance of declaring class
      at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
      at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
      at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
      at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
      at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
      at org.apache.axis.client.Call.invoke(Call.java:2748)
      at org.apache.axis.client.Call.invoke(Call.java:2424)
      at org.apache.axis.client.Call.invoke(Call.java:2347)
      at org.apache.axis.client.Call.invoke(Call.java:1804)
      at com.flashline.registry.openapi.service.v300.FlashlineRegistryTrSoapBindingStub.authTokenCreate(FlashlineRegistryTrSoapBindingStub.java:7676)
      at com.flashline.registry.openapi.MikeTest.setUp(MikeTest.java:131)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:131)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    One possible solution is store the LOV values in some scope while retrieving it first time from the web service.
    Next time whenever LOV is called then return the LOV values from the scope instead of calling the web service.
    psedo code:
            if (ADFContext.getCurrent() != null &&
                ADFContext.getCurrent().getSessionScope().containsKey("LOV_LIST")) {
                LOVList =
                        (List<SelectItem>)ADFContext.getCurrent().getSessionScope().get("LOV_LIST");
            } else {
                LOVList = this.populateVendorListFromWS();
                ADFContext.getCurrent().getSessionScope().put("LOV_LIST",
                                                              LOVList );
            }Hope it helps.

  • LoginModule login() method being called multiple times

    I have a J2EE application that is deployed in Oracle 10g 10.1.2.0.2 that implements a cutom login module. The custom class (MyClassLoginModule) implements the LoginModule interface. Everything works great if the username and password entered by an end user are correct. However, it appears that if a user enters an incorrect password after failing authentication the container executes the MyClassLoginModule.login() method again. In some cases, it calls it serveral time each failing authentication.
    This wouldn't be a problem however, the username and password are also the end users workstation accounts. This behaviour is capable of locking their accounts in one failed attempt.
    Any help or insight would be greatly appreciated.

    We're using FORM based authentication. The problem is not with multiple requests, but appears to be an issue with the container. See the following for more info:
    LoginModule login method called twice on unsuccessful logins

  • Simple Event being Displayed Multiple Times

    I have a simple event from the past that is being displayed multiple times. There are no other UIDs that are the same in iCal and no other event has the same SUMMARY name.
    This particular event shows up 9 times. I can also reproduce the result from Automator by searching the specific calendar and looking for events in the date range.
    The event is as follows:
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//Apple Inc.//iCal 3.0//EN
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    SEQUENCE:5
    TRANSP:OPAQUE
    UID:EC6F5DBC-9BCC-4007-87F2-4A9C796C8551
    DTSTART:20070330T000000
    DTSTAMP:20071206T205550Z
    SUMMARY:Babysit Paul
    CREATED:20080919T173959Z
    DTEND:20070401T120000
    END:VEVENT
    END:VCALENDAR
    I am not very familiar with the format but it looks pretty straight forward.
    The calendar is being synched via Mobile Me and is shared by another two computers. Not sure why this should be relevant since the entry on the computer and on Mobile Me both show this duplication of the event.
    The reason I was looking at all was because of the hangs in iCal since I set the sync to automatic.
    Any ideas welcome,
    Richard

    Post Author: foghat
    CA Forum: Data Connectivity and SQL
    If all the records you are displaying in your report
    truly are duplicated, you could try check off 'select distinct records'
    from the File --> Report Options menu.  While this may solve the problem for you, it would be worthwhile to determine if you are actually joining your tables correctly.
    likely the records aren't an exact duplicate and the problem is with your join criteria.  To verify this you can:  start by removing table b from the database expert altogether.  does
    that solve your problem of multiple rows?  If it does, you are not joining to table b correctlyIf you still have
    multiple rows, loan_id on its own must not make a record unique.  Is
    loan_id duplicated in either of your tables?  Just because loan_id is a
    primary key does not necessarily mean it is unique - often a record
    will have 2 or more primary keys and only when all primary keys are
    used is the record unique.   If you display all of the columns
    from both tables, you will hopefully see some (maybe just one) columns
    where the value is different between your seemingly duplicate data.
    You may need to join on this value as well.as for the type of join you are using (inner, not enforced) you should be fine. Good luck

  • Backing  Bean constructor getting called multiple times

    I have a List of records in the Table with a link Add.
    When i click Add i show a popup dialog which is attached to the dialogListener.
    On clicking OK on the dialog i want to add a record in the List in the backing Bean, but the Bean constructor is getting called multiple times.
    and the list to which the table is attached is also getting called multiple times.
    is there a way in which the method gets called only once?
    Message was edited by:
    user607056

    Hi!
    af:table have property ContentDelivery. When <default> (lazy), the table "frame" iz rendered in first page cycle, and content (rows in table) are fetched lazy i.e. in second cycle. Thus, your backing bean is constructed twice.
    If you set ContentDelivery to immediate, the table including data rows is generated in single page cycle thus your backing bean is constructed only once.
    Hope this helps,
    PaKo

  • Why a getter method of a managed bean WILL be called multiple times

    Why a getter method of a managed bean WILL be called multiple times during the JSF lifecycle?Why this designed?

    This is by design indeed. Each step in the JSF lifecycle can call a getter to get the required information.

  • I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. Help

    I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. It just wont give me my notifications. Help please.

    Go to Settings > Privacy > Location Services.
    Turn off SnapChat.
    Go to Settings > Notification Center
    Turn off SnapChat.
    Restart the device.
    Go to Settings > Privacy > Location Services.
    Turn on SnapChat.
    Go to Settings > Notification Center
    Turn on SnapChat.
    Test the issue.

  • Php include file getting called multiple times

    I have created a form in file career.php. To carry out the validation user_registration.php is called at the beginning of the file.
    user_registration.php in turn calls library.php. Issue is that library.php is getting called multiple times.
    I have attached phperror.log which confirms the same.
    career.php
    <?php
    session_start();
    require_once('phpScript/user_registration.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    user_registration.php
    <?php // This file is used for validating user form data. It calls process_upload.php to validate file uploaded by user
    $errors = array();  
    $messages = array();
    $testing = TRUE;
    error_log("Enter- user_registration.php. Testing mode $testing", 0);
    try {
              error_log("user_registration.php: Entered try catch block",0);
    require_once('library.php');
              error_log("Successfully called library.php",0);
              $public_key = '6LeDsNUSAAAAAIoaYuNhGm2zx_qgBECiybUWUkt6';
              $private_key = '6LeDsNUSAAAAACuvmJrec-_5seLdmhqUMngt8AiU';
              $recaptcha = new Zend_Service_ReCaptcha($public_key, $private_key);
              if(isset($_POST['submit'])) {          // Only execute if form is submitted by user
                error_log("user_registration.php. Submit button pressed by user", 0);
                require_once('Zend/Mail.php');
                $mail = new Zend_Mail('UTF-8');
                if (isset($_POST['name'])) {
                        $val = new Zend_Validate_Regex('/^\p{L}+[-\'\p{L} ]+$/u');
                        if (!$val->isValid($_POST['name'])) {
                          $errors['name'] = "Please enter your name, no numbers permitted";
    error_log("Exit- user_registration.php.", 0);
    library.php
    <?php
    error_log("Enter- library.php. Testing mode $testing", 0);
    if ($testing)  // If true then go to testing mode
              $library = '/Applications/MAMP/htdocs/mgtools-india/ZendFramework/library';
              set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
    error_log("Exit- library.php. Testing mode $testing", 0);
    phperror.log
    Marker - 12-Oct-2012 10:27:26 AM
    [12-Oct-2012 04:57:33 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] user_registration.php: Entered try catch block
    [12-Oct-2012 04:57:33 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] Successfully called library.php
    [12-Oct-2012 04:57:36 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Entered try catch block
    [12-Oct-2012 04:57:36 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Successfully called library.php
    [12-Oct-2012 04:58:38 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Entered try catch block
    [12-Oct-2012 04:58:38 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Successfully called library.php
    [12-Oct-2012 04:58:38 UTC] user_registration.php. Submit button pressed by user
    [12-Oct-2012 04:58:39 UTC] user_registration.php, Processing enquiry form
    [12-Oct-2012 04:58:39 UTC] Enter- process_upload.php. Testing mode 1
    [12-Oct-2012 04:59:01 UTC] Exit- user_registration.php.
    I am not able to understand why user_registration.php and library.php are executing again and again.
    I ran this test on local testing server MAMP.
    The results are the same on remote server also.
    Please guide.

    I'm not sure what's happening there. The important question is whether the code is executed successfully.
    Since you're using the Zend Framework, it might be better to ask in a dedicated ZF forum.

  • Getter is called multiple times

    Hi All,
    I my JSF page i am using one foreach which will read elements from an ArrayList. ArrayList is present in one PagesFlowSope-Bean.
    I am facing problem that, the getter for ArrayList is called multiple times.I want to restrict that,is there any way for doing this.
    Thanks in advance,

    Your getter gets called every time the component/page gets rendered/refreshed. If you feel that it refreshes too many times, check the partial triggers on that component or its parent. Just a thought, to avoid any logic getting called in your getter multiple times, if possible, put a empty or null check on your attribute and initialize it only if it is null/empty. In that way even if it gets called multiple times your logic to populate your ArrayList doesn't fire everytime.
    Good luck !

  • ADF11g: methodAction being invoked multiple times without control...

    Hi,
    I have a page that displays different data took from a single data control.
    This datacontrol is invoked by a methodAction, and the resulting bean contains both plain attributes and List of objects.
    I created my page with JDev 11.1.1.3.0, using drag and drop.
    What happens (seeing the log files) is that the page calls multiple times the methodAction instead of "recognizing" it only needs to call it 1 time to have all the data bound to the page,
    and of course the page does not work. I don't see the data even if the dataControls retrieve it.
    Here is my code:
    Page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
      <c:set var="viewcontrollerBundle"
             value="#{adfBundle['sop.view.ViewControllerBundle']}"/>
      <af:pageTemplate viewId="/WEB-INF/templates/dettagliOggettoCoinvoltoTemplate.jspx"
                       id="pt1">
        <f:attribute name="dataOraUltimoAggiornamento"
                     value="#{pageFlowScope.stazione.currentDateTime}"/>
        <f:attribute name="drillDownTab1Title" value="Treni In Arrivo"/>
        <f:facet name="overviewOggettoCoinvoltoArea">
          <af:panelGroupLayout id="pgl3" valign="middle" halign="left"
                               layout="horizontal">
            <!-- rendered="#{bindings._stazione.inputValue != null}"-->
            <af:panelGroupLayout id="pgl5" layout="vertical">
              <af:panelBox text="Info Stazione" id="pb1">
                <af:panelGroupLayout id="pgl8" layout="vertical">
                  <af:panelLabelAndMessage label="Stazione:" id="plam1">
                    <af:outputFormatted value="#{bindings._stazione.inputValue}"
                                        id="of1"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Situazione:" id="plam2">
                    <af:outputFormatted value="#{bindings.situazione.inputValue}"
                                        id="of2"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
              <af:panelBox text="Info TVM" id="pb3">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl10" layout="vertical">
                  <af:panelLabelAndMessage label="Numero TVM:" id="plam10">
                    <af:outputFormatted value="#{bindings.numTVM.inputValue}"
                                        id="of10"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Allarmi TVM:" id="plam11">
                    <af:outputFormatted value="#{bindings.numAllarmiTVM.inputValue}"
                                        id="of11"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl6" layout="vertical">
              <af:panelBox text="Info RFI" id="pb2">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl9" layout="vertical">
                  <af:panelLabelAndMessage label="Tel RFI:" id="plam6">
                    <af:outputFormatted value="#{bindings.telRFI.inputValue}"
                                        id="of6"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Cell RFI:" id="plam3">
                    <af:outputFormatted value="#{bindings.cellRFI.inputValue}"
                                        id="of3"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Fax RFI:" id="plam5">
                    <af:outputFormatted value="#{bindings.faxRFI.inputValue}"
                                        id="of5"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Email RFI:" id="plam4">
                    <af:outputFormatted value="#{bindings.emailRFI.inputValue}"
                                        id="of4"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Tel PRM:" id="plam7">
                    <af:outputFormatted value="#{bindings.telPRM.inputValue}"
                                        id="of7"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Fax PRM:" id="plam8">
                    <af:outputFormatted value="#{bindings.faxPRM.inputValue}"
                                        id="of8"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="Email PRM:" id="plam9">
                    <af:outputFormatted value="#{bindings.emailPRM.inputValue}"
                                        id="of9"/>
                  </af:panelLabelAndMessage>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl4" layout="vertical">
              <af:panelBox text="News" id="pb8">
                <f:facet name="toolbar"/>
                <af:panelGroupLayout id="pgl16">
                  <af:panelFormLayout id="pfl1">
                    <af:iterator id="i1" value="#{bindings.result1.collectionModel}"
                                 var="current">
                      <af:panelLabelAndMessage label="Titolo" id="plam15">
                        <af:outputFormatted value="#{current.title}" id="of15"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Autore" id="plam14">
                        <af:outputFormatted value="#{current.author}" id="of12"/>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Data Pubblicazione"
                                               id="plam12">
                        <af:outputFormatted value="#{current.pubDate}" id="of14">
                          <af:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
                        </af:outputFormatted>
                      </af:panelLabelAndMessage>
                      <af:panelLabelAndMessage label="Contenuto" id="plam13">
                        <af:outputText escape="false"
                                       value="#{current.description.value}"
                                       id="ot13"/>
                      </af:panelLabelAndMessage>
                    </af:iterator>
                  </af:panelFormLayout>
                </af:panelGroupLayout>
              </af:panelBox>
            </af:panelGroupLayout>
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="drillDownView1Area">
          <af:panelGroupLayout id="pgl12">
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="drillDownView2Area">
          <af:panelGroupLayout id="pgl13">
          </af:panelGroupLayout>
        </f:facet>
        <f:attribute name="drillDownTab2Title" value="Treni In partenza"/>
        <f:attribute name="drillDownTab3Title" value="Personale"/>
        <f:attribute name="drillDownTab4Rendered" value="true"/>
        <f:attribute name="drillDownTab4Title" value="Allarmi"/>
        <f:attribute name="overviewOggettoCoinvoltoAreaTitle"
                     value="Agenda Servizio Stazione"/>
        <f:facet name="drillDownView4Area">
      /af:table>
          -->
        </f:facet>
        <f:facet name="drillDownView3Area">
        </f:facet>
      </af:pageTemplate>
    </jsp:root>PageDef:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.56.60"
                    id="visualizzazioneDettagliStazionePageDef" Package="fragments">
      <parameters/>
    <executables>
      <variableIterator id="variables"/>
      <methodIterator Binds="generaAgendaServizioStazione.result"
                      DataControl="StazioniServicePojo" RangeSize="25"
                      BeanClass="sop.model.beans.agendaServizioStazione.BeanAgendaServizioStazione"
                      id="generaAgendaServizioStazioneIterator"/>
      <accessorIterator MasterBinding="generaAgendaServizioStazioneIterator"
                        Binds="datiStazione" RangeSize="25"
                        DataControl="StazioniServicePojo"
                        BeanClass="sop.model.beans.agendaServizioStazione.BeanStazione"
                        id="datiStazioneIterator"/>
      <accessorIterator MasterBinding="datiStazioneIterator" Binds="infoTVM"
                        RangeSize="25" DataControl="StazioniServicePojo"
                        BeanClass="sop.model.stazioniService.InfoTVM"
                        id="infoTVMIterator"/>
      <accessorIterator MasterBinding="datiStazioneIterator" Binds="infoRFI"
                        RangeSize="10" DataControl="StazioniServicePojo"
                        BeanClass="sop.model.stazioniService.InfoRFI"
                        id="infoRFIIterator"/>
      <methodIterator id="readRSSStazioneIter" Binds="readRSSStazione.result"
                      DataControl="RssServicePojo" RangeSize="25"
                      BeanClass="com.sun.syndication.feed.rss.Item"/>
    </executables>
    <bindings>
      <methodAction id="generaAgendaServizioStazione" RequiresUpdateModel="true"
                    Action="invokeMethod" MethodName="generaAgendaServizioStazione"
                    IsViewObjectMethod="false" DataControl="StazioniServicePojo"
                    InstanceName="StazioniServicePojo.dataProvider"
                    ReturnName="StazioniServicePojo.methodResults.generaAgendaServizioStazione_StazioniServicePojo_dataProvider_generaAgendaServizioStazione_result">
       <NamedData NDName="locationCode"
                  NDValue="#{pageFlowScope.stazione.stazione.locationCode}"
                  NDType="java.lang.String"/>
       <NamedData NDName="dataRichiesta"
                  NDValue="#{pageFlowScope.stazione.dataRichiesta}"
                  NDType="java.util.Calendar"/>
      </methodAction>
      <attributeValues IterBinding="datiStazioneIterator" id="situazione">
       <AttrNames>
        <Item Value="situazione"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="datiStazioneIterator" id="_stazione">
       <AttrNames>
        <Item Value="_stazione"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoTVMIterator" id="numTVM">
       <AttrNames>
        <Item Value="numTVM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoTVMIterator" id="numAllarmiTVM">
       <AttrNames>
        <Item Value="numAllarmiTVM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="telRFI">
       <AttrNames>
        <Item Value="telRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="faxRFI">
       <AttrNames>
        <Item Value="faxRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="cellRFI">
       <AttrNames>
        <Item Value="cellRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="emailRFI">
       <AttrNames>
        <Item Value="emailRFI"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="telPRM">
       <AttrNames>
        <Item Value="telPRM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="faxPRM">
       <AttrNames>
        <Item Value="faxPRM"/>
       </AttrNames>
      </attributeValues>
      <attributeValues IterBinding="infoRFIIterator" id="emailPRM">
       <AttrNames>
        <Item Value="emailPRM"/>
       </AttrNames>
      </attributeValues>
      <methodAction id="readRSSStazione" InstanceName="RssServicePojo.dataProvider"
                    DataControl="RssServicePojo" RequiresUpdateModel="true"
                    Action="invokeMethod" MethodName="readRSSStazione"
                    IsViewObjectMethod="false"
                    ReturnName="RssServicePojo.methodResults.readRSSStazione_RssServicePojo_dataProvider_readRSSStazione_result">
       <NamedData NDName="stazioneLocationCode"
                  NDValue="#{pageFlowScope.stazione.stazione.locationCode}"
                  NDType="java.lang.String"/>
      </methodAction>
      <tree IterBinding="readRSSStazioneIter" id="result1">
       <nodeDefinition DefName="com.sun.syndication.feed.rss.Item" Name="result10">
        <AttrNames>
         <Item Value="title"/>
         <Item Value="author"/>
         <Item Value="uri"/>
         <Item Value="pubDate"/>
        </AttrNames>
        <Accessors>
         <Item Value="description"/>
        </Accessors>
       </nodeDefinition>
       <nodeDefinition DefName="com.sun.syndication.feed.rss.Description"
                       Name="result11">
        <AttrNames>
         <Item Value="type"/>
         <Item Value="value"/>
        </AttrNames>
       </nodeDefinition>
      </tree>
    </bindings>
    </pageDefinition>The datacontrols are standard pojo data controls.
    Can someone point me out to the solution ? Why methodAction is called multiple times ?

    Does someone has any clues ?!

  • Validation Event getting called multiple times

    I am saving an eform after entering a wrong percentage in it.On opening the same eform it gives the validate message "Percentage not valid" pop up .This popup should come only once but its coming around 25-26 times.I checked and find that the validate event is getting called multiple times for the same field.Can someone tell why this is happening and how to resolve this

    Hi rupali Sri,
    Our forum here is for questions related to the LiveCycle Collaboration Service product.
    You might want to post your question to the Livecycle Forms forum:
    http://forums.adobe.com/community/livecycle/livecycle_es/forms_es
    If that's not the correct forum, start from here:
    http://forums.adobe.com/index.jspa?view=overview
    Hope this helps.
    Good luck,
    Julien
    LCCS Quality Engineering

Maybe you are looking for