For FreeMarker, I created a method that took a template name as the first
parameter, followed by pairs of pathinfo parameters, followed by query
parameter pairs.

something like the following:

${link("edit.wm", "jobid", ${job.id})}
or
${link("edit.wm", "?", "jobid", ${job.id})}

This function used a DynamicURI object to generate the url, so the query
parameters should get added properly regardless of whether cookies are used.
This function assumed Screens were assigned according to template name, but
the function should be able to be adapted so that if the first argument ends
in .wm or .html it is a template otherwise assign it as a Screen.

I'm not sure if something similar could be written for WM.

----- Original Message -----
From: jon * <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Monday, April 10, 2000 3:48 PM
Subject: Problem with the webmacro stuff


> >From the scheduler .wm templates...
>
> $edituri?jobid=$job.getId()
>
> So, the problem with this is that $edituri is generated from a DynamcURI()
> which is probably the correct thing to do, the problem with this is that
if
> you have cookie's turned off, then there is already going to be a "?" in
the
> URL because the JServSessionId will be inserted into $edituri.
>
> Now, this is one solution that I would like something extremely clean for
> since it will potentially be used in bazillions of different places. Any
> suggestions on how to hand this? What would be REALLY cool is the ability
to
> set parameters from within WM, but I'm not sure if this is possible (I
don't
> think it is)...something like this:
>
> $dynamic.setScreen("edit.wm").addPathInfo("jobid", $job.getId() )
>
> Suggestions?
>
> -jon
>
> --
> Scarab -
>       Java Servlet Based - Open Source
>          Bug/Issue Tracking System
>         <http://scarab.tigris.org/>
>
>
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to