• 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: Access system properties as bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access system properties as bindings?


  • Subject: Re: Access system properties as bindings?
  • From: Timo Hoepfner <email@hidden>
  • Date: Thu, 22 Mar 2007 10:39:48 +0100

Hi,

You can when using WOOgnl. Take a look here:

http://en.wikibooks.org/wiki/Programming:WebObjects/Project_WONDER/ Frameworks/WOOgnl

Here are two of the examples given there:

// Calling static methods
Repetition2: WORepetition {
item = arrayItem;
list = "~@er.extensions.ERXArrayUtilities@sortedArraySortedWithKey(anArray, \"name\")";
}
// Accessing static ivars
String1: WOString {
value = "~@ognl.webobjects.WOOgnl@OgnlSpecialCharacters";
}


Of course you can do a *lot* more with WOOgnl.

Some more info on WOOgnl can be found here:

http://groups.google.com/group/wotips/browse_frm/thread/d89adb4015442ef0
http://groups.google.com/group/wotips/browse_frm/thread/466ef5224633521e

Timo


Then you can e.g. do Am 22.03.2007 um 10:19 schrieb Helmut Schottmüller:

Let's add I know that I am capable of encapsulating the System.getProperty method in a public method of my application or session object to access it as a binding value.
What I want to know is: Is it possible to access static class methods directly as a binding using some syntax magic (like the caret for a parent component)


Regards,

Helmut

Am 22.03.2007 um 08:59 schrieb Helmut Schottmüller:

Hi,

Maybe this question is very stupid, but is there a direct way to access system properties as a binding value?

System.Property.<PROPERTYNAME> does not work...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40onlinehome.de


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Access system properties as bindings?
      • From: Helmut Schottmüller <email@hidden>
References: 
 >Access system properties as bindings? (From: Helmut Schottmüller <email@hidden>)
 >Re: Access system properties as bindings? (From: Helmut Schottmüller <email@hidden>)

  • Prev by Date: Re: Access system properties as bindings?
  • Next by Date: Re: Access system properties as bindings?
  • Previous by thread: Re: Access system properties as bindings?
  • Next by thread: Re: Access system properties as bindings?
  • Index(es):
    • Date
    • Thread