j2s-development Mailing List for Java2Script (Page 3)
Brought to you by:
zhourenjian
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
(55) |
Jul
(24) |
Aug
(12) |
Sep
(6) |
Oct
(25) |
Nov
(3) |
Dec
(16) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2009 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-09-04 07:27:02
|
I just wanted to test the packed js files that includes all the class
files! Do they work?
On 9/3/06, Zhou Renjian <jo...@sj...> wrote:
> Hi Soheil,
>
> I optimized something about class dependencies. And it may bring lots of
> bugs.
>
> May you describe more about this bug?
>
> BTW: In most situations, class SWT may be NOT in the class dependency
> tree. This is because all constants of SWT.* will be treated as
> constants with no needs to import that 12k *.js file. If you do want to
> import class SWT (maybe you want to write your *.js by hands), you
> should add a line in the class' Javadoc comment:
> @j2sOptionalImport org.eclipse.swt.SWT
> or in the *.js file, add similar codes:
> ClazzLoader.loadClass ("org.eclipse.swt.SWT", function () {
> // do whatever after SWT is loaded
> });
> in *.js.
>
> Regards,
>
> Soheil Hassas Yeganeh wrote:
> > Hi Zhou,
> >
> > I'm now back and updated my Java2Script source codes. I think, a new
> > unknown bug is introduce in J2S.
> > As I'd tested before, we can import a javascript statically using
> > <script> in html, beside the Dynamic loading.
> > But, now, it does not work. For testing this issue you can import
> > SWT.js itself in any snippet, and see it will not work!
> >
> > Regards,
> > Soheil
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > j2s-development mailing list
> > j2s...@li...
> > https://lists.sourceforge.net/lists/listinfo/j2s-development
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> j2s-development mailing list
> j2s...@li...
> https://lists.sourceforge.net/lists/listinfo/j2s-development
>
|
|
From: Zhou R. <jo...@sj...> - 2006-09-03 14:03:30
|
Hi Soheil,
I optimized something about class dependencies. And it may bring lots of
bugs.
May you describe more about this bug?
BTW: In most situations, class SWT may be NOT in the class dependency
tree. This is because all constants of SWT.* will be treated as
constants with no needs to import that 12k *.js file. If you do want to
import class SWT (maybe you want to write your *.js by hands), you
should add a line in the class' Javadoc comment:
@j2sOptionalImport org.eclipse.swt.SWT
or in the *.js file, add similar codes:
ClazzLoader.loadClass ("org.eclipse.swt.SWT", function () {
// do whatever after SWT is loaded
});
in *.js.
Regards,
Soheil Hassas Yeganeh wrote:
> Hi Zhou,
>
> I'm now back and updated my Java2Script source codes. I think, a new
> unknown bug is introduce in J2S.
> As I'd tested before, we can import a javascript statically using
> <script> in html, beside the Dynamic loading.
> But, now, it does not work. For testing this issue you can import
> SWT.js itself in any snippet, and see it will not work!
>
> Regards,
> Soheil
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> j2s-development mailing list
> j2s...@li...
> https://lists.sourceforge.net/lists/listinfo/j2s-development
>
>
>
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-09-03 13:34:45
|
Hi Zhou, I'm now back and updated my Java2Script source codes. I think, a new unknown bug is introduce in J2S. As I'd tested before, we can import a javascript statically using <script> in html, beside the Dynamic loading. But, now, it does not work. For testing this issue you can import SWT.js itself in any snippet, and see it will not work! Regards, Soheil |
|
From: Zhou R. <jo...@sj...> - 2006-08-21 00:40:44
|
1.0.0 M3 (Aug 20, 2006) New and Noteworthy ================== Java2Script Core ---------------- 1. No more need to enhance Eclipse JDT core jar for Java2Script compiler 2. Full support of Eclipse 3.2.0 besides Eclipse 3.1.* 3. Dynamic JavaScript loading (ClazzLoader) 4. Early Java reflection implementation. Java2Script SWT --------------- 1. Improvement of CTabFolder, Table, Combo, ProgressBar, Scale 2. Support of embedding Shell inside normal HTML page (please visit inline demo of http://j2s.sourceforge.net) 3. Early key navigation support. 4. More LAF themes Java2Script AJAX ---------------- 1. Support loading classes asynchronously both in Java and Java2Script, please visit http://j2s.sourceforge.net/docs/net.sf.j2s.ajax/net/sf/j2s/ajax/AClass.html Java2Script JUnit ----------------- 1. Support JUnit tests both Test Case and Test Suite |
|
From: Zhou R. <jo...@sj...> - 2006-08-18 16:45:31
|
Hi, SWT Snippet Reload: http://j2s.sourceforge.net/swt/snippets/ net.sf.j2s.ajax Javadoc http://j2s.sourceforge.net/docs/net.sf.j2s.ajax/index.html Getting Started (Some of old tutorials are out of date by lots of new features): http://j2s.sourceforge.net/articles/simple-hello.html or http://j2s.sourceforge.net/articles/simple-hello.pdf BTW: Though 1.0.0 M3 is not perfect yet, it should be ready for download before next Monday. Regards, Zhou Renjian |
|
From: Soheil H. Y. <soh...@gm...> - 2006-08-12 07:38:17
|
Hi, An early version of keyboard navigation on table is commited. Check it out! Regards, Soheil |
|
From: Zhou R. <jo...@sj...> - 2006-08-10 18:03:20
|
http://swingwt.sourceforge.net/ SwingWT is a 100% pure Java library which aims to be a free implementation of Swing <http://java.sun.com/products/jfc/#swing> and AWT. Unlike Swing, it drives native peer widgets for your platform from SWT <http://www.eclipse.org/swt/>. When I came up with this project today, I spent some time trying to make the sources Java2Script SWT compatiable. As J2S' SWT is not fast indeed, and adding huge wrapper for Swing/AWT made the demo running very slow (About 1 minute before window popup). And by so far I could only get Swing' JFrame and JTabbedPane displaying inside browser. It seems that JavaScript version of Swing/AWT is possible. Regards |
|
From: Zhou R. <jo...@sj...> - 2006-08-09 13:05:32
|
I am thinking about the way like Window XP's extending desktop into another monitor. That is to say, there are two or more DIVs (monitors). SWT applications can be run inside different DIVs (monitors). Maybe each SWT shell can be maximized inside its DIV (monitor). Or one SWT shell running inside one of DIV element (monitor) can be dragged into another DIV and them maximize it to that DIV (monitor). The way you are talking about is cloning SWT shell like projecting of the current monitor to the wall, which it's too complicate and not useful in browsers. And we are not trying to implement joining multiple monitors into a big screen. Soheil Hassas Yeganeh wrote: > Hi, > > I think multiple monitor support is not as easy as you mentioned > here. If we clone the shell and add it under 2 DIVs, we do not have 2 > monitors! we just have another instance of the application executed. > The other problem here is the behavior of the multiple monitor. If a > button is pressed the effect should be applied on both DIVs, and many > other synchronization problems. > > So, I'm not sure wether multiple monitor is as easy as using divs as monitors. > > Regards, > Soheil > > On 8/7/06, Zhou Renjian <jo...@sj...> wrote: > >> Hi, >> >> I know native SWT 3.1 is not supporting multiple monitors. But SWT 3.2 >> or future version may support multiple monitors. >> >> In HTML DOM mode, <DIV> elements can be considered as blocks with >> position and size. If we treat DIV element as a monitor in browser. We >> can have multiple monitors for SWT! >> >> If we are not in the purpose of multiple monitors, we can also have our >> SWT application embeded inside a DIV block of normal HTML page. Please >> visit http://j2s.sourceforge.net/, the ControlExample is running inside >> a DIV monitors. I think that is cool. >> >> Currently, we choose document.body as the primary monitor when running >> as "Java2Script Application" in browser. But maybe Java2Script SWT >> applications running as DIV block embed applications should be right way. >> >> What is your opinions about how "Java2Script SWT Application" will be >> run as? Standalone? Embed? Workbench (JavaScript version of RCP)? >> >> Regards >> >> Zhou Renjian >> >> Attachment >> =================== >> By the way, there are some codes in the SVN repository >> Display.java: >> protected static void registerElementAsMonitor(Element el); >> something like: >> if (el == document.body) { >> monitor.clientWidth = document.body.clientWidth; >> monitor.clientHeight = document.body.clientHeight; >> monitor.x = 0; >> monitor.y = 0; >> monitor.width = window.screen.availWidth; >> monitor.height = window.screen.availHeight; >> } else { >> Point pt = OS.getElementPositionInShell(el, document.body); >> el.style.position = "absolute"; >> monitor.x = pt.x; >> monitor.y = pt.y; >> monitor.width = monitor.clientWidth = OS.getContainerWidth(el); >> monitor.height = monitor.clientHeight = OS.getContainerHeight(el); >> } >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> j2s-development mailing list >> j2s...@li... >> https://lists.sourceforge.net/lists/listinfo/j2s-development >> >> > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-08-09 08:24:13
|
Hi, I think multiple monitor support is not as easy as you mentioned here. If we clone the shell and add it under 2 DIVs, we do not have 2 monitors! we just have another instance of the application executed. The other problem here is the behavior of the multiple monitor. If a button is pressed the effect should be applied on both DIVs, and many other synchronization problems. So, I'm not sure wether multiple monitor is as easy as using divs as monitors. Regards, Soheil On 8/7/06, Zhou Renjian <jo...@sj...> wrote: > Hi, > > I know native SWT 3.1 is not supporting multiple monitors. But SWT 3.2 > or future version may support multiple monitors. > > In HTML DOM mode, <DIV> elements can be considered as blocks with > position and size. If we treat DIV element as a monitor in browser. We > can have multiple monitors for SWT! > > If we are not in the purpose of multiple monitors, we can also have our > SWT application embeded inside a DIV block of normal HTML page. Please > visit http://j2s.sourceforge.net/, the ControlExample is running inside > a DIV monitors. I think that is cool. > > Currently, we choose document.body as the primary monitor when running > as "Java2Script Application" in browser. But maybe Java2Script SWT > applications running as DIV block embed applications should be right way. > > What is your opinions about how "Java2Script SWT Application" will be > run as? Standalone? Embed? Workbench (JavaScript version of RCP)? > > Regards > > Zhou Renjian > > Attachment > =================== > By the way, there are some codes in the SVN repository > Display.java: > protected static void registerElementAsMonitor(Element el); > something like: > if (el == document.body) { > monitor.clientWidth = document.body.clientWidth; > monitor.clientHeight = document.body.clientHeight; > monitor.x = 0; > monitor.y = 0; > monitor.width = window.screen.availWidth; > monitor.height = window.screen.availHeight; > } else { > Point pt = OS.getElementPositionInShell(el, document.body); > el.style.position = "absolute"; > monitor.x = pt.x; > monitor.y = pt.y; > monitor.width = monitor.clientWidth = OS.getContainerWidth(el); > monitor.height = monitor.clientHeight = OS.getContainerHeight(el); > } > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Zhou R. <jo...@sj...> - 2006-08-07 17:45:49
|
Hi, I know native SWT 3.1 is not supporting multiple monitors. But SWT 3.2 or future version may support multiple monitors. In HTML DOM mode, <DIV> elements can be considered as blocks with position and size. If we treat DIV element as a monitor in browser. We can have multiple monitors for SWT! If we are not in the purpose of multiple monitors, we can also have our SWT application embeded inside a DIV block of normal HTML page. Please visit http://j2s.sourceforge.net/, the ControlExample is running inside a DIV monitors. I think that is cool. Currently, we choose document.body as the primary monitor when running as "Java2Script Application" in browser. But maybe Java2Script SWT applications running as DIV block embed applications should be right way. What is your opinions about how "Java2Script SWT Application" will be run as? Standalone? Embed? Workbench (JavaScript version of RCP)? Regards Zhou Renjian Attachment =================== By the way, there are some codes in the SVN repository Display.java: protected static void registerElementAsMonitor(Element el); something like: if (el == document.body) { monitor.clientWidth = document.body.clientWidth; monitor.clientHeight = document.body.clientHeight; monitor.x = 0; monitor.y = 0; monitor.width = window.screen.availWidth; monitor.height = window.screen.availHeight; } else { Point pt = OS.getElementPositionInShell(el, document.body); el.style.position = "absolute"; monitor.x = pt.x; monitor.y = pt.y; monitor.width = monitor.clientWidth = OS.getContainerWidth(el); monitor.height = monitor.clientHeight = OS.getContainerHeight(el); } |
|
From: Soheil H. Y. <soh...@gm...> - 2006-08-06 13:41:58
|
They are not necessary but they will ease the implementation. REGARDS, Soheil On 8/6/06, Zhou Renjian <jo...@sj...> wrote: > It may be considered as a bug. > > @j2sPrefix is not designed to generating codes before > Clazz.declarePackage or ClazzLoader#load . > > java.lang.reflect.Array may need more works to implement or replace > those native methods. Actually java.lang.reflect.Array should not be > declared inside AbstractCollection.java. > > By the way, is @j2sPrefix and @j2sSuffix necessary? > > Regards > > Soheil Hassas Yeganeh wrote: > > Hi All, > > > > I think @j2sPrefix should create the codes before the import function > > call (ClazzLoader load function). > > > > For example in Abstract Collection the java.reflect.Array should be > > copied before the import of java.reflect.Array! > > Am I right ? > > > > Regards, > > Soheil > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys -- and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Zhou R. <jo...@sj...> - 2006-08-06 13:36:11
|
It may be considered as a bug. @j2sPrefix is not designed to generating codes before Clazz.declarePackage or ClazzLoader#load . java.lang.reflect.Array may need more works to implement or replace those native methods. Actually java.lang.reflect.Array should not be declared inside AbstractCollection.java. By the way, is @j2sPrefix and @j2sSuffix necessary? Regards Soheil Hassas Yeganeh wrote: > Hi All, > > I think @j2sPrefix should create the codes before the import function > call (ClazzLoader load function). > > For example in Abstract Collection the java.reflect.Array should be > copied before the import of java.reflect.Array! > Am I right ? > > Regards, > Soheil > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-08-06 13:06:41
|
Hi All, I think @j2sPrefix should create the codes before the import function call (ClazzLoader load function). For example in Abstract Collection the java.reflect.Array should be copied before the import of java.reflect.Array! Am I right ? Regards, Soheil |
|
From: Zhou R. <jo...@sj...> - 2006-08-06 06:18:14
|
Soheil Hassas Yeganeh wrote: > Hi Zhou, > > They released swingweb accessible at : > http://swingweb.sourceforge.net/swingweb/ > > ReGaRdS > Soheil > > In a rush view of SwingWeb, it seems that SwingWeb is developing Swing application in a mixed mode (using both Java codes and XML/HTML tags). BTW: Maybe dealing with tags is much faster than totally dealing with JavaScript codes. Java2Script' SWT performance is still considered poor, even though using asynchronous loading mode and Java reflection (Try to run the updated org.eclipse.swt.examples.controlexample.ControlExample) helps a lot. Regards. |
|
From: Zhou R. <jo...@sj...> - 2006-08-02 13:52:20
|
Zhou Renjian wrote: > Hi, > > The Java2Script' class reflection is partially implemented, but it is > already enough to run normal JUnit under Java2Script. > > To check out the latest codes, please update all projects. BTW: Another > project "net.sf.j2s.java.junit" are created under "/trunk/sources/". > > After exporting the 4 projects as plugins and restarting, you should > notice a "Java2Script Unit Test" in the "Run As..." menu for test cases > class files. > > Later, I think there will be lots of test cases for java.lang.*, > java.util.*, org.eclipse.swt.* and others packages. > > /js > > > Hi, From now on, Java2Script supports the feature of asynchronous SWT JUnit tests. You can update /trunk/tests/net.sf.j2s.test.swt to see how to do such asynchronous tests . There is an example net.sf.j2s.test.swt.ajunit.SWTSampleTest for so. And there are a new test projects, net.sf.j2s.test.junit, under folder of /trunk/tests/. There are normal JUnit tests, most of which is from Apache Harmony. BTW: To update all the existed project, project net.sf.j2s.lib requires some attentions for unzipping from j2slib.zip. Or if you know details of packing j2slib, you also packing j2slib.zip by /build/build.xml. Please read /net.sf.j2s.lib/readme.txt for more about this change. Regards |
|
From: Zhou R. <jo...@sj...> - 2006-07-26 15:51:26
|
Hi, The Java2Script' class reflection is partially implemented, but it is already enough to run normal JUnit under Java2Script. To check out the latest codes, please update all projects. BTW: Another project "net.sf.j2s.java.junit" are created under "/trunk/sources/". After exporting the 4 projects as plugins and restarting, you should notice a "Java2Script Unit Test" in the "Run As..." menu for test cases class files. Later, I think there will be lots of test cases for java.lang.*, java.util.*, org.eclipse.swt.* and others packages. /js |
|
From: Zhou R. <jo...@sj...> - 2006-07-23 06:02:01
|
Hi Fausto, You should get the sources by two ways: Download the release (latest release was 1.0.0-M2), or check out the latest codes from subversion repository (http://j2s.sourceforge.net/setup-j2s-from-subversion.html). There are some big changes between M2 and the latest codes (coming M3). So if you just want to solve the problem of j2s-core-basic.z.js, you may want to stay in M2 sources. The problem of integrating "qooxdoo" may be a confict of J2S' JavaScript's OO simulator with qooxdoo's OO codes. The J2S OO simulator sources are in net.sf.j2s.java.core/j2score/Class*.js. The *.z.js is packed by Ant build script in "net.sf.j2s.lib/j2s.core.build". J2S OO simulator invades some codes into JavaScript Object.prototype, which may also be invaded by qooxdoo. You may debug those parts of codes. Currently, we mainly focus on developing J2S SWT, so we do not spend much time on integrating J2S libraries with other existed libraries. And you can share your experience on this kind of integration to all of us. We warmly welcome developers to become as a contributor of J2S project, which is Eclipse Public License 1.0 based. But as a matter of ajax rush, we won't accept developers before he/she has 2 weeks or more experience on J2S. Because someone may think J2S is cool in the first few days but lose interests after then. We sincerely invite anyone who knew J2S for more than 2 weeks and still thought J2S is worthy for something to be a contributor of J2S. Regards /Zhou Renjian (Bugs & Patches: Known also as Josson Smith) Fausto wrote: > Hello Josson, > > I am impressed with your project J2S. I've been playing with it for 2 > days now and I can barely sleep. > > I am trying to create a wrapper of a toolkit for GUI in javascript > using Java with the help of your tool. > > Everythings is going very well until when I put the two project > together in one html page and then the GUI kit stops working. Iam > trying to user "qooxdoo" project. > > I could nail down the j2s-core-basic.z.js being the one that when > I REMOVE it the other library "qooxdoo" works. > > My question is: how can I open your project source code and see where > should I change? I am not very good with JDT but I have many years > (20+) in programming (7 in java). Is there a project in Eclipse where > I can just open your project and work on it? > > Man, your tool is simply amazing. I would love to participate if possible. > > Fausto. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Fausto <gom...@ho...> - 2006-07-23 04:32:11
|
Hello Josson, I am impressed with your project J2S. I've been playing with it for 2 = days now and I can barely sleep. I am trying to create a wrapper of a toolkit for GUI in javascript using = Java with the help of your tool. Everythings is going very well until when I put the two project together = in one html page and then the GUI kit stops working. Iam trying to user = "qooxdoo" project.=20 I could nail down the j2s-core-basic.z.js being the one that when I = REMOVE it the other library "qooxdoo" works.=20 My question is: how can I open your project source code and see where = should I change? I am not very good with JDT but I have many years (20+) = in programming (7 in java). Is there a project in Eclipse where I can = just open your project and work on it? Man, your tool is simply amazing. I would love to participate if = possible. Fausto. |
|
From: Zhou R. <jo...@sj...> - 2006-07-21 01:05:39
|
There are lots of changes since last release for Eclipse 3.2 RC. So don't checkout project net.sf.j2s.lib from the head revision unless you checkout all those J2S projects from SVN following instructions of http://j2s.sourceforge.net/setup-j2s-from-subversion.html It seems that j2s-*.z.js are missing. You may imports those *.z.js in the "Java2Script Builder" property page: selecting "Resources" tree node and then "Add libraries". You can import the missing libraries described by Krzysztof. Try it or you can also try latest features by checking out lastest codes from SVN. Krzysztof Bo=BFko wrote: > Hi, > > I would try to import some of these: > <script src=3D"j2s-core-bare.z.js" /> > <script src=3D"j2s-core-basic.z.js" /> > <script src=3D"j2s-core-common.z.js" /> > <script src=3D"j2s-core-util.z.js" /> > In your case maybe importing more of these j2s-core-xxx.z.js files is nec= essary. > You can find those in the project net.sf.j2s.lib. If you don't have this = project you can check it out from Subversion repository. > > Krzysztof > > Dnia 20-07-2006 o godz. 21:20 Rob Light napisa=B3(a): > >> I downloaded and installed >> j2s-1.0.0-m2-eclipse-3.2.0-rc.zip and followed the >> instructions to install located here: >> http://j2s.sourceforge.net/download.html >> >> Here's the generated HTML: >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 >> Strict//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> <html xmlns=3D"http://www.w3.org/1999/xhtml" >> xml:lang=3D"en" lang=3D"en"> >> <head> >> <title>HelloJ2World</title> >> <script type=3D"text/javascript" >> src=3D"bin/HelloJ2World.js"></script> >> </head> >> <body> >> <div id=3D"_console_" class=3D"consolewindow"></div> >> <script type=3D"text/javascript"> >> HelloJ2World.main([]); >> </script> >> </body> >> </html> >> >> And the generated JS: >> >> c$ =3D Clazz.decorateAsClass (function () { >> Clazz.instantialize (this, arguments); >> }, null, "HelloJ2World"); >> c$.main =3D Clazz.defineMethod (c$, "main", >> function (args) { >> System.out.println ("Hello World!"); >> }, "~A"); >> >> >> Any ideas? >> >> Thanks in advance, >> Rob >> > _______________________________________________ > >> j2s-development mailing list >> j2s...@li... >> https://lists.sourceforge.net/lists/listinfo/j2s-development >> >> > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: <krz...@wp...> - 2006-07-20 21:33:30
|
Hi, I would try to import some of these: <script src="j2s-core-bare.z.js" /> <script src="j2s-core-basic.z.js" /> <script src="j2s-core-common.z.js" /> <script src="j2s-core-util.z.js" /> In your case maybe importing more of these j2s-core-xxx.z.js files is necessary. You can find those in the project net.sf.j2s.lib. If you don't have this project you can check it out from Subversion repository. Krzysztof Dnia 20-07-2006 o godz. 21:20 Rob Light napisał(a): > I downloaded and installed > j2s-1.0.0-m2-eclipse-3.2.0-rc.zip and followed the > instructions to install located here: > http://j2s.sourceforge.net/download.html > > Here's the generated HTML: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="en" lang="en"> > <head> > <title>HelloJ2World</title> > <script type="text/javascript" > src="bin/HelloJ2World.js"></script> > </head> > <body> > <div id="_console_" class="consolewindow"></div> > <script type="text/javascript"> > HelloJ2World.main([]); > </script> > </body> > </html> > > And the generated JS: > > c$ = Clazz.decorateAsClass (function () { > Clazz.instantialize (this, arguments); > }, null, "HelloJ2World"); > c$.main = Clazz.defineMethod (c$, "main", > function (args) { > System.out.println ("Hello World!"); > }, "~A"); > > > Any ideas? > > Thanks in advance, > Rob _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Rob L. <rob...@ya...> - 2006-07-20 19:20:11
|
I downloaded and installed j2s-1.0.0-m2-eclipse-3.2.0-rc.zip and followed the instructions to install located here: http://j2s.sourceforge.net/download.html Here's the generated HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>HelloJ2World</title> <script type="text/javascript" src="bin/HelloJ2World.js"></script> </head> <body> <div id="_console_" class="consolewindow"></div> <script type="text/javascript"> HelloJ2World.main([]); </script> </body> </html> And the generated JS: c$ = Clazz.decorateAsClass (function () { Clazz.instantialize (this, arguments); }, null, "HelloJ2World"); c$.main = Clazz.defineMethod (c$, "main", function (args) { System.out.println ("Hello World!"); }, "~A"); Any ideas? Thanks in advance, Rob __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Zhou R. <jo...@sj...> - 2006-07-16 18:46:03
|
Some non-static class cyclic dependency bugs are fixed. Check out the
codes.
Maybe there are still some bugs about cyclic dependency besides the
known defects of static classes cyclic dependency.
Zhou Renjian wrote:
> If it is the known cyclic dependencies:
> public abstract class A {
> static A a = new B ();
> }
> class B extends A {
> }
> Java2Script compiler will not support this kind of dependency. This kind
> of cyclic dependencies actually should be avoid by using lazy loading
> methods.
>
> Or other cyclic dependencies, please post the example codes.
>
>
> Soheil Hassas Yeganeh wrote:
>
>> I found a bug in this new feature. It does not support cyclic dependancy.
>> x needs y and y needs x.
>> Any idea?
>>
>> On 7/14/06, Zhou Renjian <jo...@sj...> wrote:
>>
>>
>>> The Java2Script compiler will compile those implicit imports into
>>> explicit imports.
>>>
>>> In JavaScript level of ClazzLoader.js, ClassLoader need to know the
>>> exact classes to *.js path mappings, in which one *.js file may contains
>>> more than one class.
>>>
>>> ClassLoader is designed to support other JavaScript object oriented
>>> systems by overriding parts of codes, such as
>>> ClazzLader.getClasspathFor. But this feature is not yet tested on other
>>> complicate toolkits like dojo. And ClassLoader supports asynchronous
>>> loading mode on both using "<SCRIPT>" or XMLHttpRequest, and also
>>> support synchronous loading mode on XMLHttpRequest. In using "<SCRIPT>"
>>> tag mode, classes can be loaded from different domains.
>>>
>>> I are wondering of writing some documents for these JavaScript level
>>> deployment and configuration things. For pure Java programming, J2S will
>>> provide wizards or configuration files for Java2Script compiler to
>>> generate those JavaScript deployment and configuration codes.
>>>
>>>
>>> Soheil Hassas Yeganeh wrote:
>>>
>>>
>>>> Sorry for my question. I've read the examples and seen it supports the
>>>> package level class usage. Thanx for the great work of Zhou.
>>>> Regards,
>>>> Soheil
>>>>
>>>> On 7/14/06, Soheil Hassas Yeganeh <soh...@gm...> wrote:
>>>>
>>>>
>>>>
>>>>> Dear Zhou,
>>>>>
>>>>> Thanks for your great work. It was a must for Java2Script, and now you
>>>>> made a great enhancement.
>>>>> But, I have a question. Does the implemented ClassLoader support
>>>>> loading package level classes that are used with no explicit import?
>>>>>
>>>>> Regards,
>>>>> Soheil
>>>>>
>>>>> On 7/13/06, Zhou Renjian <jo...@sj...> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Finally, function of loading Java2Script's *.js files dynamically are
>>>>>> implemented.
>>>>>> From now on, programmers do not need to manage classes order to get
>>>>>> Java2Script applications correctly run. That is to say, loading *.js is
>>>>>> transparent to programmers.
>>>>>>
>>>>>> This feature will be the base technology of other coming features, such
>>>>>> as earlier discussed Class.forName (...).
>>>>>>
>>>>>> And by loading Java2Script's *.js files dynamically, we can now generate
>>>>>> a line of JavaScript code or a "javascript:..." link for a J2S
>>>>>> application, which can be hosted inside other sites' HTML pages. Maybe
>>>>>> we can call it "A Link An Application". Read more about this in the blog
>>>>>> article: http://j2s.sourceforge.net/blog/2006/07/11/a-link-an-application/
>>>>>>
>>>>>> There are lots of bugs about this features. Some more tests may be required.
>>>>>>
>>>>>> Please check out the latest codes from SVN repository.
>>>>>>
>>>>>> And something should be mentioned:
>>>>>> 1. Those lots of *.js in net.sf.j2s.lib/j2slib/.../*.js are generated
>>>>>> from net.sf.j2s.java.core, net.sf.j2s.ajax and
>>>>>> net.sf.j2s.java.org.eclipse.swt. You can run target j2slib.pack.lib of
>>>>>> ant build j2s.core.build in project net.sf.j2s.lib to copy and pack the
>>>>>> necessary files without checking out from the slow SVN.
>>>>>> 2. Most of former *.z.js are removed. Only a new "j2slib.z.js" is left
>>>>>> as the entry to all existed *.js units. So now, in the "Java2Script
>>>>>> builder" property page "Add Libraries" button will open Dialog for
>>>>>> choosing the only-one "j2slib.z.js" library. Just choose the library to
>>>>>> make things work. And now "Add Resources", "Add Projects" and other
>>>>>> buttons are now make no sense. And the those classes in the tree view
>>>>>> also have no meanings now. These things will be removed or changed in
>>>>>> the near future. For more details, please study the generated
>>>>>> Java2Script application HTML file for more details.
>>>>>> 3. ...
>>>>>>
>>>>>> I think later I need to write something to make the big change clear.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> /js
>>>>>>
>>>>>> Soheil Hassas Yeganeh wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I did not mean to use a method like the one used in dojo. I was just
>>>>>>> arguing about the idea.
>>>>>>> Implementing a method for import a Class( import java.util.* -->
>>>>>>> j2s_import("java.util.*")), and an implementation for Class.forName(),
>>>>>>> is really enough for dynamic loading of java2script. May be
>>>>>>> implementing java.reflect.* would be better.
>>>>>>> I think using a method like this, will provide us a dynamic loading
>>>>>>> method with the developer transparency preserved.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Soheil
>>>>>>>
>>>>>>> On 6/15/06, Josson Smith <jo...@sj...> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Dynamic loading *.js will be complex things.
>>>>>>>>
>>>>>>>> And I know that dojo toolkit is using its dynamic loading mechanism of
>>>>>>>> JavaScript files.
>>>>>>>>
>>>>>>>> For Java2Script,
>>>>>>>> First, the number of *.js files is somewhat huge already. It is more
>>>>>>>> than 200. Setup the connections will require a lot of extra times.
>>>>>>>> Second, referencing, sub-referencing, and sub-sub-referencing, ... may
>>>>>>>> reference most of the classes. It requires some algorithm to cut off
>>>>>>>> those unnecessary sub-referencing until it's necessary.
>>>>>>>> Third, Java programmers should not be required to know things about
>>>>>>>> dynamic loading of JavaScript.
>>>>>>>>
>>>>>>>> More discussions are needed.
>>>>>>>>
>>>>>>>>
>>>>>>>> Soheil Hassas Yeganeh wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Oh, a very nice doco! I found here :
>>>>>>>>> http://ajaxpatterns.org/On-Demand_Javascript
>>>>>>>>>
>>>>>>>>> On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> I've a proposal for loading javascript files, dynamically. Suppose we
>>>>>>>>>> have a lot of javascript files generated. As it occures in many
>>>>>>>>>> applications many of the javascript files are not used frequently.
>>>>>>>>>> So, Now, if we want to run that application we have to import a lot of
>>>>>>>>>> js files in the html. This will make the application very slow and
>>>>>>>>>> heavy.
>>>>>>>>>> So, we need a dynamic javascript loading mechanism. If we have this
>>>>>>>>>> mechanism, we can also implement methods like Class.forName().
>>>>>>>>>> We can use .z files generated by j2s to dynamically loading need
>>>>>>>>>> javascript files for each class.
>>>>>>>>>> In other words, we need something like the Bindows' BiScriptLoader.
>>>>>>>>>> Regards,
>>>>>>>>>> Soheil Hassas Yeganeh
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> j2s-development mailing list
>>>>>>>>> j2s...@li...
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> --
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> /js
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> j2s-development mailing list
>>>>>>>> j2s...@li...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> j2s-development mailing list
>>>>>>> j2s...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> -------------------------------------------------------------------------
>>>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>>>> Get stuff done quickly with pre-integrated technology to make your job easier
>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>>> _______________________________________________
>>>>>> j2s-development mailing list
>>>>>> j2s...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> -------------------------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>> Get stuff done quickly with pre-integrated technology to make your job easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> _______________________________________________
>>>> j2s-development mailing list
>>>> j2s...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>
>>>>
>>>>
>>>>
>>>>
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> j2s-development mailing list
>>> j2s...@li...
>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>
>>>
>>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> j2s-development mailing list
>> j2s...@li...
>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>
>>
>>
>>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> j2s-development mailing list
> j2s...@li...
> https://lists.sourceforge.net/lists/listinfo/j2s-development
>
>
>
|
|
From: Zhou R. <jo...@sj...> - 2006-07-15 12:52:43
|
If it is the known cyclic dependencies:
public abstract class A {
static A a = new B ();
}
class B extends A {
}
Java2Script compiler will not support this kind of dependency. This kind
of cyclic dependencies actually should be avoid by using lazy loading
methods.
Or other cyclic dependencies, please post the example codes.
Soheil Hassas Yeganeh wrote:
> I found a bug in this new feature. It does not support cyclic dependancy.
> x needs y and y needs x.
> Any idea?
>
> On 7/14/06, Zhou Renjian <jo...@sj...> wrote:
>
>> The Java2Script compiler will compile those implicit imports into
>> explicit imports.
>>
>> In JavaScript level of ClazzLoader.js, ClassLoader need to know the
>> exact classes to *.js path mappings, in which one *.js file may contains
>> more than one class.
>>
>> ClassLoader is designed to support other JavaScript object oriented
>> systems by overriding parts of codes, such as
>> ClazzLader.getClasspathFor. But this feature is not yet tested on other
>> complicate toolkits like dojo. And ClassLoader supports asynchronous
>> loading mode on both using "<SCRIPT>" or XMLHttpRequest, and also
>> support synchronous loading mode on XMLHttpRequest. In using "<SCRIPT>"
>> tag mode, classes can be loaded from different domains.
>>
>> I are wondering of writing some documents for these JavaScript level
>> deployment and configuration things. For pure Java programming, J2S will
>> provide wizards or configuration files for Java2Script compiler to
>> generate those JavaScript deployment and configuration codes.
>>
>>
>> Soheil Hassas Yeganeh wrote:
>>
>>> Sorry for my question. I've read the examples and seen it supports the
>>> package level class usage. Thanx for the great work of Zhou.
>>> Regards,
>>> Soheil
>>>
>>> On 7/14/06, Soheil Hassas Yeganeh <soh...@gm...> wrote:
>>>
>>>
>>>> Dear Zhou,
>>>>
>>>> Thanks for your great work. It was a must for Java2Script, and now you
>>>> made a great enhancement.
>>>> But, I have a question. Does the implemented ClassLoader support
>>>> loading package level classes that are used with no explicit import?
>>>>
>>>> Regards,
>>>> Soheil
>>>>
>>>> On 7/13/06, Zhou Renjian <jo...@sj...> wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> Finally, function of loading Java2Script's *.js files dynamically are
>>>>> implemented.
>>>>> From now on, programmers do not need to manage classes order to get
>>>>> Java2Script applications correctly run. That is to say, loading *.js is
>>>>> transparent to programmers.
>>>>>
>>>>> This feature will be the base technology of other coming features, such
>>>>> as earlier discussed Class.forName (...).
>>>>>
>>>>> And by loading Java2Script's *.js files dynamically, we can now generate
>>>>> a line of JavaScript code or a "javascript:..." link for a J2S
>>>>> application, which can be hosted inside other sites' HTML pages. Maybe
>>>>> we can call it "A Link An Application". Read more about this in the blog
>>>>> article: http://j2s.sourceforge.net/blog/2006/07/11/a-link-an-application/
>>>>>
>>>>> There are lots of bugs about this features. Some more tests may be required.
>>>>>
>>>>> Please check out the latest codes from SVN repository.
>>>>>
>>>>> And something should be mentioned:
>>>>> 1. Those lots of *.js in net.sf.j2s.lib/j2slib/.../*.js are generated
>>>>> from net.sf.j2s.java.core, net.sf.j2s.ajax and
>>>>> net.sf.j2s.java.org.eclipse.swt. You can run target j2slib.pack.lib of
>>>>> ant build j2s.core.build in project net.sf.j2s.lib to copy and pack the
>>>>> necessary files without checking out from the slow SVN.
>>>>> 2. Most of former *.z.js are removed. Only a new "j2slib.z.js" is left
>>>>> as the entry to all existed *.js units. So now, in the "Java2Script
>>>>> builder" property page "Add Libraries" button will open Dialog for
>>>>> choosing the only-one "j2slib.z.js" library. Just choose the library to
>>>>> make things work. And now "Add Resources", "Add Projects" and other
>>>>> buttons are now make no sense. And the those classes in the tree view
>>>>> also have no meanings now. These things will be removed or changed in
>>>>> the near future. For more details, please study the generated
>>>>> Java2Script application HTML file for more details.
>>>>> 3. ...
>>>>>
>>>>> I think later I need to write something to make the big change clear.
>>>>>
>>>>> Regards
>>>>>
>>>>> /js
>>>>>
>>>>> Soheil Hassas Yeganeh wrote:
>>>>>
>>>>>
>>>>>> I did not mean to use a method like the one used in dojo. I was just
>>>>>> arguing about the idea.
>>>>>> Implementing a method for import a Class( import java.util.* -->
>>>>>> j2s_import("java.util.*")), and an implementation for Class.forName(),
>>>>>> is really enough for dynamic loading of java2script. May be
>>>>>> implementing java.reflect.* would be better.
>>>>>> I think using a method like this, will provide us a dynamic loading
>>>>>> method with the developer transparency preserved.
>>>>>>
>>>>>> Regards,
>>>>>> Soheil
>>>>>>
>>>>>> On 6/15/06, Josson Smith <jo...@sj...> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Dynamic loading *.js will be complex things.
>>>>>>>
>>>>>>> And I know that dojo toolkit is using its dynamic loading mechanism of
>>>>>>> JavaScript files.
>>>>>>>
>>>>>>> For Java2Script,
>>>>>>> First, the number of *.js files is somewhat huge already. It is more
>>>>>>> than 200. Setup the connections will require a lot of extra times.
>>>>>>> Second, referencing, sub-referencing, and sub-sub-referencing, ... may
>>>>>>> reference most of the classes. It requires some algorithm to cut off
>>>>>>> those unnecessary sub-referencing until it's necessary.
>>>>>>> Third, Java programmers should not be required to know things about
>>>>>>> dynamic loading of JavaScript.
>>>>>>>
>>>>>>> More discussions are needed.
>>>>>>>
>>>>>>>
>>>>>>> Soheil Hassas Yeganeh wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Oh, a very nice doco! I found here :
>>>>>>>> http://ajaxpatterns.org/On-Demand_Javascript
>>>>>>>>
>>>>>>>> On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> I've a proposal for loading javascript files, dynamically. Suppose we
>>>>>>>>> have a lot of javascript files generated. As it occures in many
>>>>>>>>> applications many of the javascript files are not used frequently.
>>>>>>>>> So, Now, if we want to run that application we have to import a lot of
>>>>>>>>> js files in the html. This will make the application very slow and
>>>>>>>>> heavy.
>>>>>>>>> So, we need a dynamic javascript loading mechanism. If we have this
>>>>>>>>> mechanism, we can also implement methods like Class.forName().
>>>>>>>>> We can use .z files generated by j2s to dynamically loading need
>>>>>>>>> javascript files for each class.
>>>>>>>>> In other words, we need something like the Bindows' BiScriptLoader.
>>>>>>>>> Regards,
>>>>>>>>> Soheil Hassas Yeganeh
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> j2s-development mailing list
>>>>>>>> j2s...@li...
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Regards
>>>>>>>
>>>>>>> /js
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> j2s-development mailing list
>>>>>>> j2s...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> j2s-development mailing list
>>>>>> j2s...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>>> Get stuff done quickly with pre-integrated technology to make your job easier
>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>> _______________________________________________
>>>>> j2s-development mailing list
>>>>> j2s...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>>>
>>>>>
>>>>>
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> j2s-development mailing list
>>> j2s...@li...
>>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>>
>>>
>>>
>>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> j2s-development mailing list
>> j2s...@li...
>> https://lists.sourceforge.net/lists/listinfo/j2s-development
>>
>>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> j2s-development mailing list
> j2s...@li...
> https://lists.sourceforge.net/lists/listinfo/j2s-development
>
>
>
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-07-15 12:33:42
|
I found a bug in this new feature. It does not support cyclic dependancy. x needs y and y needs x. Any idea? On 7/14/06, Zhou Renjian <jo...@sj...> wrote: > The Java2Script compiler will compile those implicit imports into > explicit imports. > > In JavaScript level of ClazzLoader.js, ClassLoader need to know the > exact classes to *.js path mappings, in which one *.js file may contains > more than one class. > > ClassLoader is designed to support other JavaScript object oriented > systems by overriding parts of codes, such as > ClazzLader.getClasspathFor. But this feature is not yet tested on other > complicate toolkits like dojo. And ClassLoader supports asynchronous > loading mode on both using "<SCRIPT>" or XMLHttpRequest, and also > support synchronous loading mode on XMLHttpRequest. In using "<SCRIPT>" > tag mode, classes can be loaded from different domains. > > I are wondering of writing some documents for these JavaScript level > deployment and configuration things. For pure Java programming, J2S will > provide wizards or configuration files for Java2Script compiler to > generate those JavaScript deployment and configuration codes. > > > Soheil Hassas Yeganeh wrote: > > Sorry for my question. I've read the examples and seen it supports the > > package level class usage. Thanx for the great work of Zhou. > > Regards, > > Soheil > > > > On 7/14/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > > > >> Dear Zhou, > >> > >> Thanks for your great work. It was a must for Java2Script, and now you > >> made a great enhancement. > >> But, I have a question. Does the implemented ClassLoader support > >> loading package level classes that are used with no explicit import? > >> > >> Regards, > >> Soheil > >> > >> On 7/13/06, Zhou Renjian <jo...@sj...> wrote: > >> > >>> Hi, > >>> > >>> Finally, function of loading Java2Script's *.js files dynamically are > >>> implemented. > >>> From now on, programmers do not need to manage classes order to get > >>> Java2Script applications correctly run. That is to say, loading *.js is > >>> transparent to programmers. > >>> > >>> This feature will be the base technology of other coming features, such > >>> as earlier discussed Class.forName (...). > >>> > >>> And by loading Java2Script's *.js files dynamically, we can now generate > >>> a line of JavaScript code or a "javascript:..." link for a J2S > >>> application, which can be hosted inside other sites' HTML pages. Maybe > >>> we can call it "A Link An Application". Read more about this in the blog > >>> article: http://j2s.sourceforge.net/blog/2006/07/11/a-link-an-application/ > >>> > >>> There are lots of bugs about this features. Some more tests may be required. > >>> > >>> Please check out the latest codes from SVN repository. > >>> > >>> And something should be mentioned: > >>> 1. Those lots of *.js in net.sf.j2s.lib/j2slib/.../*.js are generated > >>> from net.sf.j2s.java.core, net.sf.j2s.ajax and > >>> net.sf.j2s.java.org.eclipse.swt. You can run target j2slib.pack.lib of > >>> ant build j2s.core.build in project net.sf.j2s.lib to copy and pack the > >>> necessary files without checking out from the slow SVN. > >>> 2. Most of former *.z.js are removed. Only a new "j2slib.z.js" is left > >>> as the entry to all existed *.js units. So now, in the "Java2Script > >>> builder" property page "Add Libraries" button will open Dialog for > >>> choosing the only-one "j2slib.z.js" library. Just choose the library to > >>> make things work. And now "Add Resources", "Add Projects" and other > >>> buttons are now make no sense. And the those classes in the tree view > >>> also have no meanings now. These things will be removed or changed in > >>> the near future. For more details, please study the generated > >>> Java2Script application HTML file for more details. > >>> 3. ... > >>> > >>> I think later I need to write something to make the big change clear. > >>> > >>> Regards > >>> > >>> /js > >>> > >>> Soheil Hassas Yeganeh wrote: > >>> > >>>> I did not mean to use a method like the one used in dojo. I was just > >>>> arguing about the idea. > >>>> Implementing a method for import a Class( import java.util.* --> > >>>> j2s_import("java.util.*")), and an implementation for Class.forName(), > >>>> is really enough for dynamic loading of java2script. May be > >>>> implementing java.reflect.* would be better. > >>>> I think using a method like this, will provide us a dynamic loading > >>>> method with the developer transparency preserved. > >>>> > >>>> Regards, > >>>> Soheil > >>>> > >>>> On 6/15/06, Josson Smith <jo...@sj...> wrote: > >>>> > >>>> > >>>>> Dynamic loading *.js will be complex things. > >>>>> > >>>>> And I know that dojo toolkit is using its dynamic loading mechanism of > >>>>> JavaScript files. > >>>>> > >>>>> For Java2Script, > >>>>> First, the number of *.js files is somewhat huge already. It is more > >>>>> than 200. Setup the connections will require a lot of extra times. > >>>>> Second, referencing, sub-referencing, and sub-sub-referencing, ... may > >>>>> reference most of the classes. It requires some algorithm to cut off > >>>>> those unnecessary sub-referencing until it's necessary. > >>>>> Third, Java programmers should not be required to know things about > >>>>> dynamic loading of JavaScript. > >>>>> > >>>>> More discussions are needed. > >>>>> > >>>>> > >>>>> Soheil Hassas Yeganeh wrote: > >>>>> > >>>>> > >>>>>> Oh, a very nice doco! I found here : > >>>>>> http://ajaxpatterns.org/On-Demand_Javascript > >>>>>> > >>>>>> On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>>> Hi, > >>>>>>> I've a proposal for loading javascript files, dynamically. Suppose we > >>>>>>> have a lot of javascript files generated. As it occures in many > >>>>>>> applications many of the javascript files are not used frequently. > >>>>>>> So, Now, if we want to run that application we have to import a lot of > >>>>>>> js files in the html. This will make the application very slow and > >>>>>>> heavy. > >>>>>>> So, we need a dynamic javascript loading mechanism. If we have this > >>>>>>> mechanism, we can also implement methods like Class.forName(). > >>>>>>> We can use .z files generated by j2s to dynamically loading need > >>>>>>> javascript files for each class. > >>>>>>> In other words, we need something like the Bindows' BiScriptLoader. > >>>>>>> Regards, > >>>>>>> Soheil Hassas Yeganeh > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> j2s-development mailing list > >>>>>> j2s...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> -- > >>>>> Regards > >>>>> > >>>>> /js > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> j2s-development mailing list > >>>>> j2s...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>>>> > >>>>> > >>>>> > >>>> _______________________________________________ > >>>> j2s-development mailing list > >>>> j2s...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>>> > >>>> > >>>> > >>>> > >>> > >>> ------------------------------------------------------------------------- > >>> Using Tomcat but need to do more? Need to support web services, security? > >>> Get stuff done quickly with pre-integrated technology to make your job easier > >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >>> _______________________________________________ > >>> j2s-development mailing list > >>> j2s...@li... > >>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>> > >>> > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-07-15 06:01:45
|
Hi, Splitting the css file would be a good work, I think but converting css to javascript will degrade the performance. What about a special comment like @j2sCSS for every class definition that says what css this class needs? Regards, Soheil On 7/14/06, Zhou Renjian <jo...@sj...> wrote: > Hi, > > As a matter of swt-default.css is getting a little bigger (Now > swt-default.css is about 40K), splitting swt-default.css into small > pieces should be a work. > For example css about CTabFolder, TabFolder, Group are something of 11k, > 6k, and 6k. If we have dynamic javascript loading, then we should have > dynamic css loading so we do not get extra useless css. > Again way about css would be converting css into JavaScript. Sure, we > still want the feasibility of switching to another css styles. I mean > converting *.css into *.css.js by Java2Script compiler. > > More should be discussed about this. > > BTW: As lots of UI layouts are relied on Java's calculating, it seems > that the current swt-default.css leaves a very small space for more > beautiful skins. Any ideas about balancing of Java SWT's layout and CSS > layout? > > Zhou Renjian wrote: > > Hi, > > > > Finally, function of loading Java2Script's *.js files dynamically are > > implemented. > > From now on, programmers do not need to manage classes order to get > > Java2Script applications correctly run. That is to say, loading *.js is > > transparent to programmers. > > > > This feature will be the base technology of other coming features, such > > as earlier discussed Class.forName (...). > > > > And by loading Java2Script's *.js files dynamically, we can now generate > > a line of JavaScript code or a "javascript:..." link for a J2S > > application, which can be hosted inside other sites' HTML pages. Maybe > > we can call it "A Link An Application". Read more about this in the blog > > article: http://j2s.sourceforge.net/blog/2006/07/11/a-link-an-application/ > > > > There are lots of bugs about this features. Some more tests may be required. > > > > Please check out the latest codes from SVN repository. > > > > And something should be mentioned: > > 1. Those lots of *.js in net.sf.j2s.lib/j2slib/.../*.js are generated > > from net.sf.j2s.java.core, net.sf.j2s.ajax and > > net.sf.j2s.java.org.eclipse.swt. You can run target j2slib.pack.lib of > > ant build j2s.core.build in project net.sf.j2s.lib to copy and pack the > > necessary files without checking out from the slow SVN. > > 2. Most of former *.z.js are removed. Only a new "j2slib.z.js" is left > > as the entry to all existed *.js units. So now, in the "Java2Script > > builder" property page "Add Libraries" button will open Dialog for > > choosing the only-one "j2slib.z.js" library. Just choose the library to > > make things work. And now "Add Resources", "Add Projects" and other > > buttons are now make no sense. And the those classes in the tree view > > also have no meanings now. These things will be removed or changed in > > the near future. For more details, please study the generated > > Java2Script application HTML file for more details. > > 3. ... > > > > I think later I need to write something to make the big change clear. > > > > Regards > > > > /js > > > > Soheil Hassas Yeganeh wrote: > > > >> I did not mean to use a method like the one used in dojo. I was just > >> arguing about the idea. > >> Implementing a method for import a Class( import java.util.* --> > >> j2s_import("java.util.*")), and an implementation for Class.forName(), > >> is really enough for dynamic loading of java2script. May be > >> implementing java.reflect.* would be better. > >> I think using a method like this, will provide us a dynamic loading > >> method with the developer transparency preserved. > >> > >> Regards, > >> Soheil > >> > >> On 6/15/06, Josson Smith <jo...@sj...> wrote: > >> > >> > >>> Dynamic loading *.js will be complex things. > >>> > >>> And I know that dojo toolkit is using its dynamic loading mechanism of > >>> JavaScript files. > >>> > >>> For Java2Script, > >>> First, the number of *.js files is somewhat huge already. It is more > >>> than 200. Setup the connections will require a lot of extra times. > >>> Second, referencing, sub-referencing, and sub-sub-referencing, ... may > >>> reference most of the classes. It requires some algorithm to cut off > >>> those unnecessary sub-referencing until it's necessary. > >>> Third, Java programmers should not be required to know things about > >>> dynamic loading of JavaScript. > >>> > >>> More discussions are needed. > >>> > >>> > >>> Soheil Hassas Yeganeh wrote: > >>> > >>> > >>>> Oh, a very nice doco! I found here : > >>>> http://ajaxpatterns.org/On-Demand_Javascript > >>>> > >>>> On 6/12/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > >>>> > >>>> > >>>> > >>>>> Hi, > >>>>> I've a proposal for loading javascript files, dynamically. Suppose we > >>>>> have a lot of javascript files generated. As it occures in many > >>>>> applications many of the javascript files are not used frequently. > >>>>> So, Now, if we want to run that application we have to import a lot of > >>>>> js files in the html. This will make the application very slow and > >>>>> heavy. > >>>>> So, we need a dynamic javascript loading mechanism. If we have this > >>>>> mechanism, we can also implement methods like Class.forName(). > >>>>> We can use .z files generated by j2s to dynamically loading need > >>>>> javascript files for each class. > >>>>> In other words, we need something like the Bindows' BiScriptLoader. > >>>>> Regards, > >>>>> Soheil Hassas Yeganeh > >>>>> > >>>>> > >>>>> > >>>>> > >>>> _______________________________________________ > >>>> j2s-development mailing list > >>>> j2s...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>>> > >>>> > >>>> > >>>> > >>>> > >>> -- > >>> Regards > >>> > >>> /js > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> j2s-development mailing list > >>> j2s...@li... > >>> https://lists.sourceforge.net/lists/listinfo/j2s-development > >>> > >>> > >>> > >> _______________________________________________ > >> j2s-development mailing list > >> j2s...@li... > >> https://lists.sourceforge.net/lists/listinfo/j2s-development > >> > >> > >> > >> > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > |