flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clint M <cmod...@gmail.com>
Subject Re: Mapping second event type to Command not working
Date Mon, 01 Aug 2016 15:25:34 GMT
Should work if you're using the same Event Class. (ChangePasswordEvent)
Is ChangePasswordEvent.type1 the same as ChangePasswordEvent.type2 ?

On Mon, Aug 1, 2016 at 8:15 AM, Oleg Konovalov <olegkon@gmail.com> wrote:

> Hi,
>
> I am doing enhancements to existing Robotlegs2 web app.
> So my popup dispatches event of type1, which main app listens to,
> so on that event Command calls Service, which in calls remote Java service,
> which calls DB via Spring JDBC template, and returns me status string
> (success or some Error).
> Now I am adding a second type - type2, and the rest is similar (except I
> pass extra params to Stored Proc 2).
>
> For some reason I see Event dispatched, but Commend for type2 is NOT
> getting executed.
> Is there a limitation that I can't do:
> moduleCommandMap.mapEvent(ChangePasswordEvent.type1,
> ChangePasswordRequestCommand, ChangePasswordEvent);
> moduleCommandMap.mapEvent(ChangePasswordEvent.type2,
> ChangePasswordRequestCommand, ChangePasswordEvent);
>
> What else might be missing or wrong?
>
> I am fairly new to Robotlegs2.
> Please help.
>
> TIA,
> Oleg.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message