Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EC3A18DD5 for ; Mon, 25 Jan 2016 13:35:40 +0000 (UTC) Received: (qmail 80180 invoked by uid 500); 25 Jan 2016 13:35:40 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 80137 invoked by uid 500); 25 Jan 2016 13:35:40 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 80108 invoked by uid 99); 25 Jan 2016 13:35:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2016 13:35:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D03052C1F54 for ; Mon, 25 Jan 2016 13:35:39 +0000 (UTC) Date: Mon, 25 Jan 2016 13:35:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4594) Configure TilesDefs by annotating Actions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115193#comment-15115193 ] ASF GitHub Bot commented on WW-4594: ------------------------------------ Github user cnenning commented on a diff in the pull request: https://github.com/apache/struts/pull/85#discussion_r50693282 --- Diff: plugins/tiles/src/test/java/org/apache/struts2/tiles/TestStrutsTilesAnnotationProcessor.java --- @@ -0,0 +1,148 @@ +package org.apache.struts2.tiles; + +import java.util.List; +import java.util.Set; + +import org.apache.struts2.tiles.annotation.TilesDefinition; +import org.apache.tiles.Attribute; +import org.apache.tiles.Definition; +import org.apache.tiles.Expression; +import org.junit.Test; + +import org.junit.Assert; + +public class TestStrutsTilesAnnotationProcessor { --- End diff -- oh, of course :sweat_smile: > Configure TilesDefs by annotating Actions > ----------------------------------------- > > Key: WW-4594 > URL: https://issues.apache.org/jira/browse/WW-4594 > Project: Struts 2 > Issue Type: New Feature > Components: Plugin - Tiles > Reporter: Christoph Nenning > Assignee: Christoph Nenning > Fix For: 2.5 > > > Large applications often consist of hundrets of actions. IMO it is a major benefit of struts-convention-plugin that it is not necessary to configure all those actions in xml files. As xml files would become huge and hard to maintain. The same applies to tiles xml files. Currently it is necessary to configure tiles-definitions for all those actions in xml files which makes them huge and hard to maintain. > It would be great if configuration of tiles-definitions could be done by annotating actions, in a similar way actions can be configured with annotations from convention-plugin. > This somewhat relates to WW-3937 and WW-4161 -- This message was sent by Atlassian JIRA (v6.3.4#6332)