[forge-issues] [JBoss JIRA] (FORGEPLUGINS-172) Addon generates textfields, instead of drop-down lists, as search filters for Boolean fields
Vineet Reynolds (JIRA)
issues at jboss.org
Thu Nov 27 01:47:39 EST 2014
[ https://issues.jboss.org/browse/FORGEPLUGINS-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vineet Reynolds resolved FORGEPLUGINS-172.
------------------------------------------
Resolution: Done
Fixed: http://github.com/forge/angularjs-addon/commit/2b52e3d57
> Addon generates textfields, instead of drop-down lists, as search filters for Boolean fields
> --------------------------------------------------------------------------------------------
>
> Key: FORGEPLUGINS-172
> URL: https://issues.jboss.org/browse/FORGEPLUGINS-172
> Project: Forge Plugins/Addons
> Issue Type: Bug
> Components: AngularJS Scaffold
> Environment: Eclipse Java EE Luna 4.4.0, MacOS 10.9.4, JBoss Forge 2.10.2-SNAPSHOT
> Reporter: Vineet Reynolds
> Assignee: Vineet Reynolds
>
> From https://github.com/forge/angularjs-addon/issues/2
> For the given Java JPA code:
> {noformat}
> @Column
> private boolean primitive;
> @Column
> private Boolean wrapper;
> {noformat}
> the generated `search.html` for the `primitive` field contains a drop-down list with `true` and `false`:
> {noformat}
> <label for="wrapper" class="col-sm-2 control-label">Wrapper</label>
> <div class="col-sm-10">
> <select id="wrapper" name="wrapper" class="form-control" ng-model="search.wrapper" ng-options="w as w for w in wrapperList">
> <option value="">Choose a Wrapper</option>
> </select>
> </div>
> {noformat}
> but for the `wrapper` it contains a textfield:
> {noformat}
> <label for="primitive" class="col-sm-2 control-label">Primitive</label>
> <div class="col-sm-10">
> <input id="primitive" name="primitive" class="form-control" type="text" ng-model="search.primitive" placeholder="Enter the User Primitive"></input>
> </div>
> {noformat}
> instead of a drop-down list with `true` and `false`.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the forge-issues
mailing list