THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
More information on the ww:if tag, ww:else tag
The actual form
Code Block | ||||
---|---|---|---|---|
| ||||
<ww:form action="crud!save.action" method="post"> <ww:textfield name="employee.firstName" value="%{employee.firstName}" label="%{getText('label.firstName')}" size="40"/> <ww:textfield name="employee.lastName" value="%{employee.lastName}" label="%{getText('label.lastName')}" size="40"/> <ww:textfield name="employee.age" value="%{employee.age}" label="%{getText('label.age')}" size="20"/> <ww:select name="employee.department.departmentId" value="%{employee.department.departmentId}" list="departments" listKey="departmentId" listValue="name"/> <ww:hidden name="employee.employeeId" value="%{employee.employeeId}"/> <ww:submit value="%{getText('button.label.submit')}"/> <ww:submit value="%{getText('button.label.cancel')}" name="redirect-action:index"/> </ww:form> |
...