HibernateRelationshipsUI |
|
| Your trail: |
Difference between
version 23
and
version 22:
| At line 81 added 2 lines. |
| %%note __NOTE:__ The reason ''convertLists(Object)'' isn't called automatically by the ''convert(Object)'' method is because it invokes lazy-loaded collections. [APF-81|http://issues.appfuse.org/browse/APF-81]%% |
|
| At line 87 changed 1 line. |
| %%note __NOTE:__ The reason ''convertLists(Object)'' isn't called automatically by the ''convert(Object)'' method is because it invokes lazy-loaded collections. [APF-81|http://issues.appfuse.org/browse/APF-81]%% |
| Run __ant deploy__, wait for Tomcat to reload your application, and then try saving the User Profile again. This time it should succeed - and you can also change the blog title if you so choose. |
| At line 91 changed 2 lines. |
| # Add WEBLOG_LIST and WEBLOG_KEY to Constants.java |
| # Create WeblogAction.java |
| In order to edit a Weblog object, and it's children (Users and Entries), you need to create a __WeblogAction.java__ class. Before you do that, you'll need to add a couple constants to ''src/dao/**/__Constants.java__'': |
| At line 95 added 15 lines. |
| [{Java2HtmlPlugin |
|
| /** |
| * The request scope attribute that holds the weblog form. |
| */ |
| public static final String WEBLOG_KEY = "weblogForm"; |
|
| /** |
| * The request scope attribute that holds the weblog list |
| */ |
| public static final String WEBLOG_LIST = "weblogList"; |
| }] |
|
| Then [download WeblogAction.java|WeblogAction.java] and put it in your ''src/web/**/webapp/action'' directory. This class already has the ''convertLists(Object)'' methods that you added to __UserAction.java__. |
|
Back to HibernateRelationshipsUI,
or to the Page History.
|