Java :: Flex 4 Loader Having Status With Data Service
Apr 23, 2011
I have been working on a flex application with java, as i have used Life Cycle Data Service for communication, i wana know, is there any function of flex, where i can see the loading status in percentage, that how much record is being loaded.Problem is, if there is lengthy record, no body comes to know, whats happening with software, like in Comboboxes or Grids, users usually think it as a BUG in application, but ofcourse it is not.I need such graphical loader, which keeps on loading with proper status in percentage, until it receives all data from JAVA (SQL Server).
View 2 Replies
Similar Posts:
Dec 9, 2010
Since my service, I would like to push data (messaging).
@Service
@RemotingDestination
public class LoginService implements ILoginService
{
[Code]....
With this implementation, nothing to do ... clients receiveid nothing.
So, how I push data from a service like that ? Is it possible ?
View 2 Replies
Dec 8, 2010
I have a ValueObject in Java Source Code with a java.util.Date or java.sql.Date attribute and in Flex-AS3 have a DTO mapped by [RemoteClass] using a Date AS3 Type.When I set a date in Flex with 2010-09-05 format YYYY-MM-DD in DateField component and send it to Java, java shows 2010-09-04 there is a difference of a day from flex to java
I'm using Java EJB Service + GraniteDS + RemoteObject to comunication.
View 1 Replies
May 25, 2010
I created a Java REST service using Jersey. I use three of the HTTP "verbs" GET, POST and DELETE. I want to create several prototype front ends for the service. After much research, a lot dating to 2008 and 2009, I have been unable to find anything remotely simple.My three options are:
1) resthttpservice. This project hasn't been updated in a year. The only activity are one off suggestions that individual users have implemented.URL...
2) Create an AIR application. This isn't unfeasible.
3) Writing my own socket level code but there is a security restriction with flash players and I need to implement a policy server.
I have already read the question posted about asking whether using Flex for REST services were worth it. That information is old as well. I want to introduce REST services to my company but Flex's limited support for HTTP PUT and DELETE are discouraging. My service also uses the Accept header to determine if JSON or XML will be returned to the client. I can't seem to change HTTP headers without doing socket programming.Is there an easy way to use Flex 4 with RESTful services that uses PUT/DELETE and the Accept HTTP header?
View 2 Replies
Sep 21, 2011
I am trying to read data from the java web service from flex mxml/action script, seems like the call i.e request/response is successfully but when unable to read the value from the response[code]...
View 2 Replies
Oct 21, 2010
I am searching for a flex library for job scheduling. I know the Timer API, but this is not exactly what I am searching for. Here is (one of) my usecase for my AIR application:Try to ping to website xyz every 15 minutesEvery first monday of a month try connect to website abcdefgo I am searching for a library like quartz in java, just a small sweet library for executing cron(like) jobs.
View 1 Replies
Aug 2, 2011
I am developing a flex application with flex 4.1 sdk and java backend (runs on Glassfish 3.1 via http). For security reasons I decided to move my authentication process to https until a session id is obtained. Therefore I changed the filter settings to use ssl for login and logout pages(just two pages due to performance reasons. The data-size sent to client is large and I do not want to slow down the system). Glassfish forwarded these pages to 8181 port (which is HTTPS port). Everything is ok for the java part. However flex defines the 8181 port as a different domain and then problems arise. Due to flash's same-origin policy it cannot load the secured content. Normally a crossdomain.xml is the solution but I am accessing content of the same domain through a different port. What will be the solution ?
View 1 Replies
Nov 5, 2009
I have attached a service-adapter to a spring message-destination as follows:
<flex:message-destination
id="secured-chat"
send-security-constraint="trusted"
[code]....
View 2 Replies
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
Apr 28, 2010
I am bussy with a Flex Project with a data services. Flash builder installed Zend Framework with Zend_Amf.
When i run the project i get the error NetConnection.Call.Failed: HTTP: Failed. With chalers i say that Zend_Amf give the error: AMF data is incomplete (0 bytes of 0 bytes). Please check the recording limits in the Recording Settings.
I don't know what the problem means. I have searched on google, but i haven't found a good result. The Flex project code is:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code]...
View 2 Replies
Jun 30, 2011
I want to know the size limit of data which can be fetched in case of HTTP/Webservice/RO.
View 2 Replies
Jul 9, 2009
I am writing a small flex application that will, eventually, call PHP services to perform its work. In the meantime, however, I would like to have it use local data in XML form to allow me to develop the Flex part independently of the data service.
What is the best way to do this? I want to emulate a service like this:
[Code]...
And invoke the service using issuerService.send(), populating my results as expected. How do I do this as though it were a RemoteObject instead, but keep my data local?
View 2 Replies
Mar 12, 2011
I'm using the data/services in Flash Builder 4 to access the php functions of a site within an Air based Crud, and figuring out the most efficient ways to work with the data objects that come back.
[Code]...
The data comes back as an associative array, which is fine if I want everything from it to be treated the same. But I'm not sure how I am supposed to pull a particular column from the array without having to go through a for loop to parse through it.. since right now the contact name would be at allContacts[i].name.
Basically I want to make a list of the names from the allContacts, so I want an array of allContacts[i].name to set as the data provider for a element. Is there any way to get that done without having to write a for loop to convert it into a new array or writing a new php function?
View 1 Replies
Apr 20, 2011
i am trying to add a web service in flex 4. This web service is deployed in share point 2010 in the intranet . I am able to see this wsdl file through browser but trying to introspect the service is giving an authentication error. I am getting the following error :-
There was an error during service introspection.
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://sql2008:47672/_vti_bin/StoryboardingDatabaseConnect.asmx?WSDL'.: java.io.IOException: Authentication failure
View 1 Replies
Aug 26, 2011
I am writing an application in Flash Builder 4.5. I am also writing a PHP Web service to access data from our MySQL database. This Web service will be made available to third party clients for them to develop applications to access our database as well, via SOAP.
Is there a big performance difference between connecting to the service in Flash Builder via connecting directly to the PHP file vs. connecting to a Web Service via SOAP?I would kind of like to connect to this service the same way that our clients will, to make sure things stay as uncomplicated as possible for future development, but performance is my main priority.
View 1 Replies
Nov 20, 2011
I have generated a service call to a service called ServiceName.getService() - I can successfully pull data displayed inside mxml layout elements, but, instead of displaying it, I just want to assign it to a global.
I always get an error on the second line below - apparently the value has not been fetched yet. I have also tried adding a listener, and setting the global value on COMPLETE, but that is apparently never called. (I am guessing this generated service call stuff does not actually trigger a COMPLETE?)
Short question is: how do you simply assign a variable after you have loaded it via a service data call. (Not just HTTP)
getServiceResult.token=ServiceName.getService();
GlobalVars.variablename = getServiceResult.lastResult.variablename;
View 1 Replies
Jun 9, 2010
I found at this Adobe tutorial a nice "RemoteService" class that creates a RemoteObject and contains the functions for handling the result and fault events. If I wanted to use this approach, how could I pass the data from the result handler to interfaces that modules from the main application could use?
I could put the RemoteService/RemoteObject in the modules, but (in my opinion- and I could be wrong) the best design seems to be using the remote calls in the main app and passing the data along to the modules.
View 1 Replies
Mar 8, 2012
i am trying to put data in to combo box from php page using http service .there are 2 data records in the php page but instead of displaying data it displays [object object] [object object] in the combo box list
here is the mxml code
@namespace s
"library://ns.adobe.com/flex/spark"; @namespace mx
"library://ns.adobe.com/flex/mx";
[Code]....
View 1 Replies
Dec 23, 2009
Has anyone used or is aware of a service browser to test AMF calls?I am looking for a tool similar to ZamfBrowser ( http:[url].... ), but one that works for the Java environment.ZamfBrowser is geared towards AMFPHP.The idea here is to provide a service browser, that allows developers to test Java services using the AMF protocol, without having to go through the Flex UI all the time. There has got to be something out there already for this, but I can't seem to locate anything..... It's kind of funny and strange that a service browser exists for AMFPHP but not for regular AMF calls in a Java environment.
I would imagine something exists under Blaze or LCDS? ...Trying to find it in the docs but can't seem to find anything ....The best alternative I can think of at the moment is to use FlexMonkey to record stuff, and then to simulate it using that....which is okay I guess but still sucks because you have to go in and create the Flex UI first, whereas with something like ZamfBrowser, you simply point it at the service calls,it tells the server-side developers if their code works, etc. generates the required as3 classes for you... and makes the integration process much easier in a large team.
View 3 Replies
Oct 11, 2011
I have a Java server application with a ton of different entities. So far, each entity top level entity has its own CRUD service. By top level, I mean the root of a tree of entities that can stand alone.
Now I am getting into the heart of my Flex client and find I am needing/writing many different queries. But where best to put these queries?
Say for example, I have a query to find all "foos" based on their associate with a certain "bar". Currently that query is on the "foo" service (findAllByBar), but I am finding that it would be very convenient to have it (also?) in the "bar" service (findFoos). On the other hand, I could also create a query service and lump all the queries in there.
View 2 Replies
Feb 2, 2011
I am experiencing a strange problem when I want to bind a service to a button or something else:
[Code]...
I can add the services to the Data Services panel but I have two strange things:
1) when I want to configure the return type he doesn't let me create a new ValueObject type, I only get the bottom datagrid which states: Properties returned by the operation: Property: country_Id, provence_Id, city_Id, id_cdpc, district_Id with the related values on the right side. Why can't I create a new data type on the top?
2) When I accept this and want to add the service call to a button (drag&drop) I get the following error: Error occurred while generating code. Make sure that there are no compiler eroors and try again after reopening the file. Componentn type services.cdpc.CDPC not found... (ps: When I perform a Test Operation everything seems to be ok, I get the expected output values)
View 1 Replies
Apr 4, 2011
I have a flex-application deployed on tomcat with blazeds. User constantly selects ranges excel-document. Now, a user enters a cell addresses in text fields (for example, C1: C20). But it is very inconvenient! How to display excel-data as a table in my application? I think, I can parse excel-document using Apach POI and transmit these data to the Flex-application. But there are other ways?
View 2 Replies
Jun 21, 2009
I'm developing a Flex front end client for a Java server application and I have a set of model classes that represent objects in my business logic and should have the same properties and exhibit the same behaviour throughout all layers. These objects
-Have form validation logic for user input
-Are displayed in various forms (lists, detail views ...) throughout the UI
-Are retrieved from and sent to the server using XML or AMF
-Are validated again on the server
-Are stored in a RDBM with tables and fields corresponding to the classes and fields
This is a very common application structure, I guess. I'm already using:
ORM for the Java backend (Eclipse persistence package)
Automatic mapping from XML to Action Script, using XML schema and the classes in mx.rpc.xml, as described here.
Now, what I'd really like to do is define the objects once (I already have them in XSD) and have tools set up class stubs for the whole chain. What can I use?
I've already heard of (but not evaluated):
XMLBeans to generate Java classes from XML Schema
Granite DS to generate AS classes from Java classes
View 1 Replies
Aug 4, 2010
I want to analyse if the XML I send from my client Flex to my Java using remoteObject is compressed or not. for this, I'm using Wireshark, but it can't get packets in the localhost (windows vista)
View 2 Replies
Jan 23, 2012
I have a few values in Java VO, and using cairgorm framework, i had mapping the Java VO to Action script VO in Flex and given same variables name as java Vo variables name. Now the Vo is mapping fine and when looking the result all variables are displaying as null. Can i know the reason for that.Java returning list of VO's.
package com.configuration
{
import com.adobe.cairngorm.vo.IValueObject;
[code]......
View 1 Replies
Aug 17, 2010
As ArrayCollection in Flex is limited, I'm looking for a data-structure that something like LinkedHashSet in Java, LinkedHashSet maintains a doubly-linked list running through all of its entries,it defines the iteration ordering, which is the order in which elements were inserted into the set (insertion-order).But there is little information about Flex data-structure
View 2 Replies
Dec 25, 2010
I am using flex with java.
I am fetching data from DB and put in object bean by setter and getter . and make list of beans.
this list i want to show in data grid in flex.
View 1 Replies
Jul 3, 2011
I want to send data from Red5 to Flex using remote sharedobject.
my Red5 code :
this.addScheduledJob(5000,new IScheduledJob() {
@Override
public void execute(ISchedulingService jobs0)
[Code].....
it doesn't shows error or warning, but my flex function doesn't work, even Alert in my function not working.
View 2 Replies
Oct 26, 2011
I'm sending through a socket from java to flex client some data and the flex side can't seem to handle it right. In the java i'm looping over 8 objects and for each object I create a long string 1:lsls:2:3:justexample then the java does writeToSocket("1:lsls:2:3:justexample") for every iteration of the loop. But in the client side, it seems that only 2 out of the 8 arrived. what can be the problem?
View 1 Replies
Dec 9, 2009
I am using BlazeDS for data-push feature in my Flex application project. From the official tutorial, Getting started with BlazeDS, it shows messaging example with producer/consumer from API. but how can I implement server side which doesn't need to be invoke from Flex client, but from within server-side instead. I got some idea but I don't know how to do because I'm a Flex developer, not Java developer In Google, there's a tutorial show about I need to extend ServiceAdapter class in Java-side, which extends Invoke method. Do I need to extend other class instead of this to do what I want?
View 3 Replies