Grzegorz Kossakowski a écrit :
Sébastien Geindre pisze:
hi all,
i try to mirgate my C2.1 application to C2.2
when i use cforms, i understood that i need to :
- connect my block with the CForms block (i do not use ajax)
<servlet:connections>
<entry key="forms"
value-ref="org.apache.cocoon.forms.impl.servlet"/>
</servlet:connections>
The quesion is to i need to make dependencies in pom.xml maven config
file ?
when i jetty:start , i have this error :
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'fr.meteo.advanced.block': Cannot
resolve reference to bean 'org.apache.cocoon.forms.impl.servlet'
while setting bean property 'connections' with key [forms]; nested
exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'org.apache.cocoon.forms.impl.servlet' is defined
Connections are used to wire up servlets together (you are wiring
forms servlet to your block's servlet). However, before doing that you
need to add forms jar to classpath. That's what exactly Maven takes
care of when you add forms-impl dependency to your pom.xml.
Short answer is: yes, you need to add it to pom as well.
OK, thank you.
I 've found this dependency
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-forms-impl</artifactId>
<version>1.0.0-M3</version>
</dependency>
is it the right one ?
Next question...
I use forms-samples-styling.xsl for transforming my Forms into HTML code
, so i do need the newer version of forms-samples-styling.xsl. But where
can i get it ?
through
<map:transform
src="servlet:forms:/resource/internal/xsl/forms-samples-styling.xsl">
<map:parameter name="forms-resources"
value="{servlet:forms:/resource/external/forms}"/>
</map:transform>
but it do not exist : An Error Occurred
org.apache.cocoon.ProcessingException
resource://org/apache/cocoon/forms/resources/forms-samples-styling.xsl
org.apache.cocoon.ProcessingException: Unable to get transformer handler
for servlet:forms:/resource/internal/xsl/forms-samples-styling.xsl
thanks again.
--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]