Re: Idea for 5.4: ControlGroup mixin

2012-12-19 Thread trsvax
I would prefer a drop in module also. I use Bootstrap for new projects but I have some old ones that do not. If the base components change their HTML output this would be a backward compatibility problem for me. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Idea-for-5-4

Re: Idea for 5.4: ControlGroup mixin

2012-12-14 Thread trsvax
I did upgrade from Tapestry's default template to Bootstrap 1 then 2 and it caused me to rethink the whole way I was doing things. When I built the Bootstrap 2 module I created one mixin called framework and used a worker to add it to all components. Then I created a service to handle the framewo

Re: Idea for 5.4: ControlGroup mixin

2012-12-14 Thread trsvax
I'm all for (optionally) getting rid of boiler plate and I think there is a way to get rid of even more here. i would suggest putting the mixin at the form level and have it control all the contained elements. For example or This makes it easy to switch between form types and makes your code

Re: 5.4 JavaScript: Explicit vs. Unobtrusive initialization

2012-11-08 Thread trsvax
If I understand your question correctly you are trying to figure out if it's better to initialize the javascript elements on the client side by id or by some other kind of selector. I use both Bootstrap and the Facebook apis and they both use data elements and then automatically initialize the var

Re: Documentation via Jekyll

2012-11-02 Thread trsvax
I'd like to help with this effort and I submitted a CLA. I don't really care how it's hosted but I do have one comment. Before Tapestry I used ACS and it had some of the best documentation I've seen. I think there were two reasons for this. 1. It was considered a priority 2. The documentation wa

Re: Abstract layer or jquery all the way?

2012-10-27 Thread trsvax
> - Service Provider Interface? > - Script Programming Interface? > - Single Page Interface? It does seem a definition would be nice. I would say #1 also because I think the API spills over into the Java side. For example the current javascript deals with initializing the client side of compone

Re: Abstract layer or jquery all the way?

2012-10-26 Thread trsvax
I hope this is the goal also and I guess my question is what does make it easy mean? If you wanted to use Ext JS components what would you want would you want an abstraction layer to do? I would just grab the compressed Javascript, put it on a server and write some Java component interfaces. I woul

Re: Abstract layer or jquery all the way?

2012-10-26 Thread trsvax
>On Fri, 26 Oct 2012 10:47:35 -0200, trsvax <[hidden email]> wrote: > >> 1. With things like mod_pagespeed now appearing it's not clear to me the >> work of optimizing page load times belongs in the framework. Since there >> is a common solution development t

Re: Abstract layer or jquery all the way?

2012-10-26 Thread trsvax
I'm glad you asked this question. Here are my thoughts. I was never really a big Javascript fan and I used Tapestry for many years without writing a single line of Javascript. As time passed it became obvious that this Javascript thing was here to stay and the current world used jQuery so I starte

Re: Building Tapestry from Source

2012-10-02 Thread trsvax
I made it thru the process with just a couple more comments 1. git format-patch origin/trunk should be git format-patch origin/master 2. I had a couple of problems with Eclipse not getting the project dependencies right 3. All the @Overrides produced a compile error so I had to change my compiler

Re: Building Tapestry from Source

2012-10-02 Thread trsvax
Thanks, Very useful for getting started. Whatever compiler problem I was having the other day just went away and I can build now. I'm going to attempt submitting a patch for TAP-2006. I'm far from a git expert but should git branch TAP5-123 origin/trunk be git branch TAP5-123 origin/master

Is there a guide to building Tapestry5 from source?

2012-09-26 Thread trsvax
I've got a bunch of random patches I'd like to contribute. My plan was to git the Tapestry5 source, build it, then apply my changes so I can generate patches. I looked for a build document but I could not find one. From what I can tell ./gradlew build should build the project. It runs for a whi

Re: Tapestry 5.3.5 BACK OUT Prototype 1.7.1?

2012-09-07 Thread trsvax
I try and stay current since upgrades have been mostly painless. In fact so far it's been 3rd party library upgrades such as Hibernate that have caused me the most problems. I guess the Hibernate one was necessary and now it looks like Prototype might introduce issues so I'll throw on my 2 cents.

Re: FYI: Git link on the community page is broken

2012-08-31 Thread trsvax
I don't think I currently can, but I don't mind doing it. Do I need to send it a contributor agreement? -- View this message in context: http://tapestry.1045711.n5.nabble.com/FYI-Git-link-on-the-community-page-is-broken-tp5715937p5715952.html Sent from the Tapestry - Dev mailing list archive at

FYI: Git link on the community page is broken

2012-08-31 Thread trsvax
The link on the page is https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git%3Ba%3Dsummary but should be https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=summary -- View this message in context: http://tapestry.1045711.n5.nabble.com/FYI-Git-link-on-the-community-page-is-broken

Re: META-INF/assets/ in 5.4

2012-07-27 Thread trsvax
Maven seems to create a directory called maven in META-INF. Perhaps the correct approach is to put a directory called tapestry in META-INF and put assets in it. If the actual files should not be in META-INF it could contain a file called assets that contains a pointer to the real asset. -- View

Re: Build failed in Jenkins: tapestry-5.3-freestyle #26

2012-05-03 Thread trsvax
I believe Rhino is built into 1.6 jvm. I'm guessing if you compile to byte code >= 1.6 then you have Rhino and don't need a dependency. But that might not help anything since things like yuicompressor seem to use a modified version of Rhino. -- View this message in context: http://tapestry.10457

Re: Build failed in Jenkins: tapestry-5.3-freestyle #26

2012-05-02 Thread trsvax
There are some useful features in 1.6. It has some new XML capabilities but perhaps more interesting it has scripting support. I've never used it but there have been discussions about supporting Less in 5.4 and it needs Javascript. It is a tough call -- View this message in context: http://tapes

Re: Script Loaders, Modules, and other JS thoughts

2012-05-02 Thread trsvax
Sometimes it's nice just to include some existing jQuery script and use without having to write a module/component. The problem on Ajax calls is you may want to call it if there are elements in the zone that need to be initialized. Perhaps on the page update it's $('.zoneLink').init(); and on t

Re: Build failed in Jenkins: tapestry-5.3-freestyle #26

2012-05-02 Thread trsvax
I voted +1 even though I have a workstation that is stuck on a particular Java major/minor version because I have a dependency on some mainframe Java browser plugin that only works on one specific Java release. I would say there is no reason to encourage this behavior and I suspect the number of p

Re: Script Loaders, Modules, and other JS thoughts

2012-05-02 Thread trsvax
One thing that would be helpful along with using data- would be the ability to run a script once. Perhaps something like: javascriptsupport.runOnce("('.zoneLink').init()"); So no matter how many times you include the component you only get one init call. -- View this message in context: http://

Re: Script Loaders, Modules, and other JS thoughts

2012-05-02 Thread trsvax
I'm not in the lots of scripts/css fan club. While I think you can construct a benchmark that shows this to be faster the real world is much more complicated when you take into account caching. I also think CDNs are cheap enough that it does not make sense to load assets from the same web server as

Re: HeavyComponent

2012-03-30 Thread trsvax
You are returning an object of type java.awt.Component from an onActivate method. That's not supported. -- View this message in context: http://tapestry.1045711.n5.nabble.com/HeavyComponent-tp5602655p5607821.html Sent from the Tapestry - Dev mailing list archive at Nabble.com. --

Re: Informal Parameters considered harmful

2012-03-24 Thread trsvax
I've been fighting this problem for a couple of months now and I thought I had it solved until last Thursday when I started writing a lot of test cases. I personally think the Tapestry's don't mind the man behind the curtain is the correct approach and it almost always does exactly what I would exp

Informal Parameters considered harmful

2012-03-23 Thread trsvax
First I'll say Tapestry 5 is the best most flexible framework I've ever used but, I've voiced my opinion about informal parameters in the past and I promise this is the last time. I understand the value of the ad hoc way parameters are passed to components/mixins but it seems like there should be

tapestry.execution-mode default

2012-03-22 Thread trsvax
I'm trying to use tapestry.execution-mode in a module and I get this if it's not defined: SEVERE: Symbol 'tapestry.execution-mode' is not defined. SEVERE: Operations trace: SEVERE: [ 1] Realizing service ExcludeVisitor SEVERE: [ 2] Instantiating service ExcludeVisitor implementation via com.trsvax

Re: How can I get the value from query parameter

2012-02-10 Thread trsvax
FYI: It's better to ask these kinds of questions on the user list. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-can-I-get-the-value-from-query-parameter-tp5472015p5472061.html Sent from the Tapestry - Dev mailing list archive at Nabble.com. -

Re: How can I get the value from query parameter

2012-02-10 Thread trsvax
Put the following in your page. @ActivationRequestParameter private String uniqueValue; You can use types other than String. @ActivationRequestParameter private Integer uniqueNumber; -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-can-I-get-the-value-from-query-pa

Re: Before I file a JIRA against SupportsInformalParameters

2012-02-07 Thread trsvax
I've been thinking about this a bit also. I think the simplest way to move forward would be to add a namespace parm like this @SupportsInformalParameters(namespace=true) This would cause the marked component/mixin to only claim it's namespaced parameters. The ones without a namespace would work t

Re: Before I file a JIRA against SupportsInformalParameters

2012-02-06 Thread trsvax
I ran across this implementing a module that allows the Twitter Bootstrap framework to be used with Tapestry. I created a mixin called FW (framework) that supports informal parameters and used a worker to attach it to every component. The mixin is simple. It just wraps the component in a new elemen

Re: Before I file a JIRA against SupportsInformalParameters

2012-02-06 Thread trsvax
>From what I can tell if you have a mixin and a component that support informal parameters the default namespace parameters will always go to the mixin. This contradicts the documentation which seems to say they should go to the component. Things get more complicated when multiple mixins support

Re: Convert Tapestry 4 to Tapestry 5

2012-01-31 Thread trsvax
I also just run 4 and 5 in the same project and convert when I get the chance. It's easy to share session data between the two. The only real problem is I have 2 different templates I need to keep in sync. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Convert-Tapestry-4-t

FYI: Component Reference Link Broken

2011-10-19 Thread trsvax
The component reference link for 5.2.6 is broken on the documentation page. The page is http://tapestry.apache.org/documentation.html The link is http://tapestry.apache.org/current/tapestry-core/ref/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/FYI-Component-Referenc

Re: Would it be possible (or desirable) to add a TapestryCoreServices Interface for 5.3 beta?

2011-08-24 Thread trsvax
While http://tapestry.apache.org/service-status.html is useful for debugging I don't think it's a good idea to use it as the list of services because there are internal ones as well as public ones listed and that's where the trouble starts. I do agree about having lots of code completions but what

Re: Would it be possible (or desirable) to add a TapestryCoreServices Interface for 5.3 beta?

2011-08-24 Thread trsvax
I was not envisioning anything very complicated just an Interface with all of the non deprecated Interfaces in org.apache.tapestry5.services. I was not looking for any new functionality. To me code completion works much like reverse documentation. If I want a ServletContext I would start typing S

Re: Would it be possible (or desirable) to add a TapestryCoreServices Interface for 5.3 beta?

2011-08-24 Thread trsvax
I tried to steer clear of calling this a documentation "issue" in my post because I while this seems like a documentation problem I don't think more documentation is the answer because an Interface is really tied to the compiler and documentation is not. So it really does two things documentation c