Hi Baskar,
as far as I know the group widget was officially added (of was in favor of the
struct ) when cocoon 2.1.7 was released. So I guess you will have to use struct
in you case if you want to use 2.1.5.something.
Greetz,
Jeroen
[EMAIL PROTECTED] wrote:
HI Jason,
Is this option available with cocoon 2.1.5*?
Because we are getting the following error
/mc/Demo/groupTest
full exception chain stacktrace
Original Exception: java.lang.ClassNotFoundException: No ClassLoaders
found for: org.apache.cocoon.forms.formmodel.GroupDefinitionBuilder
at
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:275)
at
org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoade
r3.java:178)
at
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.j
ava:132)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Sorry with respect to submit widget we have not added the part of the
code
Let me give the definition file again
<?xml version="1.0" encoding="utf-8"?>
<fd:form xmlns="http://apache.org/cocoon/forms/1.0#definition"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
<fd:widgets>
<fd:submit id="submit-widget" action-command="sub" />
<fd:field id="description_text" required="true">
<fd:label>
<i18n:text>test</i18n:text>
</fd:label>
<fd:datatype base="string" />
</fd:field>
<fd:field id="description_selection_list" required="true">
<fd:label>
<i18n:text>Selection List</i18n:text>
</fd:label>
<fd:datatype base="string" />
<fd:selection-list>
<!-- TODO remove the below code -->
<fd:item value="1">
<fd:label><i18n:text>test</i18n:text></fd:label>
</fd:item>
<fd:item value="2">
<fd:label><i18n:text>test2</i18n:text></fd:label>
</fd:item>
</fd:selection-list>
</fd:field>
<!-- case widget, with _c suffix -->
<fd:class id="desc_class">
<fd:widgets>
<fd:field id="description_c" required="true">
<fd:datatype base="string" />
</fd:field>
</fd:widgets>
</fd:class>
<fd:class id="desc_cass">
<fd:widgets>
<fd:union id="description_u" case="description_c">
<fd:widgets>
<fd:group id="visible">
<fd:widgets>
<fd:field id="description">
<fd:datatype base="string" />
</fd:field>
</fd:widgets>
</fd:group>
<fd:group id="disabled">
<fd:widgets></fd:widgets>
</fd:group>
<fd:group id="hidden">
<fd:widgets></fd:widgets>
</fd:group>
</fd:widgets>
</fd:union>
<fd:widgets>
</fd:class>
</fd:widgets>
</fd:form>
-----Original Message-----
From: Jason Johnston [mailto:[EMAIL PROTECTED]
Sent: Monday, September 12, 2005 8:12 PM
To: users@cocoon.apache.org
Subject: Re: Problems with fd:union
[EMAIL PROTECTED] wrote:
We are facing a problem with fd:union
If we use fd:union then the fd:submit functionality seems to be not
working.
What about it is not working? Your example code did not include any
fd:submit widgets, so it's not clear what you're trying to do.
One more problem is if we mention fd:group then it is giving the
following exception
org.apache.avalon.framework.CascadingException: Unknown kind of widget
'group'
Are you able to use fd:group in other places, i.e. not within fd:union?
If it doesn't work elsewhere either, then my guess is your xconf is
missing the component definition for the group widget (perhaps as the
result of upgrading from a release before fd:group was added?). Check
that your cocoon.xconf contains the following:
<!--+
| forms's FormManager component
+-->
<forms-formmanager>
<widgets>
...
<widget name="group"
src="org.apache.cocoon.forms.formmodel.GroupDefinitionBuilder"/>
...
</widgets>
</forms-formmanager>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL
PROTECTED] immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
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]