The "symptom" of the problem is that "required" validator does not work at all. What a "required" validator should do? If I don't put any value in the text box, it should throw an error message. The "required" validator doesn't work for any type of value. Can anybody use this validator successfully?
On Dec 7, 2007 9:29 PM, Gary Affonso <[EMAIL PROTECTED]> wrote: > Thanks for the code. Still nothing obvious (at least to me). > > What exactly is the *symptom* of the problem? What behavior are you > seeing but not expecting? > > - Gary > > xniit2003 wrote: > > Here's my code :- > > > > in struts.xml file :- > > > > <action name="editChannelGroup" > > class="suds.action.channelgroups.EditChannelGroupAction"> > > <interceptor-ref name="validationWorkflowStack"/> > > <result > > name="input">/channels/channel_group_profile.jsp</result> > > <result > > name="success">/channels/channel_group_profile.jsp</result> > > </action> > > > > in jsp :- > > > > <s:textfield id="channelGroupTO.assocAppID" required="true" > > name="channelGroupTO.assocAppID" theme="simple" size="8" > > value="%{channelGroupTO.assocAppID}"/></td> > > > > in validation xml :- > > > > <field name="channelGroupTO.assocAppID"> > > > > <field-validator type="required"> > > <message>app id should not be null</message> > > </field-validator> > > > > </field> > > > > > > Here "channelGroupTO" is a transfer object, which I am referencing in > Action > > class. So all the values get populated automatically. "assocAppID" is a > long > > attribute. Actually I used "required" type for every data type, but in > any > > case it doesn't work!!. I am facing this error for many days. Can > anybody > > successfully use > > "required" type now? > > > > Gary Affonso wrote: > >> xniit2003 wrote: > >>> Have anybody successfully used "required" validator. > >> Yes. > >> > >> One thing to note about validation is that it *won't* automatically > >> short-circuit if you're not using the workflow interceptor. Without > >> that interceptor validation can fail and your action's execute method > >> will still get called (with that interceptor, validation failures will > >> trigger an "INPUT" response type and your action's execute will not get > >> called). > >> > >> If that's not it, post some more detail about how you're using it. > >> > >> - Gary > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Arpan Debroy AOL Online India Private Ltd RMZ EcoSpace Campus 1A Outer Ring Road, Bellandur, Bangalore - 560037 India Mobile No :+9886006306 on-board :+91 (80) 4035 4528 E-mail : [EMAIL PROTECTED]