We use following in our tests. You can try it:

org.apache.hivemind.util.PropertyAdaptor;
org.apache.hivemind.util.PropertyUtils;

PropertyAdaptor adaptor  = PropertyUtils.getPropertyAdaptor(component,
"property_name");
Object value = adaptor.read(component);

br, Igor

On 6/22/07, Tomić Mirko <[EMAIL PROTECTED]> wrote:

Is there a way to dynamically resolve property value for a certain page
within
given component? To use something like getPage().getPropertyValue
(<property_name>). There is a method getPage().getSpecification
().getPropertySpecification(), which returns only spec for a property. I
need
the actual value.

If I use page.<property_name> in case that property is non-existing it
will
throw exception. I need to read a value only if a property exists. If not,
I
need to use some default value.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to