Af:commandButton text EL expression evaluated twice

hi
For a button like this ...
<af:commandButton text="#{backing_SomePage.myCButtonText}" id="myCButton"/>... that gets its text property value from a backing bean method like this ...
public class SomePage
     public String getMyCButtonText()
          System.out.println("SomePage.getMyCButtonText() : begin");
          return "myCButton text";
}... results in output like this ...
SomePage.getMyCButtonText() : begin
SomePage.getMyCButtonText() : beginSo, the backing bean method is called twice.
See also this example application,
at http://verveja.footsteps.be/~verveja/files/oracle/ButtonTextExpressionIssue-v0.02.zip
questions
Why is the EL expression for the text property of a af:commandButton evaluated twice?
Is there a way to avoid this behaviour and have the the backing bean method called only once?
many thanks
Jan Vervecken

Hmm,
then it must have been me creating it when investigating the issue, so I tricked myself.
I can avoid the double printing by
package buttontextexpressionissue.view.backing;
public class SomePage
    String myCButtonText = null;
    boolean called = false;
     public String getMyCButtonText()
                if (!called) {
                    System.out.println("SomePage.getMyCButtonText() : begin");
                    called=true;
                    myCButtonText= "myCButton text";
                return myCButtonText;
    public void setMyCButtonText(String myCButtonText) {
        this.myCButtonText = myCButtonText;
}Frank

Similar Messages

  • Af:commandImageLink property expressions evaluated more than once

    hi
    An image link like this ...
    <af:commandImageLink text="commandImageLink 1" id="cil1"
                         rendered="#{r_tryCommandImageLink.myCImageLinkRendered}"/>... that gets its rendered property value from a managed-bean method like this ...
    public class TryCommandImageLink
         protected int fIsMyCImageLinkRenderedCallCount = 0;
         public boolean isMyCImageLinkRendered()
              System.out.println("TryCommandImageLink.isMyCImageLinkRendered() : begin"
                   + " : count = " + (++fIsMyCImageLinkRenderedCallCount));
              return true;
    }... results in output like this ...
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 1
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 2
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 3
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 4
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 5So, the managed-bean method is called 5 times.
    See also this example application created using JDeveloper 11.1.1.5.0,
    at http://www.consideringred.com/files/oracle/2011/EvaluatedMoreThanOnceApp-v0.01.zip
    question
    - (q1) Why is the EL expression for the rendered property of a af:commandImageLink evaluated 5 times?
    (A similar issue (Re: af:commandButton text EL expression evaluated twice) in forum thread "af:commandButton text EL expression evaluated twice" seems to be resolved (e.g. in tryCommandButton.jspx in EvaluatedMoreThanOnceApp-v0.01.zip).)
    many thanks
    Jan Vervecken

    Thanks for your reply John.
    John Stegeman wrote:
    ... 1). Do you know during which phases it's being called (you could put a phase listener that just logs so that you can see)Please consider the modified example application
    at http://www.consideringred.com/files/oracle/2012/EvaluatedMoreThanOnceApp-v0.02.zip
    It shows that the isMyCImageLinkRendered() method is called during the jsfRenderResponse phase:
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 1
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 2
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 3
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 4
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 5
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponseIf the link is clicked, it also seems to be called during the phases jsfApplyRequestValues, jsfProcessValidations and jsfUpdateModelValues, resulting 8 calls:
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (10) jsfApplyRequestValues : /faces : /tryCommandImageLink
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 1
    MyLogPagePhaseListener.afterPhase()  : (10) jsfApplyRequestValues
    MyLogPagePhaseListener.beforePhase() : (11) jsfProcessValidations : /faces : /tryCommandImageLink
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 2
    MyLogPagePhaseListener.afterPhase()  : (11) jsfProcessValidations
    MyLogPagePhaseListener.beforePhase() : (12) jsfUpdateModelValues : /faces : /tryCommandImageLink
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 3
    MyLogPagePhaseListener.afterPhase()  : (12) jsfUpdateModelValues
    MyLogPagePhaseListener.beforePhase() : ( 5) validateModelUpdates : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 5) validateModelUpdates
    MyLogPagePhaseListener.beforePhase() : (13) jsfInvokeApplication : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : (13) jsfInvokeApplication
    MyLogPagePhaseListener.beforePhase() : ( 7) metadataCommit : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 7) metadataCommit
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 4
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 5
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 6
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 7
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 8
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponse
    John Stegeman wrote:... 2). Does the same behaviour occur with the visible property?In a similar way I tried:
    <af:commandImageLink text="commandImageLink to try visible" id="cil1"
                         visible="#{r_tryCImageLinkVisible.myCImageLinkVisible}"/>This results in 2 calls during the jsfRenderResponse phase:
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 1
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 2
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponseIf the link is clicked, still 2 calls during the jsfRenderResponse phase:
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (10) jsfApplyRequestValues : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (10) jsfApplyRequestValues
    MyLogPagePhaseListener.beforePhase() : (11) jsfProcessValidations : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (11) jsfProcessValidations
    MyLogPagePhaseListener.beforePhase() : (12) jsfUpdateModelValues : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (12) jsfUpdateModelValues
    MyLogPagePhaseListener.beforePhase() : ( 5) validateModelUpdates : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 5) validateModelUpdates
    MyLogPagePhaseListener.beforePhase() : (13) jsfInvokeApplication : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (13) jsfInvokeApplication
    MyLogPagePhaseListener.beforePhase() : ( 7) metadataCommit : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 7) metadataCommit
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 1
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 2
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponseQuestion (q1) remains.
    regards
    Jan

  • [svn] 3045: Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'

    Revision: 3045
    Author: [email protected]
    Date: 2008-08-29 10:59:25 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-13900
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/BinaryOp.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

    Revision: 3045
    Author: [email protected]
    Date: 2008-08-29 10:59:25 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-13900
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/BinaryOp.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

  • Regular expression evaluation with logical operator

    Hi All,
    I am bit confuse with expression evaluation with logical operator. I am trying to understand below expression.
    eXa.getTrue() && eXa.getFalse() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as false and True Count: 1 False Count: 3
    As per understanding it should be true with True Count: 1 False Count: 3
    it should execute 1st getTrue() and then 1stGetFalse() and then 2nd getfalse() and should skip 2nd getTrue() and execute 3rd fetFalse()
    eXa.getTrue() && eXa.getTrue() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as true and True Count: 2 False Count: 0
    As per understanding it should be true with True Count: 3 False Count: 0
    it should execute 1st 2 getTrue() and skip 1st getFalse() and then execute 3rd getTrue() and skip last getFalse().
    eXa.getTrue() || eXa.getFalse() && eXa.getFalse() || eXa.getTrue() && eXa.getFalse() comes as true and True Count: 1 False Count: 0
    As per understanding it should be true with True Count: 2 False Count: 2
    it should execute 1st getTrue() and skip 1st getFalse() and then execute 2nd getFalse() and then execute 2nd getTrue() and then 3rd getFalse()
    Please help me to understand above expressions.
    Here is the methods definition:
    private boolean getTrue() {
              trueCount++;
              boolean retrunValue = 4 > 3;
              return retrunValue;
    private boolean getFalse() {
              falseCount++;
              boolean retrunValue = 3 > 4;
              return retrunValue;
    Thanks for ur help

    >
    adding parenthesis to make order of ops more obvious. adding "?" to show un-executed calls.
    (eXa.getTrue() && eXa.getFalse()) || (eXa.getFalse() && eXa.getTrue()) || eXa.getFalse()  comes as false and True Count: 1 False Count: 3
    (T && F) = F
    (F && ?) = F
    (F) = F
    F || F || F = F
    (eXa.getTrue() && eXa.getTrue()) || (eXa.getFalse() && eXa.getTrue()) || eXa.getFalse()  comes as true and True Count: 2 False Count: 0
    (T && T) = T
    (? && ?) = ?
    (?) = ?
    T || ? || ? = T
    eXa.getTrue() || (eXa.getFalse() && eXa.getFalse()) || (eXa.getTrue() && eXa.getFalse())  comes as true and True Count: 1 False Count: 0
    (T) = T
    (? && ?) = ?
    (? && ?) = ?
    T || ? || ? = T

  • Getting duplicate text messages, each message twice

    getting duplicate text messages, each message twice
    changed simms and #s on the phone now every text message comes twice at the same time?

    I would call your carrier and talk to them about this.

  • Text messages being receive twice by some recipients

    Text messages being receive twice by some recipients:
    I have had a couple of contacts tell me they are receiving text messages I send from the Z10 twice.
    Not everyone thou. I've asked. I'm sending from Rogers to a Rogers user. They both have 9700's.
    Any ideas?

    Mac GigaBytes wrote:
    Anyway, I followed the steps you provided, and changed all of the settings including <-- Settings <-- FaceTime and Settings <-- Messages <-- Use your Apple ID for messages.
    Just to be clear, while you have to use an Apple ID for iMessage and FaceTime, you should not be using that e-mail address to receive at or send from since you're using your father's ID.  Later in your post it sounds like you de-selected e-mail addresses that were not yours, which is correct, but I wanted to make sure you understand that you should not be using this ID for a contact point since it is not yours.
    If your father is still getting your text messages from your friends, I suspect that either:
    (a) after making these changes you need to turn iMessage and FaceTime off for a brief period, then turn back on, or
    (b) your friends are replying to older messages that you sent from your father's Apple ID, or
    (c) your father's iPhone somehow has your e-mail entered as one of the possible contact points for his iPhone.
    If the cause is (a) turn iMessage and FaceTime back on since you've already turned them off.
    If the cause is (b) see the last paragraph of my 1st post.  Send your friends a new iMessage and tell them to only reply to that conversation and delete prior conversations.
    If the cause is (b) have your father de-select (or remove) your e-mail address from his iMessage and FaceTime settings.

  • [svn] 2384: The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations , but we don't want to introduce this change in a Flex 3.0.x minor release.

    Revision: 2384
    Author: [email protected]
    Date: 2008-07-08 06:23:19 -0700 (Tue, 08 Jul 2008)
    Log Message:
    The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations, but we don't want to introduce this change in a Flex 3.0.x minor release. So I'm reverting this fix from the 3.0.x branch of ASC and checking in a new 1.4 downgraded asc.jar to reflect the change. This will be merged to other Flex 3 branches such as 3.0.3 and 3.1.0, but will not be merged to trunk.
    The change in behavior was noticed for Flex 3.0.x when a asc.jar was updated in revision 2108, and re-applied in revision 2129. Reverting this fix will resolve bug SDK-15924.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Erik
    Bugs:
    SDK-15924 - Calling a .NET WebService always returns a fault (after build 2108)
    Other Bugs Referenced:
    ASC-3414 - with block uses local variable instead of object property when -warnings flag on
    Ticket Links:
    http://bugs.adobe.com/jira/browse/ASC-3414
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/ASC-3414
    Modified Paths:
    flex/sdk/branches/3.1.0/lib/asc.jar
    flex/sdk/branches/3.1.0/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java

    Yes but there's no point doing it here. As the Terms of Use make quite clear this is a User to User forum. It's Users like you talking to other Users. It's not a channel to communicate with Apple.
    Regards
    TD

  • [svn] 2383: The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations , but we don't want to introduce this change in a Flex 3.0.x minor release.

    Revision: 2383
    Author: [email protected]
    Date: 2008-07-08 06:22:40 -0700 (Tue, 08 Jul 2008)
    Log Message:
    The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations, but we don't want to introduce this change in a Flex 3.0.x minor release. So I'm reverting this fix from the 3.0.x branch of ASC and checking in a new 1.4 downgraded asc.jar to reflect the change. This will be merged to other Flex 3 branches such as 3.0.3 and 3.1.0, but will not be merged to trunk.
    The change in behavior was noticed for Flex 3.0.x when a asc.jar was updated in revision 2108, and re-applied in revision 2129. Reverting this fix will resolve bug SDK-15924.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Erik
    Bugs:
    SDK-15924 - Calling a .NET WebService always returns a fault (after build 2108)
    Other Bugs Referenced:
    ASC-3414 - with block uses local variable instead of object property when -warnings flag on
    Ticket Links:
    http://bugs.adobe.com/jira/browse/ASC-3414
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/ASC-3414
    Modified Paths:
    flex/sdk/branches/3.0.3/lib/asc.jar
    flex/sdk/branches/3.0.3/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java

    Yes but there's no point doing it here. As the Terms of Use make quite clear this is a User to User forum. It's Users like you talking to other Users. It's not a channel to communicate with Apple.
    Regards
    TD

  • [svn] 2377: The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations , but we don't want to introduce this change in a Flex 3.0.x minor release.

    Revision: 2377
    Author: [email protected]
    Date: 2008-07-07 14:38:01 -0700 (Mon, 07 Jul 2008)
    Log Message:
    The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations, but we don't want to introduce this change in a Flex 3.0.x minor release. So I'm reverting this fix from the 3.0.x branch of ASC and checking in a new 1.4 downgraded asc.jar to reflect the change. This will be merged to other Flex 3 branches such as 3.0.3 and 3.1.0, but will not be merged to trunk.
    The change in behavior was noticed for Flex 3.0.x when a asc.jar was updated in revision 2108, and re-applied in revision 2129. Reverting this fix will resolve bug SDK-15924.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Erik
    Bugs:
    SDK-15924 - Calling a .NET WebService always returns a fault (after build 2108)
    Other Bugs Referenced:
    ASC-3414 - with block uses local variable instead of object property when -warnings flag on
    Ticket Links:
    http://bugs.adobe.com/jira/browse/ASC-3414
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/ASC-3414
    Modified Paths:
    flex/sdk/branches/3.0.x/lib/asc.jar
    flex/sdk/branches/3.0.x/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java

    Yes but there's no point doing it here. As the Terms of Use make quite clear this is a User to User forum. It's Users like you talking to other Users. It's not a channel to communicate with Apple.
    Regards
    TD

  • When some one calls the caller ID shows the name twice as we'll as when I receive texts it shows up twice.  I'm sure it's a simple setting issue. Any thoughts ???

    When some one calls the caller ID shows the name twice as we'll as when I receive texts it shows up twice.  I'm sure it's a simple setting issue. Any thoughts ???

    have the same issue on my 9630 after upgrading to 624 version. It momentarily shows the previously callers information before showing the new caller's info.

  • Simple expression evaluator

    Hi all,
    need some help with an expression evaluation:
    user inputs a string like "x*x+dx*dy" or "x*dx-y*dy" and I
    would like Flash to covert this to an actionscriptline so in the
    code it appears like:
    x=3;
    dx=0.6;
    dy=0.1;
    aa=x*x+dx*dy;
    trace(aa);
    and the output would be: 9.06
    Now my problem is converting the operator.
    Anybody for a solution for this newbie?
    thnx
    Rob

    Ok, so I think my advice stands then...
    You could write your own expression parser, using eval("x")
    when you came to parse an x in the string etc...and its probably
    not too complicated to do if you're just dealing with
    multiplication and addition.... or you could use existing code like
    the example in the link I posted earlier to parse the expression
    (I've used that code before for something more complex).
    If you were writing your own parser you could use eval("x")
    ...but if it were me... I would do the opposite. That is to split
    and join the string with the variable names, subsitituting their
    values into the string and then run it through that expression
    parser. Its basically just calculating a string version of a
    numeric expression then with no variables.
    For your variable --> value substitution (split and then
    join) you need to do it in the order of the
    dx and dy
    then x and y
    so you get it to work correctly.

  • I am looking for an boolean and numeric expression evaluator. I want to be able to compare ( ,=, , or, not, and, nand, etc)and evaluate boolean/numeric expression.

    I am looking for an boolean and numeric expression evaluator. I want to be able to compare (>,=, <, or, not, and, nand, etc)and evaluate boolean/numeric expression. Does anyone know if there is any code samples anywhere. If anyone has any input, I would greately appreciate it.

    The problem is that I have to enter a string of that type (any random string), and the program should go and calculate the result for the whole stirng, by looking at which parts to calculate first (figuring out precedence), second, etc. This is like a calculator, you don't know what the user is going to enter next, so I can't just use the boolean palatte. I could use it if the equation was always of the form "a 'operator' b", where the operator is any logic or comparison operator. But that is not what I am trying to accomplish.
    Can you do logic in the formula node? I think it only allows numeric values for inputs and outputs, it doesn't let you enter in and output booleans and stuff..does it?
    Thanks,
    Yuliya

  • [svn] 1443: Fix FB-12505: Debugger expression evaluator: Literal operators return internal error

    Revision: 1443
    Author: [email protected]
    Date: 2008-04-28 15:09:20 -0700 (Mon, 28 Apr 2008)
    Log Message:
    Fix FB-12505: Debugger expression evaluator: Literal operators return internal error
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-12505
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/expression/DebuggerExpressi on.java

  • Algorithm for Expression Evaluator

    Hi,
    Can any one help me in finding out the algo of Expression Evaluator,Changing Pre fix to Post Fix and vise versa.
    Tx in advance.
    from
    gomes_deb

    There is a math expression parser at http://www.bestcode.com. It forms a tree structure where nodes are operators, functions, variables, numbers. Each node of the tree has children (for example parameters of a function are it's children in this tree). So, if you have a "x+sin(y)", the tree is like this:
    ___+
    _x     sin
    _______y
    Then when it is time to evaluate, you set the values of X and Y and call evaluate() method and it tells you what the result is.
    The java bean is called JbcParser. It's features are:
    *Easy to use, simple class API.
    *Comes with predefined functions.
    *Users can create custom functions/variables.
    *Optimization: Constant expression elimination for repeated tasks.
    Analytical Operators: +, -, /, , ^(power)
    *Logical Operators: =(equals),&(and),|(or),!(not), <>(not equals), <=(less than or equals), >=(greater than or equals)
    *Paranthesis: (, {, [
    *Functions in the form of: f(x, y, z, ...)
    *Function parameters are not calculated until needed.
    *List of predefined functions is available in the documentation.
    *Java source code is included.
    An example of a simple expression is : LN(X)+SIN(10/2-5)
    When parsed, this expression will be represented as: since the SIN(10/2-5) is in fact SIN(0) which is a constant and is 0.
    Thus, in a loop, if you change the value of X and ask for the value of the expression, it will be evaluated quite fast since SIN(10/2-5) is not dependent on X.
    X and Y are predefined variables. You can create your own variables as needed.
    There are many predefined mathematical functions. They are listed in documentation. You can create your functions as needed. IF logic is implemented through a predefined IF(A,B,C) function. Similar logical functions can be created as needed.
    It is located at: http://www.bestcode.com/html/jbcparser.html

  • Display cell contents as text instead of evaluating as a numeric expression

    If I enter a value such as 21/27 in a cell, Numbers interprets it as 21 divided by 27 and displays the result, but that's not what I want.  I want 21/27 to be displayed.  How can I do that?
    Thanks,
    Pete

    1) You can format the cell as text only
    2) or you can leave the formatting as "Automatic" and precede the contents of the cell with a single quote " ' "

Maybe you are looking for

  • CUCM Upgradation from 8.6 to 9.1

    Hi when we upgrade cucm 8.6 to 9.1, can we use the same 9.1 iso file which we wre using for the full installation? Thanks in Advance....

  • Unable to install FB4 premium plugin

    Hi guys,      I had FB4-beta 2 plugin installed on an existing eclipse 3.4.2.  Now that official release is out, beta 2 stopped working.  So I was forced to get FB4 premium.  I have used the uninstall utili that came with FB4-beta 2 to uninstall it,

  • Access Denied Error Message in KM for the report published from BI

    Hi, Whenever we publish a Report from Bex Report Designer using Bex Broadcaster the report is getting published in the right KM Folder we choose, but when we click that link with in KM and choose Details we get a message saying "Access Denied". Due t

  • How can a Stomp client know if it is a TextMessage or ByteMessage?

    The functional specification for the Stomp implementation says: "MQ always set content-length for MESSAGE frame sent to STOMP clients" (https://mq.dev.java.net/4.4-content/stomp-funcspec.html) However, the specification also says about messages sent

  • Sony smartwatch can work without the phone?

    hey guys!i dont know if i can post its here idk where but i have to know! i bougt smratwatch today everythngs worked great(with galaxy S3) now i dont have the phone near me just the watch and its not working he show to me that he need the phone! pls