I want to add validations to my forms. But the problem I have is in
these forms I have notify actions, and this notifys should only be
called if the validation is ok.

for example:
                <sx:submit targets="orders" 
notifyTopics="/closeNewOrder,/openOrders" ... />

The form action:

        <action name="CreateOrder" class="newOrderController"
method="createOrder">

             <result type="redirectAction">
                <param name="actionName">listOrders</param>
                </result>

            <result name="input">OrderNewForm.jsp</result>
            <result name="error">OrderNewForm.jsp</result>

        </action>

with closeNewOrder I hide the form and with openOrders I open a div
with a list of orders. The point is that if the validation is not ok
then the orders list shouldn't be opened.

Any idea?
Thanks!

Sergio

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

Reply via email to