[jira] [Updated] (COCOON-2297) Character encoding does not follow JTidy properties

2020-08-27 Thread Nico Verwer (Jira)
[ https://issues.apache.org/jira/browse/COCOON-2297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nico Verwer updated COCOON-2297: Affects Version/s: 2.1.13 > Character encoding does not follow JTidy propert

Re: Spring properties placeholder (was Re: [jira] [Commented] (COCOON3-129) Create an example to send a mail via cocoon)

2013-07-28 Thread Piratenvisier
Thank you Thorsten, after a lot of integration hazzle, I decided to keep the cocoon sitemap out of the Wicket application, only using in the application a programmed pipeline returning back wicket-conform Output. At the moment I use a pipeline with a JAXBgenerator a Transformer and a

Spring properties placeholder (was Re: [jira] [Commented] (COCOON3-129) Create an example to send a mail via cocoon)

2013-07-27 Thread Thorsten Scherler
You find the docu about it in http://cocoon.apache.org/subprojects/configuration/spring-configurator/index.html specially the part http://cocoon.apache.org/subprojects/configuration/spring-configurator/1310_1_1.html where the properties matching is explained in detail. In short I guess you do

Properties replacement (was Re: Connecting 2 blocks with C3.0)

2013-02-25 Thread Thorsten Scherler
the filtering and replacing the properties. However in our latest project we have dropped a bit the configuration of cocoon in terms of properties from META-INF/cocoon/properties/xxx.properties and use a central place for the configuration. This allows to use the project specific properties in a wide range

[jira] [Assigned] (COCOON-2222) Add SaxParser configuration properties

2012-09-07 Thread Thorsten Scherler (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thorsten Scherler reassigned COCOON-: - Assignee: Thorsten Scherler Add SaxParser configuration properties

[jira] [Closed] (COCOON-2222) Add SaxParser configuration properties

2012-09-07 Thread Thorsten Scherler (JIRA)
1381963. Add SaxParser configuration properties -- Key: COCOON- URL: https://issues.apache.org/jira/browse/COCOON- Project: Cocoon Issue Type: Improvement Components

Re: c3 - I18nTransformer and xhtml markup in properties

2012-03-05 Thread Thorsten Scherler
On 03/02/2012 09:27 AM, Francesco Chicchiriccò wrote: On 01/03/2012 18:41, Thorsten Scherler wrote: Hi all, we are using the i18n transformer in our app but now we need to add xhtml tags in the resource bundle. However I tried with message.test2 = This is h2message.test3/h2 message.test3 =

Re: c3 - I18nTransformer and xhtml markup in properties

2012-03-02 Thread Francesco Chicchiriccò
On 01/03/2012 18:41, Thorsten Scherler wrote: Hi all, we are using the i18n transformer in our app but now we need to add xhtml tags in the resource bundle. However I tried with message.test2 = This is h2message.test3/h2 message.test3 = This is lt;h2gt;message.test4lt;/h2gt; but the

Re: c3 - I18nTransformer and xhtml markup in properties

2012-03-02 Thread Jasha Joachimsthal
correct to include markup in a language catalog? Would this mean that markup is language-dependent? In JSTL resource bundle tags (spring:message, fmt:message) you often have options to not XML-escape the properties. It's cleaner to separate the markup from the message, but sometimes it can be a PITA

c3 - I18nTransformer and xhtml markup in properties

2012-03-01 Thread Thorsten Scherler
Hi all, we are using the i18n transformer in our app but now we need to add xhtml tags in the resource bundle. However I tried with message.test2 = This is h2message.test3/h2 message.test3 = This is lt;h2gt;message.test4lt;/h2gt; but the problem is that is does not get parsed correctly. Can

[jira] Commented: (COCOON-2297) Character encoding does not follow JTidy properties

2010-08-25 Thread Nico Verwer (JIRA)
. Sorry for the confusion. Are there still committers for Cocoon 2.1 who are willing to pick this up? Character encoding does not follow JTidy properties --- Key: COCOON-2297 URL: https://issues.apache.org/jira/browse

[jira] Created: (COCOON-2297) Character encoding does not follow JTidy properties

2010-08-13 Thread Nico Verwer (JIRA)
Character encoding does not follow JTidy properties --- Key: COCOON-2297 URL: https://issues.apache.org/jira/browse/COCOON-2297 Project: Cocoon Issue Type: Bug Components: Blocks

[jira] Updated: (COCOON-2297) Character encoding does not follow JTidy properties

2010-08-13 Thread Nico Verwer (JIRA)
does not follow JTidy properties --- Key: COCOON-2297 URL: https://issues.apache.org/jira/browse/COCOON-2297 Project: Cocoon Issue Type: Bug Components: Blocks: HTML Affects

[jira] Closed: (COCOON3-49) Four pom.xml files contain duplicate dependencies or deprecated properties.

2010-03-09 Thread Reinhard Poetz (JIRA)
-context from the parent POM. Four pom.xml files contain duplicate dependencies or deprecated properties. --- Key: COCOON3-49 URL: https://issues.apache.org/jira/browse/COCOON3-49

[jira] Assigned: (COCOON3-49) Four pom.xml files contain duplicate dependencies or deprecated properties.

2010-03-09 Thread Reinhard Poetz (JIRA)
duplicate dependencies or deprecated properties. --- Key: COCOON3-49 URL: https://issues.apache.org/jira/browse/COCOON3-49 Project: Cocoon 3 Issue Type: Bug

[jira] Issue Comment Edited: (COCOON3-49) Four pom.xml files contain duplicate dependencies or deprecated properties.

2010-03-09 Thread Reinhard Poetz (JIRA)
: --- Patch applied, except removing spring-context from the parent POM which broke my build. was (Author: reinh...@apache.org): Patch applied, except removing spring-context from the parent POM. Four pom.xml files contain duplicate dependencies or deprecated properties

[jira] Created: (COCOON3-49) Four pom.xml files contain duplicate dependencies or deprecated properties.

2010-01-29 Thread Charles Yates (JIRA)
Four pom.xml files contain duplicate dependencies or deprecated properties. --- Key: COCOON3-49 URL: https://issues.apache.org/jira/browse/COCOON3-49 Project: Cocoon 3

[jira] Updated: (COCOON3-49) Four pom.xml files contain duplicate dependencies or deprecated properties.

2010-01-29 Thread Charles Yates (JIRA)
or deprecated properties. --- Key: COCOON3-49 URL: https://issues.apache.org/jira/browse/COCOON3-49 Project: Cocoon 3 Issue Type: Bug Components: cocoon

Re: Using spring configurator (for properties) in block

2009-02-02 Thread Reinhard Pötz
. Example: map:generate src=file://${repository.dir.flyerdefinitions}/{1}.xml file:///\\$%7brepository.dir.flyerdefinitions%7d\%7b1%7d.xml / So I created following property file in /META-INF/cocoon/properties/application.properties repository.dir=D:/_testdata_

Using spring configurator (for properties) in block

2009-01-28 Thread Robby Pelssers
=file://${repository.dir.flyerdefinitions}/{1}.xml file:///\\$%7brepository.dir.flyerdefinitions%7d\%7b1%7d.xml / So I created following property file in /META-INF/cocoon/properties/application.properties repository.dir=D:/testdata repository.dir.released=${repository.dir}/XML Repository

[jira] Created: (COCOON-2222) Add SaxParser configuration properties

2008-07-17 Thread Robin Wyles (JIRA)
Add SaxParser configuration properties -- Key: COCOON- URL: https://issues.apache.org/jira/browse/COCOON- Project: Cocoon Issue Type: Improvement Components: * Cocoon Core Affects

[jira] Updated: (COCOON-2222) Add SaxParser configuration properties

2008-07-17 Thread Robin Wyles (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robin Wyles updated COCOON-: Attachment: sax-parser-config.patch Patch adds configuration properties

Re: Use case for ${org.apache.cocoon.blocks.[BLOCK_NAME].resources} style properties

2008-04-15 Thread Reinhard Poetz
Carsten Ziegeler wrote: Reinhard Poetz wrote: I've just started to move the deployment of blocks into a ServletContextListener and came across a (for me) unkown feature that gives access to the path of blocks in Spring properties: This feature was introduced by Carsten as part of this SVN

Re: Use case for ${org.apache.cocoon.blocks.[BLOCK_NAME].resources} style properties

2008-04-15 Thread Carsten Ziegeler
Reinhard Poetz wrote: Carsten Ziegeler wrote: Reinhard Poetz wrote: I've just started to move the deployment of blocks into a ServletContextListener and came across a (for me) unkown feature that gives access to the path of blocks in Spring properties: This feature was introduced

Use case for ${org.apache.cocoon.blocks.[BLOCK_NAME].resources} style properties

2008-04-10 Thread Reinhard Poetz
I've just started to move the deployment of blocks into a ServletContextListener and came across a (for me) unkown feature that gives access to the path of blocks in Spring properties: This feature was introduced by Carsten as part of this SVN commit http://cocoon.markmail.org/message

Re: Use case for ${org.apache.cocoon.blocks.[BLOCK_NAME].resources} style properties

2008-04-10 Thread Carsten Ziegeler
Reinhard Poetz wrote: I've just started to move the deployment of blocks into a ServletContextListener and came across a (for me) unkown feature that gives access to the path of blocks in Spring properties: This feature was introduced by Carsten as part of this SVN commit http

Re: Configuration handling in 2.2 (properties etc.)

2007-01-21 Thread Carsten Ziegeler
Giacomo Pati wrote: On Fri, 29 Dec 2006, Carsten Ziegeler wrote: I removed the factory :) as it is not needed anymore. We use Spring as the factory and spring generates new FileGenerators for us. So the FileGenerator from trunk is a spring managed bean and not an avalon component anymore.

Re: Configuration handling in 2.2 (properties etc.)

2007-01-19 Thread Giacomo Pati
On Fri, 29 Dec 2006, Carsten Ziegeler wrote: I removed the factory :) as it is not needed anymore. We use Spring as the factory and spring generates new FileGenerators for us. So the FileGenerator from trunk is a spring managed bean and not an avalon component anymore. IIRC Spring doesn't

Re: Configuration handling in 2.2 (properties etc.)

2006-12-30 Thread Carsten Ziegeler
Ralph Goers wrote: Carsten Ziegeler wrote: I removed the factory :) as it is not needed anymore. We use Spring as the factory and spring generates new FileGenerators for us. So the FileGenerator from trunk is a spring managed bean and not an avalon component anymore. So that means the

Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Carsten Ziegeler
In the last months we changed the handling of properties and configurations files several times. The current implementation is a clean solution which reads configuration files from the classpath. While this is a very nice solution, especially for distributing components, it has the drawback

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Reinhard Poetz
Carsten Ziegeler wrote: In the last months we changed the handling of properties and configurations files several times. The current implementation is a clean solution which reads configuration files from the classpath. While this is a very nice solution, especially for distributing components

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Carsten Ziegeler
Reinhard Poetz schrieb: Carsten Ziegeler wrote: In the last months we changed the handling of properties and configurations files several times. The current implementation is a clean solution which reads configuration files from the classpath. While this is a very nice solution, especially

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Ralph Goers
like they are in 2.1. I see that the store sizes have been set up to do this, but everything in 2.1's src/webapp/WEB-INF/properties/core.properties needs to also be reflected in trunk, unless they no longer apply. Speaking of pooling, (well, we weren't really, but I don't want to start

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Luca Morandini
Carsten Ziegeler wrote: In the last months we changed the handling of properties and configurations files several times. The current implementation is a clean solution which reads configuration files from the classpath. While this is a very nice solution, especially for distributing components

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Luca Morandini
. The question is if we want to provide this extra location or not? I'm in the not camp. Starting with 2.2 there shouldn't be any Cocoon applications anymore that are not developed as blocks. The only exception from this rule of decentralization is Spring properties in WEB-INF/cocoon/spring

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Carsten Ziegeler
Luca Morandini wrote: Carsten Ziegeler wrote: In the last months we changed the handling of properties and configurations files several times. The current implementation is a clean solution which reads configuration files from the classpath. While this is a very nice solution, especially

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Carsten Ziegeler
. These values should all be parameterized like they are in 2.1. I see that the store sizes have been set up to do this, but everything in 2.1's src/webapp/WEB-INF/properties/core.properties needs to also be reflected in trunk, unless they no longer apply. I agree, we should use the same properties from

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Carsten Ziegeler
I tend to agree with Luca on this, so I would like to add support for reading properties from WEB-INF/cocoon/properties/*.properties and WEB-INF/cocoon/spring/*.properties again (of course with additional support of running modes). If noone is against it, I'll add it in the next days. I think

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Reinhard Poetz
this is not the deal. The question is if we want to provide this extra location or not? I'm in the not camp. Starting with 2.2 there shouldn't be any Cocoon applications anymore that are not developed as blocks. The only exception from this rule of decentralization is Spring properties in WEB-INF

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Reinhard Poetz
Carsten Ziegeler wrote: I tend to agree with Luca on this, so I would like to add support for reading properties from WEB-INF/cocoon/properties/*.properties and WEB-INF/cocoon/spring/*.properties at least this works for me (otherwise the RCL plugin couldn't work). again (of course

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Carsten Ziegeler
Reinhard Poetz wrote: Carsten Ziegeler wrote: I tend to agree with Luca on this, so I would like to add support for reading properties from WEB-INF/cocoon/properties/*.properties and WEB-INF/cocoon/spring/*.properties at least this works for me (otherwise the RCL plugin couldn't work

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Vadim Gritsenko
this is not the deal. The question is if we want to provide this extra location or not? I'm in the not camp. Starting with 2.2 there shouldn't be any Cocoon applications anymore that are not developed as blocks. The only exception from this rule of decentralization is Spring properties in WEB-INF

Re: Configuration handling in 2.2 (properties etc.)

2006-12-29 Thread Ralph Goers
Carsten Ziegeler wrote: I removed the factory :) as it is not needed anymore. We use Spring as the factory and spring generates new FileGenerators for us. So the FileGenerator from trunk is a spring managed bean and not an avalon component anymore. So that means the components are no longer

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-14 Thread Luca Morandini
Ralph Goers wrote: Luca Morandini wrote: So, the chain you propose is (sorted by order of loading): 1) WEB-INF/classes/META-INF/cocoon/properties (block-wide stuff). 2) WEB-INF/classes/cocoon/properties (project-wide stuf). In truth, I don't find the use of classes for configuration stuff

Order of properties files loading in 2.2 (yes, again !)

2006-12-14 Thread Luca Morandini
/webapp/WEB-INF/lib/cocoon-core-2.2.0-M3-SNAPSHOT.jar!/META-INF/cocoon/properties/cocoon-core-store.properties] 2) file [C:\projects\analytics\blocks\cocoon-trunk\build\webapp\WEB-INF\classes\META-INF\cocoon\properties\core.properties] 3) URL [jar:file:/C:/projects/analytics/blocks/cocoon-trunk

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-13 Thread Carsten Ziegeler
Ralph Goers schrieb: Luca Morandini wrote: So, the chain you propose is (sorted by order of loading): 1) WEB-INF/classes/META-INF/cocoon/properties (block-wide stuff). 2) WEB-INF/classes/cocoon/properties (project-wide stuf). In truth, I don't find the use of classes for configuration

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Giacomo Pati
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carsten Ziegeler wrote: Vadim Gritsenko wrote: Carsten Ziegeler wrote: Have a look at the core.properties file in the cocoon-core module. Just put a properties file with the appropriate configuration into WEB-INF/cocoon/properties. This should

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Carsten Ziegeler
Giacomo Pati wrote: This raises the question if we need this? I think we should readd the support for reading properties from WEB-INF/cocoon/properties. IIRC we mentioned putting those into WEB-INF/classes/META-INF/cocoon/properties Yes, you're absolutely right! This brings back my

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Carsten Ziegeler
Luca Morandini wrote: Remember to update the comments in the source code of SettingsBeanFactoryPostProcessor.java then, because they still state that WEB-INF/cocoon/properties is supported in the fall-back chain of properties loading. Yepp, thanks for the info - I'll take care

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Luca Morandini
Carsten Ziegeler wrote: Luca Morandini wrote: One issue, though: since the property loading mechanism uses classpath:° protocol, property files are read in alphabetical order, which means I might have my per-project properties ruined by the addition of a block, unless I call them

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Carsten Ziegeler
Luca Morandini schrieb: Carsten Ziegeler wrote: Luca Morandini wrote: One issue, though: since the property loading mechanism uses classpath:° protocol, property files are read in alphabetical order, which means I might have my per-project properties ruined by the addition of a block

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Luca Morandini
Giacomo Pati wrote: Carsten Ziegeler wrote: Luca Morandini wrote: This was neatly solved by the use of WEB-INF/cocoon/properties, since it was loaded after the classpath:* chain. Yes, you're right. Hmm, perhaps we should load properties from WEB-INF/classes last. I'll have a look

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Luca Morandini
Carsten Ziegeler wrote: Luca Morandini schrieb: Carsten Ziegeler wrote: Luca Morandini wrote: This was neatly solved by the use of WEB-INF/cocoon/properties, since it was loaded after the classpath:* chain. Yes, you're right. Hmm, perhaps we should load properties from WEB-INF/classes

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Mark Lundquist
On Dec 12, 2006, at 7:33 AM, Luca Morandini wrote: In truth, I don't find the use of classes for configuration stuff done outside JARs particularly intuitive... +1 —ml—

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Vadim Gritsenko
Mark Lundquist wrote: On Dec 12, 2006, at 7:33 AM, Luca Morandini wrote: In truth, I don't find the use of classes for configuration stuff done outside JARs particularly intuitive... +1 me-too/ Vadim

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-12 Thread Ralph Goers
Luca Morandini wrote: So, the chain you propose is (sorted by order of loading): 1) WEB-INF/classes/META-INF/cocoon/properties (block-wide stuff). 2) WEB-INF/classes/cocoon/properties (project-wide stuf). In truth, I don't find the use of classes for configuration stuff done outside JARs

Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-11 Thread Vadim Gritsenko
Carsten Ziegeler wrote: Have a look at the core.properties file in the cocoon-core module. Just put a properties file with the appropriate configuration into WEB-INF/cocoon/properties. This should work. Carsten, Regarding loading of properties from WEB-INF - can you point out where

Re: Cocoon Properties, Re: Cocoon 2.2 Samples Setting MultipartFilter Max Upload Size

2006-12-11 Thread Carsten Ziegeler
Vadim Gritsenko wrote: Carsten Ziegeler wrote: Have a look at the core.properties file in the cocoon-core module. Just put a properties file with the appropriate configuration into WEB-INF/cocoon/properties. This should work. Carsten, Regarding loading of properties from WEB-INF - can

Re: Configuring BlockServlets via properties and sitemap reloading for blocks

2006-10-17 Thread Carsten Ziegeler
Daniel Fagerstrom schrieb: Alexander Klimetschek skrev: 1) I'd like to configure the mountPath to the blocks in the webapp, because the blocks itself are generic; I have tried it with a properties file manually placed in WEB-INF/cocoon/properties that sets the mountPath

Configuring BlockServlets via properties and sitemap reloading for blocks

2006-10-16 Thread Alexander Klimetschek
in the spring-bean config XML file. Now I face two problems: 1) I'd like to configure the mountPath to the blocks in the webapp, because the blocks itself are generic; I have tried it with a properties file manually placed in WEB-INF/cocoon/properties that sets the mountPath

Re: Configuring BlockServlets via properties and sitemap reloading for blocks

2006-10-16 Thread Alexander Klimetschek
Just a follow up: blockContextURL cannot point to an absolute path in the local file sytem yet: b) the blockContextURL should point to the source-folder (like in the sitemap generated by the deployer) so that reloading works on the developer's working directory jetty-run-ouput ... Embedded

Re: Configuring BlockServlets via properties and sitemap reloading for blocks

2006-10-16 Thread Daniel Fagerstrom
and the mountPath for the two blocks is defined in the spring-bean config XML file. Now I face two problems: 1) I'd like to configure the mountPath to the blocks in the webapp, because the blocks itself are generic; I have tried it with a properties file manually placed in WEB-INF/cocoon/properties that sets

Re: Configuring BlockServlets via properties and sitemap reloading for blocks

2006-10-16 Thread Daniel Fagerstrom
Alexander Klimetschek skrev: Just a follow up: blockContextURL cannot point to an absolute path in the local file sytem yet: b) the blockContextURL should point to the source-folder (like in the sitemap generated by the deployer) so that reloading works on the developer's working directory

Re: Properties - on and on

2006-09-06 Thread Carsten Ziegeler
Leszek Gawron wrote: My kid interrupted me in the middle of commits. Just commited that to core. I am sorry for inconvinience. No problem. Hmm I seem to removed the properties at 5pm. The power of distraction. I have also removed cocoon-core-sitemap.xmap from cocoon-webapp - seems cocoon

Re: Properties - on and on

2006-09-06 Thread Leszek Gawron
Carsten Ziegeler wrote: Leszek Gawron wrote: My kid interrupted me in the middle of commits. Just commited that to core. I am sorry for inconvinience. No problem. Hmm I seem to removed the properties at 5pm. The power of distraction. I have also removed cocoon-core-sitemap.xmap from cocoon

Re: Properties - on and on

2006-09-06 Thread Carsten Ziegeler
Leszek Gawron wrote: tricky question: which is the second one if both .xconfs reside in same directory ? :) :) I'm not sure but I think I have added the code to apply them in alphabetical order; but I'll check that, too. Carsten -- Carsten Ziegeler - Open Source Group, SN AG

Properties - on and on

2006-09-05 Thread Leszek Gawron
Why are most properties residing in cocoon-webapp/src/main/webapp/WEB-INF/cocoon/properties instead of cocoon-core/src/main/resources/META-INF/properties? This way if anybody changes anything also both archetypes have to be updated. After all we have property overrides and they do not even

Re: Properties - on and on

2006-09-05 Thread Carsten Ziegeler
Leszek Gawron wrote: Why are most properties residing in cocoon-webapp/src/main/webapp/WEB-INF/cocoon/properties instead of cocoon-core/src/main/resources/META-INF/properties? This way if anybody changes anything also both archetypes have to be updated. After all we have property

Re: Properties - on and on

2006-09-05 Thread Leszek Gawron
Carsten Ziegeler wrote: Leszek Gawron wrote: Why are most properties residing in cocoon-webapp/src/main/webapp/WEB-INF/cocoon/properties instead of cocoon-core/src/main/resources/META-INF/properties? This way if anybody changes anything also both archetypes have to be updated. After all we

Re: Properties - on and on

2006-09-05 Thread Carsten Ziegeler
Leszek Gawron wrote: Ok. I am going to follow what you said and migrate all possible properties to core. Did you remove the properties for the settings with your last commits? I can't find any properties for logging, reloading etc. Carsten -- Carsten Ziegeler - Open Source Group, SN AG

Re: Properties - on and on

2006-09-05 Thread Leszek Gawron
Carsten Ziegeler wrote: Leszek Gawron wrote: Ok. I am going to follow what you said and migrate all possible properties to core. Did you remove the properties for the settings with your last commits? I can't find any properties for logging, reloading etc. My kid interrupted me in the middle

Re: Properties - on and on

2006-09-05 Thread Leszek Gawron
Leszek Gawron wrote: Carsten Ziegeler wrote: Leszek Gawron wrote: Ok. I am going to follow what you said and migrate all possible properties to core. Did you remove the properties for the settings with your last commits? I can't find any properties for logging, reloading etc. My kid

Re: Properties - on and on

2006-09-05 Thread Leszek Gawron
Leszek Gawron wrote: Leszek Gawron wrote: Carsten Ziegeler wrote: Leszek Gawron wrote: Ok. I am going to follow what you said and migrate all possible properties to core. Did you remove the properties for the settings with your last commits? I can't find any properties for logging

Re: more about properties in cocoon 2.2

2006-08-23 Thread Carsten Ziegeler
Daniel Fagerstrom wrote: I don't think it should be a problem for the OSGi stuff. It is probably easy to refactor it so that it use your new stuff. Great :) At least in theory I have solved all problems; I hope to finish the stuff and commit it in the next few days. Now the changes will break

Re: more about properties in cocoon 2.2

2006-08-23 Thread Daniel Fagerstrom
Carsten Ziegeler skrev: Daniel Fagerstrom wrote: I don't think it should be a problem for the OSGi stuff. It is probably easy to refactor it so that it use your new stuff. Great :) At least in theory I have solved all problems; I hope to finish the stuff and commit it in the next few

Re: more about properties in cocoon 2.2

2006-08-23 Thread Leszek Gawron
Daniel Fagerstrom wrote: Why not expose core also with a lighter interface? I can't follow you here, what lighter interface? Let's define that interface and allow block that do not use spring use instead of ApplicationContext. Also, as you write, I do have concerns about big

Re: more about properties in cocoon 2.2

2006-08-23 Thread Leszek Gawron
Carsten Ziegeler wrote: Daniel Fagerstrom wrote: I don't think it should be a problem for the OSGi stuff. It is probably easy to refactor it so that it use your new stuff. Great :) At least in theory I have solved all problems; I hope to finish the stuff and commit it in the next few days.

Re: more about properties in cocoon 2.2

2006-08-23 Thread Carsten Ziegeler
Daniel Fagerstrom wrote: Carsten Ziegeler skrev: Daniel Fagerstrom wrote: I don't think it should be a problem for the OSGi stuff. It is probably easy to refactor it so that it use your new stuff. Great :) At least in theory I have solved all problems; I hope to finish the stuff

Re: more about properties in cocoon 2.2

2006-08-23 Thread Carsten Ziegeler
Leszek Gawron wrote: Carsten Ziegeler wrote: Daniel Fagerstrom wrote: I don't think it should be a problem for the OSGi stuff. It is probably easy to refactor it so that it use your new stuff. Great :) At least in theory I have solved all problems; I hope to finish the stuff and commit it

Re: more about properties in cocoon 2.2

2006-08-23 Thread Daniel Fagerstrom
Leszek Gawron skrev: Daniel Fagerstrom wrote: Why not expose core also with a lighter interface? I can't follow you here, what lighter interface? Let's define that interface and allow block that do not use spring use instead of ApplicationContext. Ok, I understand. My view on this is a

Re: more about properties in cocoon 2.2

2006-08-22 Thread Carsten Ziegeler
Leszek Gawron wrote: I dislike that idea a lot, because: 1. it is error prone. Agreed 2. It's annoying. In order to load my web application context separately (because of the filters not finding WebApplicationContext) I had to split META-INF/spring into META-INF/spring and

Re: more about properties in cocoon 2.2

2006-08-22 Thread Daniel Fagerstrom
Carsten Ziegeler skrev: Leszek Gawron wrote: ... One VERY important question concerning cocoon core? Why is it based on spring's BeanFactory and not on ApplicationContext? I propose to switch from CocoonBeanFactory to CocoonApplicationContext. WDYT? I'm +1 for this - the original

Re: more about properties in cocoon 2.2

2006-08-22 Thread Reinhard Poetz
Daniel Fagerstrom wrote: Now, having said that, I'm completely aware about that the core still is to complicated. IMO we need to take the consequences of our move to Spring and try to remove as many Avalon dependencies as possible. The ideal would be to remove all Avalon dependencies from

Re: more about properties in cocoon 2.2

2006-08-22 Thread Daniel Fagerstrom
Carsten Ziegeler skrev: ... Yes, that's true - now there are some problems here (as always). I started to implement a spring 2.0 xml namespace handler which would allow to plugin the old avalon configuration into a spring configuration using an own xml element, like avalon:components

Re: more about properties in cocoon 2.2

2006-08-22 Thread Leszek Gawron
Daniel Fagerstrom wrote: Carsten Ziegeler skrev: Leszek Gawron wrote: ... One VERY important question concerning cocoon core? Why is it based on spring's BeanFactory and not on ApplicationContext? I propose to switch from CocoonBeanFactory to CocoonApplicationContext. WDYT? I'm +1

Re: more about properties in cocoon 2.2

2006-08-22 Thread Leszek Gawron
Carsten Ziegeler wrote: Leszek Gawron wrote: I dislike that idea a lot, because: 1. it is error prone. Agreed 2. It's annoying. In order to load my web application context separately (because of the filters not finding WebApplicationContext) I had to split META-INF/spring into

Re: more about properties in cocoon 2.2

2006-08-22 Thread Carsten Ziegeler
Leszek Gawron wrote: I mean if you want to use spring for cocoon components you put your files into META-INF/spring/*.xml and after deployment cocoon will nicely pick them up. Still as most of the functionality that you are used to with WebApplicationContext does not work you create a

Re: more about properties in cocoon 2.2

2006-08-22 Thread Carsten Ziegeler
Daniel Fagerstrom wrote: Carsten Ziegeler skrev: ... Yes, that's true - now there are some problems here (as always). I started to implement a spring 2.0 xml namespace handler which would allow to plugin the old avalon configuration into a spring configuration using an own xml element, like

Re: more about properties in cocoon 2.2

2006-08-22 Thread Daniel Fagerstrom
Leszek Gawron skrev: Daniel Fagerstrom wrote: Carsten Ziegeler skrev: Leszek Gawron wrote: ... One VERY important question concerning cocoon core? Why is it based on spring's BeanFactory and not on ApplicationContext? I propose to switch from CocoonBeanFactory to

Re: more about properties in cocoon 2.2

2006-08-22 Thread Daniel Fagerstrom
Carsten Ziegeler skrev: Daniel Fagerstrom wrote: Carsten Ziegeler skrev: ... Yes, that's true - now there are some problems here (as always). I started to implement a spring 2.0 xml namespace handler which would allow to plugin the old avalon configuration into a spring configuration using an

Re: more about properties in cocoon 2.2

2006-08-21 Thread Carsten Ziegeler
Leszek Gawron schrieb: Carsten Ziegeler wrote: Leszek Gawron wrote: Yes, I like your idea. Just one simple include-config and that's it. And the use-default-dirs can then be used to turn off including from the default location which is on by default (If the directories do not exists this is

Re: more about properties in cocoon 2.2

2006-08-21 Thread Carsten Ziegeler
Leszek Gawron schrieb: Carsten Ziegeler wrote: Leszek Gawron wrote: Yes, I like your idea. Just one simple include-config and that's it. And the use-default-dirs can then be used to turn off including from the default location which is on by default (If the directories do not exists this is

Re: more about properties in cocoon 2.2

2006-08-21 Thread Leszek Gawron
=myblock -DgroupId=com.mycompany cd myblock mkdir src/main/resources/META-INF/properties/ echo property1=value src/main/resources/META-INF/properties/some.properties mvn install cocoon:deploy jetty:run If locally testing a block the resources from src/ are not copied to target folder

Re: more about properties in cocoon 2.2

2006-08-21 Thread Leszek Gawron
Leszek Gawron wrote: One VERY important question concerning cocoon core? Why is it based on spring's BeanFactory and not on ApplicationContext? I propose to switch from CocoonBeanFactory to CocoonApplicationContext. WDYT? I'm +1 for this - the original code I wrote actually used a

Re: more about properties in cocoon 2.2

2006-08-21 Thread Carsten Ziegeler
Leszek Gawron wrote: Moreover the root context should be at least a ConfigurableWebApplicationContext that should be registered properly in servlet context. For now none of spring related servlet filters work because they all rely on WebApplicationContextUtils [1] (and this one throws not

Re: more about properties in cocoon 2.2

2006-08-21 Thread Leszek Gawron
Carsten Ziegeler wrote: Leszek Gawron wrote: Moreover the root context should be at least a ConfigurableWebApplicationContext that should be registered properly in servlet context. For now none of spring related servlet filters work because they all rely on WebApplicationContextUtils [1] (and

Re: more about properties in cocoon 2.2

2006-08-20 Thread Carsten Ziegeler
Leszek Gawron wrote: For me the property-dir attribute smells a little bit. Yepp. +1 for removing it completly. I wanted to propose some kind of map:include. That would fix another bug I mentioned lately (mvn cocoon:deploy jetty:run does not pick up local properties for tested block

Re: more about properties in cocoon 2.2

2006-08-20 Thread Leszek Gawron
Carsten Ziegeler wrote: Leszek Gawron wrote: For me the property-dir attribute smells a little bit. Yepp. +1 for removing it completly. I wanted to propose some kind of map:include. That would fix another bug I mentioned lately (mvn cocoon:deploy jetty:run does not pick up local properties

Re: more about properties in cocoon 2.2

2006-08-20 Thread Carsten Ziegeler
first and then passed on as a parameter for bean factory to be created. Building already a spring context you find that you need to include even more properties. One VERY important question concerning cocoon core? Why is it based on spring's BeanFactory and not on ApplicationContext? I

Re: more about properties in cocoon 2.2

2006-08-20 Thread Leszek Gawron
. For now it looks a little bit like chicken egg problem: the settings are created first and then passed on as a parameter for bean factory to be created. Building already a spring context you find that you need to include even more properties. One VERY important question concerning cocoon core? Why

  1   2   >