Re: inheritance to composition design in components

2014-02-07 Thread Thiago H de Paula Figueiredo
On Fri, 07 Feb 2014 14:10:43 -0200, iberck wrote: Hi Thiago, thank you very much by your answer. Hi! The scenario is the next: I have to create a page to show a survey, so in my model I have some clases: --- Survey + List q

Re: inheritance to composition design in components

2014-02-07 Thread iberck
Hi Thiago, thank you very much by your answer. The scenario is the next: I have to create a page to show a survey, so in my model I have some clases: --- Survey + List questions Question QuestionText extends Question QuestionRatin

Re: inheritance to composition design in components

2014-02-06 Thread Thiago H de Paula Figueiredo
On Thu, 06 Feb 2014 18:57:24 -0200, iberck wrote: Thank you for your answer Thiago. ;) I have to create multiple c1,c2,c3,c4,c5,c6,c7,c8,c9 child components of parentcomponent so I prefer to put the logic inside each component and then decide which component use with a separate component:

Re: inheritance to composition design in components

2014-02-06 Thread iberck
advance. On Thu, Feb 6, 2014 at 1:13 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 06 Feb 2014 16:05:04 -0200, iberck wrote: > > hi all, >> > > Hi! > > > how can I transform the next example from inheritance design to >> composit

Re: inheritance to composition design in components

2014-02-06 Thread Thiago H de Paula Figueiredo
On Thu, 06 Feb 2014 16:05:04 -0200, iberck wrote: hi all, Hi! how can I transform the next example from inheritance design to composition design ? You don't even need to have two different components to have a component which can have a part of its template rep

inheritance to composition design in components

2014-02-06 Thread iberck
hi all, how can I transform the next example from inheritance design to composition design ? ParentComponent.tml: http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter" t:content="text/html; charset=utf-8"> this is parent component

Re: Page Inheritance

2013-01-17 Thread Michael Prescott
Oh neat, I somehow missed this. On 17 January 2013 09:31, Taha Siddiqi wrote: > > For template inheritance > > > http://tapestry.apache.org/component-templates.html#ComponentTemplates-TemplateInheritance > > You should use the base package for base class. > > regards

Re: Page Inheritance

2013-01-17 Thread Taha Siddiqi
For template inheritance http://tapestry.apache.org/component-templates.html#ComponentTemplates-TemplateInheritance You should use the base package for base class. regards Taha On Jan 17, 2013, at 7:57 PM, sommeralex wrote: > Hi! > > I have two questions concerning page in

Page Inheritance

2013-01-17 Thread sommeralex
Hi! I have two questions concerning page inheritance: 1. What is the best way to implement page inheritance? (Since page variables may be protected too as a new feature.. this questions popped up..) Should (abstract) page classes reside in the same folders as the page itself or somewhere else

Re: Inheritance

2012-09-19 Thread Dieter Sauvillers
I am trully sorry, I mapped the library to a wrong package name. It is working now On 19 September 2012 15:09, antalk wrote: > Could be that your abstract page is not in the 'correct' package ? > > > > -- > View this message in context: > http://tapestry.10

Re: Inheritance

2012-09-19 Thread antalk
Could be that your abstract page is not in the 'correct' package ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inheritance-tp5716400p5716401.html Sent from the Tapestry - User mailing list archive at

Inheritance

2012-09-19 Thread Ditso
tapestry is not able to control the parent class. Is it even possible to do something like this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inheritance-tp5716400.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Inheritance and the order of loaded JS

2012-07-17 Thread mem
rride, but can't change the timing of when that method is invoked. See TAPESTRY-2311. This is not true, at least when using @Import -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inheritance-and-the-order-of-loaded-JS-tp5714430p5714500.html Sent from the Tapestry - Us

Re: Inheritance and the order of loaded JS

2012-07-12 Thread Steve Eynon
> wouldn't it be generally better if the @Import obeys the parent child order Possibly, but I believe it's quite an edge case you have there. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands

Re: Inheritance and the order of loaded JS

2012-07-12 Thread mem
. I couldn't think of any case when the current behavior would be needed. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inheritance-and-the-order-of-loaded-JS-tp5714430p5714442.html Sent from the Tapestry -

Re: Inheritance and the order of loaded JS

2012-07-12 Thread Howard Lewis Ship
g > setupRender and beginRender) to control the ordering. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Inheritance-and-the-order-of-loaded-JS-tp5714430p5714433.html > Sent from the Tapestry - Us

Re: Inheritance and the order of loaded JS

2012-07-12 Thread Lance Java
context: http://tapestry.1045711.n5.nabble.com/Inheritance-and-the-order-of-loaded-JS-tp5714430p5714433.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Inheritance and the order of loaded JS

2012-07-12 Thread Steve Eynon
t the child JS gets imported before the parent JS. > Is this a bug or is it the known, wanted behavior. If so, what's the > intention behind this? > Can i somehow work around this or do i have to specify the JS multiple times > and in the correct order? > > -- > View this

Inheritance and the order of loaded JS

2012-07-12 Thread mem
before the parent JS. Is this a bug or is it the known, wanted behavior. If so, what's the intention behind this? Can i somehow work around this or do i have to specify the JS multiple times and in the correct order? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inhe

Complex use case about JSR-303, Tapestry, and JPA entity inheritance

2011-10-15 Thread Julien Martin
Hello, I have a JPA entity called ParentAccount that extends an abstract Account entity (see JPA inheritance). I have place the JSR-303 validation constraints in the Account entity. Now I have the following Tapestry class and templates and jsr-303 validation does not seem to work: *public class

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-29 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 13:17:10 -0300, Muhammad Gelbana wrote: I hope one day I can as helpful as you are..for no less than helping you back :) Just help people in this mailing list, blog about Tapestry if you have a blog, and I'll be very, very happy. :) -- Thiago H. de Paula Figueiredo I

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
I hope one day I can as helpful as you are..for no less than helping you back :) On Wed, Sep 28, 2011 at 3:51 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 28 Sep 2011 10:38:53 -0300, Taha Hafeez > wrote: > > Have you looked at >> http://tawus.wordpress.com/**2011/04/

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 10:38:53 -0300, Taha Hafeez wrote: Have you looked at http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ Which is basically the same approach used by BeanEditor, Grid and other BeanModel-based components. A proven approach. :) -- Thiago H. de Paula

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Have you looked at http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ On Wed, Sep 28, 2011 at 6:13 PM, Muhammad Gelbana wrote: > I know you mean I should use components but in what way ? > I retracted the inheritance approache and replaced it with the > switc

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
I know you mean I should use components but in what way ? I retracted the inheritance approache and replaced it with the switching<http://tapestry.apache.org/switching-cases.html>idea which is marvelous. This way I won't get into the messy "t:if" tree. I'm trying to figu

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Use components :) On Wed, Sep 28, 2011 at 5:03 PM, Muhammad Gelbana wrote: > Thank you Taha :) > > But what do you mean by "You can always re-factor your code by composition." > > > On Wed, Sep 28, 2011 at 1:11 PM, Taha Hafeez wrote: > >> Hi Muhammad >&g

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
Thank you Taha :) But what do you mean by "You can always re-factor your code by composition." On Wed, Sep 28, 2011 at 1:11 PM, Taha Hafeez wrote: > Hi Muhammad > > I don't think inheritance is the best approach with tapestry. You can > always re-factor your

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Hi Muhammad I don't think inheritance is the best approach with tapestry. You can always re-factor your code by composition. Using components is always a better approach. If you have a child page trying to access a component in parent page, IMHO, you should reconsider your refactoring. O

[t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
This is a new approach I'm taking to compose pages. I'm trying to convert an existing application to tapestry but one page turned out to be really big and hard to maintain. This page has many form fields. Some fields should always exists, and conditionally show other fields depending on a condition

Re: component inheritance T5.2.5 (SOLVED!)

2011-08-15 Thread Thiago H. de Paula Figueiredo
mer. why should T5 not able to do it? I guess this is a useful feature for others, too. If you're asking about having some out-of-the-box way in Tapestry for replacing components, I agree with you. File a JIRA for it. Now we have a full OO stack using inheritance and default injection

Re: component inheritance T5.2.5 (SOLVED!)

2011-08-15 Thread Jens Breitenstein
e a full OO stack using inheritance and default injection even for components, message catalogs, spring/t5 services, hibernate pojo's without one line of xml. Maybe one of you guys can convince Howard at least to think about it? Thanks for your help Jens p.s. it's still unclear

Re: component inheritance T5.2.5

2011-08-15 Thread Thiago H. de Paula Figueiredo
On Mon, 15 Aug 2011 13:26:11 -0300, Jens Breitenstein wrote: Thiago, Hi! do you use multiple modules? Yes! Lots of them! Maybe this screws up our Modules (@SubModule to be precise), or whatever? How are you adding this other modules' pages and components? What are their prefix?

Re: component inheritance T5.2.5

2011-08-15 Thread Jens Breitenstein
Thiago, do you use multiple modules? - we are building running T5 apps per layer - each layer is build by mvn thus containing a root pom. - all layers may depend on jars from "upper" layers to assemble a new T5 app (just by jar dependencies). - we have a module per layer and annotate it by @SubM

Re: component inheritance T5.2.5

2011-08-15 Thread Jens Breitenstein
Sorry Thiago that this simple task turns into an endless story... I've tried it, and even clicking all pages does not call my CCR. When looking at CCRImpl everything is cached after "rebuild". When setting a break point in CCRImpl.resolveComponentTypeToClassName:430 it's hit around 40 times not

Re: component inheritance T5.2.5

2011-08-15 Thread Thiago H. de Paula Figueiredo
On Sun, 14 Aug 2011 19:06:25 -0300, Jens Breitenstein wrote: ok, next step... Hi! this code below shows me all components from my current module/layer, but the classes I want to "cheat" are not mentioned. Is it possible tapestry creates a ComponentClassResolver per module? No. It's a

T5.2.5 component inheritance / ComponentClassResolver

2011-08-15 Thread Jens Breitenstein
Hi all! I am still trying to replace an existing compont class by a derived version. As @Advise did not work I tried to decorate the CCR (see module code below). Unfortunately its not working too but the result is consice between the advised and decorated version. The service gets created but

Re: component inheritance T5.2.5

2011-08-14 Thread Jens Breitenstein
ok, next step... this code below shows me all components from my current module/layer, but the classes I want to "cheat" are not mentioned. Is it possible tapestry creates a ComponentClassResolver per module? Definitely the sysout only shows a minor amount of components and not all components

Re: component inheritance T5.2.5

2011-08-14 Thread Jens Breitenstein
reitenstein wrote: hi All! Hi! Have you checked the generated HTML? I have some trouble concerning component inheritance. My scenario is something like: A.tml http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter" class="mini

Re: component inheritance T5.2.5

2011-08-14 Thread Thiago H. de Paula Figueiredo
On Sat, 13 Aug 2011 09:26:27 -0300, Jens Breitenstein wrote: hi All! Hi! Have you checked the generated HTML? I have some trouble concerning component inheritance. My scenario is something like: A.tml http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xm

component inheritance T5.2.5

2011-08-13 Thread Jens Breitenstein
hi All! I have some trouble concerning component inheritance. My scenario is something like: A.tml http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter" class="mini-basket-items"> A.class -- public class A {

Re: Component class inheritance and parameter binding in tapestry 5.2.5

2011-07-07 Thread Jabbar
mponentResources; > > > > My html looks like > > > > > t:enabled="showRepairBatchList" t:selectedItemId="selectedItemId" > > t:serialNum="selectedSerialNum" t:repair="rep

Re: Component class inheritance and parameter binding in tapestry 5.2.5

2011-07-06 Thread Josh Canfield
; t:selectedItemId="selectedItemId" > t:serialNum="selectedSerialNum" t:repair="repair" > t:selectedBatchedStatus="selectedBatchStatus"/> > > I get the following error > > Parameter(s) 'id, selectedBatchStatus' are

Component class inheritance and parameter binding in tapestry 5.2.5

2011-07-06 Thread Jabbar
27; are required for com.technolog.components.DialogRepairBatches, but have not been bound. I'm not sure why the binding is not happening. Anybody got any ideas? FYI I'm also using template inheritance. I don't think this is going to make any difference. -- Thanks A Jabbar Azam

Re: Component inheritance - Unable to locate method onAction...

2011-06-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Jun 2011 06:15:57 -0300, Markus Jung wrote: Hi, Hi! Unable to locate Method public java.lang.Object onActionFromLogout(): ... LayoutActiveSession.onActionFromLogout() What package is Layout in? What's the visibility of onActionFromLogout? By the way, why don't you use Ev

Component inheritance - Unable to locate method onAction...

2011-06-01 Thread Markus Jung
the event handlers of the base component automatically working for the sub component, or have I done a misconeption for my problem? Best regards, Markus -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-inheritance-Unable-to-locate-method-onAction-tp644p644

Re: T5: this is cool - composition over inheritance

2011-05-04 Thread Howard Lewis Ship
on, informed by the annotation, drives the composition, just as the Java extends keyword drives inheritance. > > On Wed, 04 May 2011 15:34:48 -0300, Adam Zimowski > wrote: > >> Another lovely day with Tapestry! Inspired by Taha's blog entry on >> Tapestry Magic,

Re: T5: this is cool - composition over inheritance

2011-05-04 Thread Thiago H. de Paula Figueiredo
I wouldn't call this composition (IMHO it's a class transformation), but this is really cool and shows how flexible, reusable and all-around awesome Tapestry is. :) On Wed, 04 May 2011 15:34:48 -0300, Adam Zimowski wrote: Another lovely day with Tapestry! Inspired by Taha's blog entry o

T5: this is cool - composition over inheritance

2011-05-04 Thread Adam Zimowski
Another lovely day with Tapestry! Inspired by Taha's blog entry on Tapestry Magic, our app instead of this mess: public class OrderHistoryPage extends AuthenticatedPage looks sexy like never before with this: @RequiresLogin(ssoClass= UserUiBean.class, pageClass= Login.class) public class OrderHi

Re: Form Inheritance

2010-12-16 Thread Kado
Oh sorry, finally I found the problem after a day trying. It was a zone id problem. Nevermind. Thanks! On 12/16/2010 10:44 AM, Kado wrote: Hi, I am working with a form that is used in 3 different places, so I tried to create an abstract form and extends from it. The problem with this is th

Form Inheritance

2010-12-16 Thread Kado
Hi, I am working with a form that is used in 3 different places, so I tried to create an abstract form and extends from it. The problem with this is that Is not working the submit now. Anyone had this problem? Thanks. P.S. I am usign Tapestry 5.1 ---

Re: Complex Question about Templates and Inheritance

2010-06-16 Thread Pierce Wetter
For the record, I found out today that I had to remove the ComponentClassResolver contribution from the library module, and then do both of them in the AppModule: public static void contributeComponentClassResolver(Configuration configuration) { configuration.add(new LibraryMappi

Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Josh Canfield
I wouldn't minding being able to override any module mapping. Your (Pierce's) example is very reasonable. A more general example might be a CMS module that you want to deploy for several clients. It includes a complete working site but needs to be tweaked a bit for clients. Perhaps there is a Login

Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Thiago H. de Paula Figueiredo
On Mon, 14 Jun 2010 14:44:35 -0300, Pierce Wetter wrote: Since core is already "special" it seems like it makes sense to have the ability to do specific overrides. Sure its not as general as being able to say "everything in this package is also in core", but I think overly general is d

Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Pierce Wetter
On Jun 12, 2010, at 9:54 PM, Josh Canfield wrote: >> But I think there should be a mechanism for overriding core components, even >> if you had to do each one explicitly. > > Thiago is right. Currently the way this works is an implementation > detail and not a documented feature so you end up s

Re: Complex Question about Templates and Inheritance

2010-06-13 Thread Nourredine K.
com/users@tapestry.apache.org/msg43088.html [2] http://www.mail-archive.com/users@tapestry.apache.org/msg34196.html Nourredine. -- View this message in context: http://old.nabble.com/Complex-Question-about-Templates-and-Inheritance-tp28858822p28870316.html Sent from th

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Josh Canfield
> But I think there should be a mechanism for overriding core components, even > if you had to do each one explicitly. Thiago is right. Currently the way this works is an implementation detail and not a documented feature so you end up setting yourself up for much pain if it stops working that wa

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 12, 2010, at 1:08 PM, Thiago H. de Paula Figueiredo wrote: > On Sat, 12 Jun 2010 16:41:56 -0300, Pierce Wetter wrote: > >> Well, despite your reservations it seems to be working. Perhaps the other >> modules are loaded before the app module so that >> contributeComponentClassResolver g

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Thiago H. de Paula Figueiredo
On Sat, 12 Jun 2010 16:41:56 -0300, Pierce Wetter wrote: Well, despite your reservations it seems to be working. Perhaps the other modules are loaded before the app module so that contributeComponentClassResolver gets called after the one for AppModule. Looking at the log... That's wh

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 11, 2010, at 8:53 PM, Josh Canfield wrote: >> So in PlatformModule, I would need to do: >> >> public static void >> contributeComponentClassResolver(Configuration >> configuration) { >> configuration.add(new LibraryMapping("paceap", "com.paceap.platform")); >> } >> >> Then in AppMo

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 12, 2010, at 11:09 AM, Jim O'Callaghan wrote: > Pierce, > > The RegexAuthorizer has been removed from more recent snapshots of T5.2.0 - > search the list - I've posted a few questions about it in the last few > weeks. Doh! The formos docs about making a component library are out of dat

RE: Complex Question about Templates and Inheritance

2010-06-12 Thread Jim O'Callaghan
users Subject: Re: Complex Question about Templates and Inheritance On Jun 11, 2010, at 8:53 PM, Josh Canfield wrote: >> So in PlatformModule, I would need to do: >> >> public static void >> contributeComponentClassResolver(Configuration >> configurati

Re: Complex Question about Templates and Inheritance

2010-06-12 Thread Pierce Wetter
On Jun 11, 2010, at 8:53 PM, Josh Canfield wrote: >> So in PlatformModule, I would need to do: >> >> public static void >> contributeComponentClassResolver(Configuration >> configuration) { >> configuration.add(new LibraryMapping("paceap", "com.paceap.platform")); >> } >> >> Then in AppMo

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Josh Canfield
anuel Sugawara wrote: > >> On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: >> >>> Read the bit about template inheritance at the bottom of this page: >>> http://tapestry.apache.org/tapestry5.1/guide/templates.html >>> Although I agree with the sentiment in

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Josh Canfield
aps how to configure exceptions for overrides? Josh On Fri, Jun 11, 2010 at 3:31 PM, Manuel Sugawara wrote: > On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: > >> Read the bit about template inheritance at the bottom of this page: >> http://tapestry.apache.org/tapestry5.1/guide/

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
> If you map your PlatformModule to "core" then your components and > pages can be accessed without a prefix. Your page classes would live > in x.y.platform.pages. > > In PlatformModule.java > public static void > contributeComponentClassResolver(Configuration > configuration) { >configur

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
On Jun 11, 2010, at 3:31 PM, Manuel Sugawara wrote: > On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: > >> Read the bit about template inheritance at the bottom of this page: >> http://tapestry.apache.org/tapestry5.1/guide/templates.html >> Although I agree with th

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Manuel Sugawara
On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: > Read the bit about template inheritance at the bottom of this page: > http://tapestry.apache.org/tapestry5.1/guide/templates.html > Although I agree with the sentiment in that page about not overusing > these features an

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Josh Canfield
Read the bit about template inheritance at the bottom of this page: http://tapestry.apache.org/tapestry5.1/guide/templates.html Although I agree with the sentiment in that page about not overusing these features and preferring composition over inheritance. If you map your PlatformModule to "

Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
d start with just the following: Page.java: package com.paceap.cust; public class Page extends com.paceap.platform.Page { // nothing to begin with. } AComponent.java: public class AComponent extends com.paceap.platform.AComponent { // nothing to begin with } My idea here is

Re: Template Inheritance and Overriding - How to Do It?

2009-03-23 Thread Dragan Djuric
Thanks a lot! :) I briefly looked at that exact page earlier, but missed the part about overriding. Now I've found it. DH-14 wrote: > > Here: http://tapestry.formos.com/nightly/tapestry5/guide/templates.html > Template Inheritance > > > Thanks > DH > > > -

Re: Template Inheritance and Overriding - How to Do It?

2009-03-23 Thread DH
Here: http://tapestry.formos.com/nightly/tapestry5/guide/templates.html Template Inheritance Thanks DH - Original Message - From: "Dragan Djuric" To: Sent: Monday, March 23, 2009 3:44 PM Subject: Template Inheritance and Overriding - How to Do It? > > Howard

Template Inheritance and Overriding - How to Do It?

2009-03-23 Thread Dragan Djuric
is message in context: http://www.nabble.com/Template-Inheritance-and-Overriding---How-to-Do-It--tp22655490p22655490.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Re: [T5] Template Inheritance - Overriding just one block of parent class' template

2008-04-04 Thread Peter Beshai
I am actually doing stuff like that inside the component already. The problem is that my main component is generic, so I can't include it directly in the template. i.e. I have: base component: ManageEntity child component: ManageApplications extends ManageEntity ManageApplications doesn't add an

Re: [T5] Template Inheritance - Overriding just one block of parent class' template

2008-04-04 Thread Josh Canfield
No... you can't extend the template file, at least not yet that I've heard of. You may be able to consider instead of extending the component you could create a container for it that passes the block as a parameter, along with whatever other configuration. Parent template: default stuff in

[T5] Template Inheritance - Overriding just one block of parent class' template

2008-04-04 Thread Peter Beshai
I have a parent component Base and a component Child which extends Base. If I want Child to use Base's template, I cannot include a template file for Child. However, I am interested in overriding just one block of Base's template with Child and I was wondering if there is anyway to do this. Thanks

Re: Feature of Inheritance in Tapestry Template (not only Java)

2007-07-04 Thread Lutz Hühnken
AIL PROTECTED]> wrote: Hi All, I just use Tapestry feature of inheritance in web pages. For example, I could have a BasePage.java which contain single field, @ApplicationState User _userLogged; So all pages will know who logged to the application I setup all the base page class to be of Ab

Feature of Inheritance in Tapestry Template (not only Java)

2007-07-04 Thread Eko S.W.
Hi All, I just use Tapestry feature of inheritance in web pages. For example, I could have a BasePage.java which contain single field, @ApplicationState User _userLogged; So all pages will know who logged to the application I setup all the base page class to be of Abstract type, all field to

Re: Tapestry 5 Component Inheritance and Performance

2007-04-23 Thread Howard Lewis Ship
Inheritance is often over-used in the Java world. The performance impact is quite minimal, nothing to be concerned about. Further, there are optimizations that can be made within framework code to further improve performance (at some point I'll see if they are necessary but I honestly think

Tapestry 5 Component Inheritance and Performance

2007-04-23 Thread bjornharvold
Hi, This is a best practices question. What is the impact of component level inheritance as far as performance is concerned? Is the the best solution to keep components as flat as possible? Thanks bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-Component-Inheritance

Re: using EnhancementWorkers for Specification Inheritance

2006-10-30 Thread Raul Cesar Teixeira
e="tapestry.enhance.inject-specification" instead of before="tapestry.enhance.abstract-property"! > --- Ursprüngliche Nachricht --- > Von: "Mark Lehmacher" <[EMAIL PROTECTED]> > An: tapestry-user@jakarta.apache.org > Betreff: using EnhancementWorkers for S

RE: Inheritance (asset/bean)

2006-06-29 Thread Schulte Marcus
e- > From: Gentry, Michael (Contractor) > [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 29, 2006 3:43 PM > To: Tapestry users > Subject: RE: Inheritance (asset/bean) > > Thanks Kevin. Rather than introduce more gunk, I just won't > refactor the common portions t

Re: Inheritance (asset/bean)

2006-06-29 Thread Kevin Menard
On Thu, 29 Jun 2006 09:43:17 -0400, Gentry, Michael (Contractor) <[EMAIL PROTECTED]> wrote: Thanks Kevin. Rather than introduce more gunk, I just won't refactor the common portions to the superclass. Perhaps I should add inheritance of inject/asset/bean (there are probably oth

RE: Inheritance (asset/bean)

2006-06-29 Thread Gentry, Michael \(Contractor\)
Inheritance appears to be #3 on the wish list already. :-) -Original Message- From: Gentry, Michael (Contractor) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 9:43 AM To: Tapestry users Subject: RE: Inheritance (asset/bean) Thanks Kevin. Rather than introduce more gunk, I

RE: Inheritance (asset/bean)

2006-06-29 Thread Gentry, Michael \(Contractor\)
Thanks Kevin. Rather than introduce more gunk, I just won't refactor the common portions to the superclass. Perhaps I should add inheritance of inject/asset/bean (there are probably others) to the T4.1 wish list ... /dev/mrg -Original Message- From: Kevin Menard [mailto:[

Re: Inheritance (asset/bean)

2006-06-28 Thread Kevin Menard
On Wed, 28 Jun 2006 16:39:25 -0400, Gentry, Michael (Contractor) <[EMAIL PROTECTED]> wrote: It wouldn't inherit in the subclass pages, though. Is there any way to get this to inherit? (Also, beans didn't seem to inherit, either. I already know injection doesn't.) I don't think it's doable

Inheritance (asset/bean)

2006-06-28 Thread Gentry, Michael \(Contractor\)
I was doing a little cleanup and am curious about something. I have a common base page all of my pages inherit from, and I tried adding to the super's .page: It wouldn't inherit in the subclass pages, though. Is there any way to get this to inherit? (Also, beans didn't seem to inherit, either