Accessing App Context from a CronJob

2005-08-02 Thread Owen Tallman
Hello, From a CronJob componentI need to access our ApplicationContext object which gets initialized by a ServletContextListener before Cocoon starts. If this were a sitemap component, it would have a setup method that got called with an ObjectModel map, so I could call

Re: Accessing App Context from a CronJob

2005-08-02 Thread Owen Tallman
of the ContextHelper class and pass in the Avalon context. From there you can use your ObjectModelHelper, or just retrieve the object returned in the Map that is under the context key. --- Owen Tallman [EMAIL PROTECTED] wrote: Hello, From a CronJob componentI need to access our ApplicationContext

Re: Advice on site design - really close

2005-07-26 Thread Owen Tallman
If you use flowscript as part of your control, you have access to the application (servlet) context by way of the object cocoon.context: see http://cocoon.apache.org/2.1/userdocs/flow/api.html#context-N100C1 For example, from within flowscript you can do gets and sets like

cannot use enum in a fd:multivaluefield?

2005-06-07 Thread Owen Tallman
I have succeeded in using a typesafe enum class as the back end of a fd:selection-list, so that it automatically populates the list and returns the selected value as an enum instance. That feature of fd:selection-list does not seem to work when you use one within a fd:multivaluefield - I get an

Re: problem with enum and CForms selection-list

2005-06-03 Thread Owen Tallman
of the spelling of Opne Source Zone in your signature? Thanks again! Owen On 6/3/05, Ugo Cei [EMAIL PROTECTED] wrote: Il giorno 02/giu/05, alle 21:46, Owen Tallman ha scritto: fd:field id=locationType fd:labelSelect locations to search:/fd:label fd:datatype base

problem with enum and CForms selection-list

2005-06-02 Thread Owen Tallman
I've followed the examples and advice I've been able to find and can't get past this problem. I want to use a typesafe enum to populate the fields of a selection-list in my form. I modelled it after the Sex enum in the form2* example. Things proceed to the point of calling form.load(bean) in my