Ah ok ! Bare with me. For some reason I did not think about changing the name of the input and output variable.
Thanks for the great support !

Henk

Tyler Pitchford wrote:
Henk,

  Using the new flowlink specific syntax in RIFE 1.4 this is easy and clean:

     <flowlink srcexit="calnext" destid="Calendar">
        <datalink srcoutput="prevmonth" destinput="month"/>
    </flowlink>

    <flowlink srcexit="calprev" destid="Calendar">
        <datalink srcoutput="nextmonth" destinput="month"/>
    </flowlink>

Then in your element:

setOutput("prevmonth", getInputInt("month", getCurrentMonth())-1);
setOutput("nextmonth", getInputInt("month", getCurrentMonth())+1);

You'd want to make a getNextMonth, getPrevMonth, etc. for wrapping the
months and switching the years correctly, but that should give you the
general idea.

Cheers,
  Tyler

On 4/12/06, Henk <[EMAIL PROTECTED]> wrote:
Hi,

enyoing Rife more and more (productivity encreased a lot compared to
Spring MVC), I do have this stupid problem.
I'm developing a calendar in which I have two links : one for going to
the previous month and one for the next month.  Both should redisplay
the current page, but the parameter (let's call it 'month') has to change.
So what I have now is an exit, which I call in my template like this :
<a href="<!--V 'EXIT:QUERY:cal' /-->"> .  The thing is, should I add a
parameter to this link : <a href="<!--V 'EXIT:QUERY:cal'
/-->?month=11">  ?
I'm su

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to