PieterBosman
04-29-2008, 08:10 AM
Hey Guys,
I'm a Java Coder. Don't shoot me ;)
In the last couple of weeks I've been amazed at the power of Flex based RIA's so I felt the need to test stuff out.
I'm using Eclipse Europa + Flex Plugin and a Tomcat Server on which normally LifeCycle DS & BlazeDS (in so far these are different...) are present.
Anyway, I've been trying to use AMF to communicate with a Java Backend program from within a Flex RIA. And I must say I find it rather easy. So far, all is well!
However...
I'm at the point where I need to interpret my Java beans (pojo's if you will) at client side. There is however one small catch: my Java Backend is created in a seperate Flex Project in my Eclipse.
This implies, I think, that the [RemoteClass(alias="...")] system might not be as straightforward as I found on different websites.
Furthermore, my Eclipse Content Assistent doesn't recognize the "RemoteClass' metatag, hence no coding help there :confused:
I have been able to directly call the public variables in my java backing bean, but as other java coders out there might understand, the concept of publicly declaring variables makes me shiver...
So I just want to map my server side bean (with private variables & public getters/setters) to a client side AS bean (with private variables & public getters/setters) and if possible in such a matter I can use an action to 'refresh' the bean on client side :)
So basically I got one 'simple' question... How do I interpret my Java backing bean in my Flex RIA, keep in mind above stated situation please!
I'm a Java Coder. Don't shoot me ;)
In the last couple of weeks I've been amazed at the power of Flex based RIA's so I felt the need to test stuff out.
I'm using Eclipse Europa + Flex Plugin and a Tomcat Server on which normally LifeCycle DS & BlazeDS (in so far these are different...) are present.
Anyway, I've been trying to use AMF to communicate with a Java Backend program from within a Flex RIA. And I must say I find it rather easy. So far, all is well!
However...
I'm at the point where I need to interpret my Java beans (pojo's if you will) at client side. There is however one small catch: my Java Backend is created in a seperate Flex Project in my Eclipse.
This implies, I think, that the [RemoteClass(alias="...")] system might not be as straightforward as I found on different websites.
Furthermore, my Eclipse Content Assistent doesn't recognize the "RemoteClass' metatag, hence no coding help there :confused:
I have been able to directly call the public variables in my java backing bean, but as other java coders out there might understand, the concept of publicly declaring variables makes me shiver...
So I just want to map my server side bean (with private variables & public getters/setters) to a client side AS bean (with private variables & public getters/setters) and if possible in such a matter I can use an action to 'refresh' the bean on client side :)
So basically I got one 'simple' question... How do I interpret my Java backing bean in my Flex RIA, keep in mind above stated situation please!