Helo Nathan!
hmm.  most of the standard tools we provide expect to receive a ViewContext
during initialization.  if we added the method you suggest, i'm not sure how
it would work.  can you provide a patch for this?  it would make it easier to
assess.
I will send a patch later night.


also, why don't you want to use the ViewContext interface? i'm curious.
Imagine the following situation: I will not use a ChainContext because I dont wanna extend it. Then I have a MyViewContext, which will first see inside a Map of toolboxes, and then look in the local Map for the values.

The sequence would be:
- Create MyViewContext
- Get a toolbox from the ServletToolboxManager, passing this as argument, suposing we will call it from the MyviewContext
- use a MyViewContext.setToolbox(Map) or MyViewContext.setToolbox(ToolboxContext)
- and then our get will do the job, taking a look first at the toolbox.


It simply seems too much. It could be done as this:
- Create a toolbox through a new method ServletToolboxManager.getToolboxContext(ServletRequest, ServletContext,...)
- Create a MyContext with a toolbox as one of the parameters, and there will be no need to implement ViewContext.


what do you think?

Nathan Bubna
[EMAIL PROTECTED]


--------------------------------------------------------------------- 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]



Reply via email to