thus far Struts is committed to dojo but this commitment is bound by including struts2-dojo-plugin-2.1.2.jar.. can you offer any suggestions on implementing (other JS libraries) Prototype to a struts-<Prototype>.plugin
Thanks! Martin Gainty ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Wed, 3 Dec 2008 13:13:21 -0800 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Form Notify after validation > > > 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] > _________________________________________________________________ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008