Guasax Mini Flex Store with Remote Service and AMFPHP1.9
Aug 1st, 2007 by ablesa
We come back with an example in which we show how to guasax works with remote service over AMFPHP1.9. In the same way , this example works with Java remote services, but is more easy to test over PHP. In any case we will publish both examples, with Java and PHP.
In this example we show a program simulating a little shop. For this example we use the last version of guasax 0.9.4.a, in this version we did remove dependency with locale dir contain guasax message errors. Download the last version of guasax source code from here
- You can view MiniFlexStore application online here,
- View source code here.
- You can download entire flex project, ready for import in Flex Builder, from guasax downloads, here.
- You can download PHP code for remote services of this example from here, then copy this directory into 'services' directory of your AMFPHP distribution. For example ,
http://www.yourdomain.com/amfphp-1.9.beta.20070513/services.
You can get more info about AMFPHP1.9 , here, and download the version we used for this example from here.
In the next post (in a few days, coming soon) we will publish another example about CRUD operations with MDI windows, with Java Remote Services over GraniteDS Framework.
Que tal angel, descargue tu ejemplo de la mini store, estoy tratando de utilizar guasax, en un ejemplo pero me sale este error.
Error: G0008E: View not found for MAIN_VIEW
En la vista principal la vista:
ViewLocator.getInstance().register(Constants.MAIN_VIEW,this);
y el valor existe en el archivo de constantes, la esto tratando de llamar desde otra vista con esta instrucción asi como en el ejemplo de la mini store
click=”GuasaxContainer.getInstance(). executeViewUpdate([ViewLocator.getInstance().getViewObject(Constants.MAIN_VIEW)],
Constants.SELECTED_VIEW,[Constants.VISTA_CREACION_DERECHO])”
Me podrias dar una idea de que puedo o que estoy haciendo mal, gracias.
Hola ,
Lo normal cuando da este error es que en el momento en el que se hace “getViewObject” no se hubiera ejecutado todavía el “register” de la vista en el ViewLocator. Es decir, se está intentando hacer el getViewObject antes de haber sido registrada la vista. Supongo que el “register” de la vista lo harás en el creationComplete del Main File de la aplicación. La idea sería verificar que el orden de registro y de posterior utilización es el correcto. Ya me comentarás si lo has podido solucionar. saludos.
How do I connect this sample to my back-end in Java using OpenAMF? Sorry my english, thanks.