Hi All :)
I am working on a project using Remoting(Http) on F2B3.
I have a form with some input text boxes and a submit button. On submit, I am making an AMF call to my remote class. I need to extract the value of these form parameters here in this class. As I understand it cannot be done using flex.messaging.FlexContext.getHttpRequest().getParameter("firstName").
I am able to get the HttpSession and HttpServletRequest objects but can anyone please tell me how to extract the form parameters in the remote class?
My MXML looks like:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:RemoteObject id="remoteTagInfo" destination="someDestination">
<mx:method name="getInfo" result="resultHandler(event.result)"/>
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
[Bindable]
public var infoStr:String;
public function getdata():void
{
remoteTagInfo.getInfo();
}
public function resultHandler(result:Object):void
{
infoStr= ObjectUtil.toString(result);
}
]]>
</mx:Script>
<mx:Panel title="Remote Object Panel" width="60%" height="45%">
<mx:Form>
<mx:FormItem label="fname" required="false">
<mx:TextInput id="firstName" width="200"/>
</mx:FormItem>
<mx:Button label="Get Data" click="getdata();"/>
<mx:TextArea text="{infoStr}" width="100%" height="100%"/>
</mx:Form>
</mx:Panel>
</mx:Application>
Regards
Rohan
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

