Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [validator] conversion error while validating listbox component's value: msg#00082

apache.shale.user

Subject: Re: [validator] conversion error while validating listbox component's value

i have implemented a workaround for this serverside required problem...
shortly: if validatorscript sets the required attribute, as you say, JSF
won't call my serverside validator when that field's value is empty... to
overcome this, i've commented the validatorscript's required attribute
setting code.. this means JSF can't see that field as required and not call
any required validator for that field... So, how can we call serverside
required validators? I've implemented an
idea<http://wiki.apache.org/myfaces/OptionalValidationFramework>from
myfaces wiki..

Implementation in short; i have developed an
RequiredValidatorChecker component.. it traverses all the component tree and
calls validate methods for found required validators...
i have entered a
blog<http://www.jroller.com/page/hasant?entry=jsf_bypassable_client_and_server>about
this solution...

So, you can think that serverside required validations are being called when
needed...

In fact, the problem is ConverterHelper can not handle array/list types in
current situation... although i can't think of any such scenario, somehow a
validation may be necessary to validate an array/list value.. so, how should
it work in this case? (May be such a scenario is not possible ;) )

Hasan...


On 3/16/07, Gary VanMatre <gvanmatre@xxxxxxxxxxx> wrote:


The server-side "required" commons validator rule is kind of bogus. I've
only seen it useful
for client side validation. This is because JSF requires a value before
it will even invoke
the server side validation logic. A component's validator will not be
invoked if the component doesn't have a value. There is a separate
"required" attribute for components that are EditableValueHolders.

The shale ValidatorScript component, that must be added at the end of the
page, looks through the component tree and toggles on the required attribute
for components that include the shale commons validator required server side
rule. So, the ValidatorScript component is needed even if you are only
using sever side rules.

Gary
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation