HibernateRelationshipsUI |
|
Your trail: |
Difference between
version 46
and
version 45:
At line 385 changed 4 lines. |
# Add AVAILABLE_CATEGORIES to Constants.java |
# Grab Categories in StartupListener and expose them, discuss why not do it in edit() method |
# Add "extends Manager" to LookupManager interface so getObjects() can be used in StartupListener |
# LookupManager.getObjects results in NPE, change signature of setLookupDAO() method to call super.dao = dao: |
Remove the hidden ''categoryId'' field from __weblogForm.jsp__: |
At line 387 added 16 lines. |
[{Java2HtmlPlugin |
|
<nested:hidden property="categoryId"/> |
}] |
|
And change <nested:write property="category.name"/> to: |
|
[{Java2HtmlPlugin |
|
<nested:select property="categoryId" style="color: #333; font-size: 11px; margin: 2px 10px 0 0"> |
<html:options collection="availableCategories" property="categoryId" labelProperty="name"/> |
</nested:select> |
}] |
|
Run __ant deploy__ and refresh your browser. You should now be able to modify the category for an entry. |
|
Back to HibernateRelationshipsUI,
or to the Page History.
|