Flex :: LCDS - Expect List<Long>, Get ArrayCollection Of Integer?

Dec 14, 2010

I have a POJO which declares a collection of List<Long>.

We're currently sending an ArrayCollection of Number, and it's arriving at the client as an ArrayCollection, populated with IntegersGiven the issues with Type Erasure & generics I understand how this is happening. How do I fix it?

Unfortunately because of some internal limitations, the model cannot be changed. Ie - we can't use a subtype, and we can't implement IExternalizable.Are there other options for registering custom type converters in LCDS, other than IExternalizable? Alternatively, are there any annotations we can use that indicate the type to be used for a collection?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Formatting Long Integer To String Function?

Oct 20, 2005

How I should format a long integer into string format with commas? I don't know if there's a built-in func for this, but I haven't found it.
raw int: 2000000
parsed string: 2,000,000

View 5 Replies

ActionScript :: Java - Flex ArrayCollection Of Number Objects To Java Collection<Long> Using BlazeDS

Mar 24, 2010

I am using Flex 3 and make a call through a RemoteObject to a Java 1.6 method and exposed with BlazeDS and Spring 2.5.5 Integration over a SecureAMFChannel. The ActionScript is as follows (this code is an example of the real thing which is on a separate dev network);

[Code]...

View 2 Replies

Flex :: Why List Not Displaying Data From ArrayCollection

Feb 23, 2011

I'm working on a flash cards application and am using an ArrayCollection of Objects to store each cards individual data. When the user click the 'save' button, the text from the two textAreas and the 'title' textinput are stored in the AC as one object with .title, .side1 and .side2 properties that contain the text from the flash card. I have made a List in a separate class I want to have display the title of each card the user has created, but after days of researching and looking around, I still cannot get the display to list the titles.

Part of my NewCard.mxml:
<?xml version="1.0" encoding="utf-8"?>
<fx:Script><![CDATA[
import flash.events.EventDispatcher;
import mx.collections.ArrayCollection;
import spark.effects.SlideViewTransition;
[Code] .....

View 1 Replies

Flex :: ArrayCollection - List With Texts Of Different Size

May 14, 2011

I have an ArrayCollection named authors with lot of texts of different size. I would like to list all info about authors in a way that each item has a size according to the text.
Here is the code:
<mx:List dataProvider="{authors}">
<mx:itemRenderer><mx:Component>
<mx:VBox width="100%">
<mx:Text text="{data.name}"/>
<mx:Text text="{data.about}" width="100%"/>
</mx:VBox></mx:Component>
</mx:itemRenderer></mx:List>

View 2 Replies

Flex - Display An ArrayCollection Of Sprites In A List Component?

May 22, 2009

I have an arrayCollection of objects that extend Sprite, and have bitmaps within them. I want to display these in a list (or some other component that would allow a user to scroll through them, and see their associated data.)

When I do: myList.dataProvider = myArrayCollection

the list just shows a bunch of lines of [Object, Item] instead of the visual sprites.

Here is a simplified version of my Object:

public class myUIC extends UIComponent

[Code]...

Tried many different ways to get it to show up in a List, but can't do it.

View 4 Replies

Flex :: Spark - Skins ArrayCollection As Dataprovider To An ItemRenderer Of A List?

May 4, 2011

Objective:I would like to pass Skins to an itemRenderer (which is a Button) of a List, and be able to skin every button in that List.This is what I have:

List:

<s:List itemRenderer="renderers.ItemRenderer" dataProvider="{collectionWorkspace}" />

ArrayCollection:

<s:ArrayCollection id="collectionWorkspace">
<comp:Layout1 />[code]...

I get an error (fixed for clarification):Error: Skin for Application....Button1 cannot be found.

View 1 Replies

Actionscript 3 :: Recognize A Holding/long Touch On A List Component In Flex Mobile?

Sep 13, 2011

IŽam trying to create my own custom list component in a Flex mobile Project which fires an Event when the user touches a listitem and holds the finger down for a given time.Some kind of "longTouch"-Event like its implemented on native android listitems to edit the entry for example.

I tried to listen for the MOUSE_DOWN Event to start a timer and dispatch an event when the timer finished. But this approach failed because i cant get the listitem that was pressed by the user because the List component updates the "selectedItem"-property only after the user lifts his finger from the list.

View 1 Replies

Flex :: Playing A Large/long H264 File With NetStream Takes A LONG Time To Begin Playback?

Aug 1, 2010

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

View 2 Replies

Flex :: Difference Between Lcds And Fds?

Dec 23, 2009

Just want to clear a very basic doubt am having for quite some time.

Is LCDS and FDS the same

View 1 Replies

Flex :: Material Use To Learn Flex/Air, And With ColdFusion + BlazeDS/LCDS?

Apr 15, 2012

What material did you use to learn Flex/Air itself, and with ColdFusion + BlazeDS/LCDS?

View 7 Replies

Flex :: LCDS Is No Longer Baked In Into CF9

Sep 8, 2009

I've heard somewhere that LCDS is no longer baked in into CF9, and LCDS Express will be phased out, is that true?

If I were to start a new CF8.01 + LCDS Express 2.6 project, what are the risks? Should I abandon that plan and go for BlazeDS instead?

View 4 Replies

Flex :: Mxml - Components Bound To Empty ArrayCollection At Load Time Don't Render As Expected When The ArrayCollection Is Updated?

Oct 27, 2009

I'm new to Flex and am using TileList bound to an ArrayCollection. The array collection is empty at load time, and then updates with the results from am HTTPService call. The problem is that the item renderers aren't being rendered as expected, I'm guessing because there was no data when they were first rendered at load time. Here's simplified example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>

[code].....

View 2 Replies

Flex :: GetBy Multi Fields Using LCDS?

Feb 28, 2012

In my project, I use LCDS to define a holiday table which contain holidayId, countryCode and companyCode. LCDS generated all the getBy which are very handy. However, I need to get the records which are having countryCode = US AND companyCode = ABC. Surely I cannot use any of those generated getBy (each of them deals with a single field only). Can you suggest me how to modify the code in generated services (in my case, it is _Super_HolidayService.as) to handle multi-key data retrieval

View 1 Replies

Flex :: Get The Client's IP Address In An LCDS Service Call?

Aug 30, 2009

I'm trying to find the IP address of a client when they make a particular LCDS service call. Understanding all the issues of getting a "real" IP address and privacy concerns and so on, it is possible to find the client's IP address?

View 3 Replies

Flex :: Configuring LCDS HTTPProxy Service Behind A Firewall

Apr 6, 2010

I have an LCDS server sitting behind a corporate proxy/firewall. I need to use a configured HTTPProxyService on the LCDS server to make requests out to beyond the firewall (can't go directly from the client because of crossdomain.xml issues) How do I configure LCDS to use the corporate proxy on it's outbound requests?

View 2 Replies

Java :: Flex / LCDS: Serializing InputStream As ByteArray Using BeanProxy

Jan 6, 2011

I'm trying to serialize an object which has an InputStream. I need it to arrive on the flex client as a ByteArray.

[Code]...

I've set breakpoints in this code, and I see it being called as expected. However when the object arrives on the client, the input stream is typed as Object, and it contains no properties. What am I doing wrong?

View 1 Replies

Actionscript 3 :: Search A Very Long List Of Words For A Match In It?

May 16, 2010

For a word matching game, when a player moves a piece I need to check the entire dictionary to see if the the word that the player made exists in the dictionary. I need to do this as quickly as possible. simply iterating through the dictionary is way too slow.

What is the quickest algorithm in AS3 to search a long list like this for a match, and what datatype should I use? (ie array, object, Dictionary etc)

View 2 Replies

ActionScript 3.0 :: Long List Of Variables Convert Into Array?

Jul 8, 2009

I'm trying to turn this

ActionScript Code:
var a1:Number = 563
var a2:Number = 500
var a3:Number = 600

[Code].....

View 9 Replies

ActionScript 3.0 :: Displaying List From ArrayCollection

Feb 22, 2011

I would like to have a List displayed that displays data collected from the user into an ArrayCollection. I have a main DataHandling.as class that "adds" the data to the AC as an Object, but when I use trace() on the AC from another class, it does not show any values being present in the AC.

I also added some test data to make sure I was populating the AC correctly and that works just fine. I just can't seem to figure out how to add data (text specifically) to the array from another class. (The other file is .mxml)Here is my mxml code (MyCards.mxml):

ActionScript Code:
protected function myCardsList_creationCompleteHandler(event:FlexEvent):void
{
// This traces the 'cards' ArrayCollection from the other .as class
// No values are listed

[code]....

View 0 Replies

ActionScript 3.0 :: Parse A List To An ArrayCollection?

Mar 30, 2012

how to parse a List to an ArrayCollection?

View 4 Replies

Java :: Flex - LCDS Service Returning Null Asynctoken When Executed 2nd Time?

Dec 23, 2011

I'm developing a Flex application using RobotLegs, LiveCycle DS & Java.I'm trying to implement an update function, using LCDS, but I'm running into some strange behaviour:This is the ActionScript code within a RobotLegs' execute command, used to perform the update:

var token:AsyncToken = services.requestService.commit(new Array(model.currentRequestDetail));
responder = new AsyncResponder(resultHandler, faultHandler, token);

[code].....

View 2 Replies

ActionScript 3 :: Scroll To Alphabet In List (ArrayCollection DataProvider)

Oct 4, 2011

I have a list (LIST#1) of artists:
2Pac
Adele
Amerie
Beyonce
Jason Aldean
Shakira
The Trews

I also have a list (LIST#2) that has the values #,A-Z - how would I create an alphabet jump? So If a user clicked on "A" in LIST#2 that would automatically scroll to "Adele" at the top of LIST#1 - not filter so he/she could scroll up to view 2Pac or down to view The Tews if they were not in the view yet. Its a standard Flex Spark List with an ArrayCollection as the dataProvider - the artist field is called: "title" along with a unique id field that is not visible to the user.

private function alphabet_listChange(evt:IndexChangeEvent) : void {
var letter:String;
letter = evt.currentTarget.selectedItems[0].toString();
trace(currentDictionary[letter]);
ui_lstLibraryList.ensureIndexIsVisible(currentDictionary[letter]);
[Code] ......

View 2 Replies

ActionScript 3.0 :: Create Arraycollection Or List Of Objects Of Class?

Nov 2, 2009

I am developing one small demo application. In that i have created one action script class named City which has two fields. cityId, cityName and i have also mapped this class with my backend java class City using tag RemoteClass. at Java side City class contains same fields as in actionscript city class.

[Code]...

View 0 Replies

ActionScript 3.0 :: Set An Integer's Value To Point To Another Integer As A Reference?

Jul 18, 2010

I want to have a dynamic integer reference.

For instance

ActionScript Code:
var heart:int = 5;
var stalker:int = heart;

[Code].....

Obviously stalker traces as "5" while "heart" is "7". However, I need to make stalker a pointer reference to heart.

View 3 Replies

ActionScript 3.0 :: Var Integer Holds A Integer (Uint)?

May 31, 2011

when I try to type cast something, there r 2 ways to do it:if var integer holds a integer (Uint)

text_txt.text = integer as String;or text_txt.text = String( integer );

but sometimes when I want to pass a value to a function both ways don't work and only one way works, when should I use option 1 and 2???

View 2 Replies

Expect A Standard Calculator To Work?

Jul 16, 2010

I was thinking of developing a free online calculator in flash. It would be a standard calculator with basic functions like "+", "-", "*" etc. and an advanced calculator with more functions which would be similar to the scientific pocket calculator.

And I have a dilemma regarding the standard calculator. It's about the way it does the calculations. How would you expect a basic calculator (not an advanced one) to calculate this expression: 1+2*3 equals 7 or 9? On paper the result is clearly 7 but basic pocket calculator calculates the expression in line, unaware of the higher priority operators and give you 9 as a result to the expression above.

In the advanced version of the online flash calculator this expression would equal 7 but I have doubts about what people expect from a basic calculator.

View 1 Replies

ActionScript 3.0 :: Hyper-linking - All The Images Expect The Moon And Spaceman

Jun 12, 2011

I have captured a very old version of flash which was designed using Macromedia Flash and now extracted by ******* and try to hyper-linking but these wont work. I noticed that the option that i can is ActionScript 1.0 and 2.0 and code snippets works with Actionscript. I have little experience with layers as i know Photoshop and i just copy all of Layers and paste in new Flash with Actionscript and now can use the Code Snippets but they still dont work and i dont know. These images are set as buttons open up Action and add code there but they dont work. I dont know what to do next. Here's a flash that i just want to simply link all the images expect the moon and Spaceman.

View 6 Replies

ActionScript 2.0 :: LoadMovieNum - Users Of The Player To See How Long They Have Listen Or How Long Time Back Of The Song

Feb 5, 2004

I'am making a advanced mp3 player arund this tutorial: [URL] and i want the users of the player to see how long they have listen or how long time back of the song. i have the AS i what to use but i cant connect them. becuase the tutorial i used does not make a sound objekt (MUSIC)

[COde]...

View 1 Replies

Flex :: Actionscript - What Is The Maximum Integer Value

Aug 5, 2009

I was trying to display a number: 2893604342.00. But, when i am displaying it it is displayed as: -2893604342.

Following is the code snippet ...

avg += int(totalData[i][col.dataField]);

I have even replaced it with Number, but it's still showing the same negative number.

View 4 Replies







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