Johannes, "if you are using validation it is normally that you get two requests. the first request is for validation and the second is the expected request"
but only one request should get to the action logic and not both other wise the action logic would be called twice and this is what is happening .... I don't know if the multiple requests are being made from the client side or the server side (meaning something is not right within the plugin) but I have noticed is: sj:submit by itself without using the validation or sj:dialog (form inside the sj:dialog) is not creating two requests. so I suspect sj:submit when used with validation infact making two calls which is in turn calling the action twice. Let me know what you think? On Tue, Mar 15, 2011 at 12:57 PM, Muneer Malik <tutti...@gmail.com> wrote: > I tried the getJSON as well, >> the action is being called twice this means my logic would execute twice >> for >> an AJAX call. >> >> INFO [http-8080-6] >> net.polymorphic.emr.common.Validation.EsignCodeValidator >> validate- Esign Validator being used >> DEBUG [http-8080-6] net.polymorphic.emr.workflow.action.insertHeparinAjax >> getJSON- in a getJson >> DEBUG [http-8080-6] net.polymorphic.emr.workflow.action.insertHeparinAjax >> getJSON- in a getJson - completed >> INFO [http-8080-5] >> net.polymorphic.emr.common.Validation.EsignCodeValidator >> validate- Esign Validator being used >> DEBUG [http-8080-5] net.polymorphic.emr.workflow.action.insertHeparinAjax >> <init>- In the constructor >> INFO [http-8080-5] >> net.polymorphic.emr.common.Validation.EsignCodeValidator >> validate- Esign Validator being used >> DEBUG [http-8080-5] net.polymorphic.emr.workflow.action.insertHeparinAjax >> <init>- In the constructor >> INFO [http-8080-5] >> net.polymorphic.emr.common.Validation.EsignCodeValidator >> validate- Esign Validator being used >> INFO [http-8080-5] >> net.polymorphic.emr.common.Validation.EsignCodeValidator >> validate- Esign Validator being used >> DEBUG [http-8080-5] net.polymorphic.emr.workflow.action.insertHeparinAjax >> getJSON- in a getJson >> DEBUG [http-8080-5] net.polymorphic.emr.workflow.action.insertHeparinAjax >> getJSON- in a getJson - completed >> >> seems something is not right here ! >> any help would be appreciated >> >> On Tue, Mar 15, 2011 at 10:16 AM, Muneer Malik <tutti...@gmail.com> >> wrote: >> >> > You mean have all your action logic in getJSON? >> > >> > >> > >> > On Tuesday, March 15, 2011, Rodrigo Esteban Cares Guarda >> > <rca...@gmail.com> wrote: >> > > Hi, >> > > if you have the method "execute" and "getJSON" in your action class, >> try >> > > comment the "execute" method. >> > > >> > > Greetings >> > > >> > > El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppert escribió: >> > >> if you are using validation it is normaly that you get two requests. >> > >> the first request is for validation and the second is the expected >> > request. >> > >> >> > >> Johannes >> > >> >> > >> -- >> > > > > -- > Confidentiality Notice > ------------------------------- > > > THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY > CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM > DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR > THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE > INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, > DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF YOU > HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT > tutti...@gmail.com OR BY TELEPHONE AT 817-458-1764. > > > THANK YOU. > -- Confidentiality Notice ------------------------------- THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT tutti...@gmail.com OR BY TELEPHONE AT 817-458-1764. THANK YOU.