That definitely sounds workable. I might just give it a try. Thanks. (*Chris*)
On 8/6/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/8/6, Chris Pratt <[EMAIL PROTECTED]>: > > > You have to connect to every single one of your definitions a > > > different preparer, so that you can construct a different menu > > > depending on your definition. > > > > Yikes, that sounds like way too much work =8^) The whole point of > > these dynamic systems is to do things dynamically. If I was going to > > write something for each page, I might as well just hard code the menu > > and be done with it. Thanks for the help. > > Ok third try :-) > Create a SINGLE preparer and connect it to every definition that needs it. > Then, when you create your definition, put an additional attribute > that works as a parameter. Something like: > > <definition name="my.definition" preparer="my.Preparer"> > <put-attribute name="top" value="/top.jsp" /> > .... > <put-attribute name="preparerParameter" value="foobar" /> > </definition> > > You can read this parameter through the AttributeContext object passed > to the preparer. > How does it sound? > > Antonio >
