HibernateRelationshipsUI | 
            
 | 
          
         
            | Your trail:  | 
          
       
      
 
      
      
         
      
          Difference between 
          version 33 
          and 
          version 32:
           
          
| At line 253 added 1 line. |  
| You should be able to modify the first and last name of the listed users without any issues. |  
| At line 255 added 16 lines. |  
| ;:''You may notice that clicking "Refresh" on your browser after saving a Weblog results in an error. To fix this, you can use the ''redirect-after-post'' pattern.  In the __WeblogAction__.''save()'' method, change: |  
 |  
| [{Java2HtmlPlugin |  
|              |  
|     return mapping.findForward("edit"); |  
| }] |  
 |  
| To: |  
 |  
| [{Java2HtmlPlugin |  
|              |  
|     return new ActionForward("/editWeblog.html?weblogId=" + weblog.getWeblogId(), true); |  
| }] |  
 |  
| %%note __NOTE:__ In Struts 1.2.7, you can use the [ActionRedirect|http://struts.apache.org/api/org/apache/struts/action/ActionRedirect.html] to implement post-and-redirect a bit easier. However, Struts 1.2.7 has [some issues|http://raibledesigns.com/page/rd?anchor=failed_upgrade_to_struts_1], so AppFuse still uses 1.2.4 at the time of this writing.%% |  
 |  
| At line 256 changed 1 line. |  
| # Add block of code to show entries |  
| To edit a Weblog's entries on the same weblog form, you need to add some more code, just after the ''Users'' row. |  
 |  
| [{Java2HtmlPlugin |  
 |  
|     <tr> |  
|         <th class="tallCell"><fmt:message key="weblogForm.entries"/>:</th> |  
|         <td> |  
|             <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 /> |  
|                 Posted at: <nested:write property="timeCreated"/></span> |  
|             </div> |  
|             </nested:iterate> |  
|         </td> |  
|     </tr> |  
| ]} |  
 |  
 |  
 
           
      
      
      
      Back to HibernateRelationshipsUI,
       or to the Page History.
        
      
      
      
      
      
      
      
      
          
     |