You could try count++.  I think that would work,  but would probably have to
play with it to be sure.

The @Table component also has an "index" parameter that would allow it to
update a property of your choice with the current row index value.  Maybe
that's what you wanted.

On 7/13/07, Sergey <[EMAIL PROTECTED]> wrote:

Hello

I have a problem with migration to TAP 4.1.2
previously I'm use some increment operation in template
(tst="ognl:count=count+1")
              <tr jwcid="tableRows1" class="
org.apache.tapestry.bean.EvenOdd.next" row="ognl:row" cid="ognl:row.id"
tst="ognl:count=count+1">
                <td jwcid="tableValues1" align="center"/>
              </tr>
and calculate total display rows

after migration all works, but occur exception:
org.apache.hivemind.ApplicationRuntimeException: Unable to add method void
set(ognl.OgnlContext, java.lang.Object, java.lang.Object) to class
$ASTAssign_113c292aa77: [source error] ; is missing
        at org.apache.tapestry.enhance.ClassFabImpl.addMethod(
ClassFabImpl.java:278)
        at
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression
(HiveMindExpressionCompiler.java:214)
        at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498)
        at ognl.Ognl.compileExpression(Ognl.java:141)
        at org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(
ExpressionCacheImpl.java:152)
        at
org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression
(ExpressionCacheImpl.java:115)
..........
If i remove calculation attribute tst="ognl:count=count+1" all works
fine


How I can do some operation in template in tap 4.1.2
(increment,calculate... )



--
Sergey                          mailto:[EMAIL PROTECTED]




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




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to