[Rife-users] JavaPaste Install and Config
hi,How i use javapaste in my java server with tomcat 5 and mysql ?thanksmindu-- Comunidade IRC de Usuários Java.#java - irc.brasnet.org http://canaljava.dev.java.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] JavaPaste Install and Config
Maybe this will help? http://rifers.org/wiki/display/RIFE/Examples+with+PostgreSQL+and+Tomcat Obviously, the PGSQL part won't apply, but it should put you on the right track. Cheers, Tyler On 4/26/06, mindu [EMAIL PROTECTED] wrote: hi, How i use javapaste in my java server with tomcat 5 and mysql ? thanks mindu -- Comunidade IRC de Usuários Java. #java - irc.brasnet.org http://canaljava.dev.java.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] JavaPaste Install and Config
Maybe this will help? http://rifers.org/wiki/display/RIFE/Examples+with+PostgreSQL+and+Tomcat Obviously, the PGSQL part won't apply, but it should put you on the right track. the page about Derby is even easier to set up. fred -- F.Baube* Georgetown/MSFS/1988 * Think pangalactically. fbaube#saunalahti.fi * Act locally. gsm +358 41 536 8192 * wmd 60°11'10.8N 24°57'36.9E ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re[2]: [Rife-users] Localization of vadidation
Hi, Tyler. Thank you for your help. Does Rife allow to get templates with different extensions (i.e. not only xml but also lzx)? It will be confusing storing laszlo's lzx as xml files. Âû ïèñàëè 26 àïðåëÿ 2006 ã., 17:17:13: Check this URL: http://rifers.org/wiki/display/RIFE/Localization+through+ResourceBundles I'm not too familiar with how RIFE/Laszlo interact, but I know that Laszlo uses XML to generate it's SWFs. There appears to be an errors XML element being generated and sent to the lzx (this is assuming you're following the RIFE/Laszlo sample). You could manually replace the validationErrors text with a proper error and inject that to Laszlo instead. Instead of using validationBuilderXml.generateValidationErrors(), you would need to use bean.getValidationErrors() then move through the list and generate your errors based on the ValidationError's Identifier. There might be an easier way, but that's what I came up with on a VERY quick overview. Let me know, Tyler On 4/26/06, Alexey [EMAIL PROTECTED] wrote: Hi! I have a problem with localizing validate messages. Built-in support for validation in Rife works with method validationBuilderXml.generateValidationErrors(Template, ValidationErrors, ..., ...). But how can I get localized message strings of this errors to the template (I use Laszlo)? Seems like using this approach I can't even assign to XML template anything additional to let Laszlo know which message it needs to show and where. Thank you for any help on this. -- Ñ óâàæåíèåì, Alexey mailto:[EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: Re[2]: [Rife-users] Localization of vadidation
Sure can, just add this (could be a singleton if you're going to use it on a lot of elements): public TemplateFactory getLaszloFactory(){ return new TemplateFactory( ResourceFinderClasspath.getInstance(), lzx, TemplateFactory.CONFIGS_XML, application/xml, .lzx, new String[] { ValidationBuilder.TAG_ERRORS, ValidationBuilder.TAG_ERRORMESSAGE, TemplateFactory.TAG_LANG, TemplateFactory.TAG_OGNL_CONFIG, TemplateFactory.TAG_OGNL, TemplateFactory.TAG_GROOVY_CONFIG, TemplateFactory.TAG_GROOVY, TemplateFactory.TAG_JANINO_CONFIG, TemplateFactory.TAG_JANINO }, new String[] { ValidationBuilder.TAG_MARK, ValidationBuilder.TAG_ERRORS, TemplateFactory.TAG_CONFIG, TemplateFactory.TAG_L10N, TemplateFactory.TAG_RENDER }, BeanHandlerXml .getInstance(), EncoderXml.getInstance(), null); } Then use it with: TemplateFactory templateFactory = getLaszloFactory(); templateFactory.get(your.path.laszlofile); or getLaszloFactory().get(your.path.laszlofile); Hopefully that's easy enough. Cheers, Tyler On 4/26/06, Alexey [EMAIL PROTECTED] wrote: Hi, Tyler. Thank you for your help. Does Rife allow to get templates with different extensions (i.e. not only xml but also lzx)? It will be confusing storing laszlo's lzx as xml files. Вы писали 26 апреля 2006 г., 17:17:13: Check this URL: http://rifers.org/wiki/display/RIFE/Localization+through+ResourceBundles I'm not too familiar with how RIFE/Laszlo interact, but I know that Laszlo uses XML to generate it's SWFs. There appears to be an errors XML element being generated and sent to the lzx (this is assuming you're following the RIFE/Laszlo sample). You could manually replace the validationErrors text with a proper error and inject that to Laszlo instead. Instead of using validationBuilderXml.generateValidationErrors(), you would need to use bean.getValidationErrors() then move through the list and generate your errors based on the ValidationError's Identifier. There might be an easier way, but that's what I came up with on a VERY quick overview. Let me know, Tyler On 4/26/06, Alexey [EMAIL PROTECTED] wrote: Hi! I have a problem with localizing validate messages. Built-in support for validation in Rife works with method validationBuilderXml.generateValidationErrors(Template, ValidationErrors, ..., ...). But how can I get localized message strings of this errors to the template (I use Laszlo)? Seems like using this approach I can't even assign to XML template anything additional to let Laszlo know which message it needs to show and where. Thank you for any help on this. -- С уважением, Alexey mailto:[EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re[4]: [Rife-users] Localization of vadidation
Hi Tyler. Thank you a lot! Hope it will help. Вы писали 26 апреля 2006 г., 18:19:56: Sure can, just add this (could be a singleton if you're going to use it on a lot of elements): public TemplateFactory getLaszloFactory(){ return new TemplateFactory( ResourceFinderClasspath.getInstance(), lzx, TemplateFactory.CONFIGS_XML, application/xml, .lzx, new String[] { ValidationBuilder.TAG_ERRORS, ValidationBuilder.TAG_ERRORMESSAGE, TemplateFactory.TAG_LANG, TemplateFactory.TAG_OGNL_CONFIG, TemplateFactory.TAG_OGNL, TemplateFactory.TAG_GROOVY_CONFIG, TemplateFactory.TAG_GROOVY, TemplateFactory.TAG_JANINO_CONFIG, TemplateFactory.TAG_JANINO }, new String[] { ValidationBuilder.TAG_MARK, ValidationBuilder.TAG_ERRORS, TemplateFactory.TAG_CONFIG, TemplateFactory.TAG_L10N, TemplateFactory.TAG_RENDER }, BeanHandlerXml .getInstance(), EncoderXml.getInstance(), null); } Then use it with: TemplateFactory templateFactory = getLaszloFactory(); templateFactory.get(your.path.laszlofile); or getLaszloFactory().get(your.path.laszlofile); Hopefully that's easy enough. Cheers, Tyler -- С уважением, Alexey mailto:[EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Flexible Field Definition
Quoting Stefan Thomas: Sounds like you want JCR-170 :-) Sounds like overkill ;) However, I didn't even know about that standard *shame on me*, very interesting. Thanks! Apache Jackrabbit has hit 1.0, and the docs have improved dramatically lately, so it might be worth a look. fred ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: Re[2]: [Rife-users] Localization of vadidation
Hi Alexey, I think you're confusing idioms here. OpenLaszlo LZX files are not meant to be generated on the fly. Yes, you can do it, and yes OpenLaszlo ships with a JSP example of this. However, you're get horrible performance since the LZX file will need to be recompiled for every request (and that takes several seconds). What you typically do is write you OpenLaszlo application independently and interface with a REST web services that accepts http requests and provides XML responses. These can then be bound into the Laszlo UI. For error messages, you can generate anything you like, since you're the one interpreting the results in OpenLaszlo. You can send a bundle of all the translations, or a generic identifier that maps to translations in the LZX file itself. If you generate a translations bundle, the link that Tyler gave is totally appropriate: http://rifers.org/wiki/display/RIFE/Localization+through+ResourceBundles This might be helpful too: http://rifers.org/wiki/display/RIFE/Localization+through+blocks Hope this helps. Best regards, Geert On 26 Apr 2006, at 07:51, Alexey wrote: Hi, Tyler. Thank you for your help. Does Rife allow to get templates with different extensions (i.e. not only xml but also lzx)? It will be confusing storing laszlo's lzx as xml files. Âû ïèñàëè 26 àïðåëÿ 2006 ã., 17:17:13: Check this URL: http://rifers.org/wiki/display/RIFE/Localization+through +ResourceBundles I'm not too familiar with how RIFE/Laszlo interact, but I know that Laszlo uses XML to generate it's SWFs. There appears to be an errors XML element being generated and sent to the lzx (this is assuming you're following the RIFE/Laszlo sample). You could manually replace the validationErrors text with a proper error and inject that to Laszlo instead. Instead of using validationBuilderXml.generateValidationErrors(), you would need to use bean.getValidationErrors() then move through the list and generate your errors based on the ValidationError's Identifier. There might be an easier way, but that's what I came up with on a VERY quick overview. Let me know, Tyler On 4/26/06, Alexey [EMAIL PROTECTED] wrote: Hi! I have a problem with localizing validate messages. Built-in support for validation in Rife works with method validationBuilderXml.generateValidationErrors(Template, ValidationErrors, ..., ...). But how can I get localized message strings of this errors to the template (I use Laszlo)? Seems like using this approach I can't even assign to XML template anything additional to let Laszlo know which message it needs to show and where. Thank you for any help on this. -- Ñ óâàæåíèåì, Alexey mailto:[EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: Re[2]: [Rife-users] Localization of vadidation
I concur, I wouldn't try generating the LZX on demand. However, if you must, use a Cache setup and a high timeout like 5 / 10 minutes for the requests. That way the performance hit is only once every 5 or 10 minutes (note that your memory requirments go up --the classic Computer Science Memory vs. Processor gig). Cheers, Tyler On 4/27/06, Geert Bevin [EMAIL PROTECTED] wrote: Hi Alexey, I think you're confusing idioms here. OpenLaszlo LZX files are not meant to be generated on the fly. Yes, you can do it, and yes OpenLaszlo ships with a JSP example of this. However, you're get horrible performance since the LZX file will need to be recompiled for every request (and that takes several seconds). What you typically do is write you OpenLaszlo application independently and interface with a REST web services that accepts http requests and provides XML responses. These can then be bound into the Laszlo UI. For error messages, you can generate anything you like, since you're the one interpreting the results in OpenLaszlo. You can send a bundle of all the translations, or a generic identifier that maps to translations in the LZX file itself. If you generate a translations bundle, the link that Tyler gave is totally appropriate: http://rifers.org/wiki/display/RIFE/Localization+through+ResourceBundles This might be helpful too: http://rifers.org/wiki/display/RIFE/Localization+through+blocks Hope this helps. Best regards, Geert On 26 Apr 2006, at 07:51, Alexey wrote: Hi, Tyler. Thank you for your help. Does Rife allow to get templates with different extensions (i.e. not only xml but also lzx)? It will be confusing storing laszlo's lzx as xml files. Вы писали 26 апреля 2006 г., 17:17:13: Check this URL: http://rifers.org/wiki/display/RIFE/Localization+through +ResourceBundles I'm not too familiar with how RIFE/Laszlo interact, but I know that Laszlo uses XML to generate it's SWFs. There appears to be an errors XML element being generated and sent to the lzx (this is assuming you're following the RIFE/Laszlo sample). You could manually replace the validationErrors text with a proper error and inject that to Laszlo instead. Instead of using validationBuilderXml.generateValidationErrors(), you would need to use bean.getValidationErrors() then move through the list and generate your errors based on the ValidationError's Identifier. There might be an easier way, but that's what I came up with on a VERY quick overview. Let me know, Tyler On 4/26/06, Alexey [EMAIL PROTECTED] wrote: Hi! I have a problem with localizing validate messages. Built-in support for validation in Rife works with method validationBuilderXml.generateValidationErrors(Template, ValidationErrors, ..., ...). But how can I get localized message strings of this errors to the template (I use Laszlo)? Seems like using this approach I can't even assign to XML template anything additional to let Laszlo know which message it needs to show and where. Thank you for any help on this. -- С уважением, Alexey mailto:[EMAIL PROTECTED] ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users