On Wed, 2005-06-01 at 16:01 +0200, Christofer Dutz wrote:
> Thorsten Scherler wrote:
> 
> >On Wed, 2005-06-01 at 15:32 +0200, Christofer Dutz wrote:
> >  
> >
> >>Hi,
> >>
> >>how can I set a vaiable and use it outside the macro it das 
> >>defined/redefined. Unfortunately the definitions/changes aren't 
> >>accessible outside.
> >>In my case I set a total variable to 0 and calculate a total over a 
> >>repeater field (which works if I output the variables value inside the 
> >>repeater loop).
> >>Outside the loop all changes are lost. There has to be a way for me to 
> >>do this calculation. Can anyone help me with this?
> >>
> >>    
> >>
> >
> >First define a global (outside) variable, then just add an on-submit
> >event which will sync your global with your local variable (loop).
> >  
> >
> Am I correct that I have to completely throw overboard all techniques I
> used to use in for example struts using STL?

;-) ...not all, but some really nice ones. ;-)

>  Even if the tags are
> allmost identical. I have to go the way of seting variables in my
> flowscript and not in the page itself? 

I did not say that. I meant you define a <jx:set/> outside your
<ft:repeater-widget> and one inside. 

> This is a way I sort of havt to
> get used to first since the normal STL way would be the much more
> intuitive way and in the last few weeks it turned out that every problem
> I had was because I didn't do it the "intuitive-way" because of the
> "way-you-usually-have-to-do-it-way".

Yeah I am constantly running in the same problem ATM. Sadly I have as
well a Struts background and trying things the old fashion way. 

Personally I will investigate a wee bit more in the JavaFlow to use some
of the "normal" way (beans,...).

salu2

> Chris
> 
> >HTH
> >salu2
> >
> >  
> >
> >>Thanks in advance,
> >>    Chris
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>    
> >>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


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

Reply via email to