[JBoss Seam] - External AJAX access to webremote?
by whafrog
Hi, is there an easy way to access @WebRemote methods from Ajax on pages that are not part of the hosted web app? In our case, we have many static web pages we host for other companies. Some of them would like to get dynamic data (via Ajax) from our web app. I'd love to use a Seam service and the Seam Ajax libraries, but the problem is visibility of the Seam remoting javascript resources, as a page not deployed with the app has no visibility of:
<script type="text/javascript" src="/seam/resource/remoting/resource/remote.js"></script>
| <script type="text/javascript" src="/seam/resource/remoting/interface.js?myWebRemoteService"></script>
|
even if I prefix "/seam..." with "http://localhost:8080/..."
Is there a way to get around this, or am I stuck making a basic Servlet on the web app, and using the XMLHttpRequest() object in javascript?
Thanks,
Jon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112368#4112368
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112368
18 years, 4 months
[JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...
by jsolderitsch
I am looking at the contents of the lib folder in WEB_INF in my war, comparing what I have when I let maven generate it and what I have when I use the ant build produced by seam-gen.
In the ant-built lib folder I see:
antlr-runtime.jar
| commons-beanutils.jar
| commons-digester.jar
| drools-compiler.jar
| drools-core.jar
| jboss-el.jar
| jboss-seam-debug.jar
| jboss-seam-ioc.jar
| jboss-seam-mail.jar
| jboss-seam-pdf.jar
| jboss-seam-remoting.jar
| jboss-seam-ui.jar
| jboss-seam.jar
| jbpm-jpdl.jar
| jsf-facelets.jar
| mvel14.jar
| richfaces-api.jar
| richfaces-impl.jar
| richfaces-ui.jar
|
| In the maven built one I see
|
| commons-beanutils-1.7.0.jar
| | dom4j-1.6.1-jboss.jar
| | javassist-3.3.ga.jar
| | jboss-el-2.0.0.GA.jar
| | jboss-seam-2.0.0.GA.jar
| | jboss-seam-debug-2.0.0.GA.jar
| | jboss-seam-remoting-2.0.0.GA.jar
| | jboss-seam-ui-2.0.0.GA.jar
| | jsf-facelets-1.1.14.jar
| | servlet-api-2.5.jar
|
| I seem to be getting the seam stuff ok, but the presence and absence of the other jars is mysterious -- to me at least.
|
| How do I get the set produced by maven to be closer to that produced by ant? The war built with ant works, the one with maven does not.
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112367#4112367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112367
18 years, 4 months