On Sep 13, 2008, at 1:35 AM, hussayn wrote:

1.) Create a flowScript (e.g. main.js).
In that flowscript prepare all data by accessing the relevant beans,
possibly trigger calculations by calling bean-methods,
and fetching the relevant data by accessing the bean getters
^^^^^^^^^^^^^^^^^^

also you should know that flowscript and JXTemplate both understand beanhood and support element notation for invoking get/set methods. So, e.g..

In Java:

        public String getFoo();
        public void setFoo (final String foo);

In flowscript:

        var foo = theThing.foo;                 // is the same is 
theThing.getFoo();
        theThing.foo = bar;                             // is the same as 
theThing.setFoo (bar);

In JXTemplate:

        ${theThing.foo}                                 // is the same as 
${theThing.getFoo()}


(You can of course call getters/setters directly too).

cheers,
—ml—



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to