thats a bug ..

xwork version 1.2.3
com.opensymphony.xwork.ActionProxyFactory
    public abstract ActionProxy createActionProxy(String namespace, String 
actionName, Map extraContext, boolean executeResult, boolean cleanupContext) 
throws Exception;
}

xwork 2.1.2
com.opensymphony.xwork.ActionProxyFactory
  public ActionProxy createActionProxy(String namespace, String actionName, 
String methodName, Map<String, Object> extraContext, boolean executeResult, 
boolean cleanupContext);

the only changes are addition of methodName and the 4th extraContext param 
changes to Map<String,Object>

do you want to put in a bug report?

good catch!
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 18 May 2009 23:15:25 +0530
> Subject: Re: DWRValidator not working in Struts 2.1.6
> From: strutstwou...@gmail.com
> To: user@struts.apache.org
> 
> I meant that there is a problem with DWRValidator.java , not the
> documentation.
> 
> Referring to
> http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dwr/src/main/java/org/apache/struts2/validators/DWRValidator.java?revision=670170
> (hope
> this is the latest?) , the line :
> 
> ActionProxy proxy = actionProxyFactory.createActionProxy(inv, namespace,
> mapping.getName(), mapping.getMethod(), *true*, *true*);
> 
> had to be changed to :
> 
> ActionProxy proxy = actionProxyFactory.createActionProxy(namespace,
> mapping.getName(), mapping.getMethod(), ctx);
> 
> in order to make the validation work.
> 
> Also, the mapping.getMethod() returns null , so we can't do validation on
> any other method than "execute"
> 
> I wanted to know if i'm missing anything here, or is this a bug with
> DWRValidator?
> 
> Thanks,
> 
> Joseph
> 
> 
> 
> 
> 
> 
> 
> On Fri, May 15, 2009 at 5:36 PM, Dave Newton <newton.d...@yahoo.com> wrote:
> 
> > Martin Gainty wrote:
> >
> >> the 3rd parameter is a map extraContext - a Map of extra parameters to be
> >> provided to the ActionProxy
> >> xwork is the higher authority since it is a base library..here is the doc
> >> from
> >> xwork 1.2.3
> >>
> >
> > S2 uses XW2.
> >
> > apparently Struts Doc is out of synch with xwork doc
> >>
> >
> > No.
> >
> > Dave
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >

_________________________________________________________________
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009

Reply via email to