It seems like you are committed to the dojo route so the validation is an
issue.  I would suggest using Jquery or Prototype to wire up the Ajax calls
and handle the events yourself.  Especially for an interface that is
javascript heavy.  You post to a struts action and use the json result
plugin.  Then I can inspect native collections like actionErrors as
javascript objects.

I don't think it helps you but may something to look at.



Sergio Sánchez González wrote:
> 
> Taking a look to this
> https://issues.apache.org/struts/browse/WW-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> 
> I understand the notify is going to be called anyway, either the
> validation it's ok or not. Then the only way to avoid the notification
>  is using javascript to validated the form, and submitting the call
> from javascript too if it validates.
> 
> 
> 2008/12/2 Sergio Sánchez González <[EMAIL PROTECTED]>:
>> 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">
>>                listOrders
>>                </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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-Notify-after-validation-tp20790728p20821790.html
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