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
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
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:
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
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
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
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
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
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
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
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
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
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
> 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
. 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 -
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
{
mponentResources;
> >
> > My html looks like
> >
> > > t:enabled="showRepairBatchList" t:selectedItemId="selectedItemId"
> > t:serialNum="selectedSerialNum" t:repair="rep
; t:selectedItemId="selectedItemId"
> t:serialNum="selectedSerialNum" t:repair="repair"
> t:selectedBatchedStatus="selectedBatchStatus"/>
>
> I get the following error
>
> Parameter(s) 'id, selectedBatchStatus' are
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
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
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
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,
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
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
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
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
---
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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/
> 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
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
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
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 "
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
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
>
>
> -
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
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
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
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
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
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
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
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
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
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
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
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
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
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:[
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
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
86 matches
Mail list logo