RE: DXP JournalArticle Title Validation

thumbnail
Ketan Savaliya, modified 5 Years ago. Regular Member Posts: 117 Join Date: 3/3/11 Recent Posts
Hi Liferay Experts,

I need your help to validate title based on my requirement.  For example  Unique title For the i need to overrider jsp & edit action. 
1) JSP :  to display validation message
2) Edit Action : to validate custom rule for title field
I was gone though existing source code for "modules\apps\journal\journal-web\" liferay module. But i didn't got which java and jsp file i need to override. 
If any one have gone thought this please suggest the solution?

Liferay Version : liferay-dxp-src-7.1.10.2-sp2
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Editing is in the edit_article.jsp. Title will be connected to "titleMap" so you can find in the page where the field is set.

Finding the java class is a matter of finding the links for the action URLs back to the server. I see that there is /journal/add_article for new articles and /journal/update_article for updates.

Both of these mvc.command.names are bound to the UpdateArticleMVCActionCommand.

Note that "title must be unique" may prove to be challenging since the title itself is localized, so what happens if my english article has title Title but there's another article w/ a french title of Title?
thumbnail
Ketan Savaliya, modified 5 Years ago. Regular Member Posts: 117 Join Date: 3/3/11 Recent Posts
Hi David,
Thanks for your input and reply.
But i didn't see any things inside edit_article.jsp for title field or any form.