[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-08-21 Thread cingram
In the back ground the FABridge is using the ExternalInterface. If you check 
out this post http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge you 
can find  a lot of reasons to use the FABridge over the external interface. 
There is a one drawback however, the client is required to use FlashPlayer 9. 
Basically it boils down to the FABridge being easier to use. If you are 
interested in some other approaches you might want to check this post out 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116204. One of the 
problems as I am sure you are aware is the seam components that you  receive 
are not strongly typed. GDS looks like it might solve this problem since the 
flex dataservices would, I think be a better approach.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076376#4076376

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076376
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-08-21 Thread momochone11
Hi all, I have tried integrating this example to my app but with no luck.  It 
loads the flash file, but when I click on the button it just doesn't do 
anything.  I have tested my app using classes and pages from the remoting 
helloworld example and it worked.

Is there any special configurations I need? (I just copied all the files to on 
directory) Also, is there a JSF version for the flexhelloworld.html.  That 
might be causing the problem.

I am using Seam 2.0 (cvs repos version)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076509#4076509

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076509
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-08-22 Thread cingram
I am developing on Seam1.2.1 and I have tested on 2.0. There are some 
differences with remoting between 1.2.1 and 2.0. Make sure you have a clean 
version of 2.0 and copy only the following files to the existing view dir to a 
clean 2.0 install, in the helloworld remoting example 
(FABridge.as,FABridge.js,flexhelloworld.html, 
Flexhelloworld.swf,FlexSeam.js,SeamBridge.as). Also make sure you don't have a 
conflict occurring in your deploy folder. If the helloworld remoting is 
building and deploying before you add the files, once you add them it should 
still continue to build and deploy correctly as you are only adding to the view 
portion.


If this doesn't work for you post your stack trace. Also make sure you are 
using FlashPlayer9

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076894#4076894

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-11-01 Thread milli
cingram, 

Were you able to upload files from flex to seam?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101158#4101158

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101158
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-10-15 Thread thinkblue
Hey Cingram,

I downloaded your Seam Flex example and I was able to deploy and run it without 
any errorsThe only problems that I ran into are the following:

1) When using Firefox or IE7 after filling in the text field and clicking the 
"Say Hello" button I get a Seam Debug window that pops up...This is what was in 
it:

 
  | Mon Oct 15 00:04:44 PDT 2007: Request packet:
  | 
  | 
Blue
  | 
  | Mon Oct 15 00:04:44 PDT 2007: Response packet:
  | 
5Hello%2C%20Blue
  | 

Is this the expected behavior?

2) With IE7 after clicking the "Say Hello" button I get the Seam Debug Window 
and IE7 gets a javascript error which indicates:


  | Line: 49
  | Char: 7
  | Error: 'FABridge.flash' is null or not an object
  | Code: 0
  | URL: http://localhost:8080/seam-helloworld/flexhelloworld.html
  | 

With Firefox I don't get a javascript error...

I have a clean install of Seam 2.0...I'm on JBoss Server 4.2...Flash 9 
player...Let me know if you need any further information about my setup.

If anyone could help me out with these things I would greatly appreciate it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095105#4095105

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-20 Thread ellenzhao
This is great news! Do please post it in Wiki or as your blog and post the link 
back, many thanks!


Regards,
Ellen
PS: And yes Seam is doing great work on integration. Thanks to the Seam team 
too! 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066290#4066290

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066290
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-20 Thread cingram
I added a basic example to the wiki(Flex Seam example), basically I added a 
different front end to the hello world remoting. If I get some time I will see 
about doing a more complex example as it might be more interesting to people. 
The actionscript and javascript files are pretty new and are a work in 
progress, but they will get you where you need to go and will most likely 
handle most of what you need. 

Cameron

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066327#4066327

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066327
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-23 Thread mladen.babic
Hi ,

I have tried example but it doesn't work for me.Can you tell me howto run 
example?

tnx,
mb

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066601#4066601

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066601
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-23 Thread cingram
1. Make sure you have an EJB3 copy of JBoss-4.0.5.GA installed

2. Make sure you have "jboss-seam-1.2.1.GA" installed. I haven't tested it with 
Seam-2.0, all though in looking at the documentation it should work.

3. Unzip the "FlexSeamExample.zip" to the examples\remoting folder of the Seam 
install. You will be asked to overwrite, that is ok, I didn't change any thing 
I just added to the example. The original helloworld example will still work as 
expected.

4.Build with "ant"

5.Copy 
"...\jboss-seam-1.2.1.GA\examples\remoting\helloworld\build\seam-helloworld.ear"
 to the deploy folder of JBoss.

6.Open a browser and go to 
http://localhost:8080/seam-helloworld/flexhelloworld.html

If this doesn't help post a little more about your problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066659#4066659

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-23 Thread mladen.babic
Hi again,

I did same as you wrote, but it still  doesn't  work.It's say thet didn't 
finish deploy.
I must say that other example works good.I use seam 2.0.

There is small different between old build and new one.
This is your build:

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
And old build

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 
Different code is bolded
When I modified path in new build and start ant, it trows error

  | Buildfile: 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/build.xml
  | init:
  |  [echo] Building Seam Remoting HelloWorld Example 2.0
  | [mkdir] Created dir: 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/exploded-archives/seam-helloworld.jar
  | [mkdir] Created dir: 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/exploded-archives/seam-helloworld.ear
  | [mkdir] Created dir: 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/exploded-archives/seam-helloworld.war
  | select-compiler:
  | compile:
  | [javac] Compiling 2 source files to 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/exploded-archives/seam-helloworld.jar
  | [javac] 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/src/org/jboss/seam/example/remoting/HelloLocal.java:4:
 cannot find symbol
  | [javac] symbol  : class WebRemote
  | [javac] location: package org.jboss.seam.annotations
  | [javac] import org.jboss.seam.annotations.WebRemote;
  | [javac] ^
  | [javac] 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/src/org/jboss/seam/example/remoting/HelloLocal.java:8:
 cannot find symbol
  | [javac] symbol  : class WebRemote
  | [javac] location: interface org.jboss.seam.example.remoting.HelloLocal
  | [javac] @WebRemote
  | [javac] ^
  | [javac] Note: 
/home/elb3/workspace/jboss-seam/examples/remoting/helloworld/src/org/jboss/seam/example/remoting/HelloAction.java
 uses or overrides a deprecated API.
  | [javac] Note: Recompile with -Xlint:deprecation for details.
  | [javac] 2 errors
  | 
  | BUILD FAILED
  | /home/elb3/workspace/jboss-seam/examples/build.xml:384: Compile failed; see 
the compiler error output for details.
  | 
  | Total time: 1 second
  | 
  | 
I copied only 'view' folder.Then it finished deploy correct. But it trows me 
error while deploying:

  | 19:48:08,813 WARN  [ServiceController] Problem starting service 
jboss.web.deployment:war=seam-helloworld.war,id=1256667677
  | org.jboss.deployment.DeploymentException: URL 
file:/opt/jboss-4.2.0.GA/server/default/tmp/deploy/tmp45846seam-helloworld.ear-contents/seam-helloworld-exp.war/
 deployment failed
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | at 
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.uti

[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-23 Thread cingram
You will probably need to extract the remoting helloworld example again, as it 
got some Seam-1.2.1 files copied in to it. They changed some of the package 
names for remoting between Seam 1.2.1 GA and Seam 2.0 BETA. I uploaded a new 
file that excludes the Seam classes. Grab the file from  

http://wiki.jboss.org/wiki/attach?page=JBossSeam%2FFlexSeamExampleHelloWorld.zip

and extract the files to the SEAM_HOME/examples/remoting/helloworld/view dir. 
Rebuild with ant and deploy. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066793#4066793

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066793
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-24 Thread mladen.babic
Hi ,
now it trows :

  | 09:48:26,329 INFO  [TomcatDeployer] deploy, ctxPath=/seam-helloworld, 
warUrl=.../tmp/deploy/tmp44797seam-helloworld.ear-contents/seam-helloworld-exp.war/
  | 09:48:26,445 ERROR [STDERR] java.lang.UnsupportedOperationException
  | 09:48:26,445 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
  | 09:48:26,445 ERROR [STDERR] at 
com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
  | 09:48:26,445 ERROR [STDERR] at 
com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
  | 09:48:26,445 ERROR [STDERR] at 
com.sun.faces.util.Util.createInstance(Util.java:477)
  | 09:48:26,445 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:671)
  | 09:48:26,445 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
  | 09:48:26,446 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
  | 09:48:26,446 ERROR [STDERR] at 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | 09:48:26,446 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 09:48:26,446 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 09:48:26,446 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 09:48:26,446 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 09:48:26,446 ERROR [STDERR] at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 09:48:26,446 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 09:48:26,446 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
  | 09:48:26,446 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 09:48:26,446 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 09:48:26,447 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 09:48:26,447 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 09:48:26,447 ERROR [STDERR] at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.web.WebModule.startModule(WebModule.java:83)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.web.WebModule.startService(WebModule.java:61)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | 09:48:26,447 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | 09:48:26,447 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 09:48:26,447 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 09:48:26,447 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 09:48:26,448 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 09:48:26,448 ERROR [STDERR] at 
org.jboss.mx.server.AbstractMBeanInvoker.invo

[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-24 Thread cingram
I tend to think you have a conflict some where in your configuration. The Flex 
portion is just being used for view and has no impact on the back end 
deployment, or compiling. 

I am developing on Seam1.2.1 and I have tested on 2.0. There are some 
differences with remoting between 1.2.1 and 2.0. Make sure you have a clean 
version of 2.0 and copy only the following files to the existing view dir to a 
clean 2.0 install, in the helloworld remoting example 
(FABridge.as,FABridge.js,flexhelloworld.html, 
Flexhelloworld.swf,FlexSeam.js,SeamBridge.as).  Also make sure you don't have a 
conflict occurring in your deploy folder. If the helloworld remoting is 
building and deploying before you add the files, once you add them it should 
still continue to build and deploy correctly as you are only adding to the view 
portion.

The original file contained some Seam-1.2.1 one configuration and will not port 
to 2.0. You need to make sure you are using a clean version of 2.0 and use all 
of the 2.0 files.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066997#4066997

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066997
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-24 Thread mladen.babic
Tnx cingram,

Now it works. 

Best regards,
mb

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067020#4067020

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067020
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Flex Integration, How Easy It Is!

2007-07-28 Thread felipevaa
Hello cingram, this is a very interesting approach. However, is there any 
particular reason you chose to use FABridge instead of ExternalInterface? We 
are using Seam Remoting and Flex, and we do not need to use FABridge at all.

I'm just curious to know what would be the advantage to use this approach 
instead of the simplistic one with ExternalInterface.

Thanks!

Felipe

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068511#4068511

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068511
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user