[JBoss-user] [JBoss Seam] - Re: Seam Remoting

2006-06-27 Thread sbryzak2
I've modified BeanWrapper to look for the field in the bean's superclasses. It would be great if you could test this for me, I don't have anything set up right now to test this and don't have time right now to write something. Please let me know if there's any problems. View the original post

[JBoss-user] [JBoss Seam] - Re: Seam Remoting

2006-06-26 Thread sbryzak2
I've modified the InterfaceGenerator to remove the trailing comma and to also walk through the class ancestry of the component to include inherited fields. It would be great if you could get the latest version from CVS and try this out. View the original post : http://www.jboss.com/index.html?

[JBoss-user] [JBoss Seam] - Re: seam remoting support for chinese

2006-06-20 Thread sbryzak2
Quite sure. I'm pretty sure that it was after CR3 that I fixed a bug to do with the encoding of international characters. If you download the latest release (or get the latest from CVS) it should fix your problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[JBoss-user] [JBoss Seam] - Re: seam remoting support for chinese

2006-06-19 Thread sbryzak2
I just tried it with some characters I copied from baidu.com and it seems to work correctly. Which version of Seam are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951778#3951778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[JBoss-user] [JBoss Seam] - We got a mention on digg.com :)

2006-06-18 Thread sbryzak2
http://www.digg.com/programming/JBoss_Seam_knits_AJAX_and_Java_together View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951566#3951566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951566 _

[JBoss-user] [JBoss Seam] - Re: Seam AJax Remoting and throwing of exceptions

2006-06-13 Thread sbryzak2
Not yet, I've been trying to think of an elegant way of handling exceptions. In a lot (most?) of cases you won't want to return a stack trace to the client; instead a simple error code/message would be more useful. Whether this is something that is done client side or server side I'm not sure.

[JBoss-user] [JBoss Seam] - Re: Using Velocity or XSLT Templates in Seam

2006-06-12 Thread sbryzak2
The template resources could come from anywhere; a directory in your application archive, db table, etc - your resource loader just has to load them from somewhere. Personally I'd use an application-scoped bean to wrap the velocity context, annotate it with @Startup and define a @Create method

[JBoss-user] [JBoss AOP] - Scoped classloading with standalone AOP

2006-06-08 Thread sbryzak2
I have a standalone app that supports a plugin framework - each plugin has its own classloader that loads its classes and libraries separately to other plugins. I have two plugins that define aspects for the same class/pointcut (org.apache.axis.client.Call-> invoke - each plugin provides their

[JBoss-user] [JBoss Seam] - Re: Support for Internationalization

2006-06-07 Thread sbryzak2
I didn't get very far. Anyway, I've checked in some changes to CVS which should improve how international characters are handled. I'd be great if you could give this a try and let me know if it works for you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39

[JBoss-user] [JBoss Seam] - Re: Support for Internationalization

2006-06-06 Thread sbryzak2
I'm guessing that its something to do with how I'm encoding string values for transport (they're URL-encoded). I haven't tested this with anything other than ASCII characters but as far as I understand anything should work. Anyway I'll try it tonight with Russian characters and see how far I g

[JBoss-user] [JBoss Seam] - Re: Using Velocity or XSLT Templates in Seam

2006-06-06 Thread sbryzak2
The path to the file containing your Velocity template. So for example, if you're storing your templates in the WEB-INF directory and they have a .template extension, your getResourceStream() method would look like this: | public InputStream getResourceStream(String source) | throws Re

[JBoss-user] [JBoss Seam] - Re: Using Velocity or XSLT Templates in Seam

2006-06-01 Thread sbryzak2
Create your own response resource loader by extending org.apache.velocity.runtime.resource.loader.ResourceLoader, and override the getResourceStream() method. Then set the Velocity engine "service.resource.loader.class" property to point to your new resource loader class. Then you can use getC

[JBoss-user] [JBoss Seam] - Re: cancelling remoting requests

2006-05-28 Thread sbryzak2
I've checked into CVS support for cancelling a remote call. Now when you execute your remote method, you will be returned a Call object, which has the following properties: data - contains the call in serialized XML form id - the ID of the call callback - the callback method reference asyncReq

[JBoss-user] [JBoss Seam] - Re: cancelling remoting requests

2006-05-26 Thread sbryzak2
Will look at this today. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947014#3947014 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947014 --- All the advantages o

[JBoss-user] [JBoss Seam] - Re: Value of auto-increment field not updated?

2006-05-23 Thread sbryzak2
Make your primary key field an Integer (not a primitive int) and call entityManager.persist(entity) to make your entity persistent and managed. That way you'll then be able to read its primary key value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945908#

[JBoss-user] [JBoss Seam] - Re: WebRemote method serialization with interfaces

2006-05-19 Thread sbryzak2
Hmm... I can see how this could be a problem. ClassA would not be defined by the client stub so the client would not know how to deal with it when it is returned. Your idea of including a list of interfaces inside the serialized block sounds good. I'll think about it for a couple of days (it

[JBoss-user] [JBoss Seam] - Re: WebRemote method serialization with interfaces

2006-05-18 Thread sbryzak2
I'll have a look at this over the next few days, it shouldn't be difficult to traverse the inheritence chain and include inherited fields. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944810#3944810 Reply to the post : http://www.jboss.com/index.html?modul

[JBoss-user] [JBoss Seam] - Re: Script.aculo.us with Seam Remoting

2006-05-16 Thread sbryzak2
I haven't really looked at the sciptaculous stuff, but what kind of integration is it that's needed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943359#3943359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943359

[JBoss-user] [JBoss Seam] - Re: Remoting exception

2006-05-09 Thread sbryzak2
I've fixed this in CVS. It will now only attempt to use the local interface if the component has one, otherwise it will use the bean class of the component you are calling. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942327#3942327 Reply to the post : h

[JBoss-user] [JBoss Seam] - Re: Seam Remote to Stateful Session-Scope Beans

2006-05-08 Thread sbryzak2
What do we need to do to support this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942058#3942058 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942058 --- Using

[JBoss-user] [JBoss Seam] - Re: SeamRemoting: FacesContext not inject.

2006-04-19 Thread sbryzak2
A remoting request doesn't go through the faces servlet, so that's probably why you don't have a FacesContext. Can you load the resource with your class's classloader instead? i.e: getClass().getClassLoader().getResourceAsStream("WEB-INF/templates/upload.tmpl") View the original post : http:

[JBoss-user] [JBoss Seam] - Re: Seam Remoting Refactored

2006-04-18 Thread sbryzak2
I've checked an update into CVS which will now check JAVA_BEAN components for any methods annotated with @WebRemote. If the annotation is found, then an executable stub will be generated allowing you to use remoting to call the methods of your component. I've also updated the remoting docs wit

[JBoss-user] [JBoss Seam] - Re: Seam Remoting Refactored

2006-04-18 Thread sbryzak2
There are two types of client stub that can be generated, "executable" stubs and "type" stubs. Executable stubs are behavioural, and are used to execute methods against your session bean components, while type stubs contain state and represent the types that can be passed in as parameters or re

[JBoss-user] [JBoss Seam] - Seam Remoting Refactored

2006-04-18 Thread sbryzak2
I've checked into CVS a number of changes to the Seam Remoting codebase to make it more consistent with its server-side counterpart. Unfortunately because of these changes it means that if you're using the remoting features of Seam your Javascript code will need some refactoring. Here's a summ

[JBoss-user] [JBoss Seam] - Re: SLSB in session scope in remoting examples

2006-04-13 Thread sbryzak2
You're right, they shouldn't be there. I've removed them in CVS - thanks for pointing it out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937158#3937158 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937158 -

[JBoss-user] [JBoss Seam] - Re: Seam on jboss-4.0.4.CR2

2006-04-13 Thread sbryzak2
Hmm now that you mention it I probably did downgrade them... have you tried using the version that's in Seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937155#3937155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[JBoss-user] [JBoss Seam] - Re: Seam on jboss-4.0.4.CR2

2006-04-12 Thread sbryzak2
I've got it working by just copying over the 3 hibernate jars in the lib and deploy/ejb3.deployer directories (hibernate3.jar, hibernate-annotations.jar and hibernate-entitymanager.jar) with the newest versions. Plus I also copied el-api.jar, el-ri.jar and jsf-facelets.jar into deploy/jbossweb

[JBoss-user] [JBoss Seam] - Re: Script.aculo.us with Seam Remoting

2006-04-11 Thread sbryzak2
"d1g" wrote : | As an example, I wasn't able to use a member function of a script.aculo.us class as a remoting callback. The function executed but it lost it's 'instance' context. This might not be possible to solve... I usually define an anonymous function to handle situations like this:

[JBoss-user] [JBoss Seam] - Re: Script.aculo.us with Seam Remoting

2006-04-10 Thread sbryzak2
Nicely done, I hadn't even considered integrating Seam Remoting in this manner and it is nice to see that it is actually possible. One little thing I noticed, is that where you're calling the initialize method you're not including the context path of your application in the URL: anonymous wrot

[JBoss-user] [JBoss Seam] - Re: problem with @EJB injection

2006-03-12 Thread sbryzak2
Is my.test.ContractService the local interface for your bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929652#3929652 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929652 ---

[JBoss-user] [JBoss Seam] - Re: Seam Remoting Framework

2006-02-26 Thread sbryzak2
You could probably use the remoting framework to build an auto-complete field, however there are already a heap of similar components available (http://myfaces.apache.org/sandbox/inputSuggest.html for one) that already do this. What the remoting framework is really good at, is enabling you to

[JBoss-user] [JBoss Seam] - Seam Remoting Framework

2006-02-26 Thread sbryzak2
I've checked in an initial release of the Seam remoting framework to CVS. What it does is allow you to make AJAX calls to your Seam components from a web page. There is a simple hello world example which demonstrates the very basics and there will be more complex examples soon. I invite anyon

[JBoss-user] [JBoss Seam] - Re: Hot Redeployment

2006-02-15 Thread sbryzak2
You need to be packaging your application into an ear or war file, and deploying that inside the deploy directory. JBoss will automatically deploy your app from here, so when you want to release an updated version just copy it over the top of the old one and JBoss will detect it has been modifi

[JBoss-user] [JBoss Seam] - Re: Use JSP script in xhtml

2006-02-15 Thread sbryzak2
It needs to be placed in a CDATA: | | // | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924108#3924108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po