Blackbird getting in the way of troubleshooting javascript errors in ChenilleKit components

2009-11-03 Thread Dave Greggory
I'm trying to upgrade to 5.1, and everything is complete except for chenillekit components (Window and FCKEditor). I'm getting a lot of javascript errors from them, but unfortunately the Blackbird console is getting in the way of debugging them. When a javascript error occurs, I would like it to

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-11-03 Thread Dave Greggory
Thanks for the link to jars, Kalle. Very helpful for those of us that do not use Maven. By any chance, does anyone know where I can get the source jars/zips as well for the 1.2 release? Has anybody gotten ChenilleKit 1.2 working with Tapestry 5.1? Specially Window and FCKEditor components? I'm

Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry

2009-10-16 Thread Dave Greggory
I'm also looking for the ability to put all my assets (and Tapestry's) on a CDN, so that static content do not need to be served by the app server. While combining assets is an interesting feature, I would much rather prefer to have all static content on a CDN. Something about CDN functionality

Re: Tapestry5.1 Upgrade Issue

2009-10-14 Thread Dave Greggory
I created a bug (https://issues.apache.org/jira/browse/TAP5-892). So when I use tapestry-spring-5.0.18 with Tapestry 5.1.0.5, it works fine. Whatever the problem is, it seems to have been introduced in the new version of tapestry-spring. Hopefully, this can get fixed soon. :) ---

Re: Tapestry5.1 Upgrade Issue

2009-10-12 Thread Dave Greggory
ether that works. It wouldn't be ideal to only do a partial upgrade but I'll try it until I get any replies. - Original Message From: Dave Greggory To: Tapestry users Sent: Mon, October 12, 2009 11:18:05 AM Subject: Tapestry5.1 Upgrade Issue I'm trying to upgra

Tapestry5.1 Upgrade Issue

2009-10-12 Thread Dave Greggory
I'm trying to upgrade to Tapestry 5.1 from 5.0.18. The Select field component is giving me some errors. I'm using a Spring application context that is externally maintained (tapestry.use-external-spring-context) and have 4 instances of java.util.Locale (named locale_DE, locale_FR, locale_UK, lo

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-17 Thread Dave Greggory
the interface is NOT in an internal package, than its public API. Despite my best efforts, there's a lot of that! :-) On Thu, Sep 17, 2009 at 11:48 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 17 Sep 2009 15:28:36 -0300, Dave Greggory > escreveu:

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-17 Thread Dave Greggory
Thanks for the response, Stefan. A simple BeanEditForm unfortunately won't suffice for me as indicated in my previous posts, I'm doing something a little more tricky. But thanks anyhow. Using a ComponentSource to retrieve the components I need seems to be solving the problem. I re-ran the same

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-16 Thread Dave Greggory
large number of ComponentPageElements with it. Is that an accurate? - Original Message From: Dave Greggory To: Tapestry users Sent: Monday, September 14, 2009 6:44:27 PM Subject: Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC) I crea

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Dave Greggory
I created a ComponentLoader component (below) based off of PropertyEditor component and I got it working for the top most of layer of my ubercomponent-stack. It uses PropertyEditBlock page and the existing BeanBlockSource to provide the right Block containing my layouts / components. Does it lo

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-11 Thread Dave Greggory
nk it will solve your problem. You need a little re-architecting of your approach to get the component instance count back under control. Where are you located? On Fri, Sep 11, 2009 at 12:03 PM, Dave Greggory wrote: - To unsu

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-11 Thread Dave Greggory
er forced GC) Em Fri, 11 Sep 2009 12:47:23 -0300, Dave Greggory escreveu: > I have T5.0.18 running in Tomcat 5.5 with Java 1.5 32-bit -Xms2048m > -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=128m. Have you tried 5.1.0.5? --Thiago H. de Paula Figueiredo Independent Java consultant,

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-11 Thread Dave Greggory
fter all (though that 392,000 instances seems troublesome). On Fri, Sep 11, 2009 at 8:47 AM, Dave Greggory wrote: > I have T5.0.18 running in Tomcat 5.5 with Java 1.5 32-bit -Xms2048m > -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=128m. > > Configured as: >tapestry.page-pool

[T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-11 Thread Dave Greggory
I have T5.0.18 running in Tomcat 5.5 with Java 1.5 32-bit -Xms2048m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=128m. Configured as: tapestry.page-pool.active-window = 5 m tapestry.page-pool.hard-limit = 10 Ran a JMeter Load Test with 10 concurrent users Ramp-up time of 6

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-19 Thread Dave Greggory
I'm attempting to contribute my own RequestSecurityManager, but if anybody else has a better idea where I don't have to touch internal stuff let me know. - Original Message ---- From: Dave Greggory To: Tapestry users Sent: Tuesday, May 19, 2009 10:51:41 AM Subject: Re: [t5.0.

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-19 Thread Dave Greggory
ctions working in this situation? Thanks so much. Dave - Original Message From: Dave Greggory To: Tapestry users Sent: Monday, May 18, 2009 12:16:36 PM Subject: Re: [t5.0.18] Secure Annotation / BaseURLSource Don't worry about it, turns out our internal network is screwed up..

Re: Checkboxes within a loop in a form

2009-05-18 Thread Dave Greggory
I believe you will need a submit notifier component. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/SubmitNotifier.html Wrap the submit notifier around and use the AfterSubmit event to capture its values. - Original Message From: mar

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Dave Greggory
Don't worry about it, turns out our internal network is screwed up... connections between users and the load balancer is secure, but not between load balancer and app server. - Original Message From: Dave Greggory To: Tapestry users Sent: Monday, May 18, 2009 11:56:56 AM Su

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Dave Greggory
obviously, it is. - Original Message From: Martin Strand To: Tapestry users Sent: Monday, May 18, 2009 11:40:40 AM Subject: Re: [t5.0.18] Secure Annotation / BaseURLSource Just a guess... perhaps baseSecureURL is not an https url? On Mon, 18 May 2009 15:15:50 +0200, Dave Greggory

[t5.0.18] Secure Annotation / BaseURLSource

2009-05-18 Thread Dave Greggory
I've been using BaseURLSource(since behind a firewall/load balancer) fine all this time, and recently I needed a secure page, so I added the @Secure annotation on that page. But that page is no longer working because @Secure annotation ends up sending continuous redirects. What am I doing wrong

Re: [t5.1.0.2] Migration problem as LinkFactory is no longer present

2009-04-09 Thread Dave Greggory
can easily get at the page name, event name, event id, etc. when you're rewriting links. I'm not 100% satisfied with the naming; and I'm still deciding on whether directly exposing the request parameter objects is the "right thing" to do. But I'll commit it to

Re: [t5.1.0.2] Migration problem as LinkFactory is no longer present

2009-04-09 Thread Dave Greggory
Hi Andy, Thanks for the suggestion, but I'm not quite sure what you're doing when you're advising the ComponentEventLinkEncoder. Since the internals are much more different, I'm not sure how to advise the createPageRenderLink method. If you don't mind, can you provide details of what you're do

[t5.1.0.2] Migration problem as LinkFactory is no longer present

2009-04-09 Thread Dave Greggory
We needed to contribute a custom version of LinkFactory to meet a business need. I realize that it was internal and was subject to change, but now that there is no LinkFactory present in 5.1 I would like some help figuring out how to implement the same functionality. We need to be able to spec

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Dave Greggory
Just use RenderSupport. I just built my own component named asset attacher for this purpose. public class AssetAttacher { @Parameter(required = true, allowNull = false, defaultPrefix = BindingConstants.LITERAL) private StringassetURL; @Parameter(required = true, a

Re: Non Standard SSL port on Tapestry App

2009-03-26 Thread Dave Greggory
d SSL port on Tapestry App Does the Base URL Support section of this page suit your needs? http://tapestry.apache.org/tapestry5/guide/secure.html On Wed, Mar 25, 2009 at 9:56 PM, Dave Greggory wrote: > > Tapestry does not work when using a non standard SSL port. All the form submissions

Non Standard SSL port on Tapestry App

2009-03-25 Thread Dave Greggory
Tapestry does not work when using a non standard SSL port. All the form submissions and events do not send the request properly. We're using a standard port in tomcat, but a load balancer that sits in front of tomcat server forces all requests to go through a non standard SSL port. This is due

Re: Getting value of field in Add Row section in AddRow event for Ajax Form Loop

2009-03-12 Thread Dave Greggory
no way to do this? is it even possible to have a select field and a custom eventlink like component that fires an event with the selected value from select field? - Original Message From: Dave Greggory To: Tapestry users Sent: Wednesday, March 11, 2009 4:55:32 PM Subject

Re: Implication of client side redirect

2009-03-11 Thread Dave Greggory
Yeah, you're right about that. Still I don't like the redirect-after-post for validation failures because it needs the form data to be persisted somehow between the two requests. We can solve it partially by using client-side persistence for simple data, but for complex object hierarchies, th

Re: Implication of client side redirect

2009-03-11 Thread Dave Greggory
Redirect-after-post does not really solve that problem because if you hit Back button twice, you still get the same problem. - Original Message From: nillehammer To: Tapestry users Sent: Wednesday, March 11, 2009 7:15:38 PM Subject: Re: Implication of client side redirect Hi Dave,

Re: Implication of client side redirect

2009-03-11 Thread Dave Greggory
How does the redirect-after-post mechanism affect a servlet based or portlet based Tapestry system? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.

Re: Implication of client side redirect

2009-03-11 Thread Dave Greggory
While I highly agree the redirect-after-post pattern is a good practice. It only makes sense in some situations. It makes sense to use it when you're submitting a form and the form submission was successful (ie. Tapestry "success" event fires). But if validation fails, Tapestry should not be us

Getting value of field in Add Row section in AddRow event for Ajax Form Loop

2009-03-11 Thread Dave Greggory
I have this ajax form loop with a select field in the AddRow section. ${currentUrl} Add URL and in the component class I have: @Property private String selectedUrl; @Property private String current

Re: Invoking a custom show javascript method for a Zone

2009-03-04 Thread Dave Greggory
yeah I tried both show and update methods, didn't really work. I finally got it to work by just adding the following to my event link. onclick="editWindow.show('editWindow'); resizeWindow(500, 500);" So right after (or is it before) it calls the event method it also shows the Window. Not ideal

Re: Invoking a custom show javascript method for a Zone

2009-03-03 Thread Dave Greggory
Thanks for the suggestion, Igor. Unfortunately, it didn't work. So I tried doing the following in AfterRender. renderSupport.addScript("var Pirate = Class.create(Tapestry.ElementEffect, {" + " showeditorzone : function(element) {"

Invoking a custom show javascript method for a Zone

2009-03-03 Thread Dave Greggory
I'm having trouble invoking my own javascript method after a Zone is rendered from an event. I have a Zone inside a ChenilleKit Window. And I have an event link that updates the Zone. That works fine, and clicking on a different link to display the Chenille Kit Window (containing the zone) als

Re: [T5] How to have a N number of select fields in a form

2009-02-13 Thread Dave Greggory
lution. If this component was used several times in a page inside different FormFragments, this wouldn't exactly work. Request params would include params that are for versions of the component that is inside a hidden FormFragment. Any better solutions? - Original Message Fro

[T5] How to have a N number of select fields in a form

2009-02-13 Thread Dave Greggory
In spring MVC, I would do the following, How do I do the same in Tapestry? I tried the following, but obvisously it didn't work because the Select field is not capable of setting a value in a map. @Component (parameters = {"source=myList", "value=myItem", "encoder=itemPrimaryKeyEncod

Re: [T5] Updating Zone with Action Link using Select field value as Context

2009-02-13 Thread Dave Greggory
Action Link using Select field value as Context Em Thu, 12 Feb 2009 15:16:00 -0300, Dave Greggory escreveu: > This javascript is added to the page by Tapestry and how can modify it to > include select field value? > > "/my-web/stuff/create.showmystufflink/" + getSelectF

Re: [T5] Updating Zone with Action Link using Select field value as Context

2009-02-12 Thread Dave Greggory
igueiredo To: Tapestry users Sent: Thursday, February 12, 2009 1:02:45 PM Subject: Re: [T5] Updating Zone with Action Link using Select field value as Context Em Thu, 12 Feb 2009 13:32:13 -0300, Dave Greggory escreveu: > But Tapestry does not use the showStuff(Item selectedItem) method and

[T5] Updating Zone with Action Link using Select field value as Context

2009-02-12 Thread Dave Greggory
When the user clicks on the action link, I want to get the currently selected value from select field and use that as the context when calling the event. @Component private Zone myZone; @Component(parameters = {"context=selectedItem", "zone=myZone"}) private ActionLink showMyStuffLink;

Re: Dynamic Variables in Asset declarations

2009-02-09 Thread Dave Greggory
that make it easier? Jonathan On 08/02/2009 14:07, Dave Greggory wrote: > So, tell me whether I have this straight. > > In order to create Asset instances based on URL (actual asset CSS files > residing on a completely different web server = CDN) like below: > > @Inject >

Re: Dynamic Variables in Asset declarations

2009-02-08 Thread Dave Greggory
nvironment properties. You could reuse this approach also (e.g. for different DB-modes and connections). Generally I would not put such an environment setup thing to the asset-declaration but encapsulate it somewhere else (EnvironmentModeService + injecting this to AssetFactory). Dave Greggo

Re: Dynamic Variables in Asset declarations

2009-02-08 Thread Dave Greggory
namic Variables in Asset declarations Instead of passing ${server_host}${css_root} to the asset annotations you could use plain old properties which are then loaded to the environment and passed to the AssetFactory. @Inject @Path("cdn:path/aboveRoot") private Asset asset; Dave Greggo

Re: Dynamic Variables in Asset declarations

2009-02-08 Thread Dave Greggory
s files are on a separate server (on a CDN) and I'd rather not create a HTTP connection just to make sure they exist (for performance reasons). Is there a cleaner and simply better way of handling this? Also I'd rather not give up localization. Thanks so much, Dave ----- Origin

Re: Dynamic Variables in Asset declarations

2009-02-08 Thread Dave Greggory
onfusing. Can anyone clarify to me how all these fit together? Thanks, Dave - Original Message From: Dave Greggory To: Tapestry users Sent: Wednesday, February 4, 2009 12:27:37 PM Subject: Re: Dynamic Variables in Asset declarations That could be an option but I thought

Re: [T5] Dynamically getting a component from IoC

2009-02-06 Thread Dave Greggory
different page entirely ... a block acts like a closure on its containing page. This is a very powerful concept, the highest order of Tapestry skill is when you "grok the block". On Fri, Feb 6, 2009 at 7:07 AM, Dave Greggory wrote: > > I am using the delegate, but it's getting

Re: [T5] Dynamically getting a component from IoC

2009-02-06 Thread Dave Greggory
Figueiredo To: Tapestry users Sent: Friday, February 6, 2009 5:57:53 AM Subject: Re: [T5] Dynamically getting a component from IoC On Thu, Feb 5, 2009 at 10:33 PM, Dave Greggory wrote: > Is it possible dynamically (programmatically) request a component from > tapestry's IoC (without us

[T5] Dynamically getting a component from IoC

2009-02-05 Thread Dave Greggory
Is it possible dynamically (programmatically) request a component from tapestry's IoC (without using @Inject or passing component via parameter)? I have this MyComponentInterface and a whole bunch of components that implement it (ie. MyComponent1, MyComponent2, etc). I do not know until runtime

Re: Dynamic Variables in Asset declarations

2009-02-04 Thread Dave Greggory
and included in the page's section. - Original Message From: Thiago H. de Paula Figueiredo To: Tapestry users Sent: Wednesday, February 4, 2009 12:58:03 PM Subject: Re: Dynamic Variables in Asset declarations Em Wed, 04 Feb 2009 13:54:51 -0300, Dave Greggory escreveu: &

Re: Dynamic Variables in Asset declarations

2009-02-04 Thread Dave Greggory
On 31/01/2009, at 2:36 AM, Dave Greggory wrote: > Yep, I'm trying to have a dynamic URL for my CSS (not dynamic > content). I'll checkout chenillekit, thanks for the suggestion. > > > > - Original Message > From: Sven Homburg > To: Tapestry users

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Dave Greggory
Yep, I'm trying to have a dynamic URL for my CSS (not dynamic content). I'll checkout chenillekit, thanks for the suggestion. - Original Message From: Sven Homburg To: Tapestry users Sent: Friday, January 30, 2009 7:00:22 AM Subject: Re: Dynamic Variables in Asset declarations The U

Dynamic Variables in Asset declarations

2009-01-29 Thread Dave Greggory
Hello, I'm trying to declare an asset but with a dynamic variable used for declaration. I need a dynamic variable (similar to an expansion in a tml) because the css is selected based on some user selected parameters from the request. E.g. @Inject @Path("${myCssRoot}/style.css") private