Jeff,
I have no problem with that.
-- Mike
On Wednesday, February 12, 2003, at 12:10 PM, Schnitzer, Jeff wrote:
Ah, right now there is just one set of "params" and each place that
defines params (controller, view, transform) just adds to the pile.
Perhaps different behavior is desirable.
It would be easy enough to split up the params collection into three
separate collections. This would change the ControllerContext
interface
so that instead of setParam() it would have setControllerParam(),
setViewParam(), setTransformParam(), etc.
Does this seem like a good idea to everyone?
Jeff
-----Original Message-----
From: Taavi Tiirik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 5:18 AM
To: [EMAIL PROTECTED]
Subject: [Mav-user] additional configuration for commands
Please enlighten me :-)
I would like to specify some additional configuration
parameters for my maverick commands in maverick.xml.
Something like this is what I came up with:
<command name="orgunit">
<controller class="ee.tvi.eris.ctl.orgunit.Orgunit">
<param name="required-roles" value="role1"/>
</controller>
...
</command>
This "required-roles" specifies that user must be
authenticated and have role1 assigned to his/her
account.
Now this works but if I use views of type="redirect"
then this required-roles becomes an url parameter.
Ie. if I define input view for this command like this:
<view name="input" type="redirect" path="orgunit-search.m"/>
then request to orgunit.m is redirected to:
orgunit-search.m?required-roles=role1
I do not need this required-roles to go along with
the redirect. Is there a better way to specify
configuration parameters for a command. I do not
want to have any additional config files, etc.
with best wishes,
Taavi
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
[INVALID FOOTER]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]