You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 20 Members of 4546 |
| Forum: Seam Users |
19. Feb 2008, 02:31 CET | Link |
The integration of Flex and Seam has been moving along quite nicely! GraniteDS has released it's 1.0.1 version and includes a nice seam integration package. It includes support for Conversation, JBPM, FaceMessage and a hibernate validator. Also on a side note GraniteDS includes support for lazyloading. I have a couple of nice example apps that you can use to help you get started. We took the seam hotel booking example app and converted it to use Flex. This is also the same demo app the I demoed at JBoss World. You can get them off of my site RationalDeveloper in the Granite Section. If you want a less complicated example you can get a helloworld example in the same section. The code is in an early iteration however it does work. We are working on making the code more streamlined and a tighter integration with seam. Check out RationalDeveloper for updates and how to’s. To build the apps, you will need a jboss server (4.2.x), ant and a Flex2 SDK.
Cameron
Hi, Congrats!!
Great work bringing Seam in RIA arena.
Could you please post your presentation that you did for JBossWorld, Orlando.
Thanks
Thanks! :)
I definitely intend to get the slides up. I am waiting to get the approval from the legal department, so hopefully sometime today. When they are up I will post a link here to them.
Cameron
Wow this is great. I can't wait for this project to be done. Keep up the good work.
Cheers,
Best regards,
Joshua
Visit my blog.
Thanks to Adobe figuring out what my problem was, I now have FlexBooking for BlazeDS available. You can download it from RationalDeveloper. The code to build the library that integrates Seam, BlazeDS and Flex is also on my site feel free to download it and check it out as well.Look in the BlazeDS section. The code is not too different from what is in Granite. This code is also in a very early iteration, but I think it is a nice starting point. I am still waiting on our legal department to approve the posting of my slides, you know how lawyers are. I will start posting some how-to’s for those of you who want a head start.
Cameron
Hi Cameron, One of my favorite things about Seam is the simple and powerful event handling. I was wondering if there has been any work done with respect to this. I envision Gravity possibly being used to allow events to bubble back up to the view. Using the hotel booking application as an example
Admittedly not the best use case, but you get the idea. I plan on looking into the way Seam invokes the observers to perhaps implement a to the view.
Thanks to you, Franck and all the other contributors for your work on this. I am thoroughly enjoying it and look forward to seeing this relationship mature.
Kyle W. Burke
http://www.monkeyden.com
Hmm an interesting use case. We haven't done any thing in regards to this specifically as of yet. Currently we are in the process of tightening the integration between the Seam component and the corresponding Flex component, to make them feel like 1 component. I would think this should still work. Since all we are doing is intercepting the call and plugging the id's(conversation and task) in to the correct spot for Seam. Both Granite and BlazeDS offer a datapush implementation. So you could have the event write a message to the queue. If for some reason a datapush wasn't wanted nor needed you could always have it create a message and add it to FacesMessages and then return that to the client with some sort of exception. I will see if I can add something like this to Flex Booking.
Cameron
Hi,
This sounds very good. However while I was trying it out with Seam 2.0.1.GA I get the following exception. Any idea what's going on?
For some reason the messagebroker servlet can't get a hold of the servlet context. Could you post your web.xml and your environment(server, JDK..)
Cameron
That was the FlexBooking-BlazeDS example. I just tried updating the Seam jars to new version. Server was jboss-4.2.1.GA.
Fixed, the example app should now be compatible with Seam-2.0.0 and Seam-2.0.1
Cameron
Hi every one.
It has been a while since I have updated this post.
William, Franck and I have been working ( GraniteDS ) on integrating Seam and Flex. I think we have a really great implementation, called Tide. I am going to borrow from the Tide quick presentation, which you can find here. This new subproject (Tide) is aimed at improving the data services part of GraniteDS and simplify the Flex client programming model when integrating with server side frameworks. With Tide you can code your back ends normally.There isn't any code that has to be added specifically for Flex or Tide.
One of the great things about using Seam and Tide (Flex) together is it really simplifies your development efforts. The same web.xml, service-config.xml and granite-config.xml can be used across all of your projects and don’t require any modifications. In other words you don’t have to constantly add entries to the service-config.xml! As of this moment we are using it with Seam-2.0.0 GA and have not tested it with the other releases. To find out how to set up your project refer to the Readme.txt file in the helloworld-tide project. You can download the project for this code here, this project also includes a readme.txt file with instructions on how to set up a new project.
Some high points Tide includes
Using existing Seam components Integration with Seam bijection Propagation of context messages from the server Integration with Seam security, in particular the identity component Integration with server side validation (Hibernate Validator)
For a more advanced project you can download graniteds-seam-booking
Let’s look at a hello world example:
Seam:
package com.rationaldeveloper.action; import org.jboss.seam.annotations.Name; @Name("helloAction") public class HelloAction { public String sayHello(String name) { return "Hello " + name; } }Flex :
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import org.granite.tide.events.TideResultEvent; import org.granite.tide.seam.Seam; import org.granite.tide.seam.Context; private function sayHello(): void { var ctx: Context = Seam.getInstance().getSeamContext(); ctx.helloAction.sayHello(txtName.text,sayHelloResult); } private function sayHelloResult(result: TideResultEvent): void { Alert.show(String(result.result)); } ]]> </mx:Script> <mx:Button x="46" y="78" label="Say Hello" click="sayHello();"/> <mx:TextInput x="132" y="78" id="txtName"/> </mx:Application>great.
Hi,
I have two problems:-
1.) I am trying to convert my seam project to Tide/Seam project. I am following the steps given in README.txt in HelloWorldTide sample application. My problem is I am not able to change build.xml accordingly. Step number 13 in README.txt says
But I don't know what all things do I need to change to get it running.
2.) When I try to deploy Flex-seam-Booking application I get following exception while deploying
Some how I managed to run HelloWorldTide application on my server but not able to move further. I am using jboss-4.2.2.GA and jboss-seam-2.0.1.CR1.
I am stuck on this since a day.
Any help would be appreciated.
Thanks in advance,
Vikram
This refers to the loading of the ant FlexTask. Found in the ant folder in the 3.0 SDK. Also to the compiling of the actionscript files.Look at the build.mxml task.
The datasource FlexBooking-dev-ds.xml is included in the project. You might want to make sure that is hasn't been moved and is still deploying inside of the jar(graniteds-seam-booking.jar). If you are using Eclipse make sure you do a clean and a full build first. Then use the deploy ant task.
thanks Cameron,
I need one more help from you.
I have a project build in seam.
Now in some reporting pages I want to put flex graphs, rest all the view will be in xhtml.
I am not able to find out what all things do i need to do for this. I have downloaded flex sdk 3 and I have jboss-seam-2.0.1.CR1 and jboss-4.2.2.GA.
I have also downloaded blazedDS, Flex-Booking-BlazeDS, Flex-Booking-Graniteds but still not able to get it done.
Can you please help me out on this?
Thanks in advance.
Vikram
While I love seeing my post at the top. :)
I think at this point it might be better to move this to the graniteds forums. You can get a lot of specialized help for this question. I also believe their are some post similar to yours. FYI: I think for the reporting capabilities you need to down load the Professional Edition.
Cameron
Is is possible to integrate seam security into the flex UI so only certain components are rendered?
Thanks
Craig
Currently you can do some thing like this
We still need to implement some more work on the client side to make the security roles available.
Hi everybody! We just released GraniteDS RC4 1.1.0. This new release includes some bug fixes and some features that you may not be aware of. if you are so inclined you check out the information here