He means put something like this in your superclass:
public static final ResourceBundle bundle =
ResourceBundle.getBundle("MyBundle");
Then extend that class to whichever classes need the bundle.
On 7/27/05, X. Y. Zhao <[EMAIL PROTECTED]> wrote:
> Can you elaborate on 'declare the bundle on a MyPage class'?? Not to
> sure what you mean by this...
>
> On 27-Jul-05, at 103632, Konstantin Ignatyev wrote:
>
> >
> > And what is wrong with the approach?
> >
> > I would declare the bundle on a MyPage class that
> > extends Tapestry's page and the bundle will be
> > available for all my pages with no additional efforts,
> > except inheriting them from MyPage of course.
> >
> > --- "X. Y. Zhao" <[EMAIL PROTECTED]> wrote:
> >
> >
> >> I know this has been discussed previously, but I
> >> would like to know
> >> if anyone has found a practical solution to using a
> >> global properties
> >> file for localized strings in Tap-3. One method I
> >> came across was to
> >> write a helper class to fetch a named ResourceBundle
> >> as a java bean
> >> within each Page. Does anyone else have any better
> >> solution?
> >>
> >> Thanks.
> >>
> >>
> >>
> >>
> > ---------------------------------------------------------------------
> >
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> > Konstantin Ignatyev
> >
> >
> >
> >
> > PS: If this is a typical day on planet earth, humans will add
> > fifteen million tons of carbon to the atmosphere, destroy 115
> > square miles of tropical rainforest, create seventy-two miles of
> > desert, eliminate between forty to one hundred species, erode
> > seventy-one million tons of topsoil, add 2,700 tons of CFCs to the
> > stratosphere, and increase their population by 263,000
> >
> > Bowers, C.A. The Culture of Denial: Why the Environmental
> > Movement Needs a Strategy for Reforming Universities and Public
> > Schools. New York: State University of New York Press, 1997: (4)
> > (5) (p.206)
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -- X. Y. ZHAO
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]