Return-Path: X-Original-To: apmail-deltaspike-users-archive@www.apache.org Delivered-To: apmail-deltaspike-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19E1618CE6 for ; Tue, 19 May 2015 15:23:01 +0000 (UTC) Received: (qmail 23013 invoked by uid 500); 19 May 2015 15:22:56 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 22983 invoked by uid 500); 19 May 2015 15:22:56 -0000 Mailing-List: contact users-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@deltaspike.apache.org Delivered-To: mailing list users@deltaspike.apache.org Received: (qmail 22971 invoked by uid 99); 19 May 2015 15:22:55 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 15:22:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 45A7F182929 for ; Tue, 19 May 2015 15:22:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id J2Lw6qBbmkK6 for ; Tue, 19 May 2015 15:22:40 +0000 (UTC) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id AE0BF24CC7 for ; Tue, 19 May 2015 15:22:39 +0000 (UTC) Received: by obcus9 with SMTP id us9so14789386obc.2 for ; Tue, 19 May 2015 08:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Ajn1hZkRhSke8qbecksurBQZ4AUB3CniBGIlqiDSZMA=; b=Db/KZfvE6Muf4nWejHQkhLiKXIaSoXNhilNeo0zLZphTmB8pPDkh5N5hrBiRM03mNh M9gIcpkytPRT7NsxlZb8qtEpoVu8fIbNljEPAdp1mmcNPBo2YkHweVGQR3rZuZixjtbt MprsSY1Qx4HfSZX5gQ74x0ng1TzFiHnaWd1TgkAgn6vT5HyfMx1HXV6+WkJlR5bJ7PeB EOu3h0biimZC3OGIoW9m5jHeQzjzykBR+E3D3nq3dp4c+5O2u50J7FQ91qZ9P80gSjUp csQhu5TGVfVUHWJ2P6KVCejSR5TqMDQOh9A/MUzDwjjocX3XPQTcSUhmyxtIbbG4hNEq +jmA== X-Received: by 10.202.219.195 with SMTP id s186mr2977467oig.25.1432048908030; Tue, 19 May 2015 08:21:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.212.5 with HTTP; Tue, 19 May 2015 08:21:27 -0700 (PDT) In-Reply-To: <555B2AE1.90605@senat.fr> References: <555B2AE1.90605@senat.fr> From: Gerhard Petracek Date: Tue, 19 May 2015 17:21:27 +0200 Message-ID: Subject: Re: Inheritance of static view config To: users@deltaspike.apache.org Content-Type: multipart/alternative; boundary=001a113d29da76d939051670ded8 --001a113d29da76d939051670ded8 Content-Type: text/plain; charset=UTF-8 hi ludovic, it sounds like you are using an ear-file which bundles multiple webapps. please provide a bit more details, if you are talking about a different constellation. regards, gerhard 2015-05-19 14:21 GMT+02:00 l.penet@senat.fr : > Dear all, > > I have some webapps sharing some elements of navigation. They also share > the same login system, and are configured in SSO. > > I tried to mutualise the views defintion using static view config and > ended with the following, not so pleasant result : > > > base, common class : > > @Folder(name="/") > @View(navigation = View.NavigationMode.REDIRECT, viewParams = > View.ViewParameterMode.INCLUDE) > public interface PagesCommon extends ViewConfig { > class Accueil implements PagesCommon { } > class Login implements PagesCommon { } > } > > > In a sample webapp : > > public interface Pages extends PagesCommon { > @View(basePath = "/") > class Organigramme implements Pages { } > @View(basePath = "/") > class Personne implements Pages { } > @View(name = "tous_les_droits", basePath = "/") > class TousLesDroits implements Pages { } > } > > I could not use a syntax such as > > @Folder(name="/") > public interface Pages extends PagesCommon { > class Organigramme implements Pages { } > class Personne implements Pages { } > @View(name = "tous_les_droits") > class TousLesDroits implements Pages { } > } > > I get an error then because Pages and PagesCommon try to configure the > same directory. > > Did I miss something or should I fill a feature request ? > > Thanks in advance, > > Ludovic > | > | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. > | > > --001a113d29da76d939051670ded8--