| At line 90 added 3 lines. |
|
| !!Add the ability to edit users from the Weblog Detail Screen [#5] |
|
| At line 100 changed 1 line. |
| !!Add the ability to edit users from the Weblog Detail Screen [#5] |
|
| At line 105 added 49 lines. |
|
| # Add block of code to show entries |
| # Uncomment entries block in Weblog.java |
| # Modify struts_form.xdt so collections ending with "ies" will get their POJO's names ending with "y" (i.e. entries -> Entry). |
| # TODO: Figure out how to get DateConverter and TimestampConverter to play nicely with each other (maybe combine them) |
| # Style up the "posted at" text |
|
| # 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: |
|
| [{Java2HtmlPlugin |
|
| public void setLookupDAO(LookupDAO dao) { |
| super.dao = dao; |
| this.dao = dao; |
| } |
| }] |
|
| # Add html:select tag to weblogForm.jsp, include prettying up - show screenshot |
| # POSSIBLITY: Add "title" to Entry.java |
|
|
| !!Add the ability to delete an entry |
|
| # Wrap nested:iterate with div id |
|
| <nested:iterate property="entries" id="entry" indexId="index"> |
| <div id="entry<%=index%>"> |
| <nested:hidden property="entryId"/> |
| <nested:hidden property="weblogId"/> |
| <!--<nested:hidden property="timeCreated"/> --> |
| <nested:textarea property="text" style="width: 400px; height: 100px"/> |
| <br /> |
| <span style="color: #333; font-size: 11px; margin: 0 5px"> |
| Category: |
| <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> |
| Posted at: <nested:write property="timeCreated"/></span> |
| <input type="submit" class="button" style="font-size: 11px" |
| onclick="parentNode.parentNode.removeChild($('entry<%=index%>'))" value="Delete"/> |
| </div> |
| </nested:iterate> |
| |
| # This will delete, but only the first one - might need some more JavaScript magic to shuffle the numbers |
| # Delete only works if last entry is deleted |
| # Add only works if there's already an existing one to replicate. |