<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Modify the action to edit article.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=89076206" />
  <subtitle>Modify the action to edit article.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=89076206</id>
  <updated>2026-04-06T19:58:37Z</updated>
  <dc:date>2026-04-06T19:58:37Z</dc:date>
  <entry>
    <title>RE: Modify the action to edit article.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113742689" />
    <author>
      <name>Beatriz Valdés Suárez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113742689</id>
    <updated>2019-05-27T12:09:27Z</updated>
    <published>2019-05-27T12:09:27Z</published>
    <summary type="html">Hello Patricia,Could you resolve this? I&amp;#39;m with similar problem.</summary>
    <dc:creator>Beatriz Valdés Suárez</dc:creator>
    <dc:date>2019-05-27T12:09:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Modify the action to edit article.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89091869" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89091869</id>
    <updated>2017-05-05T12:53:28Z</updated>
    <published>2017-05-05T12:53:28Z</published>
    <summary type="html">Gotcha, yeah you can&amp;#39;t modify methods embedded in the portlet class itself.&lt;br /&gt;&lt;br /&gt;The solution I posted here would work: &lt;a href="https://web.liferay.com/web/user.26526/blog/-/blogs/extending-liferay-osgi-modules"&gt;https://web.liferay.com/web/user.26526/blog/-/blogs/extending-liferay-osgi-modules&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But it is very heavy handed; be sure to take note of all of the warnings in the post.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.eventbrite.com/e/liferay-symposium-north-america-2017-registration-28398031276"&gt;Come meet me at the 2017 LSNA!&lt;/a&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2017-05-05T12:53:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Modify the action to edit article.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89094519" />
    <author>
      <name>Patricia Hevia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89094519</id>
    <updated>2017-05-05T12:47:51Z</updated>
    <published>2017-05-05T12:47:51Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your answer.&lt;br /&gt;&lt;br /&gt;I have seen this example but I have some doubts.&lt;br /&gt;&lt;br /&gt;In the example, the override resource class (EditFolderMVCResourceCommand) implements &amp;#34;MVCResourceCommand&amp;#34; but the &amp;#34;JournalPortlet&amp;#34; class extends &amp;#34;MVCPortlet&amp;#34;. This class does not implements &amp;#34;MVCActionCommand&amp;#34;. Can I modify the JournalPortlet in spite of this class extends &amp;#34;MVCPortlet&amp;#34;?&lt;br /&gt;&lt;br /&gt;I do not know which &amp;#34;mvc.command.name&amp;#34; param I should indicate in Component annotation (@Component) because the JournalPortlet does not have this property. Which value property should I use?&lt;br /&gt;&lt;br /&gt;Thank you very much.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Patricia</summary>
    <dc:creator>Patricia Hevia</dc:creator>
    <dc:date>2017-05-05T12:47:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Modify the action to edit article.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89091338" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89091338</id>
    <updated>2017-05-05T11:36:46Z</updated>
    <published>2017-05-05T11:36:46Z</published>
    <summary type="html">All of the same things that are found here:  &lt;a href="https://github.com/liferay/liferay-blade-samples/tree/master/liferay-workspace/modules/blade.doclib.resourcecommand.override"&gt;https://github.com/liferay/liferay-blade-samples/tree/master/liferay-workspace/modules/blade.doclib.resourcecommand.override&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.eventbrite.com/e/liferay-symposium-north-america-2017-registration-28398031276"&gt;Come meet me at the 2017 LSNA!&lt;/a&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2017-05-05T11:36:46Z</dc:date>
  </entry>
  <entry>
    <title>Modify the action to edit article.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89076205" />
    <author>
      <name>Patricia Hevia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=89076205</id>
    <updated>2017-05-05T06:27:03Z</updated>
    <published>2017-05-05T06:27:03Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;&lt;br&gt;I am working with Liferay DXP and I would like to modify the action to edit article.&lt;br&gt;In Liferay 6.2, to modify the edit action I should do a struct action hook.&lt;br&gt;In Liferay DXP, the code to add an article is in the JournalPortlet class. The Liferay code is:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;public class JournalPortlet extends MVCPortlet {
	public static final String VERSION_SEPARATOR = "_version_";
	public void addArticle(
			ActionRequest actionRequest, ActionResponse actionResponse)
		throws Exception {

		updateArticle(actionRequest, actionResponse);
	}
	..................
}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;What should I do in Liferay DXP to modify the action of edit article?&lt;br&gt;&lt;br&gt;Thank you very much.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Patricia&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Patricia Hevia</dc:creator>
    <dc:date>2017-05-05T06:27:03Z</dc:date>
  </entry>
</feed>
