You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kenny Chow <ky...@yahoo.com> on 2002/06/12 00:35:03 UTC

XMLForms. classpath not found

Seems XMLForm is getting concern from people. Being
one of them, I have written a set of XMLForms for
interest; but I fail compiling my Action (written the
same way as WizardAction) it says it can't find the 
org.apache.cocoon.validation.* and xmlform.* packages.
 :( The cocoon-2.1-dev.jar doesn't have it. Where
could I grab them?  

--- Piroumian Konstantin <KP...@protek.com>
wrote:
> > From: Yromem.com MailingList
> [mailto:mailinglist@yromem.com] 
> > 
> > What is difficult to me, is to write java code
> juste to one form.
> > when i read the xmlform doc (cocoon), i see that
> even the simple form 
> > need a java code to control flow.
> > so i was dreaming about a simple version of
> xmlform (cocoon) 
> > that a have 
> > a simple flow control for all simple form.
> > 
> > am i wrong ? can i use the xmlform (cocoon)
> without writing 
> > java code to 
> > validate my form ?
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. classpath not found

Posted by Kenny Chow <ky...@yahoo.com>.
Ivelin, 
    Oh, I am using the latest (WizardAction). Really
love the XMLForm and have written one based upon
'form-feedback' for testing -- in which I found
checkbox result does not show on the 'confirm' page.
So I am still figuring it out what's missing. 
    
Good work everyone,
KC

--- Ivelin Ivanov <iv...@apache.org> wrote:
> Kenny,
> 
> 
> Seems like you are working with an older
> WizardAction
> The latest
> org.apache.cocoon.samples.xmlform.WizardAction
> imports
> ...
> // Schematron classes
> import
>
org.apache.cocoon.components.validation.SchemaFactory;
> import
> org.apache.cocoon.components.validation.Schema;
> import
> org.apache.cocoon.components.validation.Validator;
> import
> org.apache.cocoon.components.validation.Violation;
> 
> // Cocoon Form
> import
> org.apache.cocoon.acting.AbstractXMLFormAction;
> import org.apache.cocoon.components.xmlform.Form;
> import
> org.apache.cocoon.components.xmlform.FormListener;
> ...
> 
> 
> Either get the latest code base from anoncvs.
> See "How to Establish your Local Repository"
> http://xml.apache.org/cocoon/contrib.html
> 
> Or download a new snapshot.
> http://cvs.apache.org/snapshots/xml-cocoon2/
> 
> 
> 
> Ivelin
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. classpath not found

Posted by Ivelin Ivanov <iv...@apache.org>.
Kenny,


Seems like you are working with an older WizardAction
The latest org.apache.cocoon.samples.xmlform.WizardAction imports
...
// Schematron classes
import org.apache.cocoon.components.validation.SchemaFactory;
import org.apache.cocoon.components.validation.Schema;
import org.apache.cocoon.components.validation.Validator;
import org.apache.cocoon.components.validation.Violation;

// Cocoon Form
import org.apache.cocoon.acting.AbstractXMLFormAction;
import org.apache.cocoon.components.xmlform.Form;
import org.apache.cocoon.components.xmlform.FormListener;
...


Either get the latest code base from anoncvs.
See "How to Establish your Local Repository"
http://xml.apache.org/cocoon/contrib.html

Or download a new snapshot.
http://cvs.apache.org/snapshots/xml-cocoon2/



Ivelin



Kenny Chow wrote:
> Seems XMLForm is getting concern from people. Being
> one of them, I have written a set of XMLForms for
> interest; but I fail compiling my Action (written the
> same way as WizardAction) it says it can't find the 
> org.apache.cocoon.validation.* and xmlform.* packages.
>  :( The cocoon-2.1-dev.jar doesn't have it. Where
> could I grab them?  
> 
> --- Piroumian Konstantin <KP...@protek.com>
> wrote:
> 
>>>From: Yromem.com MailingList
>>
>>[mailto:mailinglist@yromem.com] 
>>
>>>What is difficult to me, is to write java code
>>
>>juste to one form.
>>
>>>when i read the xmlform doc (cocoon), i see that
>>
>>even the simple form 
>>
>>>need a java code to control flow.
>>>so i was dreaming about a simple version of
>>
>>xmlform (cocoon) 
>>
>>>that a have 
>>>a simple flow control for all simple form.
>>>
>>>am i wrong ? can i use the xmlform (cocoon)
>>
>>without writing 
>>
>>>java code to 
>>>validate my form ?
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 



-- 

-= Ivelin =-


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. classpath not found

Posted by Ivelin Ivanov <iv...@apache.org>.
Good point Ken.

This is true. validation and xmlform were moved under components.

WizardAction is fixed but I haven't noticed that the code in the HOWTO 
is not.

My fault that I didn't notify Heidi.


Ivelin


Kenny Chow wrote:
> To whom it may concern,
> 
> The original 'imports' I was using were copied from
> HowtoWizardAction.java on the "howto" page 
> (http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard-4.html)
> which is incorrect. Only the 'imports'  of
> WizardAction is written correctly in the 2.1-dev. The
> following is correct (copied from WizardAction.java).
> The "components" string was missing. Thanks. 
> 
> // Schematron classes
> import
> org.apache.cocoon.components.validation.SchemaFactory;
> import org.apache.cocoon.components.validation.Schema;
> import
> org.apache.cocoon.components.validation.Validator;
> import
> org.apache.cocoon.components.validation.Violation;
> 
> // Cocoon XMLForm
> import org.apache.cocoon.acting.AbstractXMLFormAction;
> import org.apache.cocoon.components.xmlform.Form;
> import
> org.apache.cocoon.components.xmlform.FormListener;
> 
> 
> --- Kenny Chow <ky...@yahoo.com> wrote:
> 
>>Seems XMLForm is getting concern from people. Being
>>one of them, I have written a set of XMLForms for
>>interest; but I fail compiling my Action (written
>>the
>>same way as WizardAction) it says it can't find the 
>>org.apache.cocoon.validation.* and xmlform.*
>>packages.
>> :( The cocoon-2.1-dev.jar doesn't have it. Where
>>could I grab them?  
>>
>>--- Piroumian Konstantin <KP...@protek.com>
>>wrote:
>>
>>>>From: Yromem.com MailingList
>>>
>>>[mailto:mailinglist@yromem.com] 
>>>
>>>>What is difficult to me, is to write java code
>>>
>>>juste to one form.
>>>
>>>>when i read the xmlform doc (cocoon), i see that
>>>
>>>even the simple form 
>>>
>>>>need a java code to control flow.
>>>>so i was dreaming about a simple version of
>>>
>>>xmlform (cocoon) 
>>>
>>>>that a have 
>>>>a simple flow control for all simple form.
>>>>
>>>>am i wrong ? can i use the xmlform (cocoon)
>>>
>>>without writing 
>>>
>>>>java code to 
>>>>validate my form ?
>>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! - Official partner of 2002 FIFA World Cup
>>http://fifaworldcup.yahoo.com
>>
>>
> 
> ---------------------------------------------------------------------
> 
>>Please check that your question  has not already
>>been answered in the
>>FAQ before posting.    
>><http://xml.apache.org/cocoon/faq/index.html>
>>
>>To unsubscribe, e-mail:    
>><co...@xml.apache.org>
>>For additional commands, e-mail:  
>><co...@xml.apache.org>
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 



-- 

-= Ivelin =-


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. classpath not found

Posted by Kenny Chow <ky...@yahoo.com>.
To whom it may concern,

The original 'imports' I was using were copied from
HowtoWizardAction.java on the "howto" page
(http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard-4.html)
which is incorrect. Only the 'imports'  of
WizardAction is written correctly in the 2.1-dev. The
following is correct (copied from WizardAction.java).
The "components" string has to be there. Thanks.

// Schematron classes
import
org.apache.cocoon.components.validation.SchemaFactory;
import org.apache.cocoon.components.validation.Schema;
import
org.apache.cocoon.components.validation.Validator;
import
org.apache.cocoon.components.validation.Violation;

// Cocoon XMLForm
import org.apache.cocoon.acting.AbstractXMLFormAction;
import org.apache.cocoon.components.xmlform.Form;
import
org.apache.cocoon.components.xmlform.FormListener;> //
Schematron classes



> --- Kenny Chow <ky...@yahoo.com> wrote:
> > Seems XMLForm is getting concern from people.
> Being
> > one of them, I have written a set of XMLForms for
> > interest; but I fail compiling my Action (written
> > the
> > same way as WizardAction) it says it can't find
> the 
> > org.apache.cocoon.validation.* and xmlform.*
> > packages.
> >  :( The cocoon-2.1-dev.jar doesn't have it. Where
> > could I grab them?  
> > 
> > --- Piroumian Konstantin <KP...@protek.com>
> > wrote:
> > > > From: Yromem.com MailingList
> > > [mailto:mailinglist@yromem.com] 
> > > > 
> > > > What is difficult to me, is to write java code
> > > juste to one form.
> > > > when i read the xmlform doc (cocoon), i see
> that
> > > even the simple form 
> > > > need a java code to control flow.
> > > > so i was dreaming about a simple version of
> > > xmlform (cocoon) 
> > > > that a have 
> > > > a simple flow control for all simple form.
> > > > 
> > > > am i wrong ? can i use the xmlform (cocoon)
> > > without writing 
> > > > java code to 
> > > > validate my form ?
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > Please check that your question  has not already
> > been answered in the
> > FAQ before posting.    
> > <http://xml.apache.org/cocoon/faq/index.html>
> > 
> > To unsubscribe, e-mail:    
> > <co...@xml.apache.org>
> > For additional commands, e-mail:  
> > <co...@xml.apache.org>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
>
---------------------------------------------------------------------
> Please check that your question  has not already
> been answered in the
> FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:    
> <co...@xml.apache.org>
> For additional commands, e-mail:  
> <co...@xml.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. classpath not found

Posted by Kenny Chow <ky...@yahoo.com>.
To whom it may concern,

The original 'imports' I was using were copied from
HowtoWizardAction.java on the "howto" page 
(http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard-4.html)
which is incorrect. Only the 'imports'  of
WizardAction is written correctly in the 2.1-dev. The
following is correct (copied from WizardAction.java).
The "components" string was missing. Thanks. 

// Schematron classes
import
org.apache.cocoon.components.validation.SchemaFactory;
import org.apache.cocoon.components.validation.Schema;
import
org.apache.cocoon.components.validation.Validator;
import
org.apache.cocoon.components.validation.Violation;

// Cocoon XMLForm
import org.apache.cocoon.acting.AbstractXMLFormAction;
import org.apache.cocoon.components.xmlform.Form;
import
org.apache.cocoon.components.xmlform.FormListener;


--- Kenny Chow <ky...@yahoo.com> wrote:
> Seems XMLForm is getting concern from people. Being
> one of them, I have written a set of XMLForms for
> interest; but I fail compiling my Action (written
> the
> same way as WizardAction) it says it can't find the 
> org.apache.cocoon.validation.* and xmlform.*
> packages.
>  :( The cocoon-2.1-dev.jar doesn't have it. Where
> could I grab them?  
> 
> --- Piroumian Konstantin <KP...@protek.com>
> wrote:
> > > From: Yromem.com MailingList
> > [mailto:mailinglist@yromem.com] 
> > > 
> > > What is difficult to me, is to write java code
> > juste to one form.
> > > when i read the xmlform doc (cocoon), i see that
> > even the simple form 
> > > need a java code to control flow.
> > > so i was dreaming about a simple version of
> > xmlform (cocoon) 
> > > that a have 
> > > a simple flow control for all simple form.
> > > 
> > > am i wrong ? can i use the xmlform (cocoon)
> > without writing 
> > > java code to 
> > > validate my form ?
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
>
---------------------------------------------------------------------
> Please check that your question  has not already
> been answered in the
> FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:    
> <co...@xml.apache.org>
> For additional commands, e-mail:  
> <co...@xml.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>