That seems to be a bit awkward, especially since there's no multiple
inheritence in Java. I don't mind using base classes to aggregate
functionality, but just to have a pointer for xwork to find? That seems
a bit much. Also, it would be nice if there were a way to specify the
resource bundle so you don't have to go searching around for the right
one. I don't know how much of a performance hit the search is, but I'm
sure that it would save even a little to just indicate exactly which
bundle you want to use.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jason Carreira
Sent: Wednesday, August 20, 2003 1:24 PM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Internacionalization logic


What you can do is create a parent class for your actions which extends
from ActionSupport and tie the resource bundle to that class. You can
create multiple of these parent classes to have different groupings of
resources, etc...

Jason

> -----Original Message-----
> From: Samuel Mota [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] Internacionalization logic
> 
> 
> Hi guys,
> 
> I'm pretty new to Webwork but I'm with a design problem on
> the Internationalization system.
> 
> The getText() function searchs my resource bundle file from
> the top class until the Object class, all actions (until now) 
> are extending ActionSupport, so after search for my class 
> name it'll search for my bundle on  
> webwork.action.ActionSupport ... that's ok if, and only if, I 
> want a resource bundle for each action (in this case the 
> maintenance will be too hard) OR I want a global resource 
> bundle called ActionSupport on a Webwork\Action tree and this 
> solution isn't nice (a resource too big, not following my 
> project's name convention, etc. etc. etc.)
> 
> I'm wondering if is acceptable to add an optional property at
> the action description (as view and so
> on) to say which resource bundle is linked to that action ... 
> IF there is no property set follow the actual logic but this 
> way I could set a few resources for groups of actions close 
> related and mantain my code/source/name convention.
> 
> Someone agree? or disagree?
> 
> Sorry if this is already possible somehow, but I really can't
> reach it...
> 
> Ops ... WW 1 :) ... moving soon to WW2
> 
> []s
> 
> + Samuel G. Mota
> + [EMAIL PROTECTED]
> + 55 (11) 4417 7093
> + Business Application Dpt.
> + Netset Serviços em Tecnologia
> + a Hypercom Company
> + http://www.hypercom.com
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Dice.com.
> Did you know that Dice has over 25,000 tech jobs available
> today? From careers in IT to Engineering to Tech Sales, Dice 
> has tech jobs from the best hiring companies. 
> http://www.dice.com/index.epl?rel_code4
> 
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to