HibernateRelationshipsUI |
|
Your trail: |
Difference between
version 21
and
version 20:
At line 20 changed 1 line. |
In order for the Struts version of AppFuse to allow editing of a Weblog's attributes from the User object, you need to modify User.java to support indexed properties. You can do this by adding ''indexedProperties="true"'' to the @struts.form tag in User.java. |
In order for the Struts version of AppFuse to allow editing of a Weblog's attributes from the User object, you need to modify __User.java__ to support indexed properties. You can do this by adding ''indexedProperties="true"'' to the @struts.form tag in User.java. |
At line 24 changed 1 line. |
* @struts.form include-all="true" extends="BaseForm" indexedProperties="true"}] |
@struts.form include-all="true" extends="BaseForm" indexedProperties="true"}] |
At line 28 changed 1 line. |
A weblog record has 3 fields: weblogId, blogTitle and dateCreated. The blogTitle is the only field that users should be able to edit. The rest of them can be set programmatically. Open ''web/pages/userForm.jsp'' and add the following code to the bottom of the form (between </table> and </form>. |
A weblog record has 3 fields: weblogId, blogTitle and dateCreated. The blogTitle is the only field that users should be able to edit. The rest of them can be set programmatically. Open __web/pages/userForm.jsp__ and add the following code to the bottom of the form (between </table> and </form>. |
At line 35 removed 1 line. |
<input type="hidden" name="weblogs[<c:out value='${index.index}'/>].username" value="<c:out value='${blog.username}'/>"/> |
At line 39 removed 1 line. |
|
Back to HibernateRelationshipsUI,
or to the Page History.
|