Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
DXP JournalArticle Title Validation
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
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
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?
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?
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.
Thanks for your input and reply.
But i didn't see any things inside edit_article.jsp for title field or any form.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™