[
http://jira.jboss.com/jira/browse/JBSEAM-3152?page=comments#action_12420920 ]
Dan Allen commented on JBSEAM-3152:
-----------------------------------
No, the problem is that JavaScript doesn't official support namespaces. It's just
possible to emulate namespaces by assigning creating a new object for each segment.
Basically, for the example I gave, it would have to be setup as follows:
Seam.Remoting.type.com = new Object();
Seam.Remoting.type.mydomain = new Object();
Seam.Remoting.type.mydomain.throwaway = new Object();
Seam.Remoting.type.mydomain.throwaway.manager = new Object();
Then, you can actually use that "namespace".
It's possible to use a function if we want to allow the dot:
http://weblogs.asp.net/mschwarz/archive/2005/08/26/423699.aspx
Remoting does not work with qualified component names
-----------------------------------------------------
Key: JBSEAM-3152
URL:
http://jira.jboss.com/jira/browse/JBSEAM-3152
Project: Seam
Issue Type: Bug
Components: Remoting
Affects Versions: 2.1.0.A1, 2.0.3.CR1
Reporter: Dan Allen
Assigned To: Dan Allen
Fix For: 2.1.0.BETA1, 2.0.3.GA
Attachments: JBSEAM-3152-branch20-v1.txt
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
Remoting does not escape dots in a component name, thus generating JavaScript that does
not run. For instance, if the name of the component is com.example.remoting.componentName,
the InterfaceGenerator produces:
Seam.Remoting.type.com.mydomain.throwaway.manager.prototype.methodName = ...
Obviously, this isn't going to work. A reasonable quick fix is to replace dots with
underscores.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira