Integration with MathML

Hi

I need to use this technology

http://www1.chapman.edu/~jipsen/asciimath.html

I have put the javascript call into my JSP page (only jsp page).

To use this technology I simply put the statement
amath x^2+b/a x+c/a=0 endamath

however when I do this, Backbase errors out. I need to figure out how to use this javascript based technology.

integration with MathML

Hi escanzano,

Would you like to provide us with your code?
It might make us a little bit easier to find out what the real problem is.

Thank you

Hi Edward, I tested MathML

Hi Edward,

I tested MathML in a Backbase JSF page, To get it to work you must wrap all MathML code in tags which this is placed in tags.

Example:

<!-- -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.backbase.com/2007/jsf" prefix="bjsf"%>
<html xmlns:maths="http://www.w3.org/1998/Math/MathML">

<head>
<script type="text/javascript" src="ASCIIMathML.js"></script>
</head>
<body>


<f:view>

        <bjsf:application clientDebug="true" id="application">
                <f:verbatim>
                <b:xhtml>
                        <h1>Example</h1>
                        <div>
                                <maths:math>
                                        <maths:mfrac>
                                                <maths:mi>a</maths:mi>
                                                <maths:mi>b</maths:mi>
                                        </maths:mfrac>
                                </maths:math>
                        </div>
                </b:xhtml>
        </f:verbatim>
               
        </bjsf:application>
</f:view>
</body>
</html>

Hope this helps,

-Senaka

Programmatically outputing a f:verbatim tag

Hi Seneka,

Is there a way to programmatically output a f:verbatim tag rather than writing a JSP to do it?

Thanks

com.backbase.bjsf.util.actions.DeltaActionRender

Hi Edward,

Have you tried to achieve this by using the DeltaActionRender?

com.backbase.bjsf.util.actions.DeltaActionRender

Using this you can render your elements dynamically via the backing bean.

DeltaActionRender action = DeltaActionRender(component, "<div>New widget 1</div>", "replaceChildren" );
 BackbaseContext.getCurrentInstance().addDeltaAction(action);

Hope this helps,

-Senaka