Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread Robin Ericsson
On 5/17/07, sun <[EMAIL PROTECTED]> wrote: Howard Lewis Ship gmail.com> writes: > > I've been making a number of important T5 bug fixes; I've just uploaded the > latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ > > Feedback is always welcome! > T5.0.5 did not solve the

Re: T5 Templating and alternate css files based on current page

2007-05-17 Thread Bill Holloway
I thought that if a directory in the context didn't conflict with a tapestry page name (like 'start'), then the url to that directory would reference it ok. For example, I have a context dir (named 'webapp' under src/main) that looks like this: /src/main/webapp: - css - main_style.css - ima

Re: T5 Templating and alternate css files based on current page

2007-05-17 Thread Martin Reurings
Hmmm, but that would generate a path to the webserver ('/static/') root and not to the root of the context ('[appContext]/static/...'), plus it would bypass internationalization. Now I admit for css files the internationalization wouldn't matter but for skin-related images it might matter a

Re: T5 Templating and alternate css files based on current page

2007-05-17 Thread Bill Holloway
If "skin" is a component property that's properly evaluated for you, you can return the evaluated path as a page property to an Any component in the template for the : In TheComponent.java private String _skin // perhaps a parameter or resolved in onActivate? public String getStylesheetPath ()

Is onActivate a robust place for authentication?

2007-05-17 Thread Bill Holloway
I'm not sure yet how to integrate ACEGI, but I can look at an ASO in onActivate for a page. Is returning a page name from onActivate() a robust solution for basic user authentication? Bill -- "The future is here. It's just not evenly distributed yet." -- Traditional -

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Jesse Kuhnert
It's something that will happen to all ognl expressions for the next week or two. After that they will be resolved as per normal in development mode and jit'ed in production. On 5/17/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Jesse, I stepped away from the computer for a bit, and I had just now

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
Jesse, I stepped away from the computer for a bit, and I had just now submitted the JIRA before updating this conversation. https://issues.apache.org/jira/browse/TAPESTRY-1477 I am happy to know it is something that happens on purpose, and for developmental issues. I would hate to have my DAO's

T5 Templating and alternate css files based on current page

2007-05-17 Thread Martin Reurings
We've created a simple template component to render the generic html layout of the page and handle things like the navigation in the near future. Since we've just started to use tapestry I am still trying to get my head around some of the things that would probably seem obvious to anybody else. I

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Jesse Kuhnert
No need for JIRA issues - I know exactly why it's doing it and intentionally have it running this way. Unfortunately it's the only sane way I know to make sure 4.1.2 is releasable. There's no actual need for OGNL expressions to be compiled in dev mode but otherwise I'd have no way of ensuring th

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread Jun Tsai
2007/5/17, petros <[EMAIL PROTECTED]>: I found what was my problem. I was using the filter org.apache.tapestry.TapestryFilter instead of org.apache.tapestry.spring.TapestrySpringFilter I am now getting this exception which is the same problem reported by Nick Westgate java.lang.RuntimeExceptio

General Tapestry Question - File permissions

2007-05-17 Thread Peter Dawn
guys, this is a general java question, but since i am using tapestry i thought i will raise it here. i am using tap3. now whats happening is, that i am running a postgres backup command from within my tapestry web app. the user enters a folder location in a form, which i grab and run the postgre

Re: Using registry in a factory

2007-05-17 Thread Mark Addleman
I tried injecting an ObjectProvider into my AppModule buildService method, but it doesn't work. Tapestry reports that Service id "ObjectLocator" isn't defined by any module. I see that the MasterObjectProvider is available, but I don't think that's what I want. Here's my code: static public S

Re: Tapestry5 ready for use in a new project?

2007-05-17 Thread D&J Gredler
I think client persistence was just committed today by Howard. On 5/16/07, Juan Maya <[EMAIL PROTECTED]> wrote: I miss right now tacos library and other ajax components. However i think they are a lot easier to implement in T5 and according to the road map i have seen on the web page the ajax

Re: localization oddity

2007-05-17 Thread Eric Schneider
Thanks, I did something similar. Except I used ISO-8859-1. I still don't have an explanation for the odd behavior, but it works...I move on. e. On 5/17/07, Daniel Kleine-Albers <[EMAIL PROTECTED]> wrote: Hi there, I had the same problem with German umlauts not rendering correctly. H

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Andreas Andreou
Add a JIRA please. At least since 4.1.2-20070501.233137-64, i can see the first If getting called 3 times! And it's probably the first @If after an app reset that gets evaluated 3 times and not the first @If of a page. An old 4.1.2-20070215.051249-15 worked correctly, i cant test other (in betwee

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
Ugh. This is a big pain now. I have a huge dynamic form that has lots of IFs, and I can see the same queries being called 3 times or more. =( Everything still works, it's just about 3 times slower. If anyone has solved this problem please let me know! On 5/17/07, Daniel Jue <[EMAIL PROTECTED]

Re: localization oddity

2007-05-17 Thread Daniel Kleine-Albers
Hi there, I had the same problem with German umlauts not rendering correctly. Have a look at the character encoding of your files. I converted all my files to UTF-8 and since then all the labels (regardless in which message file) render correctly. Best regards Daniel On 10.05.2007, at 1

Re: T5: Cobertura?

2007-05-17 Thread Howard Lewis Ship
Sorry if I was inexact; I'm shifting gears too constantly. On 5/17/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: I think you mean the 1.7 version of Cobertura itself, not the plugin. Version 2.0 of the plugin (which is what I'm using) uses Cobertura version 1.7. So is this a Tapestry issue or a

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
Here is another example when more than one IF component is used. It seems the conditional for the first IF gets called 3 times, then the others just get called once. plain.java: package com.phy6.app; import org.apache.tapestry.IComponent; import org.apache.tapestry.annotations.Component; impor

Re: [Tap 411] Friendly urls and images

2007-05-17 Thread Andreas Andreou
How are the js, images, css folders made web accessible? Perhaps you can use the base tag ( http://www.w3schools.com/tags/tag_base.asp ) ? If you're using the @Shell component, you can take a look at the renderBaseTag parameter ( http://tapestry.apache.org/tapestry4.1/components/general/shell.htm

RE: T5: Cobertura?

2007-05-17 Thread Joel Wiegman
I think you mean the 1.7 version of Cobertura itself, not the plugin. Version 2.0 of the plugin (which is what I'm using) uses Cobertura version 1.7. So is this a Tapestry issue or a Cobertura issue (or even a plugin issue)? Lots of class instrumentation going on! -Original Message- Fr

[Tap 411] Friendly urls and images

2007-05-17 Thread Thomas Wiz
Hi all, I've created a encoder in my hivemodule.xml file to have friendly urls like " www.mysite.com/pages/path/to/page/". It works and I can decode the path after "/pages", but I have problems with images, stylesheets and js files included in my pages. The HTML template is in a directory called "

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
Glad to know I'm not alone. I've simplified the problem code even more, to eliminate any confusion: plain.java: package com.phy6.app; import org.apache.tapestry.IComponent; import org.apache.tapestry.annotations.Component; import org.apache.tapestry.annotations.InitialValue; import org.apache.t

Re: T5: Cobertura?

2007-05-17 Thread Howard Lewis Ship
It could be the version; I've been sticking to the 1.7 version of the plugin as 1.8 doesn't work (at least, not for Tapestry apps). On 5/17/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: Hello all, I'm using the Cobertura (via the Maven plug-in) to execute some web app coverage tests. I'm seeing

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Tony Nelson
I have noticed similar things happening in my code on the 4.1.2 snapshot as well. Trying to debug the issue I'm having w/ DatePicker (different thread) I added a conditional to the page, and used your strategy of counting @If calls just to see what I get. The first time I load the page, on t

Re: Hopefully an easy one

2007-05-17 Thread Tony Nelson
No, it will accept user input as: 5/17/07 which gets translated in my queries to 5/17/0007 and causes hibernate to self destruct. If a user enters 5/17/07 I expect an error to be raise, but alas, no. Thanks Tony Andreas Andreou wrote: doesn't translator="translator:date,pattern=MM/dd/" wo

Re: Hopefully an easy one

2007-05-17 Thread Andreas Andreou
doesn't translator="translator:date,pattern=MM/dd/" work? On 5/17/07, Tony Nelson <[EMAIL PROTECTED]> wrote: I have a simple DatePicker All that I want to do is verify that the user entered the date as MM/DD/. What is the correct validator to use in this situati

[Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
Hi, I experienced this problem after upgrading from Tap 4.1 to Tap 4.1.2 Snapshot. The problem is that I have an IF component that is being called 3 times, when it should only be called once. I have extracted the problem into a simpler page for examination: plain.page: http://jakarta.apache.

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread sun
Howard Lewis Ship gmail.com> writes: > > I've been making a number of important T5 bug fixes; I've just uploaded the > latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ > > Feedback is always welcome! > T5.0.5 did not solve the problem of Chinese https://issues.apach

Hopefully an easy one

2007-05-17 Thread Tony Nelson
I have a simple DatePicker value="ognl:tradeSearchKeys.receivedTimesheetForWeekEnding" translator="translator:date,pattern=M/d/" validators="validators:required" displayName="As of Date"/> All that I wa

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread sun
Howard Lewis Ship gmail.com> writes: > > I've been making a number of important T5 bug fixes; I've just uploaded the > latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ > > Feedback is always welcome! > T5.0.5 did not solve the problem of Chinese -

Re: What is the Quick Start to start AJAX in T5 ???

2007-05-17 Thread Daniel Jue
From what I last read from Howard, "The AJAX story is yet to be written, everything up till now has been positioning", or something like that. Sorry, I wish I could have jumped from Tap 4.0 to Tap 5 and gained AJAX functionality as well. =) Howard recommended 4.1 for people that need AJAX stuff

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread petros
I found what was my problem. I was using the filter org.apache.tapestry.TapestryFilter instead of org.apache.tapestry.spring.TapestrySpringFilter I am now getting this exception which is the same problem reported by Nick Westgate java.lang.RuntimeException: Exception constructing service 'Serv

Re: Injecting RequestGlobals

2007-05-17 Thread Chris Chiappone
Ok I'm pulling my hair out here. This used to work fine in java 5 and annotations but since having to go back to page specs I can't seem to pass parameters to components. This worked fine before java: @Parameter public abstract String getInclude(); html: Now I have changed the code to thi

T5: Cobertura?

2007-05-17 Thread Joel Wiegman
Hello all, I'm using the Cobertura (via the Maven plug-in) to execute some web app coverage tests. I'm seeing the T5 "PageTester" unit tests pass, but the same tests fail during the Cobertura coverage test. I end up seeing variations of java.lang.VerifyErrors and java.lang.ClassFormatErrors (exa

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread Jun Tsai
Your use spring 1.x,please use spring2.x. 2007/5/17, Nick Westgate <[EMAIL PROTECTED]>: Howard Lewis Ship wrote: > Please follow the directions on the tapestry-spring home page: > http://tapestry.apache.org/tapestry5/tapestry-spring/ > > It has changed significantly from 5.0.3 ... and simpler.

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread Howard Lewis Ship
Looks like we need to filter out abstract beans, which may be a problem because of the Spring APIs. On 5/17/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Howard Lewis Ship wrote: > Please follow the directions on the tapestry-spring home page: > http://tapestry.apache.org/tapestry5/tapestry-spri

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread Nick Westgate
Howard Lewis Ship wrote: Please follow the directions on the tapestry-spring home page: http://tapestry.apache.org/tapestry5/tapestry-spring/ It has changed significantly from 5.0.3 ... and simpler. Spring beans now look just like Tapestry IoC services, can be autowires into services, etc. @Spr

Re: T5: New Validators and server side validation

2007-05-17 Thread kranga
We just introduced client side validation for Tapestry fields using an ajax call back to the server side (with Tapestry 3). So you only write Java code for the validation and the same code gets called from the client side. All parameters for controlling your validation are automatically sent bac

Re: Can I set a T5 page to return to another page dynamically?

2007-05-17 Thread petros
Have a look at this http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html Eko S.W. wrote: > > That is to say, I have CrmsHome.java and I would like it to go to > SharedDelete.java, so in CrmsHome I would like to do : > ... > SharedDelete _deletePage; > ... > _deletePage.setBack

Re: Can I set a T5 page to return to another page dynamically?

2007-05-17 Thread Eko S.W.
Geee, that was fast! Okay, I'll try it!!! -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/

Re: Can I set a T5 page to return to another page dynamically?

2007-05-17 Thread Massimo Lusetti
On 5/17/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote: On 5/17/07, Eko S.W. <[EMAIL PROTECTED]> wrote: > What is the solution return an Object type. Probably you can even use the name of the page as a String. -- Massimo http://meridio.blogspot.com -

What is the Quick Start to start AJAX in T5 ???

2007-05-17 Thread Eko S.W.
I quite confused. And wondering. How can I start AJAX in T5??? What is the option? How can I integrate ... (CMIIW) Dojo/Sciptaculuous/etc/etc/ Can anyone point me to the right direction regarding AJAX in T5? Say, I would like to create Pop Up Form, Dynamically changing Table, etc, etc. Thanks i

Re: Can I set a T5 page to return to another page dynamically?

2007-05-17 Thread Massimo Lusetti
On 5/17/07, Eko S.W. <[EMAIL PROTECTED]> wrote: What is the solution return an Object type. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Can T5 have FrameSet as its HTML Template???

2007-05-17 Thread Eko S.W.
I haven't code it yet, and just thinking ... Can I create T5 page that resembled a Frameset HTML component? Mmy current solution to solve it, is just one page, with all the header and left navigation, with to show/hide certain page. This works well, but I don't think the Web Designer going to l

Can I set a T5 page to return to another page dynamically?

2007-05-17 Thread Eko S.W.
That is to say, I have CrmsHome.java and I would like it to go to SharedDelete.java, so in CrmsHome I would like to do : ... SharedDelete _deletePage; ... _deletePage.setBackPage(this); But ... in SharedDelete, ... I can not injectPage that BackPage isn't??? ( T5 said it is read only property)

Re: Tapestry5 ready for use in a new project?

2007-05-17 Thread Eko S.W.
I Just started T5. And ... great! From my --newbie-- opinion : it looks like I'm not coding to HTTP application at all Seems like another GUI ... CMIIW * for the most part, I like one Java class per HTML page idea. Feels like HTML is just complementary to The View (Java Class) -- Best wishes, E

Re: 5.0.5-SNAPSHOTS

2007-05-17 Thread petros
I have a problem in T5.0.4 when I am changing from @[EMAIL PROTECTED] to @[EMAIL PROTECTED] CODE THAT WORKS LayoutCmpnt.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> LayoutCmpnt.java public class LayoutCmpnt { @InjectPage private Login