explained the origin of GraniteDS and the differences with LiveCycle Data Services
Group items matching
in title, tags, annotations or url
11More
Interview of GraniteDS founders | RIAgora - 0 views
- ...8 more annotations...
-
validation framework is a specific adaptation of the JSR-303 (Bean Validation) specification to Flex: like its Java counterpart, it relies on validation annotations placed on bean properties and provides an engine API that lets you validate your forms without writing by hand a specific validator for each of your input fields
-
code generation tools provided by GraniteDS so that when you write your Java entity bean with validation annotations, they are automatically replicated in your ActionScript3 beans
-
problem with LCDS is mainly that it promotes a strict “client / server” architecture, with – roughly speaking – a heavy Flex client application connected to a server almost reduced to a database frontend
-
big majority of these organizations use BlazeDS, a free and open-source subset of LCDS
-
need more advanced mechanisms than just Remoting start looking for open-source libraries to enable deeper integrations with the Java business layer, and GraniteDS is for sure the most popular project
6More
In Relation To... Bean Validation for Flex developers - 0 views
-
GraniteDS have added support for Bean Validation into their project and hence Bean Validation is usable by all Flex users
-
Because they do not run on the JVM, they basically have reimplemented the full specification in Flex: you can annotate your ActionScript3 objects with constraints: it supports all the standard constraints and you can write your own constraints you can execute the validation logic and retrieve the error report you can make use of most of the feature including advanced ones like groups, group sequence etc
- ...3 more annotations...
-
for GraniteDS users keeping their Java domain model and ActionScript3 domain model in sync via Gas3, the constraints are kept in sync
-
the constraint implementation is in the same class as the constraint declaration (not a problem in a dynamic language) @Pattern has a sightly different semantic because the regexp engine in Flex is a bit different. instead of the features provided by ConstraintValidatorContext, you can define a properties attribute in your constraints to make it belong to several sub-properties. not as flexible but good enough in many cases.
6More
Getting started with the Facebook SDK and ActionScript 3 | Adobe Developer Connection - 0 views
-
invoke the Facebook API to login as well as to get details about the user, friends, photos, and other information
- ...3 more annotations...
-
FB.init – initialize Facebook API FB.login - login to Facebook FB.api - perform a Graph API call on Facebook
6More
8. Type Conversions (Java ~ ActionScript3) - Confluence - 0 views
-
GDS will neither convert AS3 String to Java numeric types or boolean, nor AS3 numeric types or boolean to String
- ...3 more annotations...
3More
10. MXML & AS3 Web Compiler - Confluence - 0 views
-
GraniteDS comes with a powerful MXML/ActionScript3 compiler you may deploy in your servlet container. This servlet will compile your MXML code on the fly each time you have modified it and return a SWF
-
-
only exists under the 2.2.0GA files listing: http://sourceforge.net/projects/granite/files/granite/granite-2.2.0%20GA/
-
30More
3. Gas3 Code Generator - Confluence - 0 views
- ...26 more annotations...
-
except of enum type
-
must declare your classes in separated source files if you want them to be correctly handled by the generator
-
GraniteDS comes with an ActionScript3 code generator that writes AS3 beans for all externalized JavaBeans, with specific support for lazily loaded EJB 3 entities
6More
shared by kuni katsuya on 16 Mar 13
- No Cached
GraniteDS: Gas3 template for complex enums | Javalobby - 0 views
java.dzone.com/...graniteds-gas3-template
GraniteDS3 gas3 ComplexEnums Flex ActionScript3 AS3 CodeGeneration

facebook-actionscript-api - Adobe ActionScript 3 SDK for Facebook Platform - Google Pro... - 0 views
47More
shared by kuni katsuya on 13 Sep 12
- No Cached
5. Exception Handling - Confluence - 0 views
www.graniteds.org/...5.+Exception+Handling
graniteds ExceptionHandling javaee6 Flex ActionScript actionscript3

- ...41 more annotations...
-
possible to define common handlers for particular fault codes on the client-side, and exception converters on the server-side, to convert server exceptions to common fault codes
-
t.getMessage(), detail, t
-
* instead of *wrapping* the server-side exception and rethrowing it to the client, ** extract only details relevant to the client (eg. include: human-friendly error message and any helpful parametrized data, exclude: stack traces), ** "wrap" it in a generic ServiceException, which gets "thrown" remotely to the client * client can check ServiceException.getCode() to implement behavior tailored to server-side exception 'type'
-
-
ENTITY_NOT_FOUND
-
all EntityNotFound exceptions on the server-side, and convert it to a proper ENTITY_NOT_FOUND fault event.
-
<exception-converters> <exception-converter type="com.package.SomeExceptionConverter"/> </exception-converters>
-
IExceptionHandler
9More
Chapter 12. ActionScript 3 Reflection API - 0 views
- ...5 more annotations...
-
XML data
-
describing its parameter object and is therefore not type-safe and its use is subject to many syntax errors.
-
GraniteDS provides a Java-like reflection API that encapsulates describeType calls and offers a type-safe, object-oriented, set of reflection classes and methods
22More
shared by kuni katsuya on 16 Sep 12
- No Cached
Remote call using class as parameter - Google Groups - 0 views
groups.google.com/forum
graniteds remoting DTO ValueObject Method parameter wrapper Java ActionScript3 Class<T>

-
public class ClassHolderDTO<T> { private Class<T> classToTransfer;// get/set boilerplate}
- ...18 more annotations...
-
Flash Player (GMT +X) -> IExternizable methods (GMT + X - X = GMT + 0) - > AMF over HTTP (GMT + 0) -> Granite AMF0Deserializer (GMT + 0) -> Granite Converter (GMT + 0 + Y = GMT + Y) -> Java Services (GMT + Y)Java Services (GMT + Y) -> Granite Converter (GMT + Y - Y = GMT + 0) -> Granite AMF0Deserializer (GMT + 0) -> AMF over HTTP (GMT + 0) -> IExternizable methods (GMT + 0 + X = GMT + X) -> Flash Player (GMT + X)
-
The patch is to use a custom template for generating your as files with a conversion to GMT 0 in the implementations of IExternalizable methods.On the server-side you add a Converter to convert dates GMT 0 to dates GMT + Y.
16More
Chapter 5. AS3 Code Generator - 0 views
-
Gas3 uses the principle of "Base" and customizable inherited classes that let you add methods to generated classes without facing the risk of losing them when a new generation process is executed
- ...13 more annotations...
-
these templates are bundled in the granite-generator.jar archive, in the org.granite.generator.template package and accessible as resources via the class loader
-
Alternatively, you may use the file: protocol to load your template from the filesystem. These templates can be specified either by using absolute paths (eg. file:/absolute/path/to/mytemplate.gsp) or paths relative to your current Eclipse project root directory (eg. path/to/mytemplate.gsp).
-
must declare your classes in separated source files if you want them to be correctly handled by the generator
Flex Formatter | Free Development software downloads at SourceForge.net - 0 views
5More
shared by kuni katsuya on 06 Jun 12
- No Cached
GraniteDS - deserialize ActionScript object to a Java Map object - Ross Henderson - 0 views
blog.rosshenderson.info/...pt-object-to-a-java-map-object
graniteds deserialization serialization actionscript

- ...2 more annotations...
-
Granite claims to implement the same serialization/deserialization matrix as BlazeDS (with two small exceptions).