<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Forums: Recent Topics</title>
<link>http://mate.asfusion.com/forums/</link>
<description>Forums: Recent Topics</description>
<language>en</language>
<pubDate>Thu, 17 May 2012 05:42:45 +0000</pubDate>

<item>
<title>Sascha Ernst on "Are Injectors usable on already existing instances?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=748#post-3063</link>
<pubDate>Thu, 24 Sep 2009 11:06:10 +0000</pubDate>
<dc:creator>Sascha Ernst</dc:creator>
<guid isPermaLink="false">3063@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I have a n instance of a custom class which exists from the very beginning of my application and I would like to hook it up later with some managers via binding. If my object wouldn't already exist, I could just use Objectbuilder to trigger the Injectors, but can I trigger them on an existing object, too?&#60;/p&#62;
&#60;p&#62;Greets, Sascha
&#60;/p&#62;</description>
</item>
<item>
<title>johntimothybailey on "Set WebServiceInvoker's instance / wsdl via a Proxy"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=866#post-3466</link>
<pubDate>Tue, 29 Dec 2009 22:39:47 +0000</pubDate>
<dc:creator>johntimothybailey</dc:creator>
<guid isPermaLink="false">3466@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hey gang, I am having such an annoying bug that I cannot find the answer to on here nor online elsewhere. Obviously, I'm not doing this the way Mate creators intended or something wrong with Flex. Therefore, I'm reaching out to the community.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;PROCESS: &#60;/strong&#62;&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;
Use a factory pattern to generate the webservices.
&#60;/li&#62;
&#60;li&#62;
Store the services in a proxy with key pairs
&#60;/li&#62;
&#60;li&#62;
Create a singleton that wraps the ServiceLayerProxy. This allows us to access the WebServices easily in the EventBus.
&#60;/li&#62;
&#60;li&#62;
Load a user list via a WebServiceInvoker and use the Singleton ServiceLayerProxy to access our WebService instance.
&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;&#60;strong&#62;PROBLEM:&#60;/strong&#62;&#60;br /&#62;
The WebServiceInvoker will not allow me to use the Singleton as I get the following error:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
12/29/2009 15:30:10.412 [INFO] mx.messaging.Producer '5CBD30C2-9765-AE31-C9C5-DC58946B6AC2' producer set destination to 'DefaultHTTP'.&#60;br /&#62;
[RPC Fault faultString=&#34;You must specify the WSDL location with useProxy set to false.&#34; faultCode=&#34;Client.WSDL&#34; faultDetail=&#34;null&#34;]&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Now I must note, no it's not as simple as a race-condition as I've tried multiple different timing techniques and watched the object(s) move around.&#60;/p&#62;
&#60;p&#62;ATTEMPT 1 code in the &#60;strong&#62;EventBus&#60;/strong&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!-- Load All Users  _____________________________________ --&#38;gt;
	&#38;lt;EventHandlers type=&#38;quot;{LoadUserListEvent.REQUEST_LOAD_LIST}&#38;quot;&#38;gt;
		&#38;lt;WebServiceInvoker debug=&#38;quot;true&#38;quot;
			instance=&#38;quot;{FacesServiceLayerProxy.getItem(&#38;#39;DEFAULT&#38;#39;)}&#38;quot;
			method=&#38;quot;GetProfiles&#38;quot; &#38;gt;
			&#38;lt;resultHandlers&#38;gt;
				&#38;lt;MethodInvoker generator=&#38;quot;{Instructions}&#38;quot; method=&#38;quot;deserializeUsersCollection&#38;quot; arguments=&#38;quot;{lastReturn}&#38;quot; /&#38;gt;
			&#38;lt;/resultHandlers&#38;gt;
			&#38;lt;faultHandlers&#38;gt;
				&#38;lt;InlineInvoker method=&#38;quot;Alert.show&#38;quot; arguments=&#38;quot;Fault&#38;quot;/&#38;gt;
			&#38;lt;/faultHandlers&#38;gt;
		&#38;lt;/WebServiceInvoker&#38;gt;
	&#38;lt;/EventHandlers&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;ATTEMPT 2&#60;br /&#62;
The next thing I decided to do was to simply inject the service in the dispatched event and retrieve it in the EventBus.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;EventBus&#60;/strong&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!-- Load All Users  _____________________________________ --&#38;gt;
	&#38;lt;EventHandlers type=&#38;quot;{LoadUserListEvent.REQUEST_LOAD_LIST}&#38;quot;&#38;gt;
		&#38;lt;WebServiceInvoker debug=&#38;quot;true&#38;quot;
			instance=&#38;quot;{new ObjectProxy(SmartObject(event.service)).object as WebService}&#38;quot;
			method=&#38;quot;GetProfiles&#38;quot; &#38;gt;
			&#38;lt;resultHandlers&#38;gt;
				&#38;lt;MethodInvoker generator=&#38;quot;{Instructions}&#38;quot; method=&#38;quot;deserializeUsersCollection&#38;quot; arguments=&#38;quot;{lastReturn}&#38;quot; /&#38;gt;
			&#38;lt;/resultHandlers&#38;gt;
			&#38;lt;faultHandlers&#38;gt;
				&#38;lt;InlineInvoker method=&#38;quot;Alert.show&#38;quot; arguments=&#38;quot;Fault&#38;quot;/&#38;gt;
			&#38;lt;/faultHandlers&#38;gt;
		&#38;lt;/WebServiceInvoker&#38;gt;
	&#38;lt;/EventHandlers&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This attempt yields the same result&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
12/29/2009 15:30:10.412 [INFO] mx.messaging.Producer '5CBD30C2-9765-AE31-C9C5-DC58946B6AC2' producer set destination to 'DefaultHTTP'.&#60;br /&#62;
[RPC Fault faultString=&#34;You must specify the WSDL location with useProxy set to false.&#34; faultCode=&#34;Client.WSDL&#34; faultDetail=&#34;null&#34;]&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;ATTEMPT 3&#60;br /&#62;
Now I tried just getting the wsdl from the service&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventHandlers type=&#38;quot;{LoadUserListEvent.REQUEST_LOAD_LIST}&#38;quot;&#38;gt;
		&#38;lt;MethodInvoker generator=&#38;quot;{FacesServiceLayerProxy}&#38;quot; method=&#38;quot;returnItem&#38;quot; arguments=&#38;quot;{[event.service]}&#38;quot;/&#38;gt;
		&#38;lt;WebServiceInvoker debug=&#38;quot;true&#38;quot;
			wsdl=&#38;quot;{new ObjectProxy(SmartObject(event.service)).object.wsdl}&#38;quot;
			method=&#38;quot;GetProfiles&#38;quot; &#38;gt;
			&#38;lt;resultHandlers&#38;gt;
				&#38;lt;MethodInvoker generator=&#38;quot;{Instructions}&#38;quot; method=&#38;quot;deserializeUsersCollection&#38;quot; arguments=&#38;quot;{lastReturn}&#38;quot; /&#38;gt;
			&#38;lt;/resultHandlers&#38;gt;
			&#38;lt;faultHandlers&#38;gt;
				&#38;lt;InlineInvoker method=&#38;quot;Alert.show&#38;quot; arguments=&#38;quot;Fault&#38;quot;/&#38;gt;
			&#38;lt;/faultHandlers&#38;gt;
		&#38;lt;/WebServiceInvoker&#38;gt;
	&#38;lt;/EventHandlers&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The error is now&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
12/29/2009 15:52:36.297 [INFO] mx.messaging.Producer '68A11589-A5F7-8A75-F867-DC6D1DC885C9' producer set destination to 'DefaultHTTP'.&#60;br /&#62;
12/29/2009 15:52:36.301 [INFO] mx.messaging.Producer '7CCD8A0B-91BC-E3B0-0172-DC6D1DCDFEF1' producer set destination to 'DefaultHTTP'.&#60;br /&#62;
12/29/2009 15:52:36.304 [INFO] mx.messaging.Channel 'direct_http_channel' channel endpoint set to http:&#60;br /&#62;
12/29/2009 15:52:36.307 [INFO] mx.messaging.Producer '7C05E876-865D-F700-5A9C-DC6D1DD3BD43' producer set destination to 'DefaultHTTP'.&#60;br /&#62;
12/29/2009 15:52:36.308 [INFO] mx.messaging.Producer 'EAF8A6CC-1CD5-73AB-A95E-DC6D1DD469D6' producer set destination to 'DefaultHTTP'.&#60;br /&#62;
12/29/2009 15:52:36.315 [INFO] mx.messaging.Producer '68A11589-A5F7-8A75-F867-DC6D1DC885C9' producer sending message '396E6E4D-7646-168F-0251-DC6D1DDAA682'&#60;br /&#62;
12/29/2009 15:52:36.324 [DEBUG] mx.messaging.Channel 'direct_http_channel' channel sending message:&#60;br /&#62;
(mx.messaging.messages::HTTPRequestMessage)#0&#60;br /&#62;
  body = (Object)#1&#60;br /&#62;
  clientId = (null)&#60;br /&#62;
  contentType = &#34;application/x-www-form-urlencoded&#34;&#60;br /&#62;
  destination = &#34;DefaultHTTP&#34;&#60;br /&#62;
  headers = (Object)#2&#60;br /&#62;
  httpHeaders = (null)&#60;br /&#62;
  messageId = &#34;396E6E4D-7646-168F-0251-DC6D1DDAA682&#34;&#60;br /&#62;
  method = &#34;GET&#34;&#60;br /&#62;
  recordHeaders = false&#60;br /&#62;
  timestamp = 0&#60;br /&#62;
  timeToLive = 0&#60;br /&#62;
  url = &#34;event.wsdl&#34;&#60;br /&#62;
12/29/2009 15:52:36.327 [INFO] mx.messaging.Producer '68A11589-A5F7-8A75-F867-DC6D1DC885C9' producer connected.&#60;br /&#62;
12/29/2009 15:52:36.330 [INFO] mx.rpc.soap.Operation Creating SOAP Operation for GetProfiles&#60;br /&#62;
12/29/2009 15:52:36.331 [DEBUG] mx.rpc.soap.Operation Queueing SOAP operation GetProfiles&#60;br /&#62;
12/29/2009 15:52:36.350 [INFO] mx.messaging.Producer '68A11589-A5F7-8A75-F867-DC6D1DC885C9' producer acknowledge of '396E6E4D-7646-168F-0251-DC6D1DDAA682'.&#60;br /&#62;
12/29/2009 15:52:36.353 [ERROR] mx.messaging.Producer '68A11589-A5F7-8A75-F867-DC6D1DC885C9' producer fault for '396E6E4D-7646-168F-0251-DC6D1DDAA682'.&#60;br /&#62;
12/29/2009 15:52:36.356 [INFO] mx.rpc.soap.AbstractWebService Faulting previously queued operation calls GetProfiles&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Notice that the url equals event.wsdl instead of the value of the property!&#60;/p&#62;
&#60;p&#62;What am I missing. I can only gather that I'm doing something stupid!
&#60;/p&#62;</description>
</item>
<item>
<title>chris.ncic on "have MethodInvoker not attempt to instantiate generator instance?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1307#post-4903</link>
<pubDate>Wed, 22 Feb 2012 18:34:46 +0000</pubDate>
<dc:creator>chris.ncic</dc:creator>
<guid isPermaLink="false">4903@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Have a question that will sound funky, there might be a better solution to my problem than this particular solution I'm asking for.  Was wondering if it's possible to have MethodInvoker not attempt to instantiate a class instance passed to generator.  I have a case where I might get an event before my class is created, and in those cases I don't really want to create an instance.  Would like to only have the class's method invoked if it's been instantiated already.  Also don't want to have to add the instance to global scope.
&#60;/p&#62;</description>
</item>
<item>
<title>Laura on "We want your feedback"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=2#post-2</link>
<pubDate>Thu, 24 Apr 2008 04:19:40 +0000</pubDate>
<dc:creator>Laura</dc:creator>
<guid isPermaLink="false">2@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;We would like to know what you think about Mate. We made an effort to make it easy to understand, but if you feel something is not clear, do not hesitate to point it out.&#60;/p&#62;
&#60;p&#62;We have recently changed all the tag names, so if you find anything wrong in the documentation, please let us know. For example, you may find &#34;sequences&#34;, which are now EventHandlers blocks or any other handlers list.&#60;/p&#62;
&#60;p&#62;Obviously, report any bug you may encounter.&#60;/p&#62;
&#60;p&#62;Other feedback we need is whether the debugger helps you (though it is not yet finished).
&#60;/p&#62;</description>
</item>
<item>
<title>kenwong on "How to instantate EventMap with ActionScript"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=234#post-977</link>
<pubDate>Thu, 13 Nov 2008 23:44:58 +0000</pubDate>
<dc:creator>kenwong</dc:creator>
<guid isPermaLink="false">977@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Say I have an event map called &#34;MyEventMap&#34;. If for whatever reason I can't declare &#38;lt;MyEventMap/&#38;gt; in the mxml, and need to it via action script. How can I make it work? I try new MyEventMap() and assign it to a member variable, but the event dispatched never get to the event map. I also try to addChild(myEventMap) but there is no good since EventMap is not an DisplayObject.&#60;/p&#62;
&#60;p&#62;My work around so far is create a dummy MXML that includes the MyEventMap, then dynamically creating the dummy MXML and calling addChild(dummy). But I am hopping for a cleaner solution. Can anyone suggest a better alternative?&#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
</item>
<item>
<title>TomBC on "Instantiate dynamic event map with ActionScript"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1305#post-4880</link>
<pubDate>Fri, 13 Jan 2012 09:05:27 +0000</pubDate>
<dc:creator>TomBC</dc:creator>
<guid isPermaLink="false">4880@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;we are adding an AddOn-System to our Flex/Mate application.&#60;/p&#62;
&#60;p&#62;For that it would be a huge improvement to allow each AddOn to have its own local EventMap. Hence we need to add further event-maps dynamically via ActionScript.&#60;/p&#62;
&#60;p&#62;Has anybody done this successfully? &#60;/p&#62;
&#60;p&#62;The following forum thread talks very much about the same topic, but fails to deliver a solution for making Injections work.&#60;br /&#62;
&#60;a href=&#34;http://mate.asfusion.com/forums/topic.php?id=234&#34; rel=&#34;nofollow&#34;&#62;http://mate.asfusion.com/forums/topic.php?id=234&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>miguel.f.arias on "role based access"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1304#post-4879</link>
<pubDate>Tue, 10 Jan 2012 23:05:17 +0000</pubDate>
<dc:creator>miguel.f.arias</dc:creator>
<guid isPermaLink="false">4879@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;good afternoon:&#60;/p&#62;
&#60;p&#62;I have to manage access to resources in a Flex application, this is the scenario, I have three roles administrator, informant, spectator, in the database I have several resources such as creating reports, update and remove report report, and so many resources, some of these resources are in modules. example:&#60;/p&#62;
&#60;p&#62;1. Resource Management module: CRUD parts, CRUD machines and many more.&#60;br /&#62;
2. Resource Management Module: reporting damage, report notes, and more ...............&#60;/p&#62;
&#60;p&#62;The situation is this, how can these resources be managed with the philosophy of MATE?&#60;/p&#62;
&#60;p&#62;the administrator has access to the administration module and each of their CRUD&#60;br /&#62;
but also has access to the management module but only to report damage&#60;/p&#62;
&#60;p&#62;which would be the way to do this?&#60;/p&#62;
&#60;p&#62;Thanks for your attention and I apologize if I am not clear enough
&#60;/p&#62;</description>
</item>
<item>
<title>masu on "Survey: "How do you develop your Flex applications?""</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1287#post-4769</link>
<pubDate>Sun, 27 Nov 2011 12:04:12 +0000</pubDate>
<dc:creator>masu</dc:creator>
<guid isPermaLink="false">4769@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;I'd like to ask you if you could take part in a little survey: &#34;How do you develop your Flex applications?&#34; ... There are only 3 questions ahead for you ... &#60;a href=&#34;http://bit.ly/vp5CY1&#34; rel=&#34;nofollow&#34;&#62;http://bit.ly/vp5CY1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thank you,&#60;br /&#62;
masu
&#60;/p&#62;</description>
</item>
<item>
<title>rattkin on "Mate and application architecture - questions"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=722#post-2996</link>
<pubDate>Tue, 08 Sep 2009 11:22:56 +0000</pubDate>
<dc:creator>rattkin</dc:creator>
<guid isPermaLink="false">2996@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;During my recent work with Flex and Mate, with a relatively big application, I've bumped into several problems, which can either be quickly fixed or need more elaborate answer on &#34;Mate philosophy&#34;. I would be very grateful for picking this up, counting especially on advanced developers and obviously, Mate authors.&#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;1 - Event handler vs Listener&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventHandlers type=&#38;quot;{FlexEvent.APPLICATION_COMPLETE}&#38;quot; debug=&#38;quot;false&#38;quot;&#38;gt;
 (... do something #1... )
&#38;lt;/EventHandlers&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;Injectors target=&#38;quot;{MyApp}&#38;quot;&#38;gt;
			&#38;lt;ListenerInjector method=&#38;quot;do something #2&#38;quot; eventType=&#38;quot;{FlexEvent.APPLICATION_COMPLETE}&#38;quot; /&#38;gt;
&#38;lt;/Injectors&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Which action will fire first? Will they fire at the same time?&#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;2 - Calling MethodInvoker on views&#60;/p&#62;
&#60;p&#62;As I understand, MethodInvoker was not created with views in mind, because it instantiates classes on its own, then gets from cache, where view classes are instantiated by flex/flash itself. Therefore it won't work to call view like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;MethodInvoker generator=&#38;quot;{MyApp}&#38;quot; method=&#38;quot;doSomething&#38;quot; arguments=&#38;quot;{something}&#38;quot;/&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;because instead of taking already created view (which is something I probably want), it will simply instantiate the class, but it&#60;br /&#62;
will have no connections to actual application. Am I correct? Does this mean, I should always communicate with view via ListenerInjectors? It would be good to stress this out in MethodInvoker documentation, as it's not obvious and not straightaway clear when debugging.&#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;3 - Chaining events&#60;/p&#62;
&#60;p&#62;I'm not sure if current solution in Mate is the optimal one. Generally, as I undestand, there are two ways of achieveing that -&#60;br /&#62;
first one is to simply invoke another operation in eventhandler of a previously dispatched event (result/fault handler in serviceinvoker), second one is to dispatch a custom event in those blocks, and add another handler for that event, thus creating a serie.&#60;/p&#62;
&#60;p&#62;First solution, while maybe acceptable for 2 events, looks horrible with more. In my application, I'm invoking 9 service calls, one by one, nesting tags makes that almost unreadable. Second solution feels cleaner, yet it asks me for specifying another set of event types, just for the purpose of chain execution, thus increasing coupling between classes (I'm generally specifying those in custom Event class, I know I could pass simple strings or specify this in eventmap, but this does not feel right to me).&#60;/p&#62;
&#60;p&#62;I was wondering, if it is possible to build a supporting mechanism for this. I have nothing against simple nesting, but for more elaborate cases, maybe some kind of ordering could take place. It could order events in the background, using simple property. It could look either at the last call in event handler, or the end of result/fault handler, etc... &#60;/p&#62;
&#60;p&#62;Or are there cleaner solutions?&#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;4 - StopHandlers&#60;/p&#62;
&#60;p&#62;The usage of stop handlers seems hard for me. So I can specify a condition, upon which the processing will break. But what kind of problem does this solve? In 99% cases, if I detect an error in my data, I want to react, change other data, show gui error, etc. Simply stopping processing does not help.&#60;/p&#62;
&#60;p&#62;I think it would be very useful to add a property to StopHandler, to dispatch a custom event of choice, whenever stop action occurs. This way it can be handled in eventmaps and responded to, properly. What do you think?&#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;5 - Services&#60;/p&#62;
&#60;p&#62;I don't think examples are showing the best way to manage and use services. Examples are showing services either declared directly in event map or nested as a tag within event map. This will quickly raise its ugly head when you have few eventmaps using services. If you never touch services and just reuse them, then it's maybe fine (yet, you're instantiating more than one instance of Services class), but with popular scenario, when you use RemoteObjects, and want to configure destination channel dynamically in application (rather than hardcoded), you need to load that configuration and apply newly created ChannelSet into services. My most clean take on this is to maintain services at app level and pass already created (and manageable) instance into event maps :&#60;/p&#62;
&#60;p&#62;MyApp.mxml&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;fx:Declarations&#38;gt;
		&#38;lt;service:Services id=&#38;quot;services&#38;quot; /&#38;gt;
		&#38;lt;map:ApplicationEventMap services=&#38;quot;{services}&#38;quot; /&#38;gt;
		&#38;lt;map:DataEventMap services=&#38;quot;{services}&#38;quot; /&#38;gt;
	&#38;lt;/fx:Declarations&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;ApplicationEventMap.mxml&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;fx:Script&#38;gt;
		&#38;lt;![CDATA[

			[Bindable]
			[Inspectable]
			public var services:Services; 	

    ]]&#38;gt;
&#38;lt;/fx:Script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;6 - Custom events and event announcer&#60;/p&#62;
&#60;p&#62;Given :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public class ConfigEvent extends Event
	{					

		[Bindable] public var amfChannelSet:ChannelSet;
		[Bindable] public var amfUrl:String;		

		public function ConfigEvent(type:String, amfChannelSet:ChannelSet=null, amfUrl:String=null, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.amfChannelSet = amfChannelSet
			this.amfUrl = amfUrl;
		}
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have to instantiate it from eventmap like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventAnnouncer generator=&#38;quot;{ConfigEvent}&#38;quot; constructorArguments=&#38;quot;{[ConfigEvent.LOADED, event.amfChannelSet, event.amfUrl]}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;because without this, it will throw exception on me&#60;/p&#62;
&#60;p&#62;It would be cleaner to have :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventAnnouncer generator=&#38;quot;{ConfigEvent}&#38;quot; type=&#38;quot;{ConfigEvent.LOADED}&#38;quot; constructorArguments=&#38;quot;{[event.amfChannelSet, event.amfUrl]}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;so it just takes type as first parameter of constructor, if constructorArguments are present.&#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;7 - Eventmap flow and dispatching events from Managers&#60;/p&#62;
&#60;p&#62;Since Managers are simple classes, not view objects, they dont have view scope, no event dispatcher. Therefore, in order to dispatch events, that will be caught in eventmap, you need to give them the eventmap dispatcher.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;ObjectBuilder generator=&#38;quot;{ConfigManager}&#38;quot;&#38;gt;
	&#38;lt;Properties eventDispatcher=&#38;quot;{scope.dispatcher}&#38;quot; /&#38;gt;
&#38;lt;/ObjectBuilder&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then, using eventDispatcher property, one can properly dispatch events. I saw this approach being exploited in many examples, yet I still think something's not right here. Mate boasts of not having references to the framework, but this one looks like a tight coupling for me. You need to manually instantiate managers, passing the dispatcher, probably on creationComplete. Then, all your managers must have this property (so likely they will extend some kind of BaseManager, having this already). It basically requires user to write additional code, which can probably be simply exchanged by introducing MateManager class and probably some kind of Manager registrator tag (to instantiate it properly).&#60;/p&#62;
&#60;p&#62;It feels not right from the very beginning. I read iconara's post, where he tries to &#34;justify&#34; such usage and it instantly felt like we all know&#60;br /&#62;
it's a clever workaround, but not proper one. Don't you agree?&#60;/p&#62;
&#60;p&#62;This leads to eventmap flow. I think we still miss something in definitions. I know eventmap should be treated as a routing mechanism. But since it takes such responsible role in application, it should be consistent and provide a central view of how application reacts. When developing my app, I see that I'm not always following this principle, because I either don't know how, or Mate does not allow me to do that.&#60;/p&#62;
&#60;p&#62;Simple case giving me troubles is conditional logic. Take a look at this&#60;/p&#62;
&#60;p&#62;Map.mxml&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventHandlers type=&#38;quot;{ConfigEvent.LOAD}&#38;quot; debug=&#38;quot;false&#38;quot;&#38;gt;
	&#38;lt;HTTPServiceInvoker instance=&#38;quot;{services.configService}&#38;quot; debug=&#38;quot;false&#38;quot;&#38;gt;
		&#38;lt;resultHandlers&#38;gt;
 				&#38;lt;MethodInvoker generator=&#38;quot;{ConfigManager}&#38;quot; method=&#38;quot;doSomethingWithLoadedObject&#38;quot; arguments=&#38;quot;{resultObject}&#38;quot;/&#38;gt;
   	&#38;lt;/resultHandlers&#38;gt;
   	&#38;lt;faultHandlers&#38;gt;
   	     &#38;lt;EventAnnouncer generator=&#38;quot;{RemoteErrorEvent}&#38;quot; type=&#38;quot;{RemoteErrorEvent.ERROR}&#38;quot;&#38;gt;
   	     	 &#38;lt;Properties message=&#38;quot;{fault.message}&#38;quot; /&#38;gt;
   	     &#38;lt;/EventAnnouncer&#38;gt;
   	&#38;lt;/faultHandlers&#38;gt;
	&#38;lt;/HTTPServiceInvoker&#38;gt;
&#38;lt;/EventHandlers&#38;gt;

&#38;lt;Injectors target=&#38;quot;{MyApp}&#38;quot;&#38;gt;
	&#38;lt;ListenerInjector method=&#38;quot;configLoaded&#38;quot; eventType=&#38;quot;{ConfigEvent.LOADED}&#38;quot; /&#38;gt;
	&#38;lt;ListenerInjector method=&#38;quot;showError&#38;quot; eventType=&#38;quot;{RemoteErrorEvent.ERROR}&#38;quot;/&#38;gt;
&#38;lt;/Injectors&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;ConfigManager.as&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public function doSomethingWithLoadedObject(xml:XML):void
		{
			amfUrl = &#38;quot;&#38;quot; + xml..channel.(@id==&#38;quot;amf&#38;quot;).@endpoint;
			if (amfUrl == &#38;quot;&#38;quot;) {
				eventDispatcher.dispatchEvent(new RemoteErrorEvent(RemoteErrorEvent.ERROR, &#38;quot;AMF channel not configured or configuration XML malformed!&#38;quot;));
			}
			else {
				amfChannelSet = new ChannelSet();
				var channel:AMFChannel = new AMFChannel(&#38;quot;my-zend&#38;quot;, amfUrl);
				amfChannelSet.addChannel(channel); 

				eventDispatcher.dispatchEvent(new ConfigEvent(ConfigEvent.LOADED, amfChannelSet, amfUrl));
			}
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So, upon successful load from HTTPService, I call doSomethingWithLoadedObject, providing the result. While the resultHandler launched, it does not mean that my result is actually correct, I need to validate, see for proper values, empty strings etc. If I found one, I have to report it somehow, and pass the flow back to application. If everything's right, I need to inform about this, passing an event. Now, when looking at eventmap, one can see that a method was invoked... and nothing. Yet application goes on, because there was listener injector too, looking for &#34;ConfigEvent.LOADED&#34;.&#60;br /&#62;
The problem is, I never see this event being dispatched within eventmap (it comes from manager), which makes eventmap hard to understand.&#60;br /&#62;
Also, should manager be really concerned about dispatching events? I could reorganize the function to have :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;public function validate(xml:XML):bool {
			amfUrl = &#38;quot;&#38;quot; + xml..channel.(@id==&#38;quot;amf&#38;quot;).@endpoint;
			if (amfUrl == &#38;quot;&#38;quot;) {
				return false;
			}
			else {
			  return true;
			}
    }

		public function doSomethingWithLoadedObject(xml:XML):void	{
				amfChannelSet = new ChannelSet();
				var channel:AMFChannel = new AMFChannel(&#38;quot;my-zend&#38;quot;, amfUrl);
				amfChannelSet.addChannel(channel);
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then in eventmap something like this :		&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventHandlers type=&#38;quot;{ConfigEvent.LOAD}&#38;quot; debug=&#38;quot;false&#38;quot;&#38;gt;
	&#38;lt;HTTPServiceInvoker instance=&#38;quot;{services.configService}&#38;quot; debug=&#38;quot;false&#38;quot;&#38;gt;
		&#38;lt;resultHandlers&#38;gt;
 				&#38;lt;MethodInvoker generator=&#38;quot;{ConfigManager}&#38;quot; method=&#38;quot;validate&#38;quot; arguments=&#38;quot;{resultObject}&#38;quot;/&#38;gt;
        &#38;lt;If lastResult=&#38;quot;true&#38;quot;&#38;gt;
         &#38;lt;DataCopier destination=&#38;quot;data&#38;quot; destinationKey=&#38;quot;amfChannelSet&#38;quot; source=&#38;quot;{ConfigManager}&#38;quot; sourceKey=&#38;quot;amfChannelSet&#38;quot; /&#38;gt;
         &#38;lt;DataCopier destination=&#38;quot;data&#38;quot; destinationKey=&#38;quot;amfUrl&#38;quot; source=&#38;quot;{ConfigManager}&#38;quot; sourceKey=&#38;quot;amfUrl&#38;quot; /&#38;gt;
         &#38;lt;EventAnnouncer generator=&#38;quot;{ConfigEvent}&#38;quot; type=&#38;quot;{ConfigEvent.LOADED}&#38;quot;&#38;gt;
   	     	 &#38;lt;Properties amfUrl=&#38;quot;{data.amfUrl}&#38;quot; amfChannelSet=&#38;quot;{data.amfChannelSet}&#38;quot; /&#38;gt;
   	     &#38;lt;/EventAnnouncer&#38;gt;
        &#38;lt;Else&#38;gt;
         &#38;lt;EventAnnouncer generator=&#38;quot;{RemoteErrorEvent}&#38;quot; type=&#38;quot;{RemoteErrorEvent.ERROR}&#38;quot;&#38;gt;
   	     	 &#38;lt;Properties message=&#38;quot;AMF channel not configured or configuration XML malformed!&#38;quot; /&#38;gt;
   	     &#38;lt;/EventAnnouncer&#38;gt;
        &#38;lt;/If&#38;gt;
   	&#38;lt;/resultHandlers&#38;gt;
   	&#38;lt;faultHandlers&#38;gt;
   	     &#38;lt;EventAnnouncer generator=&#38;quot;{RemoteErrorEvent}&#38;quot; type=&#38;quot;{RemoteErrorEvent.ERROR}&#38;quot;&#38;gt;
   	     	 &#38;lt;Properties message=&#38;quot;{fault.message}&#38;quot; /&#38;gt;
   	     &#38;lt;/EventAnnouncer&#38;gt;
   	&#38;lt;/faultHandlers&#38;gt;
	&#38;lt;/HTTPServiceInvoker&#38;gt;
&#38;lt;/EventHandlers&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This feels cleaner in sense that I exactly see what's happening in eventmap, the manager is way cleaner then, too. It however :&#60;br /&#62;
- requires me to use conditional tag (I could use the one Daron Schall created), if that's proper, I would like to have it within mate core with&#60;br /&#62;
simplified syntax&#60;br /&#62;
- in order to dispatch event with data, I need to take those values from managers first, using DataCopier. It would be cool to access properties&#60;br /&#62;
directly, eliminating the need to use datacopier (feels too verbose and unnecessary)&#60;br /&#62;
- raises the threat of having each function in manager returning bool value (or at least introduce a handful of these, just to validate)&#60;br /&#62;
- introduces another kind of logic and it's still questionable if it should really be here.&#60;/p&#62;
&#60;p&#62;I'm not saying this solution is better. It's just another one I thought of. Can you see the dillemma? Either I dispatch events from managers,&#60;br /&#62;
and disrupt my flow, making app hard to read, or I strip managers (loose coupling) out of this responsibility and have this in eventmap. See that it's still routing logic, we're just want to find out which event to fire next, basing on results of method.&#60;/p&#62;
&#60;p&#62;Please advise me on this, this one is currently my hardest nut to crack with Mate. &#60;/p&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;8 - Referencing tags within Eventmap&#60;/p&#62;
&#60;p&#62;Sometimes I have more robust flow in Eventmap and for example, I'm using the same fault handlers when something goes wrong. With bigger eventmap, it looks quite repetitive. This is just an example, those can be other handlers, but being the same in different places of eventmap. Is it possible to define a block of operations/handlers, and then reference it within eventmap?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;EventAnnouncer id=&#38;quot;error&#38;quot; generator=&#38;quot;{RemoteErrorEvent}&#38;quot; type=&#38;quot;{RemoteErrorEvent.ERROR}&#38;quot;&#38;gt;
   	     	 &#38;lt;Properties message=&#38;quot;AMF channel not configured or configuration XML malformed!&#38;quot; /&#38;gt;
   	     &#38;lt;/EventAnnouncer&#38;gt;

      &#38;lt;EventHandlers ...&#38;gt;
         (reuse tag with id=&#38;quot;error&#38;quot;)
      &#38;lt;/EventHandlers ...&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;----------&#60;/p&#62;
&#60;p&#62;I'm open for discussion on this, as I feel Mate is definitely the best tool to create Flex app with. I would like this to be openminded, instead of &#34;you can do this workaround&#34;. My aim is to improve Mate and make it more clear and consistent.
&#60;/p&#62;</description>
</item>
<item>
<title>arundhaj on "EventHandler cache's response"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1303#post-4876</link>
<pubDate>Wed, 04 Jan 2012 07:20:46 +0000</pubDate>
<dc:creator>arundhaj</dc:creator>
<guid isPermaLink="false">4876@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
I'm facing an issue in one particular EventHandler.&#60;/p&#62;
&#60;p&#62;When I invoke the following event two or more times, the response resultObject.sessionId is always same. The &#34;event.baseUrl&#34; server always sends a new sessionId, however in the resultHandler it is not getting changed.&#60;/p&#62;
&#60;p&#62;I tried setting the cache attribute of DelegateInvoker to none, but in vain. Please someone help me to sort out this issue.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;mate:EventHandlers type=&#34;{LoginEvent.LOGIN}&#34; debug=&#34;true&#34;&#38;gt;&#60;br /&#62;
	&#38;lt;mate:DelegateInvoker generator=&#34;{AuthServiceXmlRest}&#34; constructorArguments=&#34;{event.baseUrl}&#34; method=&#34;login&#34; arguments=&#34;{[event.username, event.password, event.sessionTimeout]}&#34; showBusyCursor=&#34;true&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;mate:Properties baseUrl=&#34;{event.baseUrl}&#34;/&#38;gt;&#60;br /&#62;
		&#38;lt;mate:resultHandlers&#38;gt;&#60;br /&#62;
			&#38;lt;mate:MethodInvoker generator=&#34;{SessionManager}&#34; method=&#34;storeSessionInfo&#34; arguments=&#34;{[event.baseUrl, event.username, event.password, resultObject.sessionId]}&#34;/&#38;gt;&#60;br /&#62;
			&#38;lt;mate:EventAnnouncer type=&#34;{ViewNavigationEvent.DASHBOARD}&#34;/&#38;gt;&#60;br /&#62;
		&#38;lt;/mate:resultHandlers&#38;gt;&#60;br /&#62;
		&#38;lt;mate:faultHandlers&#38;gt;&#60;br /&#62;
			&#38;lt;mate:EventAnnouncer type=&#34;{ViewNavigationEvent.LOGIN}&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;mate:Properties fault=&#34;{fault}&#34;/&#38;gt;&#60;br /&#62;
			&#38;lt;/mate:EventAnnouncer&#38;gt;&#60;br /&#62;
		&#38;lt;/mate:faultHandlers&#38;gt;&#60;br /&#62;
	&#38;lt;/mate:DelegateInvoker&#38;gt;&#60;br /&#62;
&#38;lt;/mate:EventHandlers&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
Thanks.&#60;br /&#62;
ArunDhaJ
&#60;/p&#62;</description>
</item>
<item>
<title>jimw23 on "Time to abandon Mate?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1252#post-4570</link>
<pubDate>Thu, 22 Sep 2011 13:26:59 +0000</pubDate>
<dc:creator>jimw23</dc:creator>
<guid isPermaLink="false">4570@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I personally think it is time to abandon Mate.  No updates in quite a while, documentation is out of date, no road map, no official 1.0 release.  I appreciate the work that was done on Mate, but now I am looking at robotlegs.&#60;/p&#62;
&#60;p&#62;I recommend to anyone else to move on from Mate, for your own sake.&#60;/p&#62;
&#60;p&#62;Statements like &#34;We aren't worried about numbers&#34; and &#34;the framework is mature&#34; simply don't cut it.  Since the developers won't say it, I will.  For all intents and purposes Mate is no longer supported.
&#60;/p&#62;</description>
</item>
<item>
<title>miguel.f.arias on "TypeError: Error #1034: Error de conversión forzada"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1269#post-4672</link>
<pubDate>Fri, 11 Nov 2011 18:02:56 +0000</pubDate>
<dc:creator>miguel.f.arias</dc:creator>
<guid isPermaLink="false">4672@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;hello:&#60;br /&#62;
The problem is as follows&#60;/p&#62;
&#60;p&#62;when I make the call to a java service&#60;/p&#62;
&#60;p&#62;&#38;lt;actionLists:EventHandlers type=&#34;{MantenimientoEvent.GET_ALL_MANTENIMIENTO}&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;builders:RemoteObjectInvoker destination=&#34;SessionBeans.AdminFacade&#34;&#60;br /&#62;
										  method=&#34;getMantenimientos&#34;&#60;br /&#62;
										  showBusyCursor=&#34;true&#34;&#60;br /&#62;
										  debug=&#34;true&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;builders:resultHandlers&#38;gt;&#60;br /&#62;
					&#38;lt;builders:MethodInvoker generator=&#34;{MantenimientoEventManager}&#34; method=&#34;storeMantenimientos&#34; arguments=&#34;{resultObject}&#34;/&#38;gt;&#60;br /&#62;
				&#38;lt;/builders:resultHandlers&#38;gt;&#60;br /&#62;
			&#38;lt;/builders:RemoteObjectInvoker&#38;gt;&#60;br /&#62;
		&#38;lt;/actionLists:EventHandlers&#38;gt;&#60;/p&#62;
&#60;p&#62;A I get the following error:&#60;/p&#62;
&#60;p&#62;TypeError: Error #1034: Error de conversión forzada: no se puede convertir &#60;a href=&#34;mailto:Object@93c2311&#34;&#62;Object@93c2311&#60;/a&#62; en valueObjects.Maquina.&#60;/p&#62;
&#60;p&#62;Any Idea?????
&#60;/p&#62;</description>
</item>
<item>
<title>OfcLks on "how can I set dinamically selector property to MessageHandler?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1294#post-4809</link>
<pubDate>Wed, 07 Dec 2011 17:40:29 +0000</pubDate>
<dc:creator>OfcLks</dc:creator>
<guid isPermaLink="false">4809@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;how can I set selector property to MessageHandler dinamically? &#60;/p&#62;
&#60;p&#62;Anybody help me, please
&#60;/p&#62;</description>
</item>
<item>
<title>masu on "[Inject] in Flex 5?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1288#post-4790</link>
<pubDate>Thu, 01 Dec 2011 02:57:34 +0000</pubDate>
<dc:creator>masu</dc:creator>
<guid isPermaLink="false">4790@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi there, &#60;/p&#62;
&#60;p&#62;For unit-testing purposes the next version of the Flex SDK probably gets dependency injection ... see the video at 29m:45s: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://tv.adobe.com/watch/max-2011-develop/open-source-flex-what-the-spoon-project-means-to-you/&#34; rel=&#34;nofollow&#34;&#62;http://tv.adobe.com/watch/max-2011-develop/open-source-flex-what-the-spoon-project-means-to-you/&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;I wonder what this means to IoC-Microarchitectures? Any thoughts?
&#60;/p&#62;</description>
</item>
<item>
<title>JennySF on "Communication Between Local Event Maps"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1290#post-4792</link>
<pubDate>Sat, 03 Dec 2011 06:32:26 +0000</pubDate>
<dc:creator>JennySF</dc:creator>
<guid isPermaLink="false">4792@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hello everyone, I'm working on a large scale app with many local event maps.  The size of the project grew to where it was no longer practical to keep everything in a single event map.  There a lot of cases that have popped up where I needed to share models between event maps, but the current way of defining scopes do not allow that, without just making it global which is not a valid option for me (defeats the purpose of having a local event map).  Has anyone figured out a workaround for this?  I think someone mentioned on this forum having named scopes, has anyone tried something like that?
&#60;/p&#62;</description>
</item>
<item>
<title>ADP on "The events on the popups is duplicate"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1277#post-4747</link>
<pubDate>Wed, 23 Nov 2011 23:15:20 +0000</pubDate>
<dc:creator>ADP</dc:creator>
<guid isPermaLink="false">4747@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;The events on the popups is duplicate when I close and open again.&#60;/p&#62;
&#60;p&#62;The first time I open the popup, the events is called one time only (correct). But, when I close it and open it again, the event is called 2 times... If I close and open again (3 times), the event is called 3 times.&#60;/p&#62;
&#60;p&#62;How can I fix this problem?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>akessner on "Flex SDK 4.5 and Mobile"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1256#post-4594</link>
<pubDate>Sun, 16 Oct 2011 09:27:39 +0000</pubDate>
<dc:creator>akessner</dc:creator>
<guid isPermaLink="false">4594@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
I have an old flex 3 project that uses Mate and I'm trying to convert it over to Spark and flex 4.5  Things are mostly going swimingly.  However, when I try to then convert the project over to mobile I'm getting a blank screen.  The initial injection seems to be working, but then nothing continues.&#60;/p&#62;
&#60;p&#62;Any have any experience with this? Is there something with the way Mate works that doesn't jive well with FlashBuilder Mobile projects?&#60;/p&#62;
&#60;p&#62;Everything seems to work fine if I do a Desktop AIR app, but with the mobile AIR app it just seems to silently die.  Thanks in advance.&#60;br /&#62;
This is my first exposure with Mate.  Someone else wrote the main code.
&#60;/p&#62;</description>
</item>
<item>
<title>kishorkv on "WebServiceInvoker for Secure WebService"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1257#post-4601</link>
<pubDate>Fri, 21 Oct 2011 01:36:57 +0000</pubDate>
<dc:creator>kishorkv</dc:creator>
<guid isPermaLink="false">4601@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I have to consume secure webservice (BMC Remedy) and using WebServiceInvoker for that. How to set userid and password for authentication required in the SOAP header?&#60;/p&#62;
&#60;p&#62;Here is how the soap envelope looks like,&#60;br /&#62;
&#38;lt;soapenv:Envelope xmlns:soapenv=&#34;http://schemas.xmlsoap.org/soap/envelope/&#34; xmlns:urn=&#34;urn:EWP&#34;&#38;gt;&#60;br /&#62;
   &#38;lt;soapenv:Header&#38;gt;&#60;br /&#62;
      &#38;lt;urn:AuthenticationInfo&#38;gt;&#60;br /&#62;
         &#38;lt;urn:userName&#38;gt;test&#38;lt;/urn:userName&#38;gt;&#60;br /&#62;
         &#38;lt;urn:password&#38;gt;test&#38;lt;/urn:password&#38;gt;&#60;br /&#62;
      &#38;lt;/urn:AuthenticationInfo&#38;gt;&#60;br /&#62;
   &#38;lt;/soapenv:Header&#38;gt;&#60;br /&#62;
   &#38;lt;soapenv:Body&#38;gt;&#60;br /&#62;
      &#38;lt;urn:OpGet&#38;gt;&#60;br /&#62;
         &#38;lt;urn:RequestNumber&#38;gt;123&#38;lt;/urn:RequestNumber&#38;gt;&#60;br /&#62;
      &#38;lt;/urn:OpGet&#38;gt;&#60;br /&#62;
   &#38;lt;/soapenv:Body&#38;gt;&#60;br /&#62;
&#38;lt;/soapenv:Envelope&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>Andres on "Bug? _id works incorrectly with smartObjects"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=513#post-2177</link>
<pubDate>Wed, 22 Apr 2009 17:58:39 +0000</pubDate>
<dc:creator>Andres</dc:creator>
<guid isPermaLink="false">2177@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am not sure what's the best way to reach you guys, but I believe this is indeed a bug in the current implementation of Mate (as far as the docs lead me to believe).&#60;/p&#62;
&#60;p&#62;Trying to set the _id property on both the &#38;lt;Request&#38;gt; and &#38;lt;Properties&#38;gt; tags with a smartObject behaves in unexpected ways. &#60;/p&#62;
&#60;p&#62;Example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;HTTPServiceInvoker instance=&#38;quot;{services.getUser}&#38;quot; debug=&#38;quot;true&#38;quot; &#38;gt;
	&#38;lt;Request _id=&#38;quot;{event.id}&#38;quot;  userId=&#38;quot;{event.id}&#38;quot;/&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In this case, the request will look as following:&#60;/p&#62;
&#60;p&#62;&#38;lt;id&#38;gt;event.id&#38;lt;/id&#38;gt;&#38;lt;userid&#38;gt;42&#38;lt;/userid&#38;gt;&#60;/p&#62;
&#60;p&#62;I've tried this with {resultObject}, {data} and {event}, all with the same results.&#60;/p&#62;
&#60;p&#62;Related thread &#60;a href=&#34;http://mate.asfusion.com/forums/topic.php?id=484&#34;&#62;here &#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;On an unrelated note, is there a bug reporting tool for Mate? I haven't yet found one, but I think it would be a great way to send direct feedback to you guys. I know there's the user voice account, but I feel that's better suited for feature requests.&#60;/p&#62;
&#60;p&#62;Keep rocking! Loving Mate so far ;)
&#60;/p&#62;</description>
</item>
<item>
<title>hdave on "Who invokes remote objects?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1255#post-4585</link>
<pubDate>Mon, 03 Oct 2011 21:16:30 +0000</pubDate>
<dc:creator>hdave</dc:creator>
<guid isPermaLink="false">4585@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;What are the pro/cons of having the event map invoke remote object service methods and injecting the results into the presentation models vs injecting the service objects to the presentation models and letting them handle it themselves.&#60;/p&#62;
&#60;p&#62;Or do we do both?
&#60;/p&#62;</description>
</item>
<item>
<title>hdave on "Can &#60;MethodInoker&#62; be used to set a property?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1253#post-4578</link>
<pubDate>Mon, 26 Sep 2011 21:23:07 +0000</pubDate>
<dc:creator>hdave</dc:creator>
<guid isPermaLink="false">4578@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Say I have a getter/setter on a property, can I use MethodInvoker to set the value in an event map?  What is the method name?  Just the property name?
&#60;/p&#62;</description>
</item>
<item>
<title>hdave on "Nested View and Presentation Models"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1250#post-4563</link>
<pubDate>Wed, 21 Sep 2011 06:02:32 +0000</pubDate>
<dc:creator>hdave</dc:creator>
<guid isPermaLink="false">4563@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I'm currently working on a large view that has many nested subviews within it.  The tree of views is only 3 deep, but there are several views at every level.&#60;/p&#62;
&#60;p&#62;What is the best way to create my tree of presentation objects and pass them the appropriate data from their parent presentation objects?  Should I use the eventmap for this or just have each presentation object create its children?  I'd like to keep it loosly coupled, but am having a mental block on how to do this. &#60;/p&#62;
&#60;p&#62;Any ideas are appreciated!
&#60;/p&#62;</description>
</item>
<item>
<title>BobxMarley on "Flash Builder 4.5 + MATE"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1251#post-4569</link>
<pubDate>Thu, 22 Sep 2011 00:19:18 +0000</pubDate>
<dc:creator>BobxMarley</dc:creator>
<guid isPermaLink="false">4569@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I started learning MATE about a year ago. I don't get to work with it very much so the learning process is slow going. &#60;/p&#62;
&#60;p&#62;With Flash Builder 4.5 they allow developers to generate service calls on the fly which makes data retrieval very easy. Since 4.5, I have not used the RemoteObject tag for a service call. I just generate them with the GUI.&#60;/p&#62;
&#60;p&#62;I noticed that MATE still uses a RemoteObject and really doesn't leverage the benefit that Flash Builder 4.5 has when it comes to connecting/testing external functions. I'm using ColdFusion as my back end, so they two pair very well.&#60;/p&#62;
&#60;p&#62;Is there a way to leverage Flash Builder 4.5's new ability to generate service while but still using MATE to manage the business logic and events?
&#60;/p&#62;</description>
</item>
<item>
<title>Smoobly on "Is Maté still viable?"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1220#post-4440</link>
<pubDate>Fri, 13 May 2011 00:27:44 +0000</pubDate>
<dc:creator>Smoobly</dc:creator>
<guid isPermaLink="false">4440@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;It's been quite a while since I've seen any progress in Mate. Are developer(s) still working on it, or is it fading into obsolescence?
&#60;/p&#62;</description>
</item>
<item>
<title>jbuda on "Multiple Event Maps"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=427#post-1883</link>
<pubDate>Wed, 04 Mar 2009 01:03:03 +0000</pubDate>
<dc:creator>jbuda</dc:creator>
<guid isPermaLink="false">1883@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Keeping to Best Practices for Mate, if i wanted to break apart my event maps... would i just need to put them into the Application.mxml like so...&#60;/p&#62;
&#60;p&#62;&#38;lt;maps:AutothorizeMap /&#38;gt;&#60;br /&#62;
&#38;lt;maps:UploadMap /&#38;gt;&#60;/p&#62;
&#60;p&#62;etc etc...&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>Toporik on "Execute more than one remote request"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1248#post-4553</link>
<pubDate>Fri, 16 Sep 2011 12:04:22 +0000</pubDate>
<dc:creator>Toporik</dc:creator>
<guid isPermaLink="false">4553@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I have some RemoteObjectInvoker's:&#60;/p&#62;
&#60;p&#62;&#38;lt;RemoteObjectInvoker&#38;gt;&#60;br /&#62;
    &#38;lt;resultHandlers&#38;gt;&#60;br /&#62;
       &#38;lt;EventAnnouncer ... /&#38;gt;&#60;br /&#62;
    &#38;lt;/resultHandlers&#38;gt;&#60;br /&#62;
    &#38;lt;faultHandlers&#38;gt;&#60;br /&#62;
       &#38;lt;EventAnnouncer ... /&#38;gt;&#60;br /&#62;
    &#38;lt;/faultHandlers&#38;gt;&#60;br /&#62;
&#38;lt;/RemoteObjectInvoker&#38;gt;&#60;br /&#62;
... ... ... ... ...&#60;br /&#62;
&#38;lt;RemoteObjectInvoker&#38;gt;&#60;br /&#62;
                       ...&#60;br /&#62;
&#38;lt;/RemoteObjectInvoker&#38;gt;&#60;br /&#62;
                      etc....&#60;/p&#62;
&#60;p&#62;Q: I know how handle custom event, when complete each request, but how handle event after all requests executed done (without faultHandlers).  Or I must create custom сlass, who catch all resultHandlers, and after all handle needed event?
&#60;/p&#62;</description>
</item>
<item>
<title>stefan van de Vooren on "Views with PropertyInjector will not get carbage collected"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1064#post-4028</link>
<pubDate>Tue, 31 Aug 2010 13:47:42 +0000</pubDate>
<dc:creator>stefan van de Vooren</dc:creator>
<guid isPermaLink="false">4028@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi, I have a problem that my views will not be garbage collected if I set a property injector on it.  Can please someone give me a glue how to solve this problem?&#60;/p&#62;
&#60;p&#62;I have an application&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?xml version=&#38;quot;1.0&#38;quot; encoding=&#38;quot;utf-8&#38;quot;?&#38;gt;
&#38;lt;mx:Application xmlns:mx=&#38;quot;http://www.adobe.com/2006/mxml&#38;quot;
	layout=&#38;quot;absolute&#38;quot;
	xmlns:maps=&#38;quot;com.brightalley.cbTest.maps.*&#38;quot;
	xmlns:views=&#38;quot;com.brightalley.cbTest.ui.views.*&#38;quot;
	xmlns:mate=&#38;quot;http://mate.asfusion.com/&#38;quot;&#38;gt;

	&#38;lt;mx:Script&#38;gt;
		&#38;lt;![CDATA[
			import com.brightalley.cbTest.ui.views.MyView;
			protected function addViewBtnClickHandler (event : Event) :void
			{
				holder.removeAllChildren();
				holder.addChild(new MyView());
			}	

		]]&#38;gt;
	&#38;lt;/mx:Script&#38;gt;

	&#38;lt;!-- Event Maps _____________________ --&#38;gt;
	&#38;lt;maps:MainMap id=&#38;quot;mainMap&#38;quot; /&#38;gt;

	&#38;lt;mx:Canvas width=&#38;quot;400&#38;quot; height=&#38;quot;400&#38;quot; id=&#38;quot;holder&#38;quot;/&#38;gt;

	&#38;lt;mx:Button label=&#38;quot;add view&#38;quot; click=&#38;quot;addViewBtnClickHandler(event)&#38;quot;/&#38;gt;

&#38;lt;/mx:Application&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is my view&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?xml version=&#38;quot;1.0&#38;quot; encoding=&#38;quot;utf-8&#38;quot;?&#38;gt;
&#38;lt;mx:Canvas
	xmlns:mx=&#38;quot;http://www.adobe.com/2006/mxml&#38;quot;
	xmlns:components=&#38;quot;com.brightalley.akzo.diversity.main.ui.components.*&#38;quot;
	&#38;gt;

		&#38;lt;mx:Script&#38;gt;
		&#38;lt;![CDATA[
			[Bindable]
			public var myText : String
		]]&#38;gt;
	&#38;lt;/mx:Script&#38;gt;

	&#38;lt;mx:TextArea
		width=&#38;quot;150&#38;quot; height=&#38;quot;200&#38;quot;
		text=&#38;quot;{myText}&#38;quot;
		/&#38;gt;

&#38;lt;/mx:Canvas&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And this is my main map&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?xml version=&#38;quot;1.0&#38;quot; encoding=&#38;quot;utf-8&#38;quot;?&#38;gt;
&#38;lt;mate:EventMap
	xmlns:mx=&#38;quot;http://www.adobe.com/2006/mxml&#38;quot;
	xmlns:mate=&#38;quot;http://mate.asfusion.com/&#38;quot;&#38;gt;
	&#38;lt;mx:Script&#38;gt;
		&#38;lt;![CDATA[
			import com.brightalley.cbTest.managers.MyManager;
			import com.brightalley.cbTest.ui.views.MyView;
		]]&#38;gt;
	&#38;lt;/mx:Script&#38;gt;

	&#38;lt;mate:Injectors target=&#38;quot;{MyView}&#38;quot; debug=&#38;quot;true&#38;quot;  &#38;gt;
		&#38;lt;mate:PropertyInjector source=&#38;quot;{MyManager}&#38;quot; sourceKey=&#38;quot;someValue&#38;quot; targetKey=&#38;quot;myText&#38;quot; softBinding=&#38;quot;true&#38;quot;  /&#38;gt;
	&#38;lt;/mate:Injectors&#38;gt;
&#38;lt;/mate:EventMap&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is this a known bug in Mate?  I saw some post about problems with modules earlier, but using ‘softBinding’ doesn’t do the trick in this case.&#60;/p&#62;
&#60;p&#62;if you run the application with the profiler, you see that there will be multiple instance of the class 'MyView'. If you remove the propertyInjector, MyView will get Garbage collected &#60;/p&#62;
&#60;p&#62;Thanks in advanced, Stefan
&#60;/p&#62;</description>
</item>
<item>
<title>sandeepkatheria on "STACK TRACE: ArgumentError: Error #1063: Argument count mismatch on"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1126#post-4219</link>
<pubDate>Wed, 08 Dec 2010 05:33:34 +0000</pubDate>
<dc:creator>sandeepkatheria</dc:creator>
<guid isPermaLink="false">4219@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am getting following error.Can anyone help to resolve this error. &#60;/p&#62;
&#60;p&#62;- ERROR: Wrong number of arguments supplied when calling the constructor&#60;br /&#62;
- TARGET: null&#60;br /&#62;
- TAG: PropertyInjector&#60;br /&#62;
- METHOD: constructor&#60;br /&#62;
- FILE: ReportLocalMap&#60;br /&#62;
- NO ARGUMENTS SUPPLIED&#60;br /&#62;
- STACK TRACE: ArgumentError: Error #1063: Argument count mismatch on com.lfs.nextgen.ui.report.presenter::SelectionCritiriaPresentationModel(). Expected 1, got 0.&#60;/p&#62;
&#60;p&#62;In LocalEventMap&#60;br /&#62;
----------------------------------------------------------&#60;br /&#62;
&#38;lt;InjectorSettings&#60;br /&#62;
			eventType=&#34;{ FlexEvent.PREINITIALIZE }&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;EventHandlers type=&#34;{ FlexEvent.PREINITIALIZE }&#34; &#38;gt;&#60;br /&#62;
   &#38;lt;ObjectBuilder generator=&#34;{SelectionCritiriaPresentationModel}&#34; constructorArguments=&#34;{ scope.dispatcher }&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;/EventHandlers&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;Injectors target=&#34;{SelectionCritiriaPresentationModel}&#34; &#38;gt;&#60;br /&#62;
	&#38;lt;PropertyInjector source=&#34;{ MainManager }&#34;&#60;br /&#62;
			targetKey=&#34;stateList&#34; sourceKey=&#34;stateList&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;/Injectors&#38;gt;&#60;/p&#62;
&#60;p&#62;SelectionCritiriaPresentationModel.as&#60;br /&#62;
-----------------------------------------------------------&#60;br /&#62;
import mx.collections.ArrayCollection;&#60;br /&#62;
public class SelectionCritiriaPresentationModel extends PresentationModel&#60;br /&#62;
	{&#60;/p&#62;
&#60;p&#62;		public function SelectionCritiriaPresentationModel(dispatcher:IEventDispatcher)&#60;br /&#62;
		{&#60;br /&#62;
			super( dispatcher );			&#60;/p&#62;
&#60;p&#62;		}&#60;/p&#62;
&#60;p&#62; public var stateList:ArrayCollection;&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>tucsonjhall on "Flexunit and Mate"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1244#post-4543</link>
<pubDate>Mon, 22 Aug 2011 20:03:28 +0000</pubDate>
<dc:creator>tucsonjhall</dc:creator>
<guid isPermaLink="false">4543@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;Unfortunately, this is 1/2 Mate and 1/2 Flexunit but I thought I'd start here. I'm trying to use Flexunit to test my presentation models in an app constructed with Mate. I'm having difficulty understanding how an async test works: I have a model that injects properties into the presentation model. &#60;/p&#62;
&#60;p&#62;In the Flexunit test I try to set up an async test such that when I test a new object creation through the presentation model, that model fires an event that updates the application model and from the application model, I fire an event that says OBJECT_CREATION_COMPLETE. &#60;/p&#62;
&#60;p&#62;In the async test I'm listening for an OBJECT_CREATION_COMPLETE in the async handler but it never fires. I know that's rather broad but might someone explain their method of testing presentation model functions?
&#60;/p&#62;</description>
</item>
<item>
<title>hdave on "Setting a property in the event map"</title>
<link>http://mate.asfusion.com/forums/topic.php?id=1249#post-4554</link>
<pubDate>Fri, 16 Sep 2011 16:00:29 +0000</pubDate>
<dc:creator>hdave</dc:creator>
<guid isPermaLink="false">4554@http://mate.asfusion.com/forums/</guid>
<description>&#60;p&#62;I need to set a property of one of my presentation models in my event map however I don't think I can use propertyinjector because the source of the value is a local variable on the eventmap itself.&#60;/p&#62;
&#60;p&#62;I can write a set function and call it using the methodinvoker tag but I didn't know if there was a better way.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

