]
Adam Siemion updated FORGEPLUGINS-172:
--------------------------------------
Environment: Eclipse Java EE Luna 4.4.0, MacOS 10.9.4, JBoss Forge 2.10.2-SNAPSHOT
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`.