Re: Container validation

[email protected]
Newsgroups gmane.comp.cms.jahia.template
Message-ID <OFDC2842E6.F0D57DF6-ONC12570C7.003BF424-C12577E9.003D9B12@commaro.com>
The Struts Validator integration in the Add_ContainerEngine is very 
specific. We are making use of the JahiaContentContainerFacade object, 
which is only available in this engine context. Furthermore the Java beans 
are specific as they are getting the values out of this facade, so you 
can't use beans, which derive from ContainerValidatorBase, like exlained 
in the documentation.

However if you have your own form, you could use Struts in a standard way. 


Regards,
Benjamin

Cédric Mailleux <[email protected]> wrote on 28.11.2005 10:50:00:

> Hi Sebastien,
> 
> The validation framework is only called by the jahia engine, so if you 
> directly use a form handler and want some valdiation you must look at 
> the code in the Add_ContainerEngine.java source in the 
> processCurrentScreen method under the save case.
> 
> Cheers,
> 
> Cédric
> 
> Sébastien Jaussaud wrote:
> 
> > Hi,
> > i have a form handler which add data in containerList. I woud know if 
> > struts validation work with this, or if it is just for validation 
> > container when the container is edited in jahia popup interface
> > Thanks
> > seb
> >
> 
>------------------------------------------------------------------------
> >
> >No virus found in this incoming message.
> >Checked by AVG Free Edition.
> >Version: 7.1.362 / Virus Database: 267.13.8/184 - Release Date: 
27/11/2005
> > 
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.