MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Bedienungsanleitung Seite 139

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 184
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 138
Migrating RemoteObject components 139
Named RemoteObject
This section describes how to migrate your named RemoteObject tags from Flex 1.5 to
Flex 2.
Flex 1.5 syntax
In Flex 1.5, you used the named attribute to identify which named RemoteObject to use.
MXML tag:
<mx:RemoteObject id="employeeRO" named="SalaryRO">
<mx:method name="getList"/>
</mx:RemoteObject>
flex-config.xml file:
<remote-objects>
<whitelist>
<named>
<object name="SalaryRO">
<source>samples.explorer.SalaryManager</source>
<type>stateful-class</type>
</object>
</named>
</whitelist>
</remote-objects>
Flex 2 syntax
In Flex 2, you use the destination attribute to identify which Remoting Service destination
to use. In the configuration file, you define a destination.
MXML tag:
<mx:RemoteObject id="employeeRO" destination="SalaryEmployeeRO">
<mx:method name="getList"/>
</mx:RemoteObject>
remoting-config.xml file:
<remoting-service>
<destination id="SampleEmployeeRO">
<properties>
<source>samples.explorer.EmployeeManager</source>
<scope>session</scope>
</properties>
</destination>
</remoting-service>
Seitenansicht 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 183 184

Kommentare zu diesen Handbüchern

Keine Kommentare