InitMethod() Before Phase method in View calling many times:

Hi Everyone,
i have dragged one table as read only table with single row selection checked.
One Go button is there in the page.
The code in the go button is taking the curretn selecting the current row and printing the values.
The code in the initMethod() is executing the VO.
The issue is when the page loads the initMethod() (Before phase in View) is calling multiple times even after the page loads.
Continuously its calling that method.
How to make it to call it only once when the page loads?
Any suggestions will be really useful.
Thanks.

Hi Jabr,
Thanks for ur response.
i dont know that how to do that.
i have written initmethod()(in before phase) for showing the table values(executing VO) before the page loads such that we can see the table with valus when the pae is loaded.
Thanks.

Similar Messages

  • My creative cloud window is blank i have called many times to get ti fixed it works for a week then comes up blank again

    my creative cloud window is blank i have called many times to get ti fixed it works for a week then goes blank i need help

    Chuck Palmer what steps have you utilized to resolve the issue previously?  You mentioned you were in contact with our support team.  Do you have a case number which I can reference to review the notes?

  • Error when creating Before Phase method

    Hi,
    I am using Jdeveloper 11.1.1.3.0. I wanted to create Phase Event method. I did by going to the view and opened the editor for Before Phase. Created a new Bean and the method. I gave application scope.
    Once it is created, I get the error saying the reference method_name not found.
    I didn't receive this error in earlier version. Can anyone guide me on this?
    Thanks
    SR

    Hi,
    not sure why this happens but what is the reason to put this into application scope. Is your phase listener keeping state ? Note that if you define it on the f:view component then it is used for this page only. So it can be in request scope
    Frank

  • Bug: method beginning by "get" are called many times

    Hi,
    I have created a managed bean, and in this class, I have a method beginning by "get" like getchPasswordRendered.
    I trace something with System.out.println in this method, and when I call it to set dynamically a composant property like rendered i have this trace many times.
    It's called 2 times to set rendered property to FALSE, 5 times to set it to TRUE.
    Can you explain to me why?
    Thanks.

    Since you did not mention which UI technology you are takling about I'll assume faces.
    In this case your method get called at different times in the jsf (or adf) life cycle. To investigate this further you can use a PhaseListener and print out a message in each phase and see in which phase your getter is called.
    Timo

  • Validator is called many times

    I defined an validator for my inputdate. I use it in a popup window. If I get an error first time it works fine,
    but if I close the popup, reopen it and get an error again my validator is called twice. if I repeat this sequence 10 times,
    my validator is called 10 times and it prints the error 10 times. Since the validator method is called automatically I have no idea how to solve it.
    <af:inputDate binding="#{model.guiEndDate}" label="#{bundle._END_DATE}" value="#{model.endDate}" id="id2" required="true"
    validator="#{model.validateInputDate}"/>
    public void validateInputDate(javax.faces.context.FacesContext facesContext, UIComponent uIComponent,
    Object object) throws Exception {
    Date start = (Date)getGuiStartDate().getValue();
    RichInputDate inputDate = (RichInputDate)uIComponent;
    Date end = (Date)object;
    if (start != null && end != null && start.compareTo(end) >= 0) {
    inputDate.setValid(false);
    throw new Exception("start later than end date");
    } else {
    inputDate.setValid(true);
    Studio Edition Version 11.1.2.0.0

    Hi,
    Call following scripts when you are closing the popups
        function clearMsgForComponent(evt){
            AdfPage.PAGE.clearAllMessages();
            evt.cancel();
    <af:commandButton text="Close">
       <af:clientListener method="clearMsgForComponent" type="click"/>
    </af:commandButton>

  • Why servlet be called many times?

              I call servlet in jsp by the following way,
              /ReportServlet?reportCode='1234'.
              Servlet execute normally at first,but I find it had been called again before first
              servlet finished.
              I want to know why it be called two times.
              

              Yes,I used two frames in a signle page like this,
              <%@page contentType="text/html;charset=gb2312 "%>
              <%@page errorPage="/fxclear/common/fx_error.jsp"%>
              <%@page session="true" import="cfets_fx2001.clearing.common.record.FxsReport"%>
              <html>
              <head>
              <%
              String reportCode = null;     //&#35201;&#29983;&#25104;&#25253;&#34920;&#30340;report
              code
              try{
                   reportCode = request.getParameter("reportcode").trim();
              }catch(NullPointerException e){
                   throw new Exception("&#21457;&#32473;jsp&#26597;&#35810;&#21442;&#25968;&#38169;&#35823;");
              FxsReport report;          //&#35201;&#29983;&#25104;&#25253;&#34920;&#30340;&#25253;&#34920;&#20449;&#24687;
              String title;               //&#25253;&#34920;&#26631;&#39064;
              String dateFlag = cfets_fx2001.clearing.common.OurReport.getT0ORT1(reportCode);
              try{
                   report = new FxsReport(reportCode);
                   title = report.reportName.trim();
              }catch(Exception e){
                   title = "&#25253;&#34920;&#25171;&#21360;";
              %>
              <title>&#22806;&#27719;&#36164;&#37329;&#28165;&#31639;&#31995;&#32479;&#65293;&#65293;&#24080;&#21153;&#23376;&#31995;&#32479;&#65293;&#65293;<%=title%></title>
              <script LANGUAGE="JavaScript">
              //&#21457;&#29983;&#38169;&#35823;&#26102;&#25191;&#34892;
              function sendErrMessage(msg)
                   middle.location.href="/fxclear/common/fx_clear_error.jsp?Message="+msg;
              //&#22312;&#35201;&#29983;&#25104;pdf&#25991;&#20214;&#21069;&#25191;&#34892;
              //&#37325;&#26032;&#22312;middle frame&#35843;&#29992;servlet,&#20197;&#33719;&#21462;&#21018;&#29983;&#25104;&#30340;pdf&#25991;&#20214;
              function beginGenFile()
                   middle.document.write("&#27491;&#22312;&#29983;&#25104;&#24744;&#35201;&#30340;&#25991;&#20214;&#65292;&#36825;&#38656;&#35201;&#19968;&#20123;&#26102;&#38388;&#65292;&#35831;&#31245;&#20399;...");
                   top.document.close();
              //&#24403;pdf&#25991;&#20214;&#29983;&#25104;&#25104;&#21151;&#21518;&#25191;&#34892;
              //&#37325;&#26032;&#22312;middle frame&#35843;&#29992;servlet,&#20197;&#33719;&#21462;&#21018;&#29983;&#25104;&#30340;pdf&#25991;&#20214;
              function endGenFile()
                   middle.location.href="/ReportServlet?reportCode=<%=reportCode%>&dateFlag=<%=dateFlag%>&notrefresh=Y";
              </script>
              </head>
              <!-- <script LANGUAGE="JavaScript">
              self.moveTo(50,50);
              </script>
              -->
              <frameset framespacing="0" border="0" rows="50,101%" frameborder="0">
              <frame name="top" scrolling="no" noresize src="commonprinttitle.jsp?reportcode=<%=reportCode%>&dateFlag=<%=dateFlag%>"
              >
              <frame name="middle" src="/ReportServlet?reportCode=<%=reportCode%>&dateFlag=<%=dateFlag%>"
              scrolling="auto" >
              <noframes>
              <body background="image/fx_cfets.gif" bgproperties="fixed">
              <p>&#27492;&#32593;&#39029;&#20351;&#29992;&#20102;&#26694;&#26550;&#65292;&#20294;&#24744;&#30340;&#27983;&#35272;&#22120;&#19981;&#25903;&#25345;&#26694;&#26550;&#12290;</p>
              </body>
              </noframes>
              </frameset>
              </html>
              And I want to use frames,how to sovle it?
              

  • My iPhone does not tell me Who is calling Many times and ofer me only the number. what can I do to see the owners of the number?

    My iPhone doesn't tell me Who is calling several times and only gives me the number. What can I do to see the owners names?

    if you have verizon as your provider
    Dial *228 from your iPhone.
    When prompted, select option 1.
    When complete, you will hear a confirmation message.
    Force the Contacts, Messages, and Phone applications to close using the following steps:
    Ensure that you have recently opened the Contacts, Messages, and Phone applications.
    From the Home screen, double-click the Home button to display the recently used apps.
    Tap and hold the icon for the Contacts application until a red minus appears.
    Tap the red minus to close the app.
    Repeat the previous step for the Messages and Phone applications.
    Tap the Home screen to return.
    Turn iPhone off and then back on

  • User exit called many times

    Hello Friends,
    I am writing a particular code in a user exit of the FM  IDOC_INPUT_MATMAS01 , the problem is that the user exit is called some 4 times in the program and my logic gets repeated 4 times . Is there any way to over come this ?
    Comradely ,
    K.Sibi

    Hi Sibi,
    You can put a check based on sales/purchasing organization (VKORG) for which  IDOCs are processed.
    Or, you can put a validation check  on
    1) partner type & partner number,
    2) message type,
    3) idoc basic type & extension,
    before executing your user exit code.
    Also Check the link below:
    Creating Idoc filter for MATMAS
    Regards,
    Nisha Vengal.

  • Problem adding listners(getting called multiple times)??

    Hi
    I got a small doubt,
    If I have two radio buttons, if I implement item listeners on that two radio buttons ,
    Depending on the value I get from the database I set it to be selected , but the question is why is the item listener called many times when I write
    This code is written in one item listener --universal radio button.
    Universalbtn.addItemListener(new ItemListener()
    Public itemStateChange(){
    //Some processing from the database
    if(type=�P�)
    Partialbtn.setSelected(true);
    Else if (type=�S�)
    Sparebtn.setSelected(true);
    )Here�s the exact code �
    objUniversalRadBtn.addItemListener(new ItemListener() {
                                        public void itemStateChanged(ItemEvent iE) {
                                                    arrStoreFamilyList=new ArrayList();
                                                    ArrayList arrResults=null;
                                                    arrStoreFamilyList.add(FLAG_RADIO_BTN);
                                                    try {
                                                                //calling the service, to store the values selected or entered in UI.
                                                                arrResults=(ArrayList)objController.doAction
                                                                                                                ("admininvmgmnt.service", arrStoreFamilyList);
                                                    catch(EnPVException enPV) {
                                                                logger.error("exception"+enPV);
                                                    if(arrResults.get(0).equals(BOOLEAN_VALUE)) {
                                                                objMessageUI=new MessageUI();
                                                                objMessageUI.infoMessage(INVENTORY_CYCLE_INPROGRESS);
                                                                if(strInvType.equals(INVENTORYTYPE_PARTIAL)) {
                                                                            objPartialRadBtn.setSelected(true);
                                                                }else {
                                                                            objSpareRadBtn.setSelected(true);
                                                    }else {
                                                    objAddedFamilyList.setEnabled(false);
                                                    objFamilyName.setEnabled(false);
                                                    objFamilyTxt.setEnabled(false);
                                                    objAddBtn.setEnabled(false);
                                                    objRemoveBtn.setEnabled(false);
                                                    objInvMgmtUI=null;
                            objSpareRadBtn.addItemListener(new ItemListener() {
                                        public void itemStateChanged(ItemEvent iE) {
                                                    arrStoreFamilyList=new ArrayList();
                                                    ArrayList arrResults=null;
                                                    arrStoreFamilyList.add(FLAG_RADIO_BTN);
                                                    try {
                                                                //calling the service, to store the values selected or entered in UI.
                                                                arrResults=(ArrayList)objController.doAction
                                                                                                                ("admininvmgmnt.service", arrStoreFamilyList);
                                                    catch(EnPVException enPV) {
                                                                logger.error("exception"+enPV);
                                                    if(arrResults.get(0).equals(BOOLEAN_VALUE)) {
                                                                objMessageUI=new MessageUI();
                                                                objMessageUI.infoMessage(INVENTORY_CYCLE_INPROGRESS);
                                                                System.out.println(strInvType);
                                                                if(strInvType.equals(INVENTORYTYPE_UNIVERSAL)) {
                                                                            bFlag=false;
                                                                            objUniversalRadBtn.setSelected(true);
                                                                }else if(strInvType.equals(INVENTORYTYPE_PARTIAL)) {
                                                                            objPartialRadBtn.setSelected(true);
                                                    }else {
                                                    objAddedFamilyList.setEnabled(false);
                                                    objFamilyName.setEnabled(false);
                                                    objFamilyTxt.setEnabled(false);
                                                    objAddBtn.setEnabled(false);
                                                    objRemoveBtn.setEnabled(false);
                                                    objInvMgmtUI=null;
                            });Pls kindly , let me know why is this happening , as I had overcomed this problem many times and I changed my code when this happened with the textfields in some cases � (when I wrote focuslost events on textboxes , the same case happened �calling the other listener many times and then the cursor got focused in the textfield)
    thnx & regards
    Neel

    Inside the Method itemStateChanged() dont use
    objPartialRadBtn.setSelected() or objSpareRadBtn.setSelected()
    If you still want to use then do
    objPartialRadBtn.removeItemListener(...);
    objPartialRadBtn.setSelected();
    objPartialRadBtn.addItemListener(...);

  • How many times have I authorized a song?

    Is there a method to see how many times each song I've purchased has been authorized? I just authorized a new album I've just bought (authorized to play on my home computer as well as my work). I received an error message saying I've used 5 of the 5 available slots. This better not be correct as I've only authorized a total of two machines (work and home).
    Is there anyway to verify this?
    Is there anyway to reclaim those missing 3 uses?
    I just upgraded to iTunes 6, could this be the cause?
    And, where did my authorizations go if I can't get them back?
    I'm already contemplating burning a DVD with all of my purchased songs as clean mp3's to avoid losing my investment in my music I've already bought. The fact that I even have to do this shows how hostile this DRM stuff is...

    Carl,
    log into your iTMS account / manage it.
    If you used all of your 5 authorizations your are allowed to de-authorized all of them once a year without accessing each of your authorized computers.
    After that just re-authorize both of computers again.

  • If i deleted my history, is there a way you can still tell me how many times a site was visited from my MacBook?

    My history has been wiped out. I would like to know if there is a way i can see how many times a site was previously visited using my MacBook. Pelase advise. Thansk!

    no, i deleted the addresses from my history but was able to pull them up from the cookies. i want to know if i can view how many times the site was viewed ever after it has been deleted out of my history..
    thanks!

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

  • Ejbload() on CMP with transaction = supports - why called before every method?

    If an entity bean (CMP v2) has its transaction attrib "supports", why
    when a client (ejb/servlet/jsp) calls its business methods does WLS
    call ejbLoad() before every method call? Note that the calls do not
    occur inside a transaction!
    This is not intuitive to me. I would think that ejbLoad() would be
    called once when the bean is activated and then all business methods would
    access that data.
    Note that if you put the entity bean behind a session bean with a
    transaction attrib "Required", then the ejbLoad() gets called once no
    matter how many business methods are called from the session bean.
    This is (obivously) correct.
    Why is this relevant? The latest java petstore demo essentially calls
    EJBLocal's from jsp (via taglib's) - I guess no different from WLS
    EJB to taglib product - where the fine grained getter methods are
    called. From what I gather, this means that every one of the jsp
    get methods results in a database read! This can't be right!
    What am I missing? As above, if the entity bean has "supports"
    and is called from a jsp, it appears that ejbLoad()/ejbStore()
    would be called for every jsp taglib invocation.
    Glenn

    "Glenn R. Kronschnabl" wrote:
    Rob,
    Thanks for your reply. This implies that even EJBLocals with fine
    grained getter methods should never be used outside a tx scope.Yes, unless you are using Read-Only entity beans which cache data for longer
    periods of time.
    Even
    though you bypass the RMI semantics, you'll be killed by the local tx.
    Which to me says that using EJB's from JSP (even via tags) is a bad
    idea because each getter method will result in a database read/write,
    (unless you go with a readonly EJB as you stated).
    Accessing transactional entity beans via tags is probably a bit off. You
    could start the tx in the JSP or the tag library, but I don't really like
    that pattern much. I prefer making the tags more coarse-grained and having
    the tags talk to a stateless session bean which in turn talks to the entity
    beans.
    >
    Unfortunately, I've been seeing some threads on the net advocating
    using EJBLocals with tx=supports because one of the most common
    patterns has session beans (where you can specify your desired tx)
    in front of entity beans (so you're set methods are protected via
    the session bean tx),RIght, I think Required or Mandatory is a better choice for the entity beans
    here.
    but then you can use the EJBLocal (via tags)
    on a JSP page (no tx) to view the data via fine grained getter
    methods.Other than the performance issues, I dislike this because it exposes the
    entity bean directly to the JSP. If I have to go through an interface (the
    session bean) to access the entity bean, then I shouldn't have another route
    to access the entity bean directly.
    -- Rob
    >
    As you state, this is a disaster because each getter method
    will run in a local tx, requiring a database read/write. Oouch!
    Glenn
    On Thu, 06 Dec 2001 17:08:07 -0600, Rob Woollen wrote:
    First off, I wouldn't recommend that you ever run any EJB with the
    'supports' transaction attribute. If you want transactional behavior
    use Required, RequiresNew, or Mandatory. If you want to run in an
    unspecified tx, use NotSupported or Never.
    WLS runs entity beans with an unspecified tx in their own local tx.
    That's why you see the reads and writes on the method call boundary.
    Your scheme of only reading when the bean is activated could make the
    bean's data out of sync with the underlying database. That's acceptable
    in many cases, and that's why we have the Read-Only entity bean option.
    It gives you exactly what you'd like.
    -- Rob
    "Glenn R. Kronschnabl" wrote:
    If an entity bean (CMP v2) has its transaction attrib "supports", why
    when a client (ejb/servlet/jsp) calls its business methods does WLS
    call ejbLoad() before every method call? Note that the calls do
    not occur inside a transaction!
    This is not intuitive to me. I would think that ejbLoad() would be
    called once when the bean is activated and then all business methods
    would access that data.
    Note that if you put the entity bean behind a session bean with a
    transaction attrib "Required", then the ejbLoad() gets called once no
    matter how many business methods are called from the session bean. This
    is (obivously) correct.
    Why is this relevant? The latest java petstore demo essentially calls
    EJBLocal's from jsp (via taglib's) - I guess no different from WLS EJB
    to taglib product - where the fine grained getter methods are called.
    From what I gather, this means that every one of the jsp get methods
    results in a database read! This can't be right! What am I missing? As
    above, if the entity bean has "supports" and is called from a jsp, it
    appears that ejbLoad()/ejbStore() would be called for every jsp taglib
    invocation.
    Glenn
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Any way (event) to call Java method after view created in JSF 2.0

    Hi,
    I am using JSF 2.0 Mojarra's implementation.
    I am interested to know if there is a way to call Java methods before and/or after view has been restored.
    I wanted to initialize data for my page in this Java method.
    I could see there is an event class PostRestoreStateEvent added in JSF 2.0. How to use it?
    I tired to use f:event element as below, but it does not work. Can anyone share anyother idea to achieve this behaviour?
    <f:metadata>
    <f:event type="postRestoreState" listener="#{employeeLoadBean.loadAfterRestoreView}"/>
    </f:metadata>
    Regards,
    Kishore K S

    Hi,
    The problem is solved as below.
    <f:metadata>
    <f:event type="javax.faces.event.PostRestoreStateEvent" listener="#{employeeViewEventListener.postRestoreState}"/>
    </f:metadata>
    The above calls the Java method #{employeeViewEventListener.postRestoreState} whenever View has been restored.
    It was not working when shortName of the event (ie., postRestoreState) is given and throwing ClassNotFound exception.
    Regards,
    Kishore K S

  • How to call a custom controller method from view

    Hi,
    I ve created a simple web service and consumed it in a model. Mapped the input & output parameters to custom controller context which in turn mapped to component controller's context which in turn to view's contexts.
    How to call a custom controller method from view?
    Please explain the syntax.
    Regards,
    Manoj.

    Hi Patralekha,
    Give some idea for the below scenario:
    I ve created a simple web service and consumed it in a model. What I did was
    1) for the input parameters, mapped the node from view->custom controller->model
    2)for the output parameter, mapping from model->custom controller->view.
    It works fine.
    But I don't want to access model nodes directly, rather I want to set the input param in somewhere else (like custom controller) before calling the appropriate method, same for the response also.
    Share me your thoughts.
    Regards,
    Manoj.

Maybe you are looking for

  • Creation of G/L in mass

    Dear Professionals,                  What is the Tcode for creation of G/L in mass. I want to create 100 G/L one at atime... Please explain the process along with Tcode. I knew that  FS00 is used for cration pf G/L but i want to create in mass in par

  • Webi 3.1 Input Controls on Different Tabs

    Hi, I have a requirement to pass an input control value to another tab of same report i.e, Same iDocID but different tab. For example, say input control in Tab 1 is filtered for a specific date, same date has to be filtered in Tab 2 too. i.e, I need

  • Importing TIFF files (Portrait) into iPhoto '11

    Since upgrading from iLife '09 to iLife '11, I can't import portrait photos in TIFF format into iPhoto! JPEG versions work fine but as most of my photos are TIFF I'm left with a lot of photos that I can't see/use. Landscape photos are fine. I'm using

  • All ichat contacts gone

    HI. I recently upgraded to Snow Leopard. When I today, for the first time, open up ichat all my contacts are gone. Last time I used ichat was on Leopard. It then worked fine (with all my contacts there). Ideas anyone? /Anders

  • Data at base level not consolidating to the parent entity

    HI All I have an issue with data which exisits at the base level but do not consolidate to its parent entity. For example, 2000 2001 2002 2003 Here only 2002 has data, but that is not appearing at 2000. I have checked the accounts and there we have s