ItEr48S04ValidacionEProbasFuncionaisItEr47S04 : [Bug #340] Fixing bug.
This commit is contained in:
parent
9434f5b267
commit
46f43e1194
3 changed files with 10 additions and 1 deletions
|
|
@ -112,6 +112,13 @@ public class Autocomplete extends Combobox {
|
|||
}
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
this.setValue("");
|
||||
this.setSelectedItem(null);
|
||||
this.setModel(finder.getModel());
|
||||
this.invalidate();
|
||||
}
|
||||
|
||||
private Object getBean(String classname) {
|
||||
HttpServletRequest servletRequest = (HttpServletRequest) Executions
|
||||
.getCurrent().getNativeRequest();
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public class ExternalCompanyCRUDController extends GenericForwardComposer
|
|||
private void clearAutocompleteUser() {
|
||||
Autocomplete user = (Autocomplete) createWindow.getFellowIfAny("user");
|
||||
if (user != null) {
|
||||
user.setValue("");
|
||||
user.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -99,6 +99,7 @@ public class ExternalCompanyCRUDController extends GenericForwardComposer
|
|||
externalCompanyModel.initEdit(company);
|
||||
getVisibility().showOnly(createWindow);
|
||||
setInteractionFieldsActivation(company.getInteractsWithApplications());
|
||||
clearAutocompleteUser();
|
||||
Util.reloadBindings(createWindow);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@
|
|||
<row visible = "@{controller.workReport.workReportType.resourceIsSharedInLines}">
|
||||
<label value="${i18n:_('Resource')}:" />
|
||||
<autocomplete id="autocompleteResource" buttonVisible="true"
|
||||
value = "@{controller.workReport.resource}"
|
||||
onChange ="controller.changeResource(self.selectedItem);"
|
||||
finder="ResourceFinder"
|
||||
selectedItem="@{controller.workReport.resource}"/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue