RE: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Marcus.Schulte
But that POM does use snapshots. You shouldn't need the repository http://people.apache.org/repo/m2-snapshot-repository at all. Probably, there are no very significant differences between the latest 4.1.2 snapshot and the release. But nevertheless, for a productive environment, I'd always go with a

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Peter Stavrinides
This is my POM: always warn always fail apache.snapshots http://people.apache.org/repo/m2-snapshot-repository org.apache.tapestry tapestry-framework 4.1.2-SNAPSHOT test org.apache.tapestry tapestry-annotations 4.1.2-SNAPSHOT test org.apache.tapestry tapestry-contrib 4.1.2-SNAPSHOT t

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Peter Stavrinides
Yes [EMAIL PROTECTED] wrote: my configuration is as follows: JDK 6.01 32bit JVM (I have also tested on a 64 bit with no luck) Tomcat 5.5.20 Debian Linux (2.6.15.28 kernel) Tapestry 4.1.2-SNAPSHOT with ognl 2.7 Hi Peter, 4.1.2-SNAPSHOT is a typo, I suppose? regards, Peter Je

Re: T4.1.2 / Spring 2.0.6 / Hib3 Lazy loading and PropertySelectionModel stuff

2007-08-28 Thread Marcus Schulte
One thing to be aware of is that the same db-row, in two different Hibernate-Session, corresponds to two different objects. So with session-per-request, if your PSModel is loaded in one request, and your value-parameter-object in another. If you don't override Object.equalsappropriately, Tapestry c

Re: T5:Tiles?

2007-08-28 Thread Josh Canfield
you will see in the address field first: http://localhost/sample/layout.forums then it goes back to http://localhost/sample/forums but for Firefox or IE either in mac or windows, the layout.forums will not be shown, only the final one. I've tried it in Safari on my Mac and I've never seen th

Re: T3: DateTimePicker

2007-08-28 Thread Nick Westgate
Most readers here won't have a T3 project handy, and even fewer will have used this component (I haven't). Please define "didn't work". Cheers, Nick. Nazmul Bhuiyan wrote: I've downloaded the myworkspace-0.2.jar from http://myworkspace.sourceforge.net/component-library.html. I've tried to use

Re: T5:Tiles?

2007-08-28 Thread Angelo Chen
Hi Josh, Your tip works, just an observation, when viewing the page in Mac's Safari, for the url: http://localhost/sample/forums you will see in the address field first: http://localhost/sample/layout.forums then it goes back to http://localhost/sample/forums but for Firefox or IE either in ma

RE: [T5] Localization

2007-08-28 Thread Doug Hauge
Passing parameters into the message formatter directly from HTML seems more natural than having to inject a 'Messages' interface into the page and add an accessor method for the message any time the number of format parameters is not 0. Doug > -Original Message- > From: Massimo Lusetti

Re: T5 Error in 5.0.5 palette.js

2007-08-28 Thread Martin Reurings
Actually throwing an onclick event (which is what I assume is being used) on a disabled item isn't forbidden by specification. But, it shouldn't be the cause of Opera's unwillingness to function. In the updateButtons method the disabled state of the buttons should be update in accordance to th

Re: T5 Error in 5.0.5 palette.js

2007-08-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Aug 2007 20:51:30 -0300, Martin Reurings <[EMAIL PROTECTED]> escreveu: Probably the best way to get some clarity is by adding a few alerts in some key places and compare the results of those alert between FF and IE. Just because it works in FF doesn't mean it's correct BTW. T5'

Re: T5:Tiles?

2007-08-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Aug 2007 20:52:28 -0300, Angelo Chen <[EMAIL PROTECTED]> escreveu: Class org.sample.t5.pages.Home does not contain a property named 'myhome' (within property expression 'myhome'). You want Try The literal: prefix guarantees that the value after it is treated as a String.

Re: T5:Tiles?

2007-08-28 Thread Angelo Chen
Hi Josh, I did like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> but I got an error: Class org.sample.t5.pages.Home does not contain a property named 'myhome' (within property expression 'myhome'). Josh Canfield-2 wrote: > > I think your problem is here: > >> in my Somepag

Re: T5 Error in 5.0.5 palette.js

2007-08-28 Thread Martin Reurings
I suppose I'd have to make the time to test through the Palette component to figure this one out. The syntax appears to be correct (apart from the trailing comma you already identified) and the lack of comments obscures a lot of what's going on. There's some (to me) really obscure eventhandlin

Re: [T5] Usage of Grid component

2007-08-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Aug 2007 19:00:13 -0300, Daniel Jue <[EMAIL PROTECTED]> escreveu: "Hacking" the beanmodel is definitely possible. You can actually dump all the columns that bean model picks up, and re-add them to the beanmodel's list in the order you want. You'd probably want something more

T3: DateTimePicker

2007-08-28 Thread Nazmul Bhuiyan
I've downloaded the myworkspace-0.2.jar from http://myworkspace.sourceforge.net/component-library.html. I've tried to use this component as DatePicker but didn't work. I must have missed something basic. Can some one please some example how to use this component? For example: in the html templet,

Re: T5 Error in 5.0.5 palette.js

2007-08-28 Thread Daniel Jue
I am using JS Eclipse, however I am no javascript wizard. :-) JSEclipse didn't complaint about the extra comma! I just had a look at the T4 pallet js (from the apache trunk) and it does not have a comma after the end of the function listing. However, the T4 version is way different and uses some

Re: T5 Error in 5.0.5 palette.js

2007-08-28 Thread Martin Reurings
Without having a look at the rest of the code I can tell you without a doubt you are on the right track there. When using Object Notation Firefox has some weird parsing error which allows it to successfully parse an object that has the illegal syntax you just highlighted. Make no mistake though,

Re: [T5] Usage of Grid component

2007-08-28 Thread Daniel Jue
"Hacking" the beanmodel is definitely possible. You can actually dump all the columns that bean model picks up, and re-add them to the beanmodel's list in the order you want. You'd probably want something more streamlined if you are letting your users reorder the columns at run time. This is pre

T5 Error in 5.0.5 palette.js

2007-08-28 Thread Daniel Jue
When using the Palette component, I am getting a Javascript error in IE, Line: 183 Char: 1 Error: Expected identifier, string or number Code: 0 reorderSelected : function(movers, before) { movers.each (function(option) { this.selected.add(option, before); }.bind(this)); t

Re: [T5] Localization

2007-08-28 Thread Massimo Lusetti
On 8/28/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > If not, does this seem difficult to implement? Using normal ResourceBundle features? And doing that inside javacode where logic belongs? -- Massimo http://meridio.blogspot.com

[T5] Localization

2007-08-28 Thread Christoph Jaeger
Hi, is there a way to use messages with parameters directly from a HTML template? Something like: ${message:results,prop:numberOfDatasets} with Page.java ... public int getNumberOfDatasets() { return numberOfDatasets; } ... Page_en.properties: results:Found %d datasets. Page_de.p

T4.1.2 / Spring 2.0.6 / Hib3 Lazy loading and PropertySelectionModel stuff

2007-08-28 Thread Jan Vissers
Hi, I'm witnessing some 'interesting' behavior, using lazily loaded collections (Hibernate) combined with PropertySelectionModel stuff. Before getting into too much detail - using my JUnit tests I can prove that traversing the (nested) objectgraph actually has the information (albeit via CGLIB pro

Re: [T5] Usage of Grid component

2007-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2007 17:39:30 -0300, Christoph Jaeger <[EMAIL PROTECTED]> wrote: Hi, is there a simple example of how to use the grid component, which is just a bit more complex than Something I really miss in Grid that is present in T4's contrib:Table flexibility (http://tapestry.apac

[T5] Usage of Grid component

2007-08-28 Thread Christoph Jaeger
Hi, is there a simple example of how to use the grid component, which is just a bit more complex than There are basically two things I am looking for at the moment: 1. hide columns (without using annotations in the java files, my feeling is that the configuration which fields to show on the we

Re: T5 Conditional New Window on submit

2007-08-28 Thread Josh Canfield
When you submit a form with target set to _blank the new window is opened and the form is submitted there. The current page is not refreshed. If you want to see the errors in the original window and only open a new window you after the input is known to be good then you have to post back to the sam

dojo widget question - where is StretchPane.js ?

2007-08-28 Thread Ken nashua
Folks, There is planey of support since October 2006 of a widget named Stretchpane which optimizes or emulates a variation of css overflow:visible and basically automates it for parent container widgets/elements. I checked out the latest dojo from http://svn.dojotoolkit.org/dojo/trunk But St

T5 Conditional New Window on submit

2007-08-28 Thread Daniel Jue
Right now I have a form that opens a new window on submit, like this: The error processing it does is all server side. However, if there is an error, it will open a new window and show the form's page, including the errors. At this point I have duplicate forms, and one shows the error. I w

Re: T5 Tree Component javascript and DOM

2007-08-28 Thread Josh Canfield
> Does anyone have a better solution for this? This must have been solved > elsewhere... > Is there a hook in prototype we can use for making things run after the DOM > is complete? The problem doesn't happen with Firefox 2. > Off the top of my head I would suggest adding your javascript to the

RE: How do I get a page from a sub-package

2007-08-28 Thread mraible
Thanks - this helped me discover my problem. I appreciate the help. Matt Marcus.Schulte wrote: > > page-pathes are always relative to your pages-package, so > cycle.getPage("admin/UserList") should be fine. > Somehow, Tapestry seems to find your template in > /admin/UserList and associates it

T5 Tree Component javascript and DOM

2007-08-28 Thread Daniel Jue
It figures that I would run into this problem. Placing the Tree Component's java script block, as seen on the wiki, can cause Abort errors on IE (tested ie6) because it's modifying the DOM before it is loaded all the way. (I am using a larger, complex page to experience these errors) My page pro

Re: T5:Tiles?

2007-08-28 Thread Josh Canfield
I think your problem is here: > in my Somepage.html > > You want Josh On 8/28/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > I tried to folow following method, but not working: > > my Layout.java like this: > > public class Layout { > >@Parameter >private Block _sidebarC

[T5] SelectObject component added to the Wiki

2007-08-28 Thread Marcelo lotif
http://wiki.apache.org/tapestry/Tapestry5SelectObject -- Atenciosamente, Marcelo Lotif

RE: How do I get a page from a sub-package

2007-08-28 Thread Marcus.Schulte
page-pathes are always relative to your pages-package, so cycle.getPage("admin/UserList") should be fine. Somehow, Tapestry seems to find your template in /admin/UserList and associates it with BasePage. Could it be, that you have a page class named UserList in both the pages package and the admin

RE: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Marcus.Schulte
> my configuration is as follows: > > JDK 6.01 32bit JVM (I have also tested on a 64 bit with no > luck) Tomcat 5.5.20 Debian Linux (2.6.15.28 kernel) Tapestry > 4.1.2-SNAPSHOT with ognl 2.7 > Hi Peter, 4.1.2-SNAPSHOT is a typo, I suppose? > regards, > Peter > > Jesse Kuhnert wrote: > > I'

Re: How-to update a selection model based on a prior selection

2007-08-28 Thread Marcos Chicote
Worked great! Thanks Thiago. On 8/28/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > > On Tue, 28 Aug 2007 11:24:03 -0300, Marcos Chicote > <[EMAIL PROTECTED]> wrote: > > > @EventListener(targets = "A", events = "onchange") > >public void onChange(IRequestCycle cycle, Browse

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Jesse Kuhnert
Umm yeah. I have looked in to it as I just said. The only thing left is for me to look at this youkit snapshot profile and play from there but I'm not capable of debugging issues that aren't reported properly. On 8/28/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > Hi Jessie > > I'm gonna tr

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Peter Stavrinides
Hi Jessie I'm gonna try update my version of ognl, if that won't work I will downgrade. I have not filed any bugs yet, but I sent a couple of emails to the list. I don't get any exceptions during development, but that is because its not running for 3 or 4 days. I strongly suggest you consider

Re: How-to update a selection model based on a prior selection

2007-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2007 11:24:03 -0300, Marcos Chicote <[EMAIL PROTECTED]> wrote: @EventListener(targets = "A", events = "onchange") public void onChange(IRequestCycle cycle, BrowserEvent event) { Even better: you need to submit the form when the user selects a different value of A, so

Re: How-to update a selection model based on a prior selection

2007-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2007 11:24:03 -0300, Marcos Chicote <[EMAIL PROTECTED]> wrote: In the test, the EventListener is properly called (when the value of the PropertySelection is changed), but the selections are not updated. When called from Test.onChange(), Test.getA() returns 'null' instead of the

How-to update a selection model based on a prior selection

2007-08-28 Thread Marcos Chicote
Hello, I'm trying to update a selection model based on a prior selection, using AJAX and Tapestry 4.1.1. I've built a small test case, connecting an EventListener to the onchange event of a PropertySelection. You can find it at the end of this mail. In the test, the EventListener is properly cal

Re: T5: FCKEditor Component

2007-08-28 Thread sun58224
no work when upload image. Ted Steen wrote: > > only java. > > 2007/8/28, sun58224 <[EMAIL PROTECTED]>: >> Ted Steen gmail.com> writes: >> >> >> >> asp, no java? >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For a

Re: How do I get a page from a sub-package

2007-08-28 Thread Martino Piccinato
sorry Matt I've missed that "subpackage", yes it should include subpackage by default. Actually I've never had such a problem specifying pages by simple class name has always been enough for me. On 8/28/07, mraible <[EMAIL PROTECTED]> wrote: > > I have the following configured: > > value="org.app

Re: T5:Tiles?

2007-08-28 Thread Angelo Chen
Hi Josh, I tried to folow following method, but not working: my Layout.java like this: public class Layout { @Parameter private Block _sidebarContent; public Block getSidebarContent() { return _sidebarContent; } public void setSidebarContent(Block sidebarContent)

Re: How do I get a page from a sub-package

2007-08-28 Thread mraible
I have the following configured: Are you saying I should change it to: Are you sure it doesn't scan sub-packages by default? It seems to - if I put a class in this package and move the page into a matching sub-directory, it works. However, when I get a page from the IRequestCycle, I don't kn

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Jesse Kuhnert
I'd downgrade then if I were you. Extensive profiling with yourkit hasn't shed any new light on whatever problems others are having. The OGNL classes indeed aren't being kept in the javassist pool from what I can tell. I have another yourkit snapshot binary to look at so we'll see what that says

Re: [T5]Encoding Problem while submiting form with a Upload component.

2007-08-28 Thread Martin Grotzke
On Tue, 2007-08-28 at 12:22 +0200, Christian Koeberl wrote: > > I have a form with a 'textfield' and a 'upload' field . > > The Chinese words I input in textfield will be irrecognizable when I > > submit the form . > > I wondered, why nobody found this bug before. Anyway, I filed the > bug yeste

Re: T5:If component

2007-08-28 Thread Nick Westgate
Or, since that's not always convenient for your html: ... ... ... Cheers, Nick. Robin Helgelin wrote: On 8/28/07, Angelo Chen <[EMAIL PROTECTED]> wrote: Thanks, this works! i check the doc, seems there is no 'else' in this component like T4, right? It works like this: No

Re: T5:If component

2007-08-28 Thread Robin Helgelin
On 8/28/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Thanks, this works! i check the doc, seems there is no 'else' in this > component like T4, right? It works like this: Not logged in! -- regards, Robin

Re: T5:If component

2007-08-28 Thread Angelo Chen
Thanks, this works! i check the doc, seems there is no 'else' in this component like T4, right? Nick Westgate wrote: > > The If component's test parameter is a boolean: > http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html > > -- View this message in context: http:

Re: T5:If component

2007-08-28 Thread Nick Westgate
The If component's test parameter is a boolean: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html You need to make your accessor non-private: public boolean getLoginned() { return true; } And the default binding is prop, so no funky OGNL-like stuff:

T5:If component

2007-08-28 Thread Angelo Chen
Hi, how to use the component IF? I have this in the page class: private String getLoginned() { return "true"; } then I want to refer to it from the html: this will always cause an error that: does not contain a property named 'loginned' -- View this message in context: h

Re: Re: [T5]Encoding Problem while submiting form with a Upload component.

2007-08-28 Thread Christian Koeberl
> Not everyone is using tapestry-upload and not everyone is using fancy > file names and tapestry-upload module is the younger in T5 space so... > anyway you´re is indeed a good catch so propably will be evaluated. It's not the file name. The problem is: as soon as you add a upload component to a

Re: [T5]Encoding Problem while submiting form with a Upload component.

2007-08-28 Thread Massimo Lusetti
On 8/28/07, Christian Koeberl <[EMAIL PROTECTED]> wrote: > I wondered, why nobody found this bug before. Anyway, I filed the > bug yesterday and provided a fix. Not everyone is using tapestry-upload and not everyone is using fancy file names and tapestry-upload module is the younger in T5 space s

Re: [T5]Encoding Problem while submiting form with a Upload component.

2007-08-28 Thread Christian Koeberl
> I have a form with a 'textfield' and a 'upload' field . > The Chinese words I input in textfield will be irrecognizable when I > submit the form . I wondered, why nobody found this bug before. Anyway, I filed the bug yesterday and provided a fix. https://issues.apache.org/jira/browse/TAPESTRY

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Peter Stavrinides
No Marcus [EMAIL PROTECTED] wrote: So changing the page pool parameters didn't help then? -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 28, 2007 10:34 AM To: Tapestry users Subject: Re: Memory consumption in T4.1.2 - Hard data Andreas

Re: T5: FCKEditor Component

2007-08-28 Thread Ted Steen
only java. 2007/8/28, sun58224 <[EMAIL PROTECTED]>: > Ted Steen gmail.com> writes: > > > > asp, no java? > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- /ted ---

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Andreas Andreou
On 8/28/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > > > Andreas, give me a break! I am not trying to trash Tapestry if that's > what you are thinking. I am not the only one experiencing these problems. Hey - i never meant that! It's obvious from the reports that something's going on + Jes

RE: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Marcus.Schulte
So changing the page pool parameters didn't help then? > -Original Message- > From: Peter Stavrinides [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 28, 2007 10:34 AM > To: Tapestry users > Subject: Re: Memory consumption in T4.1.2 - Hard data > > > Andreas, give me a break! I am no

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Kalle Korhonen
Now that's an OGNL compiler error. Have you tried with OGNL 2.7.1-SNAPSHOT(just use the latest). OGNL 2.7 that comes with Tap 4.1.2 by default is known to have bugs with the compiled expressions. Please try with the latest OGNL; it might just do the trick. Kalle On 8/28/07, Peter Stavrinides <[E

Re: T5: FCKEditor Component

2007-08-28 Thread sun58224
Ted Steen gmail.com> writes: asp, no java? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Peter Stavrinides
Andreas, give me a break! I am not trying to trash Tapestry if that's what you are thinking. I am not the only one experiencing these problems. Have a look at some of my postings (and others posts) and you will see what I am talking about. I have been having these problems since upgrading from

Re: [T5] Restricting Page Access

2007-08-28 Thread Robin Helgelin
On 8/28/07, Erik Vullings <[EMAIL PROTECTED]> wrote: > To clarify my understanding - how does it deal with protecting > links/functions. For example, assume I'm a regular, non-admin user and > access the application. Since I'm not an admin, I don't see the link to the > "Clear database" function, b

Re: How do I get a page from a sub-package

2007-08-28 Thread Martino Piccinato
I think you can use configuration parameter org.apache.tapestry.component-class-packages (from documentation) A comma-seperated list of package names, used when searching for the component class . These must appear as tags in the application or library specification containing the component

Re: Tapestry 4 to 5 page service

2007-08-28 Thread Nick Westgate
@Inject private ComponentResources resources; ... String url = resources.createPageLink("pageName", false, context).toURI(); Cheers, Nick. Peter Stavrinides wrote: > Hi all, > > I am currently upgrading a Tapestry 4 app to Tapestry 5, I am still > adjusting to the differences betwe

Tapestry 4 to 5 page service

2007-08-28 Thread Peter Stavrinides
Hi all, I am currently upgrading a Tapestry 4 app to Tapestry 5, I am still adjusting to the differences between the two frameworks. In Tapestry 4 I could retrieve a page link using the page service IEngineService like this: final ILink pageLink = pageService.getLink(false, pageName); I gath

Re: [T5] Restricting Page Access

2007-08-28 Thread Erik Vullings
That's really cool and very useful! To clarify my understanding - how does it deal with protecting links/functions. For example, assume I'm a regular, non-admin user and access the application. Since I'm not an admin, I don't see the link to the "Clear database" function, but somehow, I can guess

Re: Memory consumption in T4.1.2 - Hard data

2007-08-28 Thread Andreas Andreou
Peter, though not officially final (I believe), http://news247.gr (tap-4.1.2) has been getting 40 req/day for an uptime of 26 days with memory set to no more than 128MB. On 8/28/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > > Hi Jessie > > Any progress on this? sorry to bug you, but