On Mon, Nov 1, 2010 at 11:50 AM, David Becker
<[email protected]> wrote:
> Am 31.10.2010 08:10, schrieb George Niculae:
>> On 10/29/10, David Becker<[email protected]>  wrote:
>>> I've posted it earlier, the issue is that I have settings in the
>>> phone.xml with if="..." conditions. Those settings don't disappear. I
>>> can enter anything there, change the if to an unless, etc. The setting
>>> is displayed anyway.
>> I made a simple test by adding if="false" to a setting and it works as
>> expected, that is not rendered. How does your conditional look?
>>
> E.g. if="fpk" to check if the phone has free programmable keys (as
> defined in the models.beans.xml).

Conditionals are not working in your case because you are overriding
OpenstagePhone.loadSettings - check out how Phone.loadSettings is
implemented and getSettingsEvaluator call. Remove
OpenstagePhone.loadSettings method and conditions will be taken into
account.

George
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to