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
[email protected]
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
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to