Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Geoff Callender
This example is very simple but easily enhanced: http://jumpstart.doublenegative.com.au/jumpstart/together/withlayout/helloworld But I'm not clear on whether it achieves the functionality/behaviour that you require. Geoff On 3 May 2012 10:34, netdawg wrote: > All this theoretical discussion a

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
All this theoretical discussion aside, what I am trying to do is this -- create a tabbed menu - should have mentioned that earlier, sorry...I thought I was simplifying the discussion, but it got carried off on a different path Specifically, http://unraveled.com/publications/css_tabs/ CSS Tabs 2.0

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
OK. Lets leave it at that, I guess. Agree to disagree ;-). 1. Polymorphism is not about implementation at all. It is about interfaces, which is what Components can aspire to be, sort of. In that case, components, do not get tied to page properties - they use only those available - and if n

Help with Dynamic Number of Form Elements

2012-05-02 Thread Ryon Day
Hello all! First time poster and rest assured that I've used the search functionality on Nabble to see if there are similar problems to mine, and I haven't yet stumbled across my own use case yet (and I find that to be a huge surprise!). Anyway, I want to state my problem in a precise and unamb

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 May 2012 19:19:43 -0300, netdawg wrote: For the component to pick up page property would make it "Polymorphic". Regarding your mention of polymorphism and quoting Princess Bride, "I do not think it means what you think it means.". Components, for instance, can then just be a "s

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 May 2012 18:46:59 -0300, netdawg wrote: BTW, I just posted a citation which describes the componentResources...which is already able to pull up the pageName...this is very useful in authoring solid code at the page level. Why would componentResources have the pagename attribut

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
For the component to pick up page property would make it "Polymorphic". Components, for instance, can then just be a "shape" with an abstract draw() method. The page will tell it what the shape is and what exactly the draw method will do or for that matter what those parameters are - in case o

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
Right back at you guys on citations ;-). What principles is this breaking? BTW, I just posted a citation which describes the componentResources...which is already able to pull up the pageName...this is very useful in authoring solid code at the page level. Why would componentResources have the

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 May 2012 17:12:38 -0300, netdawg wrote: It violates the self-contained principle for components very badly. Sorry - Disagree. Components are NOT meant to be "self-contained". They are supposed to govern sub-components. [Citation needed] In fact, prop:componentResources.pageNa

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 May 2012 16:59:41 -0300, netdawg wrote: By parameters do you mean - pass dynamic run-time (request) parameters to a page that is picked up instead by the containing component? No. Tapestry component parameters. There's no reason for you to use request attribute in a pure Tapestr

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Lance Java
I totally agree with Thiago... you are trying to break tapestry's (very sensible) principles. Take a look at the link I sent you originally... pass a component parameter (not a request parameter) from the page to the layout or use the Environment. On 2 May 2012 21:06, netdawg wrote: > OK...I th

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
In other words, why is this "bad"? What specific dangers, problems do you see? I see only more convenience. If, by bad, you mean in poor taste - just don't use it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Can-Component-Template-be-Informed-by-Page-Class-tp568139

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
From: http://tapestry.apache.org/link-components-faq.html Every component has an extra property, componentResources, added to it it's the instance of ComponentResources that represents the link between your code and all of Tapestry's structure around your class. . As an added benefit,*

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
>>> It violates the self-contained principle for components very badly. Sorry - Disagree. Components are NOT meant to be "self-contained". They are supposed to govern sub-components. In fact, prop:componentResources.pageName is a step in the right direction. I am just asking to extend it f

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
OK...I think I got it...this works...swapping the property to the component instead and have it intercept the page request Layout.java : public class Layout { @ActivationRequestParameter @Property private String pageProperty= "default"; } Index.java is now empty But Index page wi

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
By parameters do you mean - pass dynamic run-time (request) parameters to a page that is picked up instead by the containing component? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Can-Component-Template-be-Informed-by-Page-Class-tp5681397p5681479.html Sent from the Ta

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 May 2012 16:33:05 -0300, netdawg wrote: This may be a somewhat of a useful stand-in for the pageProperty... ${prop:componentResources.pageName} It gets you the page name...and can be put in the component. However, something like this would be useful ${prop:componentResources.pageName

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 May 2012 16:16:14 -0300, netdawg wrote: Basically, is there is a way for a component to "inherit" properties of child component (page)? Pages cannot be child of components, so your question doesn't make sense. For communication between pages, components and mixins, you can use p

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
This may be a somewhat of a useful stand-in for the pageProperty... ${prop:componentResources.pageName} It gets you the page name...and can be put in the component. However, something like this would be useful ${prop:componentResources.pageName.pageProperty} What do you guys think - JIRA

Re: Can Component Template be Informed by Page Class

2012-05-02 Thread Lance Java
It might be possible but it's not recommended ;) Can you just pass a property from the page to the layout? http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent

Can Component Template be Informed by Page Class

2012-05-02 Thread netdawg
Would like put a property in the component that will be rendered only in the context of a page, picking up, say, a page property. To illustrate, lets say we want Layout.tml to have the following pseudo-html-element: Layout.java is empty. Index.java: public class Index { @Property pr

Re: Igor Drobiazko Book

2012-05-02 Thread Igor Drobiazko
Sorry for the late reply. I somehow managed to miss this mail. I had a big progress until end of February / beginning of March. Unfortunately nothing happened between March and now, but I'm back on track. I'd love to tell you any dates, but I don't want to disappoint anybody if I miss the date agai

Re: [ANN] Tapestry article in Javamagazin (German)

2012-05-02 Thread Igor Drobiazko
Great news, Christian. Gonna buy a copy of the magazine asap. On Wed, May 2, 2012 at 6:33 PM, derkoe wrote: > The first article of my 4-part series in German Javamagazin was published > today: > http://it-republik.de/jaxenter/java-magazin-ausgaben/JSF-2.2-000500.html > > Hope that'll help gettin

Re: [ANN] Tapestry article in Javamagazin (German)

2012-05-02 Thread Howard Lewis Ship
Well, I wish I could read it! On Wed, May 2, 2012 at 9:33 AM, derkoe wrote: > The first article of my 4-part series in German Javamagazin was published > today: > http://it-republik.de/jaxenter/java-magazin-ausgaben/JSF-2.2-000500.html > > Hope that'll help getting Tapestry more popular in Austri

[ANN] Tapestry article in Javamagazin (German)

2012-05-02 Thread derkoe
The first article of my 4-part series in German Javamagazin was published today: http://it-republik.de/jaxenter/java-magazin-ausgaben/JSF-2.2-000500.html Hope that'll help getting Tapestry more popular in Austria, Germany and Switzerland. (for non-German speakers: Javamagazin is the biggest Germa

Re: Apache Tapestry, Welcome to CodeMaps!

2012-05-02 Thread Abhishek Rakshit
We have fixed the issue where some of the Tapestry code was missing. The complete Tapestry code is now available on CodeMaps. Please add any information which you think might be helpful to the Tapestry users, like links to tutorials, code snippets or othe

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Jochen Frey
+1 And +1 on hibernate 4.1+ ... 3.6 is buggy for us. -- j On May 2, 2012, at 6:08 AM, Robert Zeigler wrote: > If the only reason we're moving to 1.6 is to support a newer version of > hibernate in tapestry-hibernate, then I'm -1. I specifically know of a > corporation out there using tapestr

Re: Reading out a Component's formal parameters' values

2012-05-02 Thread trsvax
In that case I'd use an Environmental. Have t:mycomp push an object into the environment and the validator can access it. If you don't want do modify t:mycomp you could use a mixin to push the object into the environment. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read

Re: websites/apps powered by tapestry5

2012-05-02 Thread Michael Gentry
http://www.qualidator.com/WQM/en/Reports/GeneratorInfo.aspx?generatorName=Apache%20Tapestry%20Framework Probably not detailed enough, though ... On Sat, Apr 28, 2012 at 9:00 AM, Bob Harner wrote: > Relatedly, does anyone know how to do an Internet search for sites that > have a certain value in

Re: Reading out a Component's formal parameters' values

2012-05-02 Thread wout86
Actually, the validator will be applied to a component that's one level deeper than my custom component (for instance: ; where customvalidator requires the values of a and b). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reading-out-a-Component-s-formal-parameters-values

Re: Reading out a Component's formal parameters' values

2012-05-02 Thread wout86
Actually, the validator will be applied to a component that's one level deeper than my custom component (for instance: ; where customvalidator requires the values of a and b). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reading-out-a-Component-s-formal-parameters-values

Re: Reading out a Component's formal parameters' values

2012-05-02 Thread trsvax
If you are just writing a validator for one specific component and not a general purpose one you can use a mixin. They can have access to the component parameters via @BindParameter -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reading-out-a-Component-s-formal-parameters-

Reading out a Component's formal parameters' values

2012-05-02 Thread wout86
Hi, I was wondering whether it's possible to read out a *Component*'s formal parameters' values? Up till now, I was only able to find the /getInformalParameter(String name, Class type)/ function in *ComponentResources*, which only allows to read out informal parameters. Some Context: I'd like to

Re: Sidepanel with pagespecific items

2012-05-02 Thread Lance Java
Given your example... The Simulation and Dashboard pages could implement PolicyProvider Then, in your Layout public class Layout { @InjectPage private Page page; public Policy getPolicy() { if (page instanceof PolicyProvider) { return ((PolicyProvider) page).getPolicy();

Re: Sidepanel with pagespecific items

2012-05-02 Thread Lance Java
I'm not 100% exactly what you're trying to do but it sounds like you should make components for the bits you want to re-use and then pass a block parameter to the layout. Take a look at the RenderCommand class too. This is a way of providing markup programatically and it may make sense for you to

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Robert Zeigler
If the only reason we're moving to 1.6 is to support a newer version of hibernate in tapestry-hibernate, then I'm -1. I specifically know of a corporation out there using tapestry that still uses java 1.5. Where there's one, there are many. I suppose we could write them off as "stuck on tapest

Re: Sidepanel with pagespecific items

2012-05-02 Thread nquirynen
Hi, Thanks that's what I needed. I have now the global items in my Layout component. And I can add some from within a Page as a parameter. My code at the moment (simplified): *Layout.tml:* [items that are shown on every page] *Layout.java:* @Parameter private Block sidePanel; public Objec

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Bob Harner
I favor switching to 1.6 when there is a significant benefit to doing so, and not before. I wouldn't want to give anybody a reason not to use this great framework. On May 2, 2012 2:05 AM, "Kalle Korhonen" wrote: > When in doubt, let's ask the community: would you object to requiring > JRE 1.6 for

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Geoff Callender
+1. More than enough time has passed since Java 5 EOL (2009). I also agree with bumping up Hibernate to 4. On 02/05/2012, at 4:05 PM, Kalle Korhonen wrote: > When in doubt, let's ask the community: would you object to requiring > JRE 1.6 for running Tapestry 5.4? So far, T5 has run on JRE 1.5 b

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+hDU0ACgkQbmZsMyUPuXTuCgCeNSLptu3MMhsSrlKcLZVo3Yw6 KL0AoODvsdVuEYvMn1MSeTF3r2UvVVHR =nqZF -END PGP SI

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread trsvax
+1 -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-do-you-feel-about-requiring-JRE-1-6-for-Tapestry-5-4-tp5679713p5680143.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To uns

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Greg Pagendam-Turner
Perhaps bump the Hibernate version to 4.1 too Regards, Greg On 02/05/2012, at 6:44 PM, Taha Hafeez Siddiqi wrote: > +1 > > On May 2, 2012, at 2:10 PM, Christian Riedel wrote: > >> +1 >> >> >> Am 02.05.2012 um 10:21 schrieb Lance Java: >> >>> +1 >>> >>> -- >>> View this message in cont

Re: Sidepanel with pagespecific items

2012-05-02 Thread Lance Java
The example here http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent shows how to use the delegate component to have a default "left" block which can be overridden. -- View this message in context: http://tapestry.1045711.n5.nabble.c

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Taha Hafeez Siddiqi
+1 On May 2, 2012, at 2:10 PM, Christian Riedel wrote: > +1 > > > Am 02.05.2012 um 10:21 schrieb Lance Java: > >> +1 >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/How-do-you-feel-about-requiring-JRE-1-6-for-Tapestry-5-4-tp5679713p5679911.html >> Sent fro

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Christian Riedel
+1 Am 02.05.2012 um 10:21 schrieb Lance Java: > +1 > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/How-do-you-feel-about-requiring-JRE-1-6-for-Tapestry-5-4-tp5679713p5679911.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --

Sidepanel with pagespecific items

2012-05-02 Thread nquirynen
Hi, In my current project I want to add some kind of side bar with some extra functions/data in the form of icons with a panel that slides open (javascript). These items can be global or more page specific. Example: Search: visible on every page Notes: visible on specific pages, containing data b

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Lance Java
+1 -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-do-you-feel-about-requiring-JRE-1-6-for-Tapestry-5-4-tp5679713p5679911.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To uns

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Chris Mylonas
Java 1.5 was EOL in 2009 by the looks of it. There are no security updates for this release. Supporting an EOL product with no security fixes can only affect the integrity of Tapestry and the containers that it is run in. Java 1.6 is EOL November this year (2012) http://www.oracle.com/technetwork

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Peter Stavrinides
+ 1 - Original Message - From: "Dimitris Zenios" To: "Tapestry users" Sent: Wednesday, 2 May, 2012 10:32:14 AM Subject: Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4? +1 from me also On Wed, May 2, 2012 at 10:25 AM, Markus Grell wrote: > With Java 6 released end

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Dimitris Zenios
+1 from me also On Wed, May 2, 2012 at 10:25 AM, Markus Grell wrote: > With Java 6 released end of 2006, I can't see any point in supporting an > older release for a new Tapestry version. > > Markus > >> When in doubt, let's ask the community: would you object to requiring >> JRE 1.6 for running

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Markus Grell
With Java 6 released end of 2006, I can't see any point in supporting an older release for a new Tapestry version. Markus > When in doubt, let's ask the community: would you object to requiring > JRE 1.6 for running Tapestry 5.4? So far, T5 has run on JRE 1.5 but > the time for requiring 1.6 will

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Kristian Marinkovic
+1 let's switch to 1.6 as many new/modern frameworks already require it anyways. g, kris On Wed, May 2, 2012 at 8:05 AM, Kalle Korhonen wrote: > When in doubt, let's ask the community: would you object to requiring > JRE 1.6 for running Tapestry 5.4? So far, T5 has run on JRE 1.5 but > the time