Java :: Access The Principal Object Returned By A LoginCommand?

Jun 10, 2011

How can I access the Principal object in a Flex client that was returned by the doAuthenticate() method in the LoginCommand?

Adobe's LCDS Custom Authentication page isn't much help in this matter, as this is the only example they show for a successful login:

// Handle successful login.
private function LoginResultEvent(event:ResultEvent, token:Object=null):void {
switch(event.result) {

[Code].....

I can return a strongly typed object as the Principal from the doAuthenticate() method, but how do I access it in the client's result handler?

Update: I've read the LCDS documentation twice now and there is no mention of accessing the Principal in the client. The only data I can retrieve from a result is the string 'success'. Anyone know if this is this the only result available from a custom authentication?

View 1 Replies


Similar Posts:


Java :: Flex File Upload With HTTPS - No Access To User Principal

Dec 29, 2009

We're trying to upload a file from a flex client to a JEE app.
In a full HTTPS environment
JEE server is JBoss 5
Using BlazeDS 'Custom' authentication (username and password are entered through a flex form)
Using BlazeDS per session authentication
In regular AMF calls, we can access user principal and use role mechanism. However, in our upload servlet, we have no access to user principal.
request.getUserPrincipal() // returns null

View 2 Replies

Java :: How To Call Method On Remote Class Returned By Object

Nov 5, 2009

I have a RemoteObject returning a 'Schedule' class. I've created a client side RemoteClass to map to it. All properties of the class instance are coming in fine. I just not clear on how I go about calling methods on the class. How would I call a setter on startdate?

package classes.remote {
[Bindable]
[RemoteClass(alias="com.site.data.schedule.Schedule")]
public class Schedule {
public var id:int;
public var modifydate:Date;
public var startdate:Date;
public var enddate:Date;
}}

View 2 Replies

ActionScript 3.0 :: Access The Stage Property From A Different Class That's Not The Principal Class?

Jul 2, 2009

I was wondering how do you access the stage property from a different class that's not the principal class tied to the fla? Essentially, I have main.as which calls another class menu.as, and I can't seem to be able to use the stage.stageWidth property from menu.as. What's the proper way to be able to use the stage property from any class? Do I have to import it separately each time?

View 2 Replies

Cannot Show Returned Java Class Data In AdvanedDataGridColumn Of Flex AdvanedDataGrid

Feb 28, 2011

I am developing with Flex + java + hibernate in one project. I am trying to add one more advanceddatagridcolumn in flex AdavanedDataGrid control. Actually it work very well but only except I added columns data. I have no idea what should I do to make it out I am telling work flow. At first call select method in DeliveryService.class through the RemoteObject and then call DeliveryMgr.class for call business work. After get return list type return value it pass to presentation class to setting all of the selected return value. I can print trace log what I added columns data in DeliveryPt.class but it cannot return to flex area.Strange thing is I can check out value of what I want to show data in DeliveryPt.class but it does not show up in AdvanedDataGridColumn of Flex.

[Code]...

View 1 Replies

Java :: Flex - Max Upload File Size For Java Using Remote Object (BlazDS)?

Jul 16, 2010

I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.

View 1 Replies

Actionscript 3 :: Stop A Returned Object Being Modified?

Oct 29, 2010

If an AS3 method returns a reference to a complex type, is there any way to make that 'readonly', like how you can have const member functions in C++? An architecture I want to use calls for a class building itself from a passed template object... and really the template object should not be modifiable. I'm currently forced to add call-back enumerators and/or lots of extra accessor methods.

View 4 Replies

ActionScript 3.0 :: Check If The Value Returned Is A Null Object Reference?

Jul 10, 2009

I have a form where a user can select up to three radio buttons and click submit. however if they don't select a radio from one of the groups (they dont care to answer the question or just missed it) the value of the radio button (I think) is null and gets returned as such using this code:
 
function Question1():Object{    return RadioButtonGroup(Q1R1.group).selection.value;}
 
Then, when they hit the submit button it sends the values to the database. This works fine, but only if they select a radio button for each group. If they missed one I get the following error:
 
"TypeError: Error #1009: Cannot access a property or method of a null object reference.    at mid_fla::MainTimeline/Question1()    at mid_fla::MainTimeline/clickHandler()"
 
When I did a trace on the value of Question1() it returns function Function() {}
 
how to check if the value returned is a null object reference or whatever and give it a default value if it is?

View 3 Replies

Asp.net :: Load An In Memory XML Returned By A Linq To SQL Query To An SWF Object?

Nov 12, 2010

Can i load an in memory XML, returned by a linq to SQL query, to an SWF object? And here comes the long version. The purpose is loading an in-memory XML file, to an SWFobject via a querystring.

Currently i read and load the XML file from an absolute path.

[Code]...

View 1 Replies

Java :: Accessing A Java Method In A Flex Object?

Jul 16, 2010

Assume I have the following java class public class Square {

[Code]...

Inside an actionscript class, using RemoteObject, I invoke the java method SquareDAO.findById(Long id) an I get an Object with the following: But I don't get the area. How can I invoke the method getArea() ?

View 1 Replies

Data Integration :: XML Object - Status Returned Varies Between Calls

Nov 25, 2007

Sometimes I get "success", sometimes I get "no success, no error" What gives? Same results across the wire as far as I can see...

[Code]....

View 2 Replies

ActionScript :: Flex - An Object Returned From A Function Call Changed The Next Time The Same Function Is Called?

Jan 10, 2012

I have an AS3 program that calls a function multiple times. The function must return multiple variables, so I created a class for the function to declare an object containing all of these variables. For example, here's my class:

package
{
public class PER
{
[Code].....

Let's say the calling program calls the function, which returns the variables into data_set1 (where data_set1 depends on input variables arg1, arg2, arg3) using:

var data_set1:PER = function_name(arg1, arg2, arg3);

The calling program does some stuff, then calls the function again, but returns the variables into a new variable name, data_set2:

var data_set2:PER = function_name(arg4, arg5, arg6);

My intention is that data_set1 and data_set2 are different (e.g. not linked together).

My question is, given that arrays are passed by reference, will data_set1 be modified to agree with data_set2 upon the 2nd function call? Why or why not?

View 1 Replies

ActionScript 3.0 :: One Color Changing A Static Text - Two: Control The Principal Timeline?

Mar 5, 2009

TWO PROBLEMS: THE FIRST ONE: I have one Button instaced botao01 Inside this button i have a animation, with to words alternating in a mask, each one word is a MC with instace names:

txt01_bt01 and txt02_bt01 This two MC have ONLY the text "home" inside, with one frame... its only a MC of a static text All flash have some objects, and this objects change the colors with some variables.... and this works fine. I want to change the colors of this static texts too. BUT when i put the command to change the color of the movie clip txt01_bt01, he really change the color BUT he lost the animation, the movement, he dont have more the movement!

[Code]...

View 6 Replies

Java :: Access Jsp Variable In Mxml

Apr 19, 2011

I have to access jsp variable in mxml file... or how to access jsp variable in java file...

View 1 Replies

Java :: Way To Access Library From Flash?

Sep 23, 2011

Flash is great tool for animations. I was wondering if I could send events to Java and receive results back. In other words call some functions in flash and get their results.

View 2 Replies

Java :: Access Movie In External Swf Using Xml Data?

May 18, 2011

Is it possible to access a movieclip inside an external swf (.fla file), using data from a vector?

The following code works correctly:

this._graphics.message2_mc.textLabel_txt.text = "Test";

Where as when I loop through a vector and try to replace "message2_mc" it cannot find the movie clip:

for(var i:uint = 1; i <= this._playlistState.subMovieVector.length - 1; i++)
{
var movieName:String = this._playlistState.subMovieVector[i].movieName;
this._graphics.movieName.textLabel_txt.text = "Test";
}

Presumably this is because I am putting a string in the middle of the line of code accessing the movie clip?

View 1 Replies

Java :: Can A Webpage Access Data Being Sent To A Computer Via USB

Jun 6, 2011

What are the options (or is it possible at all) for a web page (running on a remote server, not localhost) to access a data stream (not video) coming in via the USB port of the local computer?

Ideally this would work cross-platform (Windows, Unix, Mac anyway) and the local computer would not have to download/install anything to make it work (beyond what you can reasonably expect a computer to have)

An embedded Java applet seems the only way, but I'm wondering if there's any other technologies that could do it. If the restriction is lifted so that the user can install something (basic for non-techies, not setting up a local server running node.js for example) does that make more things possible (Flash?)

View 2 Replies

Java :: Access GWT Functions From Flex Widget?

Jun 29, 2011

I want to develop a GWT javascript application that must interact with a flex widget and fire events from 2 directions (flex to GWT and GWT to flex)For example I develop a function in GWT called onWidgetSelected(int widgetID){ ...} the generated javascript code does not contain the name of this function. So If I want to invoke it from flex through javascript call what should I do ?

View 2 Replies

Java :: Access Flashplayer Using GET Method Httpclient?

Mar 28, 2012

how to access a shock-wave flash player which has the Content-Type: application/x-shockwave-flashits a request get so i am using GET method of HttpClient .any solution to access flash content through Httpclient?

View 1 Replies

Java :: Observer Design - How To Access Method.invoke Scope

Nov 9, 2010

i currently have a Java Observer/Observable setup in which i switch on some field within the Object parameter of Observer.update (e.g. event id) to determine how to handle an Observable notification. this creates verbose code like:

[Code]....

View 2 Replies

Flex :: Access To Object Property When The Propety To Access To It's In A String Variable?

Oct 20, 2010

It's too complicate to explain but I'll give you an example

I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like:event.result.name or event.result.age and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.result. with the variable?

View 2 Replies

Flex :: Access A Remote Java Class (on Spring/BlazeDS) From The Cairngorm Application?

Nov 5, 2009

I seem to be getting the following error when I try to access a Remote Java class (on Spring/BlazeDS) from the Flex/Cairngorm application. I am going crazy at the moment trying to see what is wrong

[Code]...

View 2 Replies

Java :: How To Convert Object To ByteArray

Jun 25, 2010

The coding language is Java.I have a ByteArray embedded in ActionScriptObject.(Smartfox Server)I want to convert it into ByteArray.The idea is to save it as an image.This a sequel to the post --> Convert Byte Array from Action Script to Image in Java and save it

View 2 Replies

Flex :: Java Map To Object Conversion?

Jul 4, 2011

From java i am sending ordered Map.In flex when i convert that into Object i am loosing the order which i maintained in java.Is there any other way to maintain the order in flex object?

View 1 Replies

Java :: Determine The Size Of An Object?

Nov 12, 2011

In Java, what is the best way to determine the size of an object?

In Actionscript I can usually just do:

var myVar:uint = 5;
getSize(myVar)
//outputs 4 bytes

How do I do this in Java?

View 3 Replies

Flex :: Access XML Object In Restlet 2.0 Thats Wrapped Inside A Representation Object?

Jan 7, 2010

I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it? I tried initialising the received Representation object to a DomRepresentation, but thats not working. If I put the received Representation object into a Form object, then getFirstValue is returning that XML as a string! I noticed that the contentType of the HTTPService was application/www-form-encoded so I set it to application/xml and its not helping either. I use restlet 2.0m6 and here is the code snippet that I use -

[Code]...

View 1 Replies

Java :: Use A Wrapper Class Around An Object In Flex?

Jul 11, 2009

Select a school listed in the first datagrid, and display all the student records /details of that school in the next datagrid. But, since datagrid is editable and requirement mentions : "Use a Wrapper class around the object to get the data, set the same and save. Ensure wrapper is bindable to take into consideration the updates being made to datagrid text fields."

I have an object which is a type of a Data Access Objects i.e. DO.

mySchool:mySchoolDO.

The mySchoolDO is an actionScript class of following code :

public class mySchoolDO
{
public var schoolName:String;
public var schoolLocation:String;

[code]....

The showSchoolStudents will display all the details of students on to the datagrid. But, my datagrid is editable. And, I want to use WRAPPER CLASS around this object such that

a> I can retrieve individual values as present in studentsDO i.e. studentID, studentCourses, studentGender, studentPhone.

b> I shouldbe able to set the values as they are updated in the visual datagrid.

c> Finally save all the data and submit on submit click.

View 1 Replies

Java :: Can A Flash Object Be Exported To An Application

Mar 2, 2010

Is it possible to play a Flash object/file into a jframe < netbeans > / any java application ?

View 1 Replies

Java :: Remote Object Flex Not Working?

Feb 8, 2011

I'm building an application using Flex 4 + Spring Blazeds Integration 1.5 + Spring 3.0.5 + Hibernate running on jboss-5.1.0.GA. I create a simple login form, and when a submit a string via remote object it works fine. But when a try to use an Object its simple doesn't work. Funny is that it even don't shows the Alert that a put! Also, if I remove the tag "RemoteClass" it sends to java but an error occur. Bellow is the code and configs.

My java class:

package com.controlefinanceiro.entities;
// imports
@Entity

[Code]....

View 1 Replies

Java :: Possible To Get List Of Paths Of Every Object In SWF File?

May 18, 2011

I stumbled upon the need to find out (inside Java code) which files are dynamically loaded by an SWF-file. Is there any possibility to get a list of paths of every object referenced inside? I tried out some libraries without proper documentation and gave up. Maybe there is an external tool which can be accessed by Java via command line?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved