Using GI with DWR some questions

View: New views
5 Messages — Rating Filter:   Alert me  

Using GI with DWR some questions

by stpdave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Firstly I note that since GI went to generalinterface.org under the Dojo
foundation none of the links in the DWR website have been updated.

In the examples index.html shows that the javascript files are included
like so

  <script type='text/javascript' src='dwr/interface/Util.js'></script>

 <!--To use dwr  your javascript you will need the following script
includes:-->

  <script type='text/javascript' src='dwr/engine.js'></script>
  <script type='text/javascript' src='dwr/gi.js'></script>

  <script type='text/javascript' src='dwr/util.js'></script>

  <script type='text/javascript'
src='TibcoGI/JSXAPPS/secm/js/json2.js'></script>

Now I realize that the engine.js etc are dynamically created. But what I
wanted to know is do I need to include my javascript , in the example
above Util.js, which is actually loaded by my GI main javascript file using

jsx3.require("com.example.secm.Util");

So do I need it in my index.html because DWR needs it there?

Thx.

David


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Using GI with DWR some questions

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am not sure we are going to be supporting GI moving forward and I believe I have removed references to it in 3.x but I may be wrong.  This is something that was worked on when DWR was sponsored by Tibco and it hasn't been touched since which explains why the link has not been updated.

As far as your question, each page you are using DWR to make a remote call will require an include to the generated interface file - this should make sense:
<script type='text/javascript' src='dwr/interface/Util.js'></script>

I am not sure what this does:
jsx3.require("com.example.secm.Util");

But it doesn't look to me that it is including the Util.js generated by DWR.



On Tue, Oct 20, 2009 at 11:47 AM, David Wynter <david@...> wrote:
Hi,

Firstly I note that since GI went to generalinterface.org under the Dojo foundation none of the links in the DWR website have been updated.

In the examples index.html shows that the javascript files are included like so

 <script type='text/javascript' src='dwr/interface/Util.js'></script>

<!--To use dwr  your javascript you will need the following script includes:-->

 <script type='text/javascript' src='dwr/engine.js'></script>
 <script type='text/javascript' src='dwr/gi.js'></script>

 <script type='text/javascript' src='dwr/util.js'></script>

 <script type='text/javascript' src='TibcoGI/JSXAPPS/secm/js/json2.js'></script>

Now I realize that the engine.js etc are dynamically created. But what I wanted to know is do I need to include my javascript , in the example above Util.js, which is actually loaded by my GI main javascript file using

jsx3.require("com.example.secm.Util");

So do I need it in my index.html because DWR needs it there?

Thx.

David


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: Using GI with DWR some questions

by David Wynter at roamware :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,

I am not using the DWR support for generating the GI javascript UI
classes that Joe added. This is what you refer to below. I am only using
the RPC mechanism.

I had simply forgotten that DWR dynamically places the Java classes that
are declared for <create/> in dwr.xml as javascript on the client, and
that these needed to be explicitly included with a <script/> include.

I had got the behaviour of GI and DWR mixed up. Conceptually you already
have the details you need to dynamically place the javascript
equivalents of the declared <create/> classes without separately
including them in index.html. If GI can dynamically include javascript
files using its require function, DWR could too. The
jsx3.require(<classname>) includes that javascript file.

Thx.

David

David Marginian wrote:

> I am not sure we are going to be supporting GI moving forward and I
> believe I have removed references to it in 3.x but I may be wrong.
>  This is something that was worked on when DWR was sponsored by Tibco
> and it hasn't been touched since which explains why the link has not
> been updated.
>
> As far as your question, each page you are using DWR to make a remote
> call will require an include to the generated interface file - this
> should make sense:
> <script type='text/javascript' src='dwr/interface/Util.js'></script>
>
> I am not sure what this does:
> jsx3.require("com.example.secm.Util");
>
> But it doesn't look to me that it is including the Util.js generated
> by DWR.
>
>
>
> On Tue, Oct 20, 2009 at 11:47 AM, David Wynter <david@...
> <mailto:david@...>> wrote:
>
>     Hi,
>
>     Firstly I note that since GI went to generalinterface.org
>     <http://generalinterface.org> under the Dojo foundation none of
>     the links in the DWR website have been updated.
>
>     In the examples index.html shows that the javascript files are
>     included like so
>
>      <script type='text/javascript' src='dwr/interface/Util.js'></script>
>
>     <!--To use dwr  your javascript you will need the following script
>     includes:-->
>
>      <script type='text/javascript' src='dwr/engine.js'></script>
>      <script type='text/javascript' src='dwr/gi.js'></script>
>
>      <script type='text/javascript' src='dwr/util.js'></script>
>
>      <script type='text/javascript'
>     src='TibcoGI/JSXAPPS/secm/js/json2.js'></script>
>
>     Now I realize that the engine.js etc are dynamically created. But
>     what I wanted to know is do I need to include my javascript , in
>     the example above Util.js, which is actually loaded by my GI main
>     javascript file using
>
>     jsx3.require("com.example.secm.Util");
>
>     So do I need it in my index.html because DWR needs it there?
>
>     Thx.
>
>     David
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@...
>     <mailto:users-unsubscribe@...>
>     For additional commands, e-mail: users-help@...
>     <mailto:users-help@...>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Parent Message unknown Re: Using GI with DWR some questions

by David Wynter at roamware :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,

I am not using the DWR support for generating the GI javascript UI
classes that Joe added. This is what you refer to below. I am only using
the RPC mechanism.

I had simply forgotten that DWR dynamically places the Java classes that
are declared for <create/> in dwr.xml as javascript on the client, and
that these needed to be explicitly included with a <script/> include.

I had got the behaviour of GI and DWR mixed up. Conceptually you already
have the details you need to dynamically place the javascript
equivalents of the declared <create/> classes without separately
including them in index.html. If GI can dynamically include javascript
files using its require function, DWR could too. The
jsx3.require(<classname>) includes that javascript file.

Thx.

David

David Marginian wrote:

> I am not sure we are going to be supporting GI moving forward and I
> believe I have removed references to it in 3.x but I may be wrong.
>  This is something that was worked on when DWR was sponsored by Tibco
> and it hasn't been touched since which explains why the link has not
> been updated.
>
> As far as your question, each page you are using DWR to make a remote
> call will require an include to the generated interface file - this
> should make sense:
> <script type='text/javascript' src='dwr/interface/Util.js'></script>
>
> I am not sure what this does:
> jsx3.require("com.example.secm.Util");
>
> But it doesn't look to me that it is including the Util.js generated
> by DWR.
>
>
>
> On Tue, Oct 20, 2009 at 11:47 AM, David Wynter <david@...
> <mailto:david@...>> wrote:
>
>     Hi,
>
>     Firstly I note that since GI went to generalinterface.org
>     <http://generalinterface.org> under the Dojo foundation none of
>     the links in the DWR website have been updated.
>
>     In the examples index.html shows that the javascript files are
>     included like so
>
>      <script type='text/javascript' src='dwr/interface/Util.js'></script>
>
>     <!--To use dwr  your javascript you will need the following script
>     includes:-->
>
>      <script type='text/javascript' src='dwr/engine.js'></script>
>      <script type='text/javascript' src='dwr/gi.js'></script>
>
>      <script type='text/javascript' src='dwr/util.js'></script>
>
>      <script type='text/javascript'
>     src='TibcoGI/JSXAPPS/secm/js/json2.js'></script>
>
>     Now I realize that the engine.js etc are dynamically created. But
>     what I wanted to know is do I need to include my javascript , in
>     the example above Util.js, which is actually loaded by my GI main
>     javascript file using
>
>     jsx3.require("com.example.secm.Util");
>
>     So do I need it in my index.html because DWR needs it there?
>
>     Thx.
>
>     David
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@...
>     <mailto:users-unsubscribe@...>
>     For additional commands, e-mail: users-help@...
>     <mailto:users-help@...>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Using GI with DWR some questions

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That is actually not what I was referring to.  I simply did not know
what the name of the classes you were remoting with DWR since you did
not provide a complete example.  Yes, we could develop some sort of
include mechanism but quite frankly that is out of the scope of what we
do and there are other libraries that take care of that for users that
are interested, such as JAWR - https://jawr.dev.java.net/.

David at roamware wrote:

> Hi David,
>
> I am not using the DWR support for generating the GI javascript UI
> classes that Joe added. This is what you refer to below. I am only
> using the RPC mechanism.
>
> I had simply forgotten that DWR dynamically places the Java classes
> that are declared for <create/> in dwr.xml as javascript on the
> client, and that these needed to be explicitly included with a
> <script/> include.
>
> I had got the behaviour of GI and DWR mixed up. Conceptually you
> already have the details you need to dynamically place the javascript
> equivalents of the declared <create/> classes without separately
> including them in index.html. If GI can dynamically include javascript
> files using its require function, DWR could too. The
> jsx3.require(<classname>) includes that javascript file.
>
> Thx.
>
> David
>
> David Marginian wrote:
>> I am not sure we are going to be supporting GI moving forward and I
>> believe I have removed references to it in 3.x but I may be wrong.
>>  This is something that was worked on when DWR was sponsored by Tibco
>> and it hasn't been touched since which explains why the link has not
>> been updated.
>>
>> As far as your question, each page you are using DWR to make a remote
>> call will require an include to the generated interface file - this
>> should make sense:
>> <script type='text/javascript' src='dwr/interface/Util.js'></script>
>>
>> I am not sure what this does:
>> jsx3.require("com.example.secm.Util");
>>
>> But it doesn't look to me that it is including the Util.js generated
>> by DWR.
>>
>>
>>
>> On Tue, Oct 20, 2009 at 11:47 AM, David Wynter <david@...
>> <mailto:david@...>> wrote:
>>
>>     Hi,
>>
>>     Firstly I note that since GI went to generalinterface.org
>>     <http://generalinterface.org> under the Dojo foundation none of
>>     the links in the DWR website have been updated.
>>
>>     In the examples index.html shows that the javascript files are
>>     included like so
>>
>>      <script type='text/javascript'
>> src='dwr/interface/Util.js'></script>
>>
>>     <!--To use dwr  your javascript you will need the following script
>>     includes:-->
>>
>>      <script type='text/javascript' src='dwr/engine.js'></script>
>>      <script type='text/javascript' src='dwr/gi.js'></script>
>>
>>      <script type='text/javascript' src='dwr/util.js'></script>
>>
>>      <script type='text/javascript'
>>     src='TibcoGI/JSXAPPS/secm/js/json2.js'></script>
>>
>>     Now I realize that the engine.js etc are dynamically created. But
>>     what I wanted to know is do I need to include my javascript , in
>>     the example above Util.js, which is actually loaded by my GI main
>>     javascript file using
>>
>>     jsx3.require("com.example.secm.Util");
>>
>>     So do I need it in my index.html because DWR needs it there?
>>
>>     Thx.
>>
>>     David
>>
>>
>>    
>> ---------------------------------------------------------------------
>>     To unsubscribe, e-mail: users-unsubscribe@...
>>     <mailto:users-unsubscribe@...>
>>     For additional commands, e-mail: users-help@...
>>     <mailto:users-help@...>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4530 (20091021) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4532 (20091022) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...