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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Required-validator-dosen%27t-work-tf4952011.html#a14212810
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to