Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with boolean JMX attribute #184

Closed
lightoze opened this issue Apr 19, 2016 · 1 comment
Closed

Problem with boolean JMX attribute #184

lightoze opened this issue Apr 19, 2016 · 1 comment
Labels

Comments

@lightoze
Copy link
Contributor

Initial DOM for boolean attribute is:

<select ng-switch-when="boolean" class="span5 ng-scope ng-pristine ng-valid" ng-model="attr.value" ng-disabled="!attr.rw" ng-options="val for val in [true, false]"><option value="?" selected="selected" label=""></option><option value="0" label="true">true</option><option value="1" label="false">false</option></select>

After attributes are read, attribute field remains empty, however DOM changes to:

<select ng-switch-when="boolean" class="span5 ng-scope ng-pristine ng-valid" ng-model="attr.value" ng-disabled="!attr.rw" ng-options="val for val in [true, false]"><option value="? boolean:false ?"></option><option value="0" selected="selected" label="true">true</option><option value="1" label="false">false</option></select>

Also, as a side note - non-primitive number/boolean types are not handled as good as their primitive counterparts.

@joshiste
Copy link
Collaborator

I fixed the issue with the boolean. I noticed this error while doing the ui modularization. But I've not backported the support for the wrapper types since would be a lot more work.
My plan is to merge the modular ui after the next spring boot admin release (which itself is waiting for Brixton which is currently scheduled for 30th of April)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants