[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
Tue Sep 23 09:01:02 EDT 2014
[ https://issues.jboss.org/browse/FORGEPLUGINS-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vineet Reynolds updated FORGEPLUGINS-172:
-----------------------------------------
Description:
>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`.
was:
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`.
> 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
> 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.1#6329)
More information about the forge-issues
mailing list