Hello Andrea,
Thanks, all works fine with created component. I have not thought about component somehow, thanks for idea. Monday, July 16, 2007, 5:48:20 AM, you wrote: AC> Sergey, AC> it's enough easy, you can create a component like this for example <div AC> jwcid="@your:Expression" var="ognl:variable" expression="ognl:assignedToVar +1" />> the code is trivial. AC> Ciao, AC> kiuma AC> On 7/15/07, Sergey <[EMAIL PROTECTED]> wrote: >> >> It was not work in previous version, and not work in 4.1.2 >> >> Working with @Table and index not resolve overall problem of working with >> variables >> >> Question is topical, how to work with variables in template like in >> velocity template? >> >> >> JK> You could try count++. I think that would work, but would probably >> have to >> JK> play with it to be sure. >> >> JK> The @Table component also has an "index" parameter that would allow it >> to >> JK> update a property of your choice with the current row index >> value. Maybe >> JK> that's what you wanted. >> >> JK> 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] >> >> >> >> >> >> >> >> >> >> -- >> С наилучшими пожеланиями, >> Sergey mailto:[EMAIL PROTECTED] >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> -- Best regards, Sergey mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]