Re: XML Forms again

2002-07-05 Thread Ivelin Ivanov



- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 05, 2002 8:34 AM
Subject: XML Forms again


Hello,

>   another issue concerning XML-forms:
>   In the action  for the form processing, the method
>filterRequestParameters(..) should be used for validation that
>   exceeds Schematron validation.
>   Could someone please provide an example, or give an explanation how to
>use this method.
>   I donĀ“t understand if I am supposed to do the validation within this
>method (but why then: "return false if the
>   request parameter should not be filtered), or if something happens
>according to the value returned?
>   What follows is then how to get error messages back?

You will use this method to tell XMLForm to *ignore* certain request
parameters when going through the automatic population and validation.
In most cases you don't need to override this method.

What kind of validation do you need to do which a Schematron schema can't
provide.
You can do additional custom validation in your perform() method.


>   Still I am wondering, if I can use the bean used for the model, outside
> of my FormAction or if it is only
>  possible to use it in this action.

A form and its model are stored in the servlet session or request. You can
get it with Form.lookup( YourFormId )
The XMLFormTransformer accesses the same Form as the action.


Ivelin



  Thanks again for any help!

   miHam



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: XML Forms again

2002-07-05 Thread Piroumian Konstantin

> From: [EMAIL PROTECTED] 
> 
> Hello,
> 
...
> 
>Still I am wondering, if I can use the bean used for the 
> model, outside
> of my FormAction or if it is only
>   possible to use it in this action.

The  indicates the
scope of your instance data (e.g. your bean), so if you set it to 'session'
then your bean should be available everywhere where the session is
available, until you remove it.

Konstantin

> 
>   Thanks again for any help!
> 
>miHam
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>