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: JSF Validator on select menus only getting used once.: msg#00139

apache.shale.user

Subject: RE: JSF Validator on select menus only getting used once.

Is it possible that the validation only runs if the value of the
pulldown has changed? I think I remember that happening to me. I
believe that the required check runs no matter what, but the validations
only run if values change.


JB

-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@xxxxxxxxx]
Sent: Thursday, March 29, 2007 1:54 PM
To: user@xxxxxxxxxxxxxxxx
Subject: Re: JSF Validator on select menus only getting used once.

That's pretty weird. It looks ok as far as I can tell.
I would also think that each component would have its own instance of
the validator.

Maybe there's something strange in your validator code? Are you
maintaining any kind of static state?


On 3/29/07, Jason Vincent <jtvincent@xxxxxxxxx> wrote:
> Hi all,
>
> I have two pulldown select menus that are using the same validator.
> when submitting the page, it appears that only the first select is
> getting validated and the second isn't validated at all. This was
> confirmed by placing a breakpoint on the "validate" method of my
> custom validator, called "selectOneMenuValueValidator".
>
> The validator is checking that the selected value isn't the first item

> in the list.
>
> Is there something I need to reset once the validation passes on the
first menu?
>
> Thanks,
> Jason
>
>
>
> <h:panelGrid columns="2" columnClasses="columnRight
> optionLabel, columnLeft">
> <h:outputText
value="#{messages['merchantStatus.status']}"/>
> <h:panelGroup>
> <h:selectOneMenu id="status"
> value="#{batchPartnerSetup$merchantStatus.selectedStatusId}">
> <f:selectItems
> value="#{batchPartnerSetup$merchantStatus.statusPulldown}"/>
> <f:validator
> validatorId="selectOneMenuValueValidator"/>
> </h:selectOneMenu>
> <h:message for="status"
> errorClass="validationError" fatalClass="validationError"
> warnClass="validationError"
> infoClass="validationError"/>
> </h:panelGroup>
> <h:outputText
> value="#{messages['merchantStatus.statusComment']}"/>
> <h:panelGroup>
> <h:selectOneMenu id="comment"
> value="#{batchPartnerSetup$merchantStatus.selectedStatusComment}">
> <f:selectItems
> value="#{batchPartnerSetup$merchantStatus.statusCommentPulldown}"/>
> <f:validator
> validatorId="selectOneMenuValueValidator"/>
> </h:selectOneMenu>
> <h:message for="comment"
> errorClass="validationError" fatalClass="validationError"
> warnClass="validationError"
> infoClass="validationError"/>
> </h:panelGroup>
> </h:panelGrid>
>



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

Recently Viewed:
video.h264.deve...    technology.erps...    drivers.hostap/...    user-groups.lin...    games.railroad-...    handhelds.linux...    lang.harbour.de...    recreation.radi...    culture.publica...    xfree86.devel/2...    music.john-cage...    otrs.cvs/2003-0...    network.e-smith...    asplinux.suppor...    qnx.openqnx.dev...    ietf.nfsv4/2005...    editors.vim/200...    kde.devel.kopet...    web.zope.zwiki....    freebsd.devel.m...    java.xdoclet.de...    php.simpletest....    bacula.user/200...    security.virus....   
Home | blog view | USPTO Patent Archive | 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