SourceForge.net Logo

 

GraphApplet1

Step 7 Link the expression input and the parser

In a similar manner, we need to tell the WCMExpressionInputBean to use the parser that we've just added. Select the WCMExpressionInputBean, switch to the Properties tab, and scroll the Properties down until you find the parser property. Click on this line, click the drop-down arrow, and select WCMParserBean from the list, then press Enter.

You should then see something like the following:

expression input parser

Also, select the variable property line, click the drop-down arrow, and select WCMVariableBean, to tell the expression input about the variable.

function variable

While we're editing the properties for the WCMExpressionInputBean, let's also change its default function. Scroll down to the text property. Click on this line, type in "x^2" (without the quotes), and press Enter.

expression input text

[Prev][Next]
[WebCompMath] [Examples] [GraphApplet1] [FunctionComposition]