j2s-development Mailing List for Java2Script (Page 4)
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: Zhou R. <jo...@sj...> - 2006-07-14 10:52:07
|
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 > > > |
|
From: Zhou R. <jo...@sj...> - 2006-07-14 09:54:57
|
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 > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-07-14 09:01:39
|
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 > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-07-14 08:55:30
|
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 > |
|
From: Zhou R. <jo...@sj...> - 2006-07-13 20:13:44
|
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 > > > |
|
From: Zhou R. <jo...@sj...> - 2006-07-08 01:57:59
|
J2S application is just a toolkit that generate contents on client side not on the server side. So search engines won't get the real content. But if you export the J2S windows into HTML and save them as files, search engine will see the final HTML result. If you want support both J2S application and search engine in your application, there are suggestions: 1. Developing J2S application as a UI template and then loading data (xml/html) into the template For XML data, you may need an extra server-side XSLT for search engine; For HTML data, you may need to exact data from the HTML codes before displaying data into J2S application (In http://c.ognize.com/j2s-ajax-pages/ , those HTML header and tails are truncated). 2. Developing J2S application as an enhancement to the current HTML-based applications Insert some script tags into HTML template so J2S application will load and extract data from the HTML and display data in J2S' SWT UI. You may also want to replace links with "javascript:...." which are J2S calls. May be you may want to change the window.location with some extra "#..." to make it bookmarkable. And goal of associating URL for every state of J2S applications won't be reached. For example, a J2S application with groups of radio buttons, some trees and tab-folders, in which the state of radio button may affect the state of trees or tab-folders, it is not feasible to bookmark all those states of radio buttons, trees' expanding/collapsing states and tab-folders' selections into a single URL. So by saying "associating URL is application-specific", I mean for some specific applications, you may only want to bookmark the tab-folder's selection or the tree's selection, then you can write your script to do so. And I think the script is not an essential part of J2S application. Maybe the script just re-open the J2S application, and set the selection for tree or tab-folder again, which is not a function of the original SWT desktop application. There are ways to develop indexable and bookmarkable J2S applications. But these ways are not considered as essential part of J2S. Regards /js Joe Toth wrote: > The bookmarkable page is neat and seems like it would almost work for > search engine indexability too, except for the fact that it switches > content via javascript. > > I don't know much about J2S, but would it be possible to have some > kind of option (searchEngineIndexable) that when set, it generates > href links to unique urls like: > http://c.ognize.com/index.swt.html?http://c.ognize.com/about.html > > It sounds like it won't happen any time soo, but are there any plans > to make J2S applications search engine indexable? > > Thanks > > > On 7/7/06, *Zhou Renjian* <jo...@sj... <mailto:jo...@sj...>> wrote: > > Hi, > > For bookmarkable J2S applications, there are some pages which you may > get some ideas: > Original J2S application: > http://c.ognize.com/j2s-ajax-pages/ > Indexable page (Exported HTML (By clicking the upper-left icon) > from the > above J2S application with some extra hand written scripts): > http://c.ognize.com/j2s-ajax-pages/exported-static-demo.html > <http://c.ognize.com/j2s-ajax-pages/exported-static-demo.html> > Bookmarkable page: > http://c.ognize.com/index.swt.html > > Associating URL for specific state in J2S/SWT application is not > in J2S > core development, at least not in the near future. And associating > URL > should be considered as application-specific. > > Regards > /js > > Joe Toth wrote: > > Hello, I have a question about the development of J2S. I think GWT > > and J2S are both awesome, but there is one feature that I would > like > > to make them a full web framework solution. That is the ability to > > create 'bookmarkable' pages. In order for a search engine to be > able > > to index a page or a user to bookmark it, it needs a URL associated > > with it. > > > > You could argue that this kind of feature is out of the scope of GWT > > or J2S, but regardless its annoying that I can create an awesome > > application in J2S and I have to merge it with another web > framework > > to make indexable/bookmarkable. I then have to create the > templates, > > widgets, etc, twice, once for J2S and once for the other framework. > > It would be nice if I could create a whole web application just > as I > > would a SWT Desktop application. > > > > You can see where I am going with this. Did J2S consider anything > > like this? Will it in the future? > > > > Thanks > > > ------------------------------------------------------------------------ > > > > > 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 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > <mailto: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 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > _______________________________________________ > j2s-development mailing list > j2s...@li... > <mailto: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: Joe T. <jo...@gm...> - 2006-07-07 17:40:58
|
The bookmarkable page is neat and seems like it would almost work for search engine indexability too, except for the fact that it switches content via javascript. I don't know much about J2S, but would it be possible to have some kind of option (searchEngineIndexable) that when set, it generates href links to unique urls like: http://c.ognize.com/index.swt.html?http://c.ognize.com/about.html It sounds like it won't happen any time soo, but are there any plans to make J2S applications search engine indexable? Thanks On 7/7/06, Zhou Renjian <jo...@sj...> wrote: > > Hi, > > For bookmarkable J2S applications, there are some pages which you may > get some ideas: > Original J2S application: > http://c.ognize.com/j2s-ajax-pages/ > Indexable page (Exported HTML (By clicking the upper-left icon) from the > above J2S application with some extra hand written scripts): > http://c.ognize.com/j2s-ajax-pages/exported-static-demo.html > Bookmarkable page: > http://c.ognize.com/index.swt.html > > Associating URL for specific state in J2S/SWT application is not in J2S > core development, at least not in the near future. And associating URL > should be considered as application-specific. > > Regards > /js > > Joe Toth wrote: > > Hello, I have a question about the development of J2S. I think GWT > > and J2S are both awesome, but there is one feature that I would like > > to make them a full web framework solution. That is the ability to > > create 'bookmarkable' pages. In order for a search engine to be able > > to index a page or a user to bookmark it, it needs a URL associated > > with it. > > > > You could argue that this kind of feature is out of the scope of GWT > > or J2S, but regardless its annoying that I can create an awesome > > application in J2S and I have to merge it with another web framework > > to make indexable/bookmarkable. I then have to create the templates, > > widgets, etc, twice, once for J2S and once for the other framework. > > It would be nice if I could create a whole web application just as I > > would a SWT Desktop application. > > > > You can see where I am going with this. Did J2S consider anything > > like this? Will it in the future? > > > > Thanks > > ------------------------------------------------------------------------ > > > > 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-07 17:14:53
|
Hi, It seems that Echo2 does have a great L&F. Table control will be improved sooner. But better L&F may not come in the near future, I think. Regards /js I.O. wrote: > Hi all, > > Nice if we can come out a better L&F something like what Echo did. > And Table control as well. > > Thanks > ------------------------------------------------------------------------ > > 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-07 17:08:33
|
Hi, For bookmarkable J2S applications, there are some pages which you may get some ideas: Original J2S application: http://c.ognize.com/j2s-ajax-pages/ Indexable page (Exported HTML (By clicking the upper-left icon) from the above J2S application with some extra hand written scripts): http://c.ognize.com/j2s-ajax-pages/exported-static-demo.html Bookmarkable page: http://c.ognize.com/index.swt.html Associating URL for specific state in J2S/SWT application is not in J2S core development, at least not in the near future. And associating URL should be considered as application-specific. Regards /js Joe Toth wrote: > Hello, I have a question about the development of J2S. I think GWT > and J2S are both awesome, but there is one feature that I would like > to make them a full web framework solution. That is the ability to > create 'bookmarkable' pages. In order for a search engine to be able > to index a page or a user to bookmark it, it needs a URL associated > with it. > > You could argue that this kind of feature is out of the scope of GWT > or J2S, but regardless its annoying that I can create an awesome > application in J2S and I have to merge it with another web framework > to make indexable/bookmarkable. I then have to create the templates, > widgets, etc, twice, once for J2S and once for the other framework. > It would be nice if I could create a whole web application just as I > would a SWT Desktop application. > > You can see where I am going with this. Did J2S consider anything > like this? Will it in the future? > > Thanks > ------------------------------------------------------------------------ > > 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: Joe T. <jo...@gm...> - 2006-07-07 15:40:24
|
Hello, I have a question about the development of J2S. I think GWT and J2S are both awesome, but there is one feature that I would like to make them a full web framework solution. That is the ability to create 'bookmarkable' pages. In order for a search engine to be able to index a page or a user to bookmark it, it needs a URL associated with it. You could argue that this kind of feature is out of the scope of GWT or J2S, but regardless its annoying that I can create an awesome application in J2S and I have to merge it with another web framework to make indexable/bookmarkable. I then have to create the templates, widgets, etc, twice, once for J2S and once for the other framework. It would be nice if I could create a whole web application just as I would a SWT Desktop application. You can see where I am going with this. Did J2S consider anything like this? Will it in the future? Thanks |
|
From: I.O. <oli...@gm...> - 2006-07-07 08:59:57
|
Hi all, Nice if we can come out a better L&F something like what Echo did. And Table control as well. Thanks |
|
From: Zhou R. <jo...@sj...> - 2006-07-06 12:47:33
|
Hi, For environment of Eclipse 3.2, please checkout projects net.sf.j2s.core and net.sf.j2s.ui from SVN: .../branches/net.sf.j2s.core_3.2 .../branches/net.sf.j2s.ui_3.2 instead of the repository for Eclipse 3.1: .../trunk/sources/net.sf.j2s.core .../trunk/sources/net.sf.j2s.ui Regards /js |
|
From: Soheil H. Y. <soh...@gm...> - 2006-07-01 14:06:30
|
Hi All, Now, Combo works on IE, Firefox and Opera. We will enhance its appearnce as soon as possible. Regards, Soheil |
|
From: Soheil H. Y. <soh...@gm...> - 2006-07-01 11:52:03
|
Hi, ScrollBar and ScrolledComposites work now. Please, check them out from SVN (SWT and lib project). Regards, Soheil |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-28 13:20:08
|
I changed the implementation of TableItem.setText() using innerHTML2 method. There is no significant performance improvement. Any IDEA? Is it because of Table.createItem bottleneck ? By the way, using it I could improve the performance of TableItem.setText(String[] strings) by eliminating the "for loop". Regards, Soheil On 6/28/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > I read that. That was a very good benchmark. > And I get that just using innerHTML2 method will build a createItem() > method with acceptable performance. > But, using that method will make the codes so ugly and unreadable. > Any ideas to use innerHTML properly in Java2Script? Is it ok to use it > in the way it is ? > > > Regards, > Soheil > > On 6/28/06, Zhou Renjian <jo...@sj...> wrote: > > Soheil Hassas Yeganeh wrote: > > > Hi, > > > I wrote a benchmark test for widgets of J2S. Creating a table with 800 > > > items takes about 15 sec. on my laptop. creating each item costs about > > > 2ms. So, it must take 2*1000 to add items to the table. > > > I'm not sure if it is because of the layout of the table. > > > Any ideas ? > > > 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 > > > > > > > > > > > Read something here: > > http://www.quirksmode.org/dom/innerhtml.html > > > > > > > > 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-06-28 12:28:02
|
I read that. That was a very good benchmark. And I get that just using innerHTML2 method will build a createItem() method with acceptable performance. But, using that method will make the codes so ugly and unreadable. Any ideas to use innerHTML properly in Java2Script? Is it ok to use it in the way it is ? Regards, Soheil On 6/28/06, Zhou Renjian <jo...@sj...> wrote: > Soheil Hassas Yeganeh wrote: > > Hi, > > I wrote a benchmark test for widgets of J2S. Creating a table with 800 > > items takes about 15 sec. on my laptop. creating each item costs about > > 2ms. So, it must take 2*1000 to add items to the table. > > I'm not sure if it is because of the layout of the table. > > Any ideas ? > > 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 > > > > > > > Read something here: > http://www.quirksmode.org/dom/innerhtml.html > > > > 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-06-28 10:04:51
|
Soheil Hassas Yeganeh wrote: > Hi, > I wrote a benchmark test for widgets of J2S. Creating a table with 800 > items takes about 15 sec. on my laptop. creating each item costs about > 2ms. So, it must take 2*1000 to add items to the table. > I'm not sure if it is because of the layout of the table. > Any ideas ? > 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 > > > Read something here: http://www.quirksmode.org/dom/innerhtml.html |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-28 09:54:30
|
Hi, I wrote a benchmark test for widgets of J2S. Creating a table with 800 items takes about 15 sec. on my laptop. creating each item costs about 2ms. So, it must take 2*1000 to add items to the table. I'm not sure if it is because of the layout of the table. Any ideas ? Regards, Soheil |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-26 15:01:32
|
Hi, CTabFolder and CTabItem now works in IE6, Firefox 1.5.x and Opera > 8.x. Maximize, minimize will be supported soon. Any comment is appreciated. Regards, Soheil |
|
From: <jo...@sj...> - 2006-06-17 13:39:41
|
Hi, Now, SVN repository is restructured. The new SVN URL list: https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.ajax https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.core https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.java.core https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.java.org.eclipse.swt https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.lib https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.ui https://svn.sourceforge.net/svnroot/j2s/trunk/sources/net.sf.j2s.update.site https://svn.sourceforge.net/svnroot/j2s/trunk/tests/net.sf.j2s.test.swt https://svn.sourceforge.net/svnroot/j2s/trunk/tests/org.eclipse.swt.snippets Instructions of switching to new URL: On contextmenu of the project, select the "Switch..." sub-menuitem on menu "Team", and input the new URL. Regards Josson Smith |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-17 06:45:04
|
Hi Josson, I do not have anything right now to commit. I was working on Tree and Table. I've backed up my entire workspace, ready for the changes. By the way you can move subeclipse to create branches on the source repository. Regards, Soheil On 6/16/06, Josson Smith <jo...@sj...> wrote: > Hi, > > As a matter of Eclipse 3.2 is on its way to release, supporting Eclipse > 3.2 (without J2S' SWT 3.2 APIs support) is a must. And the JDT core > compiler APIs are different between 3.1 and 3.2, so I am thinking about > branching Java2Script for Eclipse 3.2. > > And about to branch for 3.2, I realized that I made big mistakes on > setting up subversion repository structure. Current structure is > > J2S SVN ROOT > + sources > + tests > > And it should be > > J2S SVN ROOT > + branches > + [sources-1.0.0-eclipse-3.2] > + tags > + sources-1.0.0-m2 > + trunk > + sources > + tests > + (others ...) > > In order to do such structure refactor actions, folder "sources" and > "tests" will be moved into trunk. Such actions will cause the existed > projects' SVN information invalid. So those projects should be checked > out again from SVN. > > Soheil, before I could make those moves, could you check in your latest > codes and backup your development environment if necessary? Or any other > suggestion? > > > Regards > > /js > > > > > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-17 05:02:36
|
Seems great! On 6/16/06, Josson Smith <jo...@sj...> wrote: > > -- > Regards > > /js > > > > > > > _______________________________________________ > j2s-development mailing list > j2s...@li... > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-17 03:49:19
|
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
>
|
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-17 03:03:23
|
Thanx for your great work!
yes, you're right! But, I think partial support would be better than
no support. I think this is enough for the uses.
Regards,
Soheil
On 6/15/06, Josson Smith <jo...@sj...> wrote:
> Some bugs of autoboxing are fixed. Check out codes, please.
>
> But there are lots of others leaving unfixed. For example:
> Float f = new Float(324.0);
> f++;
> System.out.println(f);
>
> It seems that autoboxing and primitive types have lots of critical
> differences for Java and JavaScript. And that there will be endless
> bugs. So I think I should list autoboxing as the big thing in the defect
> list.
>
>
> Soheil Hassas Yeganeh wrote:
> > yes! exactly!
> >
> > On 6/11/06, Josson Smith <jo...@sj...> wrote:
> >
> >> Now I get the point.
> >>
> >> It seems that Java2Script compiler should compile
> >> m.put ("x", 1);
> >> into
> >> m.put("x", new Integer(1));
> >> for all those autoboxing methods
> >>
> >> /js
> >>
> >> Soheil Hassas Yeganeh wrote:
> >>
> >>> I'm agreed with your points. But, I'm arguing about something different.
> >>>
> >>> Consider the example I've told before :
> >>> Map m = new HashMap();
> >>> m.put("x", 1); // Now works with m.put("x", new Integer(1));
> >>> if( m.get("x") instanceof Integer){
> >>> System.out.println("J2S Works!");
> >>> }
> >>> System.out.println(((Integer)m.get("x")).intValue()); // ***
> >>> ...
> >>> When the number is constructed with Integer constructor call, J2S
> >>> works. But, without the initialization it does not.
> >>> In other words, in Java 5, 1 is instance of Integer, 1l is insatnce of
> >>> Long, 1d is intanceof Double, and false is instance of Boolean,
> >>> without any constructor call.
> >>> But as you said, there are no differences between Integer.intValue()
> >>> and Double.doubleValue() of 1 in javascript. I think at least we have
> >>> to propose proper classes for them.
> >>> Suppose the *** line, J2S will say intValue is not found!
> >>>
> >>> Regards,
> >>> Soheil
> >>>
> >>>
> >>> _______________________________________________
> >>> 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
> >>
> >>
> >
> >
> > _______________________________________________
> > 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
>
|
|
From: Josson S. <jo...@sj...> - 2006-06-16 17:34:12
|
Hi, As a matter of Eclipse 3.2 is on its way to release, supporting Eclipse 3.2 (without J2S' SWT 3.2 APIs support) is a must. And the JDT core compiler APIs are different between 3.1 and 3.2, so I am thinking about branching Java2Script for Eclipse 3.2. And about to branch for 3.2, I realized that I made big mistakes on setting up subversion repository structure. Current structure is J2S SVN ROOT + sources + tests And it should be J2S SVN ROOT + branches + [sources-1.0.0-eclipse-3.2] + tags + sources-1.0.0-m2 + trunk + sources + tests + (others ...) In order to do such structure refactor actions, folder "sources" and "tests" will be moved into trunk. Such actions will cause the existed projects' SVN information invalid. So those projects should be checked out again from SVN. Soheil, before I could make those moves, could you check in your latest codes and backup your development environment if necessary? Or any other suggestion? Regards /js |