• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get an WOD value within the component constructor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get an WOD value within the component constructor


  • Subject: Re: How to get an WOD value within the component constructor
  • From: Helmut Tschemernjak <email@hidden>
  • Date: Tue, 09 Dec 2003 10:30:11 +0100
  • Organization: HELIOS Software GmbH

Hello,

I will explain it in more details. The problem is the following. I use a WOPopup which receives its elements for a Vector list, e.g.:


in Java ======== public Vector getActionList() { Vector vec = new Vector(); iAction ia; vec.add(new iAction("None", "", 0, iAction.iMenu)); vec.add(new iAction("Rename", "", 0, iAction.iMenu)); vec.add(new iAction("Permissions", "", 0, iAction.iMenu)); ... some private names return vec; } in the WOD ========== PopUpButton1: WOPopUpButton { list = getActionList; displayString = actionItem.menuName; item = actionItem; selection = actionItemSel; }

I like to get localized strings for "None", "Rename", "Permissions" somewhere from the WOD file. The idea is to save a string with a separator in the WOD to split it later the for WOPopup list. The questions is how to access a custom strings within the getActionList function.


best regards / mit freundlichen Gruessen,

Helmut Tschemernjak


HELIOS Software GmbH Steinriede 3 30827 Garbsen Phone: +49-5131-709320 Fax: +49-5131-709325 Internet Mail: email@hidden Internet Web: http://www.helios.de


Alexander Spohr wrote:

helmut,

you don't want to do that.
either you implement a method that returns the localized text
or you localize the html + wod files.

    atze

ps. steinriede == berenbostel?

Am 08.12.2003 um 22:26 schrieb Helmut Tschemernjak:

Hello,

within one component e.g. in the Main.java constructor I like to get the value of a string specified in the WOD file.

E.g.: Main.wod includes:

String2: WOString {
        value = "Hello World";
}

How is this possible?

Some more background, I need to have some localized text within our app (no HTML part). As the wod files must be localized for the app it would be nice to include a few additional text strings in the wod file.


best regards / mit freundlichen Gruessen,

Helmut Tschemernjak


HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Phone: +49-5131-709320
Fax: +49-5131-709325
Internet Mail: email@hidden
Internet Web: http://www.helios.de
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

-- _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to get an WOD value within the component constructor
      • From: Alexander Spohr <email@hidden>
References: 
 >How to get an WOD value within the component constructor (From: Helmut Tschemernjak <email@hidden>)
 >Re: How to get an WOD value within the component constructor (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: How to get an WOD value within the component constructor
  • Next by Date: Re: How to get an WOD value within the component constructor
  • Previous by thread: Re: How to get an WOD value within the component constructor
  • Next by thread: Re: How to get an WOD value within the component constructor
  • Index(es):
    • Date
    • Thread