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]

Reply via email to