[Bug #984] Add ON_OK event on project name textbox in creation project wizard.
FEA: ItEr74S04BugFixing
This commit is contained in:
parent
58216a103b
commit
c13bb9bb2a
2 changed files with 10 additions and 1 deletions
|
|
@ -47,6 +47,7 @@ import org.zkoss.zul.ComboitemRenderer;
|
|||
import org.zkoss.zul.Constraint;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Grid;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.Window;
|
||||
|
||||
/**
|
||||
|
|
@ -78,6 +79,8 @@ public class ProjectDetailsController extends GenericForwardComposer {
|
|||
|
||||
private BandboxSearch bdExternalCompanies;
|
||||
|
||||
private Textbox txtName;
|
||||
|
||||
private Datebox deadline;
|
||||
|
||||
public ProjectDetailsController() {
|
||||
|
|
@ -251,6 +254,12 @@ public class ProjectDetailsController extends GenericForwardComposer {
|
|||
bdExternalCompanies.close();
|
||||
}
|
||||
});
|
||||
txtName.addEventListener(Events.ON_OK, new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
accept();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
<rows>
|
||||
<row>
|
||||
<label value="${i18n:_('Name')}" />
|
||||
<textbox value="@{projectController.order.name}" width="500px"
|
||||
<textbox id="txtName" value="@{projectController.order.name}" width="500px"
|
||||
constraint="no empty:${i18n:_('cannot be null or empty')}"/>
|
||||
</row>
|
||||
<row>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue