Return-Path: Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: (qmail 35083 invoked from network); 4 Jan 2008 09:59:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2008 09:59:57 -0000 Received: (qmail 66597 invoked by uid 500); 4 Jan 2008 09:59:45 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 66339 invoked by uid 500); 4 Jan 2008 09:59:44 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 66330 invoked by uid 99); 4 Jan 2008 09:59:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 01:59:44 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.97.110.250] (HELO smtp.opentrends.net) (62.97.110.250) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 09:59:33 +0000 Received: from [192.168.2.151] ([192.168.2.151]) (authenticated bits=0) by smtp.opentrends.net (8.13.4/8.13.4) with ESMTP id m049xMah032020 for ; Fri, 4 Jan 2008 10:59:25 +0100 Subject: Re: default-resource-name From: Oscar Pablo To: user@ofbiz.apache.org In-Reply-To: <477DF384.5020008@free-man.net> References: <1199431077.6135.5.camel@pr041> <477DF384.5020008@free-man.net> Content-Type: text/plain; charset=utf-8 Date: Fri, 04 Jan 2008 10:59:21 +0100 Message-Id: <1199440761.6395.5.camel@pr041> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.91.1/4388/Tue Sep 25 04:51:32 2007 on smtp.opentrends.net X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org I know what this attribute is used for in entities. My question is regarding to the attribute in view-entity: what sense makes it there if it is not used at view level? In GenericEntity.java, the comment in the code is the following: // In case of view entity try to retrieve the field heading from the real entity linked to the view So, it seems the attribute default-resource-name at view level is not used... or is used for another thing. On Fri, 2008-01-04 at 00:51 -0800, BJ Freeman wrote: > The GenericEnitity.java has some comments about this. > Also the entities themselves call out the Resources. > like > default-resource-name="CommonEntityLabels" > this is in the framework/common/entitydef/ > it refers to the > framwork/common/config/CommonEntityLabels_xx.properties > > Oscar Pablo sent the following on 1/3/2008 11:17 PM: > > Hi, > > > > When defining a view, it is possible to define an attribute for the > view > > tag named "default-resource-name", which should set the associated > > resource bundle for translations. > > > > However, I've look through the source code and this value is never > used: > > when evaluating a view, OfBiz looks for the "default-resource-name" > > connected to the table of the view, instead of the one connected to > the > > view. > > > > What is this view tag attribute (default-resource-name) used for > then? > > > > Regards, > > > > Óscar > > > > > > > > > > > >