[flexcoders] OpenScales for Flex - ActionScript 3 maps

2009-03-29 Thread bouiaw
Hi,

We are currently developping OpenScales http://openscales.org/ , an
Open Source port of OpenLayers (a widely used JS maps) written in
ActionScript 3.

You can try it on this demo http://openscales.org/openscales.swf .

We plan to make possible nice visual effects, high performance vector
rendering and sketch functionalities.
We would be pleased to have some feedbacks, and are actively seeking
some contributors, so feel free to join us ;-)

Bouiaw,
OpenScales http://openscales.org/  project leader


[flexcoders] Re: How to configure BlazeDS to use Spring?

2008-01-19 Thread bouiaw
You should read the documentation I wrote on the Igenko wiki :
http://code.google.com/p/igenko/wiki/FlexDataServices

--- In flexcoders@yahoogroups.com, vkc_nair [EMAIL PROTECTED] wrote:

 Hi all,
 
 Could you please provide an example on how to configure blazeds with 
 spring?
 
 Thanks
 VN





[flexcoders] Re: BlazeDS and Acegi

2007-12-25 Thread bouiaw
You are right, thank you for your feedback.

--- In flexcoders@yahoogroups.com, Andrew Wetmore [EMAIL PROTECTED] wrote:

 I think you have a typo in your code that is generating the Cannot
invoke
 method 'retreiveNodes' error. The standard spelling is 'retrieve'.
 
 a
 
 On Dec 23, 2007 5:42 AM, bouiaw [EMAIL PROTECTED] wrote:
 
Hi,
 
  I have developed an AcegiLoginCommand that provide Acegi integration
  in BlazeDS. The code is based on
  [
 
http://granite.svn.sourceforge.net/viewvc/granite/graniteds/trunk/core/org/granite/messaging/service/security/AcegiSecurityService.java/?revision=638view=markuppathrev=638
  GaniteDS Acegi integration].
 
  I think I am very close to make it work, but I have still a blocking
  error.
 
  Everything seems to bo ok in doAuthentication and doAuthorization
  functions when I login with admin/admin, but when I want to access to
  my service after a setCredentials, I get this stange error :
 
  [RPC Fault faultString=Cannot invoke method 'retreiveNodes'.
  faultCode=Server.ResourceUnavailable faultDetail=Method
  'retreiveNodes' not found.]
  at
  mx.rpc::AbstractInvoker/
  http://www.adobe.com/2006/flex/mx/internal::faultHandler
 
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:223
  at
  mx.rpc::Responder/fault
 
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
  at
  mx.rpc::AsyncRequest/fault
 
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
  at
 
 
NetConnectionMessageResponder/statusHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:531]
  at
  mx.messaging::MessageResponder/status
 
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:229]
 
  Without Acegi enabled, it works without problem.
 
  Code is available here at
  http://code.google.com/p/igenko/wiki/BlazedsAcegiIntegration , I hope
  someone will be able to help me to resolve this strange error.
 
   
 
 
 
 
 -- 
 Andrew Wetmore
 User Experience Director
 Open Learning Exchange - www.ole.org
 978-319-7324





[flexcoders] BlazeDS and Acegi

2007-12-23 Thread bouiaw
Hi,

I have developed an AcegiLoginCommand that provide Acegi integration
in BlazeDS. The code is based on
[http://granite.svn.sourceforge.net/viewvc/granite/graniteds/trunk/core/org/granite/messaging/service/security/AcegiSecurityService.java/?revision=638view=markuppathrev=638
GaniteDS Acegi integration].

I think I am very close to make it work, but I have still a blocking
error.

Everything seems to bo ok in doAuthentication and doAuthorization
functions when I login with admin/admin, but when I want to access to
my service after a setCredentials, I get this stange error :

[RPC Fault faultString=Cannot invoke method 'retreiveNodes'.
faultCode=Server.ResourceUnavailable faultDetail=Method
'retreiveNodes' not found.]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:223
at
mx.rpc::Responder/fault()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
at
mx.rpc::AsyncRequest/fault()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
at
NetConnectionMessageResponder/statusHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:531]
at
mx.messaging::MessageResponder/status()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:229]

Without Acegi enabled, it works without problem.

Code is available here at
http://code.google.com/p/igenko/wiki/BlazedsAcegiIntegration , I hope
someone will be able to help me to resolve this strange error. 



[flexcoders] Re: BlazeDS and Acegi

2007-12-23 Thread bouiaw
The error has been identified, Acegi/BlazeDS integration is working !

More details on http://code.google.com/p/igenko/wiki/FlexDataServices

--- In flexcoders@yahoogroups.com, bouiaw [EMAIL PROTECTED] wrote:

 Hi,
 
 I have developed an AcegiLoginCommand that provide Acegi integration
 in BlazeDS. The code is based on

[http://granite.svn.sourceforge.net/viewvc/granite/graniteds/trunk/core/org/granite/messaging/service/security/AcegiSecurityService.java/?revision=638view=markuppathrev=638
 GaniteDS Acegi integration].
 
 I think I am very close to make it work, but I have still a blocking
 error.
 
 Everything seems to bo ok in doAuthentication and doAuthorization
 functions when I login with admin/admin, but when I want to access to
 my service after a setCredentials, I get this stange error :
 
 [RPC Fault faultString=Cannot invoke method 'retreiveNodes'.
 faultCode=Server.ResourceUnavailable faultDetail=Method
 'retreiveNodes' not found.]
 at

mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:223
 at

mx.rpc::Responder/fault()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
 at

mx.rpc::AsyncRequest/fault()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
 at

NetConnectionMessageResponder/statusHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:531]
 at

mx.messaging::MessageResponder/status()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:229]
 
 Without Acegi enabled, it works without problem.
 
 Code is available here at
 http://code.google.com/p/igenko/wiki/BlazedsAcegiIntegration , I hope
 someone will be able to help me to resolve this strange error.





[flexcoders] Re: Runtime MXML compiler

2007-12-04 Thread bouiaw
Since MXML templates will be stored in the Java Content Repository and
will be available at the application server level, I think we will
keep focused on the MXML compiler servlet solution.

--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 I found out that we'll be opensourcing our webtier compiler modules
for Apache and IIS, but they may lag behind the compiler itself.
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of bouiaw
 Sent: Monday, December 03, 2007 3:30 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Runtime MXML compiler
 
 
 
 About the list of imports, I have to discuss more about that with the
 Graniteds project leader, but from what he says
 (http://tech.groups.yahoo.com/group/graniteds/message/832
http://tech.groups.yahoo.com/group/graniteds/message/832 ) and what I
 can see in the findeDependencies function
 (http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler
http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler ), I think
 that's to know more precisely what and when mxml should be recompiled.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote:
 
   Currently, mxmlc is ran as an external java program.
   Where could I find some information/samples to run it
   directly in the servlet container ?
  
  As far as I know, we haven't disclosed that. The compiler classes
 are not yet open-source, and I think you'll have to wait a little
longer.
  
   he couldn't find any way to ask mxmlc to list imports
   in as or mxml files
  
  You can't get the imports, but the -link-report compilation option
 produces an XML file with a complete dependency analysis. (You can
 have dependencies on classes that aren't imported, since you don't
 have to import a class if it is in the same package.)
  
  But can you explain why you need to know the dependencies?
  
  - Gordon
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
 On Behalf Of bouiaw
  Sent: Monday, December 03, 2007 1:43 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Runtime MXML compiler
  
  
  
  Hi,
  
  It seems my previous answer has never been received, so I send it
again.
  
  You are right, my need is to compile a page when a request comes in.
  GraniteDS (http://www.graniteds.org http://www.graniteds.org 
http://www.graniteds.org http://www.graniteds.org  )
 provide a MXMLCompilerServlet
  that compile MXML at runtime if the swf does not exist.
  
  I did some simple test, and it works (source code is available on this
  page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler
http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler 
 http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler
http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler  ). 
  
  Allan, could you say me how this solution is different from yours ?
  
  Gordon, I plan to improve this MXMLCompilerServlet in order to use it
  in Igenko. Could you give me your advice on how it could be improved :
  - Currently, mxmlc is ran as an external java program. Where could I
  find some information/samples to run it directly in the servlet
  container ?
  - I have asked to the GraniteDS project leader what was the major
  issue with this mxmlc runtime compiler, and he answered me
  (http://tech.groups.yahoo.com/group/graniteds/message/832
http://tech.groups.yahoo.com/group/graniteds/message/832 
 http://tech.groups.yahoo.com/group/graniteds/message/832
http://tech.groups.yahoo.com/group/graniteds/message/832  ) that he
  couldn't find any way to ask mxmlc to list imports in
  as or mxml files. Do you have any idea for that ?
  - Any other idea ?
  
  Regards,
  Sébastien Deleuze
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com , DreamCode dreamcode@ wrote:
  
   I don't think the result of that is inside the acceptable levels
for a
   content management system. but hey... what do I know
   
   I would. and I did for my project choose creating it in AS3
  based on
   database/xml content.
   
   --Allan
   On Dec 2, 2007 7:26 PM, Gordon Smith gosmith@ wrote:
   
 Are you going to compile a page when a request comes in?
   
That's the impression I got of what Sébastien wants to do.
   
 all custom components needed to be referenced once inside my
code
If you're creating components via their class name, with code like
   
var someClass:Class = Class(getDefinitionByName(someClassName));
var instanceOfSomeClass:Object = new someClass();
   
there is no way that the MXML compiler/linker can be smart
enough to
figure out what class names might be encountered at runtime.
  Therefore

[flexcoders] Re: AMF question

2007-12-03 Thread bouiaw
You can try GraniteDS : http://www.graniteds.org

It is a free, open-source alternative to Adobe LiveCycle Data Services.

--- In flexcoders@yahoogroups.com, jovialrandor [EMAIL PROTECTED]
wrote:

 I am currently using J2EE as the server side language.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Ryan Campbell ryan@ wrote:
 
  What do you currently use for your server-side language?
  
  On 2-Dec-07, at 1:51 PM, jovialrandor wrote:
  
   I have an application that imports various data from various data
   sources. I have about 14 httpservice calls. Apparently this has
   slowed down my app significantly. I heard that using the messaging
   framework AMF can get large amounts of data in binary format
which is
   quicker. However I have not found any good example online to learn
   from.
  
   Does anyone know where I can get started with AMF?
  
 





[flexcoders] Re: Runtime MXML compiler

2007-12-03 Thread bouiaw
Hi,

Yes, I will compile mxml at runtime. After some testing,
MXMLCompilerServlet from Graniteds works well with simple mxml file,
so with an open source Flex3 compiler, it should be ok. Is there a
more precise date than early 2008 ?

Allan, if it is possible, can you give more details on how you
implemented it ? If it is possible, could you give a look on the
org.granite.messaging.webapp.MXMLCompilerServlet implementation
(http://www.graniteds.org) and say us how different yours is ?

--- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote:

 Hey Sebastien/Gordon
 
 
 
 I'm not sure I understand what you're asking… mxml compilation at
runtime?
 Are you going to compile a page when a request comes in?
 
 
 
 As for the dynamic creation of content based on custom xml, that is
quite
 nice. It's a big part of my current spare time project.
 
 
 
 The only real issue so far I have had,  is that in order for me to
generate
 the UI, all custom components needed to be referenced once inside my
code.
 So even though I have this:
 
 
 
 import dc.digr.ui.comp.*;
 
 
 
 I still need this:
 
 
 
 *var* a:digrButton = *new* digrButton ();
 
 *var* b:digrButtonLarge = *new* digrButtonLarge();
 
 *var* c:digrButtonIconOnly = *new* digrButtonIconOnly();
 
 *var* d:digrButtonMini = *new* digrButtonMini();
 
 
 
 for all the custom ui components in the beginning of my code to avoid a
 runtime error….
 
 
 
 Gordon, if you have some wisdom on this…. Spread the joy! J





[flexcoders] Re: Runtime MXML compiler

2007-12-03 Thread bouiaw
Hi,

It seems my previous answer has never been received, so I send it again.

You are right, my need is to compile a page when a request comes in.
GraniteDS (http://www.graniteds.org) provide a MXMLCompilerServlet
that compile MXML at runtime if the swf does not exist.

I did some simple test, and it works (source code is available on this
page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler). 

Allan, could you say me how this solution is different from yours ?

Gordon, I plan to improve this MXMLCompilerServlet in order to use it
in Igenko. Could you give me your advice on how it could be improved :
- Currently, mxmlc is ran as an external java program. Where could I
find some information/samples to run it directly in the servlet
container ?
- I have asked to the GraniteDS project leader what was the major
issue with this mxmlc runtime compiler, and he answered me
(http://tech.groups.yahoo.com/group/graniteds/message/832) that he
couldn't find any way to ask mxmlc to list imports in
as or mxml files. Do you have any idea for that ?
- Any other idea ?

Regards,
Sébastien Deleuze

--- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote:

 I don't think the result of that is inside the acceptable levels for a
 content management system.  but hey... what do I know
 
 I would. and I did for my project choose creating it in AS3
based on
 database/xml content.
 
 --Allan
 On Dec 2, 2007 7:26 PM, Gordon Smith [EMAIL PROTECTED] wrote:
 
  Are you going to compile a page when a request comes in?
 
  That's the impression I got of what Sébastien wants to do.
 
   all custom components needed to be referenced once inside my code
  If you're creating components via their class name, with code like
 
  var someClass:Class = Class(getDefinitionByName(someClassName));
  var instanceOfSomeClass:Object = new someClass();
 
  there is no way that the MXML compiler/linker can be smart enough to
  figure out what class names might be encountered at runtime.
Therefore it
  can't include these classes in the SWF unless you give it some help.
 
  One way is to use vars like you show to create dependencies.
 
  Another way is to use the -include-classes compilation option. For
some
  reason that I don't understand, this is only an option for compc
when you
  make a SWC, not for mxml when you make a SWF. But you can make a
SWC with
  all your custom classes and then link that SWC in with
-include-libraries.
 
  Another possibility is to put all your custom classes into a
module and
  load it.
 
  Gordon Smith
  Adobe Flex SDK Team
 
   --
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *DreamCode
  *Sent:* Sunday, December 02, 2007 2:38 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Runtime MXML compiler
 
 Hey Sebastien/Gordon
 
 
 
  I'm not sure I understand what you're asking… mxml compilation at
runtime?
  Are you going to compile a page when a request comes in?
 
 
 
  As for the dynamic creation of content based on custom xml, that
is quite
  nice. It's a big part of my current spare time project.
 
 
 
  The only real issue so far I have had,  is that in order for me to
  generate the UI, all custom components needed to be referenced
once inside
  my code. So even though I have this:
 
 
 
  import dc.digr.ui.comp.*;
 
 
 
  I still need this:
 
 
 
  *var *a:digrButton = *new* digrButton ();
 
  *var *b:digrButtonLarge = *new* digrButtonLarge();
 
  *var *c:digrButtonIconOnly = *new* digrButtonIconOnly();
 
  *var* d:digrButtonMini = *new* digrButtonMini();
 
 
 
  for all the custom ui components in the beginning of my code to
avoid a
  runtime error….
 
 
 
  Gordon, if you have some wisdom on this…. Spread the joy! J
 
 
 
   
 





[flexcoders] Re: Runtime MXML compiler

2007-12-03 Thread bouiaw
About the list of imports, I have to discuss more about that with the
Graniteds project leader, but from what he says
(http://tech.groups.yahoo.com/group/graniteds/message/832) and what I
can see in the findeDependencies function
(http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler), I think
that's to know more precisely what and when mxml should be recompiled.

--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

  Currently, mxmlc is ran as an external java program.
  Where could I find some information/samples to run it
  directly in the servlet container ?
  
 As far as I know, we haven't disclosed that. The compiler classes
are not yet open-source, and I think you'll have to wait a little longer.
  
  he couldn't find any way to ask mxmlc to list imports
  in as or mxml files
  
 You can't get the imports, but the -link-report compilation option
produces an XML file with a complete dependency analysis. (You can
have dependencies on classes that aren't imported, since you don't
have to import a class if it is in the same package.)
  
 But can you explain why you need to know the dependencies?
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of bouiaw
 Sent: Monday, December 03, 2007 1:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Runtime MXML compiler
 
 
 
 Hi,
 
 It seems my previous answer has never been received, so I send it again.
 
 You are right, my need is to compile a page when a request comes in.
 GraniteDS (http://www.graniteds.org http://www.graniteds.org )
provide a MXMLCompilerServlet
 that compile MXML at runtime if the swf does not exist.
 
 I did some simple test, and it works (source code is available on this
 page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler
http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler ). 
 
 Allan, could you say me how this solution is different from yours ?
 
 Gordon, I plan to improve this MXMLCompilerServlet in order to use it
 in Igenko. Could you give me your advice on how it could be improved :
 - Currently, mxmlc is ran as an external java program. Where could I
 find some information/samples to run it directly in the servlet
 container ?
 - I have asked to the GraniteDS project leader what was the major
 issue with this mxmlc runtime compiler, and he answered me
 (http://tech.groups.yahoo.com/group/graniteds/message/832
http://tech.groups.yahoo.com/group/graniteds/message/832 ) that he
 couldn't find any way to ask mxmlc to list imports in
 as or mxml files. Do you have any idea for that ?
 - Any other idea ?
 
 Regards,
 Sébastien Deleuze
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , DreamCode dreamcode@ wrote:
 
  I don't think the result of that is inside the acceptable levels for a
  content management system. but hey... what do I know
  
  I would. and I did for my project choose creating it in AS3
 based on
  database/xml content.
  
  --Allan
  On Dec 2, 2007 7:26 PM, Gordon Smith gosmith@ wrote:
  
Are you going to compile a page when a request comes in?
  
   That's the impression I got of what Sébastien wants to do.
  
all custom components needed to be referenced once inside my code
   If you're creating components via their class name, with code like
  
   var someClass:Class = Class(getDefinitionByName(someClassName));
   var instanceOfSomeClass:Object = new someClass();
  
   there is no way that the MXML compiler/linker can be smart enough to
   figure out what class names might be encountered at runtime.
 Therefore it
   can't include these classes in the SWF unless you give it some help.
  
   One way is to use vars like you show to create dependencies.
  
   Another way is to use the -include-classes compilation option. For
 some
   reason that I don't understand, this is only an option for compc
 when you
   make a SWC, not for mxml when you make a SWF. But you can make a
 SWC with
   all your custom classes and then link that SWC in with
 -include-libraries.
  
   Another possibility is to put all your custom classes into a
 module and
   load it.
  
   Gordon Smith
   Adobe Flex SDK Team
  
   --
   *From:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] *On
   Behalf Of *DreamCode
   *Sent:* Sunday, December 02, 2007 2:38 PM
   *To:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   *Subject:* Re: [flexcoders] Runtime MXML compiler
  
   Hey Sebastien/Gordon
  
  
  
   I'm not sure I understand what you're asking... mxml compilation at
 runtime?
   Are you going to compile a page when a request comes in?
  
  
  
   As for the dynamic creation of content based on custom xml, that
 is quite
   nice. It's a big part of my current spare time project.
  
  
  
   The only real issue so far I have had

[flexcoders] Runtime MXML compiler

2007-12-02 Thread bouiaw
Hi,

I try to find some information about MXML compilation at runtime on a
Java based server.

My goal is to create a CMS/eCommerce solution based on a Java core and
a Flex front-end. You can find more informations on the wiki of the
Igenko project :
http://code.google.com/p/igenko/

The architecture of this project will be :
- A Java server core based on Tomcat, Spring, Hibernate, GraniteDS
  - Natively designed to store content in a JSR 170 Java Content
Repository (Jackrabbit)
  - Workflow management (JBoss JBPM) 
- A Flex Backoffice, with a WYSIWYG site designer
- One or more Flex public websites, dynamically generated from content
and layout stored in the repository. 

I know that Flex Data Services provide runtime compilation of MXML
(http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=compiledeploy_142_11.html),
but I want to build and Open Source solution ready for production
without having to pay.

The guy behind GraniteDS (an open source implementation of Flex Data
Service) did a first attempt to have runtime compiler for MXML, as you
can read on this post :
http://tech.groups.yahoo.com/group/graniteds/message/192

Another solution is also to dynamically create UI with AS3 from a
custom xml (not mxml) like it was proposed on this post
(http://tech.groups.yahoo.com/group/flexcoders/message/93086), but I
think runtime compilation of MXML should be a better solution in my case.

I would appreciate any ideas or feedbacks on this subject 

Regards,
Sébastien Deleuze



[flexcoders] Re: Shouldn't we use Flex to built website

2007-11-28 Thread bouiaw
Hi,

I have read all this very interesting, but old post, about Flex
templating.

I currently work on Igenko, a Java/Flex CMS/ecommerce software based
on PureMVC/GraniteDS/JBPM/Jackrabbits technos.

The Backoffice will be in Flex, no problem for that. But I really
don't know how to generate dynamically the Front Office that will be
in FLex too.

The content and the layout will be stored on the Java Content
Repository, and should be used to dynamically generate the website. It
is an easy thing to do Java/HTML world with template languages like
Freemarker ou Velocity, but in Flex, I had no ideas untill I read this
post.

My question is : is there some new solution to make templates in Flex
and let the user specify the layout at runtime ? Is there another
solution than use and HTML layout with FLex components in it ?

Thanks in advance,
Sébastien Deleuze

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

  Michael I think your saying that Flex doesn't support structured text
 layout like HTML/XHTML in XHTML components should fill this gap
nicely…hint,
 hint,nudge,nudge!!
 
 HAHA, Yeah Ted that is what I meant ;-)
 
 I see what you are saying. Se how programmed I am to the HTML stuff!!
 
 conform to the template in use
 
 That is a very important statement I think. This whole thing requires a
 reformulation of how data is rendered WHEN it gets to the client.
 
 Being that as it may, there is a plugable XHTML/XML - MXML transformer
 comming from me in the future that completly plays off of what you are
 saying about 'templates'. This will be a fun component that should make
 people real happy.
 
 hehen fun times, invention means seeing different colors for the
first time
 :)
 
 Peace, Mike
 
 On 6/30/06, Ted Patrick [EMAIL PROTECTED] wrote:
 
 Flex lacks text layout;
 
 
 
  Flex supports very low level layout of Text and higher level
layout text
  layout can be accomplished easily with mx:Text/ and css styles.
I can
  layout a template in Flex and style all elements but the
data/model passed
  need to conform to the template in use.
 
 
 
  Michael I think your saying that Flex doesn't support structured text
  layout like HTML/XHTML in XHTML components should fill this gap
nicely…hint,
  hint,nudge,nudge!!
 
 
 
  Ideally I think we should send the model (XML) over the wire and
have a
  template (SWF) do the layout. HTML works by sending model with
embedded
  markup over the wire and rendering it all. My proposal is more in
line with
  XML/XSL layout where you send a small model in XML and XSL styles
it into a
  page on the client side.
 
 
 
  Cheers,
 
 
 
  Ted
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Michael Schmalle
  *Sent:* Friday, June 30, 2006 1:23 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Shouldn't we use Flex to built website
 
 
 
  Just to add to this again.
 
  Where this line is for me;
 
  Page layout. I find myself time and time again dreaming up new
things for
  Flex and knowing I can't do them because as much as I want to
abstract out
  how much a user 'knows' how to read, they are just so conditioned
to seeing
  the format and style of html.
 
  This is where it will be interesting to see where Apollo fits into
this
  situation. Allowing you to get the best of both worlds, Flex(web
  application) and HTML(web layout) to fuse together this hole in
the space
  time continuum.
 
  Flex lacks text layout; this cannot be disputed. This is also why
AJAX is
  so popular because it is fusing web text layout with web application.
 
  There is no line between web sites and web applications, it's how
the user
  interface presents the intent of the web experience.
 
  Peace, Mike
 
  On 6/30/06, *sleekdigital* [EMAIL PROTECTED] wrote:
 
 
  Please see my responses inline below...
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Jennifer Larkin jlarkin@
  wrote:
  
 
   Sean Corfield had his site running in PHP because he could easily
  use
   an existing PHP package that did what he wanted and there was no
   ColdFusion equivalent. A frequently asked question that he got was
   Why aren't you using ColdFusion on your personal site? Shouldn't
  you
   be using ColdFusion? He got that question a lot from people who
  were
   reading his blog where he gives ColdFusion tips. If people reading
  a
   ColdFusion themed blogget weirded out by the blog not employing
   ColdFusion, how do you think that someone would act if he went to
  that
   site to figure out if he wanted to hire Sean for a ColdFusion job?
  
 
  First, Blog readers are not the same audience as potential
  customers. Sure potential customer's might read someone's blog, but
  so will lots of other people. The people who were weirded out
  were probably other developers who used the blog as a resource,
  rather than potential customers. Also Cold Fusion vs PHP is a
  different