Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 53213 invoked from network); 5 Dec 2008 16:45:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2008 16:45:01 -0000 Received: (qmail 58877 invoked by uid 500); 5 Dec 2008 16:45:09 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 58858 invoked by uid 500); 5 Dec 2008 16:45:09 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 58847 invoked by uid 99); 5 Dec 2008 16:45:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 08:45:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christianedwardgruber@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 16:43:39 +0000 Received: by ug-out-1314.google.com with SMTP id j30so97392ugc.13 for ; Fri, 05 Dec 2008 08:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:subject :mime-version:date:references:x-mailer; bh=wTRzu3oVXNk+tm/2ifaQDlygoBMuMyODwIgfyo0njWI=; b=qbElNDckuJqWbiBjCXx6vTHuOWzXT8Hu1wqsYuUErVrBEArf9CFf9h/zVsKZmcVZS7 wnNHWxpAp3VplomdIuq6bvzNplInERJt1YdbtwxLx9w+OZJ2OrFvJQXJQHmIjnH89vLu TiYcXaBOODyekLpZy/ytulNgQVIACeYml117M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:subject:mime-version:date:references :x-mailer; b=khbqvS7SxpRJq8zgpl6awmRR7YxL+60/81LKXgx3/RO8NuiZMMIOY1PtDrt5Q2iK4p aJwzt9PCtWn6cKz4AUrpxKFALCJ9MZ3UnnOUKFN+XIvOKqMQH456yLuoE6KdA9aRC+eR GynbQFQ/iqNdFH7ghYmE4ujp4Y/ziOmipE9mM= Received: by 10.86.80.17 with SMTP id d17mr790887fgb.14.1228495466165; Fri, 05 Dec 2008 08:44:26 -0800 (PST) Received: from ?10.200.200.208? (207.188.87.162.tor.pathcom.com [207.188.87.162]) by mx.google.com with ESMTPS id e11sm2939803fga.16.2008.12.05.08.44.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Dec 2008 08:44:25 -0800 (PST) Message-Id: <04A823A9-354E-402F-ABD4-4B3E1573EB8B@gmail.com> From: Christian Edward Gruber To: "Tapestry users" In-Reply-To: <3be068000812050830q7a3b9b73u93fab6b5b777627e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Subject: Re: AW: Advantages of various .tml storage locations? Mime-Version: 1.0 (Apple Message framework v929.2) Date: Fri, 5 Dec 2008 11:44:05 -0500 References: <1DAC6E03-6EC8-4041-9BED-87B13EBB1D1B@gmail.com> <3be068000812050830q7a3b9b73u93fab6b5b777627e@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org No, that's not a maven thing, that's a Tapestry thing. Pages always =20 go in webapp. It's actually a function of the way J2EE WARs are =20 constructed, and how T5 interprets this information to construct =20 pages. Pages are a special case component. Howard, is an alternate location possible for pages? Christian. On 5-Dec-08, at 11:30 , Luther Baker wrote: > Assuming this: > > src/main/java/*com/X/app*/pages/Home.java > > > This doesn't work for me: > > src/main/resources/*com/X/app*/pages/Home.tml > > > Wherease, this works just fine: > > src/main/webapp/Home.tml > > > Do I need to do something special to drop my pages in the resources =20= > dir or > does this just work and I am overlooking something. > > Thanks, > > -Luther > > > > On Fri, Dec 5, 2008 at 10:05 AM, Christian Edward Gruber < > christianedwardgruber@gmail.com> wrote: > >> It's not a fix, it's a design. Code goes in /src/main/java. =20 >> Resources go >> in /src/main/resources. It's part of having a place for =20 >> everything, and >> everything in its place. >> >> You could hack it by a custom execution of the resources plugin =20 >> pointing to >> your "alternative resources location" (ie, src/main/java) but this =20= >> isn't >> something that needs a solution - it's how the tool works. >> >> Actually, i think you could set the resources location to src/main/=20= >> java >> anyway... one sec... >> >> Yep. >> >> Use the ... section of the =20 >> pom to >> point at resources in /src/main/java. eg: >> >> >> >> / >> true >> ${basedir}/src/main/java >> **/*.tml >> >> >> This should pick up .tml files in /src/main/java. Not maven best =20 >> practice, >> but if it works for you, have fun. I still expect it will only =20 >> work for >> components, not pages. Howard? True? >> >> Christian. >> >> >> On 5-Dec-08, at 06:05 , Maximilian Wei=DFb=F6ck wrote: >> >> I would much prefer solution number 1. as it keeps things >>> on the same place that belong together. >>> >>> Sadly maven build does not work with this solution. >>> Is there any maven guru how knows how to "fix" this? >>> >>> Thanks, Max >>> >>> -----Urspr=FCngliche Nachricht----- >>>> Von: yimmy149@gmail.com [mailto:yimmy149@gmail.com] Im Auftrag =20 >>>> von James >>>> Hillyerd >>>> Gesendet: Donnerstag, 4. Dezember 2008 23:06 >>>> An: Tapestry users >>>> Betreff: Advantages of various .tml storage locations? >>>> >>>> What are the pros/cons of keeping page .tml in: >>>> >>>> 1. src/main/java >>>> >>>> vs >>>> >>>> 2. src/main/resources >>>> >>>> vs >>>> >>>> 3. src/main/webapp >>>> >>>> ? >>>> >>>> >>>> I see JumpStart uses #1, and the tutorial uses #3. Seems like it =20= >>>> would >>>> easier to use #1 or #2 so at least the components and pages .tml =20= >>>> are in >>>> the >>>> same directory tree. >>>> >>>> Thanks. >>>> >>>> -james >>>> >>>> -- >>>> James A. Hillyerd >>>> >>> >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>> For additional commands, e-mail: users-help@tapestry.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >> For additional commands, e-mail: users-help@tapestry.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org