Request for help related to t:dataList calling my bean method twice

Hello,
I'm trying to use <t:dataList> from myFaces library: I'm getting the data that i wanted on the UI. However, my method on the bean is getting called twice when i use t:dataList.
If i use, <UI:repeat> instead of <t:dataList>, everything is fine (meaning my method gets called only once which is the expected behavior).
Did anybody come across this issue with <t:dataList>?
Thank you in advance,
Here is my code:
<t:dataList value="#{logBean.interactionsList}" var="e" rowIndexVar="index">
<tr class="#{index mod(2) !=0?'evenRow':''}">
<td>#{index+1}</td>
<td>#{e.name}</td>
<td>#{e.notes}</td>
</tr>
</t:dataList>

Which method do you mean? I'm assuming the getter for the value binding? If that is the case, you may need to learn to live with it. This seems to be the typical behavior of JSF components (i.e., do not cache the value of EL expressions, instead re-evaluate). In some cases this is the behavior you want.
Now that you know the components will be doing this, the trick is to move the caching (if applicable) to your bean. In other words, if the value of getter is the result of a long running process, save it in an instance variable for the next invocation.

Similar Messages

  • How can I get iTunes to answer my requests for help?

    I have tried for a few days now to get iTunes to help me get some tunes that partially downloaded. Their initial response seemed to work but the next day the tunes were only partially on my PC. I re-installed the software, called the phone number on my PayPal receipt, sent another e-mail request for help, responded to their follow up e-mail a few days ago asking if my issue was resolved.........and STILL cannot get them to help me resolve. They say I should receive a response within 24 hours, and it has been longer. No phone number to call, the initial instructions to re-download the missing tunes were confusing  

    It is quite easy to find out how to redownload purchases, using the search bar ( by Support) at the top of this page:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    You can contact itunes support again by clicking Support at the top of the page, then clicking the link under Contact Us.

  • A Request for help from me again! Yay!

    hi guys! I was working on implementing threads for the directions of the unit. When i press forward once...nothing happens, but when i press twice it gives me this HUGE list of errors. I dont have a clue. Again, any help would be appreciated.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class NBoard extends JFrame implements KeyListener{
         int selection = 0;
         boolean selectionmade = false;
         final int WIDTH = 600;
         final int HEIGHT = 600;
         Image Viz =Toolkit.getDefaultToolkit().getImage(JOptionPane.showInputDialog("What character do you want?")+".gif");
         int XC = 50;
         int YC = 50;
         Thread moving = new Move();
         Unit Host = new Unit();
         public NBoard(){
              this.setSize(WIDTH,HEIGHT);
              selection = Integer.parseInt(JOptionPane.showInputDialog("What level design do you want?"));
              if(selection > 0){
                   selectionmade = true;
              addKeyListener(this);
              this.setVisible(true);
         public static void main(String args[]){
              new NBoard();
         public void paint(Graphics g){
              if(selectionmade == true){
                   if(selection == 1){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
                   if(selection == 2){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
                        for(int ctr = 1; ctr < 6; ++ctr){
                             g.drawRect(WIDTH/4 ,ctr * 100, 20, 20);
                             g.drawRect((WIDTH / 3) * 2 ,ctr * 100, 20, 20);
                   if(selection == 3){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine((WIDTH/2) - 90,0,(WIDTH/2) + 90,HEIGHT);
                   g.drawImage(Viz,XC,YC,this);
              public void keyPressed(KeyEvent e){                              //The Problem Areas
                   if(e.getKeyChar() == 'w'){
                        moving.start();                                             //Starting the thread to move up
                   else if(e.getKeyChar() == 's'){
                        YC = YC + 2;
                   else if(e.getKeyChar() == 'a'){
                        XC = XC - 2;
                   else if(e.getKeyChar() == 'd'){
                        XC = XC + 2;
                   System.out.println(e.getKeyChar());
                   repaint();
         public void keyReleased(KeyEvent e){                              //The Problem Areas
              if(e.getKeyChar() == 'w'){
                   moving.interrupt();                                             //Trying to interrupt the thread once the key is released
         public void keyTyped(KeyEvent e){}
    class Move extends Thread{                                                  //The Problem Areas
         public void run(){                                                       //The Thread
              Unit.XC = Unit.XC - 2;
              try{
                   Thread.sleep(1000);
              catch (Exception e){}
    class Unit{                                                                      //The Object which will hold all of the information about each unit
         static int XC = 30;
         static int YC = 30;
    } By the way, here is my order of events, so you can look forward to seeing requests for help for them (hopefully not).
    Threads: Moving the guy around
    Threads: Making him shoot a ball at the mouses position
    Network: Allow others to join/play game (This is gonna be HUGE probably), while host decides on game type.
    Thanks for all the help so far!

    Where does moving ever get started? Why does Move extend Thread instead of implementing Runnable? (Implementing runnable is preferred and often the correct way to do it and it is in this case)
    But regardless there shoud be a moving.start() somewhere or start of the Thread that has the Runnable target Move.... I don't think I see one. Unless I missed it.
    so...itll work if i change the setup to Runnable?

  • Transport request for Help LaunchPad : K900033.N73

    Dear friends,
    Can anyone please tell me where to find transport request for Help LaunchPad K900033.N73 ?
    (We had raised a OSS 161317/2014 and this has been recommended by Shu Liu )
    We have SAP System with SAP_BASIS 740.
    I tried to work with SAP Note1799002 - How to choose Help LaunchPad files from uPerform Installation PackageI .. but did not managed to find this.
    best regards
    ashish

    Hi Anish,
    Sorry for delay.
    I see that Ancile have answered your question. Hopefully this is to your satisfaction.
    Regards,
    Matthew

  • Approximately 6% of all requests for help on this forum are ever "solved."

    Approximately 6% of all requests for help on this forum are ever "solved." And approximately 34% of all requests for help on this forum are never responded to. Even with all the caveats, these numbers are embarrassing. Good luck everyone!

    More facts and stats from the horse's mouth - http://www.mozilla.org/foundation/annualreport/2009/sustainability.html
    "Total assets as of December 31, 2009 were $143 million compared with $116 million at the end of 2008, an increase of 23 percent. Unrestricted net assets at the end of 2009 were $120 million compared with $94 million in 2008, a 28 percent increase."
    "Mozilla consolidated expenses for 2009 were $61 million, up approximately 26 percent from 2008 expenses of $49 million. Mozilla operating expenses in 2009 continued to remain highly focused on people and infrastructure."
    "At the end of 2009, Mozilla was funding approximately 250 people working around the world."
    Yes, Mozilla is indeed doing very well but they're a bit worried about the IRS audit that is currently going on.
    Now, if we take the figure from the 2008 cnet article that 80% of expenses are spent on Mozilla employees as a relatively stable benchmark for 2009, we see that employee salaries averaged out to around $200,000 dollars annually for each employee, which obviously isn't what each employee is actually getting paid, but what it does mean is that given typical corporate scaling of salaries, some folks in this non-profit are making lots and lots of money.
    The individuals who should be the most upset about Mozilla's unwillingness to invest even a fraction of its profits into building a real and responsive user support system are the collective-community-driven-volunteers who commit their free time so Mozilla can continue to cash in big time at their expense. A brilliant model!
    Again, Firefox users appreciate the work that you and the other unpaid/unacknowledged volunteers do here.... Mozilla appreciates it more.

  • Calling a bean method on select of Combo box item

    Hi
    On select of Combo box item in a form, text fields in the same form should be populated
    dynamically.Is it possible to call a bean method which does this,by calling onSelect() method
    of combo box ?
    Thanks in advance,
    Sridevi

    Uff, sorry!
    I ment that you write some code for the "onSelect" event which sends a request to the server with the selected value: onSelect="self.location.href='<%= request.getRequestURI()%>?selectedVal= ' + this.selectedIndex;"

  • How to call backing bean method from java script

    Hi,
    I would like to know how to call backing bean method from java script.
    I am aware of serverListener and [AjaxAutoSuggest article|http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html]
    but i am running in to some issues with [AjaxAutoSuggest article|http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html]
    regarding which i asked for help in other thread with subject ....Question on AjaxAutoSuggest article (Ajax Transactions Using ADF and J...)
    The reason why i posted is ( though i realise both are duplicates) .. that threads looks as a specific question to that article hence i would like to ask the quantified problem is asked in this thread.
    So could any please letme know how to call backing bean method from java script
    Thanks
    Murali
    Edited by: mchepuri on Oct 24, 2009 6:17 PM
    Edited by: mchepuri on Oct 24, 2009 6:20 PM

    Hello,
    May know how to submit a button autoamtically on onload of page with clicking a welcome alert box. the submit button has managed button too to show a message on console using SOP.
    the problem is.
    1. before loading the page a javascript comes on which i clicked ok
    2. the page gets loaded and the button is there which gets automatically clicked and the managed bean associated with prints a message on console using SOP.
    I m trying to do this through server listener and click listener. the code is(adf jspx page)
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" binding="#{backingBeanScope.backing_check4.d1}">
    <af:form id="f1" binding="#{backingBeanScope.backing_check4.f1}">
    <af:commandButton text="commandButton 1"
    binding="#{backingBeanScope.backing_check4.cb1}"
    id="cb1" action="#{beanCheck4.submit1}"/>
    <af:clientListener type="click" method="delRow"/>
    <af:serverListener type= "jsServerListener"
    method="#{backingBeanScope.backing_check4.submit1}"/>
    <f:facet name="metaContainer">
    <af:resource type ="javascript">
    x=confirm("hi");
    // if(x){
    delRow = function(event){
    AdfCustomEvent.queue(event.getSource(), "jsServerListener", {}, false);
    return true;
    </af:resource>
    </f:facet>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_check4-->
    </jsp:root>
    the backing bean code is -----
    public class classCheck4 {
    public classCheck4() {
    public String submit1() {
    System.out.println("hello");
    return null;
    }

  • How to call a bean method from javascript event

    Hi,
    I could not find material on how to call a bean method from javascript, any help would be appreciated.
    Ralph

    Hi,
    Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an external bean, from the javascript events (mouseover, on click, etc...) of a ui jsf component. I.e., I would like to take an action when a user clicks in a column in a datatable.
    Cheers,
    Ralph

  • How to call a bean method through a javascript function

    I dont discover any problems calling the bean method in this maner:
    <%= helpdesk.data() %>
    But, when I use a Button Onclick= to call the script function and which then is going call my bean method
    an error on the page is reported!
    I have include som code which gives you the idea of what Iam searching for. And is it possible to call
    the bean method without doing from a new jsp page?
    If you have any suggestions to why it doesnt work, please let me know.
    I use Apache Tomcat 4.0
    Best regards Micah.
    <jsp:useBean id='helpdesk' scope='application'
    class='helpdesk.testdb'/>
    <html>
    <head>
    <script language="javascript">
    function broadcast()
    helpdesk.data();
    </script>
    </head>
    <body>
    <input type="button" value="Broadcast" onclick= broadcast()>
    </body>
    </html>

    It's actually quite simple:
    Beans run server-side
    Javascript runs client-side
    So you will never be able to run server-side-code thru the client...

  • How to call a bean method through javascript?

    Hi,
    i want to call a bean method using the javascript.
    thansk in advance.

    hi
    i want to call a backing bean method thought javscript on the button click.
    i am inplementing addition of textbox at runtime.i wrote method and i am calling that on the button click.but the textbox is not created.
    the code is bleow
    public String doAction() {
         tryStuff1();
    return "samplejsf";
    public void tryStuff1()
    System.out.println("Enter the trystuff method");
         FacesContext facesContext = FacesContext.getCurrentInstance();
    UIViewRoot uIViewRoot = facesContext.getViewRoot();
    Application application = facesContext.getApplication();
    UIComponent formComp=uIViewRoot.findComponent("subbody:form1");
    HtmlPanelGrid grid= new HtmlPanelGrid();
    grid.setId("panelgrid2");
    grid.setColumns(2);
    grid.setBorder(2);
    //UIComponent panelGridComp=formComp.findComponent("subbody:panelgrid1");
    //UIComponent panelGroupComp=panelGridComp.findComponent("panelgroup2");
         HtmlOutputText output = new HtmlOutputText();
    output.setValue("dynamic jsf text2");
    System.out.println("hello output text2");
    output.setRendered(true);
    grid.getChildren().add(output);
    HtmlInputText input = new HtmlInputText();
    input.setSize(40);
    input.setValueBinding("value", (ValueBinding) application.createValueBinding("#{sample.text2}"));
    input.setRendered(true);
    grid.getChildren().add(input);
    System.out.println("hello output text1");
    grid.setRendered(true);
    formComp.getChildren().add(grid);
    System.out.println("hello output text3:");
    formComp.getRendersChildren();
    formComp.setRendered(true);
    public boolean getRendersChildren() {
         return true;
    jsp code is
    <h:form id="form1">
    <h:panelGrid columns="2" binding="#{sample.formElements}">
    </h:panelGrid>
    <h:panelGrid id="panelgrid1" columns="1">
    <h:panelGroup id="panelgroup1">
    <h:outputText value="hardcoded jsf text1"/>
    <h:inputText value="#{sample.text1}"/>
    </h:panelGroup>
    </h:panelGrid>
    <h:commandButton id="add" action="#{sample.doAction}" value="add" type="SUBMIT"/>
    </h:form>
    when i click on the button its going into the method and diaplying s.o.p but the text box is not updated to the page.
    why is it so.
    i thought there may be a problem in calling the method directly thru button. i want to try thru javascript calling the bean method.
    why is the page not updated.
    can u help me out
    thanks in advance
    sree

  • How to call a bean method in the faces-config file?

    Hi,
    I would like in my menu to call the method of a bean (it initialize some properties before opening the page) instead of opening directly the page, by I can't find how to do that.
    I tried :
    <managed-property>
    <property-name>viewId</property-name>
    <value>#{listInformationsController.listInformations}</value>
    </managed-property>
    And :
    <managed-property>
    <property-name>outcome</property-name>
    <value>#{listInformationsController.listInformations}</value>
    </managed-property>
    With no success...
    Can someone help me?
    Thank you and merry christmas !

    Hi,
    a managed property only gives you a anlde to a bean or property, it doesn't execute it. To execute a bean, you can use a custom JSF PhaseListener that calls a bean method. The reference to the bean is achieve through value binding
    ValueBinding vb = FacesContect.getCurrentInstance().getApplication().createValueBinding("Name of Managed Bean);
    TypeOfBean theBean =(TypeOfBean) vb.getValue(FacesContext.getCurrentInstance());
    .... theBean.theMethod() ...
    Frank

  • Calling managed bean method using ajax on jsp page loading

    Hello,
    I am using jsf1.1 i want to call managed bean method when page gets loaded using ajax.
    Thanks
    K.Ramu

    Use an ajaxical JSF framework, for example Ajax4jsf (part of RichFaces).
    But why don´t you just use the constructor of the bean class to do some stuff prior to page loading?

  • Down Payment Request for Delivery-Related Item

    Hi,
    My customer has a scenario where they will need make a down payment request to the customer before delivery. E.g. For a sale of Item 1 ($100), they need a deposit of $10 before they proceed with the delivery. After the collection of the 10% down payment, they will deliver the goods and invoice the remaining 90%.
    I've checked the Billing Plan/Milestone Billing functionality, however it only applies for order-related billing item. Has anybody here encountered similar scenarios? What are the suggested methods to tackle this scenario?
    Appreciate your help in this. Thanks!
    Regards,
    Xien

    Please do the following
    1. Activate Reconciliation account ready input setting for your Main reconciliation account in FS00
    2. If you dont find the setting in FS00, then you have to change FSG settings for this account group in OBD4.
    3. Also assign alternative reconciliation accounts to your reconciliation account
    Now system asks you to input the alternative recon account when you do the transactions.
    Rgds
    Murali.N

  • Request for help in tuning the server which is running opmn process.

    Hi Folks,
    I request for an help in tuning the server which is running oracle app server opmn process , It is chewing arround 40% of the CPU resource,and our sysadmin is back of me to resolve this issues.
    any feedback on this is highly appriciated...
    Thanks in advance

    Re: How to Achieve Performance Tuning
    I hope you may find answers here..
    Sharma

  • Ipod touch -cannot connect to itunes store:wifi  connection works, tried reset and still have problem, submitted request for help to apple and they pointed me to a bunch of articles that were of no help, already had tried so I wrote to them, Help

    cannot connect to itunes store
    wifi works and confirmed by accessing google & ew.com
    tried reset and removed everything from ipod
    still receive error cannot connect to itunes store
    did google search and could not find a solution.  found other's also asking for help
    sent request to apple and received response with list of articles.  already tried these and still don't have answer.  inluded ipod model and serial number (ma62ll / 9c740wffw4n) thinking this might help them provide a specific solution.
    version: 1.1.5 (4b1)
    help,  i want to connect to itunes,

    Try:
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors | iPad Insight

Maybe you are looking for

  • No recognition connecting w530 to Samsung Smart TV

    Hello Everybody, Im having issues trying to connect my computer to my smart tv.  I have a new samsung smart tv and a thinkpad w530.  I also have a 15ft mini displayport to HDMI cable (NOT converter just cable) from monoprice I just got in the mail to

  • Cannot export cleanly from FCP 7

    Purchased Final Cut Studio 3 to replace ageing FCP 5. The SmoothCam feature is one of the main reasons for getting FC Studio but it appears to be responsible for preventing edited sequences being exported cleanly. The exported movies are absolute rub

  • How to change the screen time on 2330c.....

    is there any option to change the screen time from center to a top end.....? Solved! Go to Solution.

  • Save Data from LabVIEW201​0 to Excel with ActivX

    Hello all, unfortunately I couldn't solve the problem with the attached VI. I would like save the 2D Array to the shown path (C:\User\Public\.....). The prompt should not appear. The program stops at Invoke Node "Workbook close", why? I don't know th

  • Quicktime ? can't find where to post this.

    I have some avi files and i'm not sure what program created them. i have player but not pro. if i buy pro will it potentially play these files. i've had no luck figuring out how to play them yet.