Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Carsten Ziegeler
Grzegorz Kossakowski wrote: > > What about getParameters() sort of methods that enable you to have > expressions like cocoon.request.parameters.param1 ? > > Since ProcessInfoProvider returns implementation of HttpServletRequest > there is no access to these methods. Any idea on this? > Yes, thi

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Carsten Ziegeler
Grzegorz Kossakowski wrote: > Carsten Ziegeler pisze: >> Grzegorz Kossakowski wrote: >>> Carsten Ziegeler pisze: >>> >>> Hmmm, something worth trying. Do you think that changing >>> o.a.c.environment.* classes (like MockRequest) so they implement Servlet >>> interfaces and wrapping them in Abstract

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Felix Knecht
> > Felix, I see that you are going to deprecate HTMLArea right now. No. Have > you seen Reinhard's response[1], especially this:? Yes. There are also others who think that not even depracation is needed [2]. For now I'm just going to implement a LogAction. [2] http://marc.info/?l=xml-cocoon

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Grzegorz Kossakowski
Carsten Ziegeler pisze: Grzegorz Kossakowski wrote: After exploring code for a while I came to conclusion that I need to implement stub implementation of HttpServletRequest, HttpServletResponse and ServletContext that will forward to Cocoon's corresponding classes. Hmm, or the other way round -

[jira] Updated: (COCOON-2085) Implement new, universal Object Model

2007-07-24 Thread Grzegorz Kossakowski (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Grzegorz Kossakowski updated COCOON-2085: - Assignee: Grzegorz Kossakowski > Implement new, universal Object Model > ---

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Grzegorz Kossakowski
Carsten Ziegeler pisze: Grzegorz Kossakowski wrote: Carsten Ziegeler pisze: Hmmm, something worth trying. Do you think that changing o.a.c.environment.* classes (like MockRequest) so they implement Servlet interfaces and wrapping them in AbstractTestCase won't break anything? Hmm, it *should*

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Carsten Ziegeler
Grzegorz Kossakowski wrote: > Carsten Ziegeler pisze: > >> Hmm, or the other way round - if the tests would create httpservlet >> classes first, perhaps the current cocoon environment wrappers could >> just be used to wrap them. > > Hmmm, something worth trying. Do you think that changing > o.a.c

[Fwd: Re: XML parser config in 2.2]

2007-07-24 Thread Grzegorz Kossakowski
I'm forwarding this message to dev so people more familiar with Spring Configurator can comment on it. Does Kazó is right with his comments and we need to adjust documentation or not? Respond to user list, thanks. Wiadomość oryginalna Thank you, this ([2]) is indeed the conf

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Grzegorz Kossakowski
Carsten Ziegeler pisze: Hmm, or the other way round - if the tests would create httpservlet classes first, perhaps the current cocoon environment wrappers could just be used to wrap them. Hmmm, something worth trying. Do you think that changing o.a.c.environment.* classes (like MockRequest) so

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Carsten Ziegeler
Grzegorz Kossakowski wrote: > > After exploring code for a while I came to conclusion that I need to > implement stub implementation of HttpServletRequest, HttpServletResponse > and ServletContext that will forward to Cocoon's corresponding classes. Hmm, or the other way round - if the tests would

Re: How to register MockProcessInfoProvider?

2007-07-24 Thread Grzegorz Kossakowski
Grzegorz Kossakowski pisze: Hi, I'll give you some background to my problem. I use ProcessInfoProvider for accessing environmental data because I've read[1] that it is a proffered way to do this in Cocoon 2.2. Now, I would like to write tests for Spring beans depending on ProcessInfoProvider.

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Sylvain Wallez
Carsten Ziegeler wrote: > Sylvain Wallez wrote: > >> Or a new map:log statement we talked about a long time ago, e.g. >> >> > Yeah, sounds good as well - this statement has the advantage that it's > always "configured" and it looks a little bit nicer. > > >> Nothing that can be done wit

Re: Set depraction for client side javascripts

2007-07-24 Thread Carsten Ziegeler
Felix Knecht wrote: >> Or a new map:log statement we talked about a long time ago, e.g. >> >> >> Nothing that can be done with an action though... >> >> > I'm not quite sure but I think this [1] is the discussion about it. > Reading across I think at that time the problem was how to debug sitem

Re: Set depraction for client side javascripts

2007-07-24 Thread Felix Knecht
> Or a new map:log statement we talked about a long time ago, e.g. > > > Nothing that can be done with an action though... > > I'm not quite sure but I think this [1] is the discussion about it. Reading across I think at that time the problem was how to debug sitemap and/or propagate messages

How to register MockProcessInfoProvider?

2007-07-24 Thread Grzegorz Kossakowski
Hi, I'll give you some background to my problem. I use ProcessInfoProvider for accessing environmental data because I've read[1] that it is a proffered way to do this in Cocoon 2.2. Now, I would like to write tests for Spring beans depending on ProcessInfoProvider. I thought that it makes sense

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > Or a new map:log statement we talked about a long time ago, e.g. > Yeah, sounds good as well - this statement has the advantage that it's always "configured" and it looks a little bit nicer. > > Nothing that can be done with an action though... ^^^

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Sylvain Wallez
Carsten Ziegeler wrote: > Felix Knecht wrote: > >>> Take a look at sitemap[1] in cocoon-forms-impl; there is following >>> >> I propose to have a a parameter we can set in the sitemap for readers >> indicating that the read resource is deprecated. >> This parameter will be read in the o.a

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Carsten Ziegeler
Felix Knecht wrote: >> Take a look at sitemap[1] in cocoon-forms-impl; there is following > I propose to have a a parameter we can set in the sitemap for readers > indicating that the read resource is deprecated. > This parameter will be read in the o.a.c..r.AbstractReader and log a > warning in ca

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Grzegorz Kossakowski
Felix Knecht pisze: I propose to have a a parameter we can set in the sitemap for readers indicating that the read resource is deprecated. This parameter will be read in the o.a.c..r.AbstractReader and log a warning in case of (is a System.out.println also needed?). Felix, I

Re: Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Grzegorz Kossakowski
Felix Knecht pisze: I propose to have a a parameter we can set in the sitemap for readers indicating that the read resource is deprecated. This parameter will be read in the o.a.c..r.AbstractReader and log a warning in case of (is a System.out.println also needed?). WDYT?

Set depraction for client side javascripts [WAS: Re: Move from HTMLArea to Xinha]

2007-07-24 Thread Felix Knecht
> Take a look at sitemap[1] in cocoon-forms-impl; there is following > snippet: > > > src="resource://org/apache/cocoon/forms/resources/{1}.js" > type="servletLinkRewriter"/> > > > It matches all request for js files so in your case you would need to > create more specific matcher (for

Re: Move from HTMLArea to Xinha

2007-07-24 Thread Felix Knecht
I was completely at the wrong corner. I saw a kind of DebugFilter you can add and thought your talking about this kind of (servlet)-filter :-( This make things much clearer. Thanks > Felix Knecht pisze: >>> Thanks to servlet-service-fw migration in CForms we can be pretty sure >>> that files wil

Re: Move from HTMLArea to Xinha

2007-07-24 Thread Grzegorz Kossakowski
Felix Knecht pisze: Thanks to servlet-service-fw migration in CForms we can be pretty sure that files will be accessed through our matcher. I'm not uptodate with the servlet-service-fw. Can you point me to this matcher please? Take a look at sitemap[1] in cocoon-forms-impl; there is following

Re: Move from HTMLArea to Xinha

2007-07-24 Thread Felix Knecht
> > Thanks to servlet-service-fw migration in CForms we can be pretty sure > that files will be accessed through our matcher. I'm not uptodate with the servlet-service-fw. Can you point me to this matcher please? Not sure if this is the case, but when we need to add a specific 'deprecation'-filt

Re: [heads-up] cocoon-template is little broken in trunk

2007-07-24 Thread Grzegorz Kossakowski
Felix Knecht pisze: I advice everyone to test their applications that use template or forms blocks so we can hunt all bugs early and fix them easily. Thanks for your ongoing big works :-) No problem, it's my GSoC duty. To be honest, I'm still not satisfied with peace of changes applied to Co

Re: [heads-up] cocoon-template is little broken in trunk

2007-07-24 Thread Felix Knecht
> I advice everyone to test their applications that use template or > forms blocks so we can hunt all bugs early and fix them easily. Thanks for your ongoing big works :-) The problems I had are resolved with commit 558681 and everything in my applications runs smoothly again. Felix