ajax-user Mailing List for Ajax - A-quality JAva eXtensions (Page 2)
Brought to you by:
vamp201
You can subscribe to this list here.
2003 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2006 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gerald B. <ge...@va...> - 2003-09-09 19:28:03
|
Hi, I've checked in/imported all the sources for the Ajax building blocks into the sourceforge CVS repository. The Ajax CVS repository now hosts six modules, that is: * apollo * caramel * cypress * houston * salsa * salsa-text Full story @ http://sourceforge.net/projects/ajax - Gerald |
From: Marcel G. <gl...@ne...> - 2003-05-26 08:21:13
|
Hi, I was looking at Apollo (http://ajax.sourceforge.net/apollo/) and I found it very useful for developing purposes. My goal was to enhance the developing process of our web start application. We don't want to deploy our web app after changing one row of our code. Apollon does exactly that what we were looking for. Except this point: We don't want to use Apollo in our deployed system. The package shall not be deployed with the rest of our application. In my development environment I want to use the Apollo-JNLP-Services but in my Runtime-Env I want to use the JNLP services by SUN. I started to program a workaround that looks as follows: public class WebStartHelper { private static Logger logger = Logger.getLogger(WebStartHelper.class); public static Object lookup(String s) throws UnavailableServiceException { try { Class apolloServiceManager = Class.forName("apollo.ServiceManager"); String methodName = null; if (s.equals(FileOpenService.class.getName())) { methodName = "lookupFileOpenService"; } // add additional code here... if (methodName != null) { Method method = apolloServiceManager.getMethod(methodName, null); Object result = method.invoke(null, null); logger.debug("apollo.ServiceManager successfully used"); return result; } else { logger.debug("no method found"); } } catch (ClassNotFoundException e) { } catch (SecurityException e) { } catch (NoSuchMethodException e) { } catch (IllegalArgumentException e) { } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } logger.debug("using " + ServiceManager.class.getName()); return ServiceManager.lookup(s); } } Using WebStartHelper: // ... import javax.jnlp.FileOpenService; // ... // *** this throws a ClassCastException! FileOpenService fos = WebStartHelper.lookup(FileOpenService.class.getName()); The BIG PROBLEM is, that apollo.FileOpenService is NOT the same as or extending the interface javax.jnlp.FileOpenService. So my class WebStartHelper fails at the line marked with ***. My question is: - Why did you implement your own interfaces that are a copy of the jnlp-Interfaces? - Why did you remove the Method "Object lookup(String s)" from your version of the ServiceManger? - Is it possible to change the existing apollo classes so that my workaround throws no ClassCastException? And one last question in German: Kann man auch auf deutsch in dieser Mailingliste schreiben? Ich brech mir nämlich mit meinem schlechten Englisch ganz schön einen ab und besonders besucht scheint die ML eh nicht zu sein ;-)??? -- Best regards, Marcel Gleis Netz-Profis GbR Tel: 0231/3988072 Emil-Figge-Str. 80 44227 Dortmund Web: http://www.netz-profis.de |
From: Gerald B. <ge...@va...> - 2003-05-22 02:48:47
|
Servus Marcel, > You're more than welcome to send questions in > German. However, please give me a couple of days so > I can setup a new mailing list for discussions in > German such as ajax-user-deutsch. Please, check the > project site @ http://sourceforge.net/mail/?group_id=68538 > to see if the German mailing list is up and running. As an add-on the new ajax-deutsch mailing list for discussion in German about all Ajax projects such as Apollo, Caramel, Salsa and so on is now online. Please, see http://lists.sourceforge.net/lists/listinfo/ajax-deutsch for details and be the first to post. I have already subscribed. - Gerald |
From: Gerald B. <ge...@va...> - 2003-05-21 15:34:33
|
Servus Marcel, > I was looking at Apollo > (http://ajax.sourceforge.net/apollo/) and I > found it very useful for developing purposes. > > My goal was to enhance the developing process of our > web start > application. We don't want to deploy our web app > after changing one row > of our code. Apollon does exactly that what we were > looking for. Thanks for your kind words. > Except this point: > We don't want to use Apollo in our deployed system. > The package shall > not be deployed with the rest of our application. In > my development > environment I want to use the Apollo-JNLP-Services > but in my Runtime-Env > I want to use the JNLP services by SUN. I started to > program a > workaround that looks as follows: > > public class WebStartHelper { > > private static Logger logger = > Logger.getLogger(WebStartHelper.class); > > public static Object lookup(String s) throws > UnavailableServiceException { > try { > Class apolloServiceManager = > Class.forName("apollo.ServiceManager"); > String methodName = null; > if (s.equals(FileOpenService.class.getName())) { > methodName = "lookupFileOpenService"; > } > // add additional code here... > > if (methodName != null) { > Method method = > apolloServiceManager.getMethod(methodName, null); > Object result = method.invoke(null, > null); > logger.debug("apollo.ServiceManager > successfully used"); > return result; > } else { > logger.debug("no method found"); > } > } catch (ClassNotFoundException e) { > } catch (SecurityException e) { > } catch (NoSuchMethodException e) { > } catch (IllegalArgumentException e) { > } catch (InvocationTargetException e) { > } catch (IllegalAccessException e) { > } > logger.debug("using " + > ServiceManager.class.getName()); > return ServiceManager.lookup(s); > } > > } > > Using WebStartHelper: > > // ... > import javax.jnlp.FileOpenService; > // ... > // *** this throws a ClassCastException! > FileOpenService fos = > WebStartHelper.lookup(FileOpenService.class.getName()); > > > The BIG PROBLEM is, that apollo.FileOpenService is > NOT the same as or > extending the interface javax.jnlp.FileOpenService. > > So my class WebStartHelper fails at the line marked > with ***. > > My question is: > - Why did you implement your own interfaces that are > a copy of the > jnlp-Interfaces? Well, as far as I remember if you use Apollo you don't need to get the Web Start dev pack and set up your classpath to include the javax.jnlp package because Apollo includes duplicate interfaces in its own package hierachy. > - Why did you remove the Method "Object > lookup(String s)" from your > version of the ServiceManger? To promote type-safe simpler methods such as BasicService lookupBasicService() instead of Object lookup( "javax.jnlp.BasicService" ). > - Is it possible to change the existing apollo > classes so that my > workaround throws no ClassCastException? Sure. Adding a generic lookup method isn't a big deal. I'm not sure how to handle the javax.jnlp interfaces issue. You're more than welcome to try out some solutions. That's why the code is GPL'ed so that you can change it to fit your own needs. You might also want to create a somewhat more lightweight toolkit with no extras by just duplicating all interfaces 1:1 using the Apollo codebase as a start. > And one last question in German: > Kann man auch auf deutsch in dieser Mailingliste > schreiben? Ich brech > mir n鄝lich mit meinem schlechten Englisch ganz > sch霵 einen ab und > besonders besucht scheint die ML eh nicht zu sein > ;-)??? I hope you don't mind if I answer in English: You're more than welcome to send questions in German. However, please give me a couple of days so I can setup a new mailing list for discussions in German such as ajax-user-deutsch. Please, check the project site @ http://sourceforge.net/mail/?group_id=68538 to see if the German mailing list is up and running. - Gerald |
From: Marcel G. <gl...@ne...> - 2003-05-21 14:24:30
|
Hi, I was looking at Apollo (http://ajax.sourceforge.net/apollo/) and I found it very useful for developing purposes. My goal was to enhance the developing process of our web start application. We don't want to deploy our web app after changing one row of our code. Apollon does exactly that what we were looking for. Except this point: We don't want to use Apollo in our deployed system. The package shall not be deployed with the rest of our application. In my development environment I want to use the Apollo-JNLP-Services but in my Runtime-Env I want to use the JNLP services by SUN. I started to program a workaround that looks as follows: public class WebStartHelper { private static Logger logger = Logger.getLogger(WebStartHelper.class); public static Object lookup(String s) throws UnavailableServiceException { try { Class apolloServiceManager = Class.forName("apollo.ServiceManager"); String methodName = null; if (s.equals(FileOpenService.class.getName())) { methodName = "lookupFileOpenService"; } // add additional code here... if (methodName != null) { Method method = apolloServiceManager.getMethod(methodName, null); Object result = method.invoke(null, null); logger.debug("apollo.ServiceManager successfully used"); return result; } else { logger.debug("no method found"); } } catch (ClassNotFoundException e) { } catch (SecurityException e) { } catch (NoSuchMethodException e) { } catch (IllegalArgumentException e) { } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } logger.debug("using " + ServiceManager.class.getName()); return ServiceManager.lookup(s); } } Using WebStartHelper: // ... import javax.jnlp.FileOpenService; // ... // *** this throws a ClassCastException! FileOpenService fos = WebStartHelper.lookup(FileOpenService.class.getName()); The BIG PROBLEM is, that apollo.FileOpenService is NOT the same as or extending the interface javax.jnlp.FileOpenService. So my class WebStartHelper fails at the line marked with ***. My question is: - Why did you implement your own interfaces that are a copy of the jnlp-Interfaces? - Why did you remove the Method "Object lookup(String s)" from your version of the ServiceManger? - Is it possible to change the existing apollo classes so that my workaround throws no ClassCastException? And one last question in German: Kann man auch auf deutsch in dieser Mailingliste schreiben? Ich brech mir nämlich mit meinem schlechten Englisch ganz schön einen ab und besonders besucht scheint die ML eh nicht zu sein ;-)??? -- Best regards, Marcel Gleis Netz-Profis GbR Tel: 0231/3988072 Emil-Figge-Str. 80 44227 Dortmund Web: http://www.netz-profis.de |
From: Gerald B. <ge...@va...> - 2003-05-20 15:26:41
|
Hi, I released the Salsa Rich Textbox Widget Beta 1 today. The Rich Textbox Widget is the beginning of an easily embeddable open-source HTML editor for Swing. The Rich Textbox Widget is part of the Salsa Swing Addon Family. You can find out more about Salsa online @ http://ajax.sourceforge.net/salsa/ or grab a copy of the Salsa Rich Textbox Widget @ http://sourceforge.net/project/showfiles.php?group_id=68538 Enjoy. - Gerald |
From: Gerald B. <ge...@va...> - 2003-04-25 17:21:44
|
Hi Danny, > I get a NullerPointerException using the code below > (java GetFilesByExt > C:\\New txt). {Note: New.txt is a file under my C:\ > directory}. I thought if > I supply (1) a directory to a path and (2) an > extension then the class would > return all the file-names under that directory > having such an extension. Is > my interpretation incorect? You need to pass in the base directory as a first argument and not the base name of a file, that is, change c:\\New to c:\\ . That should work. If you don't pass in an existing directory, you will end up with a NullPointer exception. - Gerald |
From: <Mor...@cs...> - 2003-04-25 03:25:35
|
I get a NullerPointerException using the code below (java GetFilesByExt C:\\New txt). {Note: New.txt is a file under my C:\ directory}. I thought if I supply (1) a directory to a path and (2) an extension then the class would return all the file-names under that directory having such an extension. Is my interpretation incorect? This is the code I'm executing: import caramel.util.FileUtils; import java.io.File; public class GetFilesByExt { public static void main(String[] args) { if(args.length <2){ System.out.println("Usage: java GetFilesByExt <directory path> <file extension>"); System.exit(-1); } // Get files by extension File[] files = FileUtils.findByExt(new File(args[0]), args[1]); System.out.println("length of files array= " +files.length); //System.out.println("files1= " +files[1]); for(int i = 0;i <files.length;i++) { System.out.println(files[i].getName()); } } } I added the display of the 'files' array and it always comes back 0, which explains why the class returns nothing. Can anyone explain how I'm improperly using this class? Thanks, Danny |
From: Gerald B. <ge...@va...> - 2003-04-10 17:09:25
|
Servus Danny, > Admitedly I'm somewhat of a Java 'newbie' but I'm > having trouble getting > any of the Caramel classes to work. Sorry, Danny there's nothing I can do for you. Please, ask your friends or collegues to help you out. This is the wrong forum. I can't teach you how to use jars. Please, look elsewhere for help. - Gerald |
From: <Mor...@cs...> - 2003-04-10 04:54:17
|
Hello! Admitedly I'm somewhat of a Java 'newbie' but I'm having trouble getting any of the Caramel classes to work. I can compile them just fine but most likely my problem stems from not know how to use a jar utility file, so if anyone of you would take a moment to point out a working example I'd be most appreciative. An explicit usage of Caramel would be terrific but I'd be happy as well if you could link me to an article discussing the typical way that jar files without a 'main' method (such as Caramel) are used. My only experience with jar files is the usual: java -jar jar_name which always had a 'main' entry point. Caramel looks like a fun set of classes but I simply don't know how to use them, even after browsing the doc and reviewing my java textbooks. Thanks very much, Danny |
From: <Mor...@cs...> - 2003-04-09 04:54:04
|
Hello! Admitedly I'm somewhat of a Java 'newbie' but I'm having trouble getting any of the Caramel classes to work. I can compile them just fine but most likely my problem stems from not know how to use a jar utility file, so if anyone of you would take a moment to point out a working example I'd be most appreciative. An explicit usage of Caramel would be terrific but I'd be happy as well if you could link me to an article discussing the typical way that jar files without a 'main' method (such as Caramel) are used. My only experience with jar files is the usual: java -jar jar_name which always had a 'main' entry point. Caramel looks like a fun set of classes but I simply don't know how to use them, even after browsing the doc and reviewing my java textbooks. Thanks very much, Danny bro...@ho... |
From: Gerald B. <ge...@va...> - 2003-01-31 07:08:34
|
Hi David, > Does anyone have any working examples of Cypress? > I'm having a little > trouble getting anything to work. Please, check out Luxor - http://luxor-xul.sourceforge.net - that use Cypress for CSS parsing. > I get a NullPointerException in > cypress.Cssparser.parseStyleSheet(CssParser.java:165) > with something as > simple as this snippet: > > InputSource in = new > InputSource("http://localhost:8080/config/theme2.css"); > CssParser p = new CssParser(); > p.parseStyleSheet(in); Cypress works a little like SAX, that is, you need to install handlers first, otherwise you end up with a null pointer exception. Please, check out the Luxor source for details (e.g. the packages luxor.css.*) - Gerald |
From: David B. <db...@re...> - 2003-01-30 23:34:34
|
Hi There, Does anyone have any working examples of Cypress? I'm having a little trouble getting anything to work. I get a NullPointerException in cypress.Cssparser.parseStyleSheet(CssParser.java:165) with something as simple as this snippet: InputSource in = new InputSource("http://localhost:8080/config/theme2.css"); CssParser p = new CssParser(); p.parseStyleSheet(in); My stylesheet looks like this: .Title {color:red} Thanks, Dave |
From: Gerald B. <ge...@va...> - 2003-01-12 09:21:50
|
Welcome to Ajax! ajax-user is a mailing list about the Ajax high-quality Java building block family including Apollo, Caramel, Cypress, Houston, Salsa, and others. I invite you to share insights or code snippets, send suggestions or comments, discuss usage and more with fellow Ajax users and Ajax developers. - Gerald =========================== Gerald Bauer Ajax Project Lead http://ajax.sourceforge.net =========================== |