Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] PossibleValuesService with no validation

I'm using a service and override getInvalidValueSeverity(...) is working nicely, thanks!

On Tue, Nov 29, 2011 at 4:14 PM, Ling Hao <ling.hao@xxxxxxxxxx> wrote:
Are you using @PossibleValues? If so, you can set  invalidValueSeverity = status.Severity.OK. If you are using the PossibleValuesService, you can override getInvalidValueSeverity().



On 11/29/2011 1:03 PM, Greg Amerson wrote:
Hey everyone,

I have a ValueProperty where most of the time the value will come from a set of possible values.  However, in a few exceptions the user will want to add their own value.  Is it possible to attach a PossibleValuesSevice to a ValueProperty but not have any validation so it doesn't mark the user's custom entry as invalid?  Or is there another way to get the Browse action handler for a property editor to show a list of possible values?

--
Greg Amerson
Liferay, Inc.

_______________________________________________ sapphire-dev mailing list sapphire-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/sapphire-dev



--
Greg Amerson
Liferay, Inc.


Back to the top