T5: using TapestryTestCase

2008-01-16 Thread Angelo Chen
Hi, Is there any tutorial on using TapestryTestCase ? say, I'd like to test a service which has Hibernate's Session injected thru constructor, any idea? Thanks, A.C. -- View this message in context: http://www.nabble.com/T5%3A-using-TapestryTestCase-tp14913469p14913469.html Sent from the Tapes

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Pai911
So, you read this in mail box Then I think I should repost this Here is the code Trip

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Ulrich Stärk
I'm giving up, I still can't see it. Use a proper mail client. Pai911 schrieb: Sorry! The forum filter the definition Now I escape the tag myself, and it appears. Please see the original post! I have to tell you that in my IE, this happens even when async="true" is set Thank you! Ulrich St

RE: bidirectional dom interface

2008-01-16 Thread Pai911
Hi! What if you try /*Put the content you want to be displayed right here*/ /*Don't use render block */ nhhockeyplayer wrote: > > > Well the fact that one definition refers to the same ognl instance being > "ognl:components.autoPagingContent" commonsense tells me I shouldn't even > sho

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Pai911
Sorry! The forum filter the definition Now I escape the tag myself, and it appears. Please see the original post! I have to tell you that in my IE, this happens even when async="true" is set Thank you! Ulrich Stärk wrote: > > I still can't see the DirectLink declaration you are using... Whe

Re: [T4.1.3] Javascript is shown after login

2008-01-16 Thread Henrik Schlanbusch
Thanks Alejandro, this was indeed the problem. Best, Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Override Header Names for Grid Component

2008-01-16 Thread Adam Ayres
I too wish to override the header cells of my grid but I am not able to get this to work. The cell override works correctly, but I am not able to get the header override to work. I am on 5.0.7, here is a simplified version of the code I am using:

Re: Tapestry & IDEA

2008-01-16 Thread Kevin Menard
You are absolutely correct. I had disabled "Build on frame deactivation" setting and forgot that IDEA doesn't auto-compile like Eclipse. Thanks for pointer. I'll have to check out JavaRebel for my T4 work. Regards, Kevin On 1/16/08 5:53 PM, in article [EMAIL PROTECTED], "Alejandro Scandroli"

Re: Tapestry & IDEA

2008-01-16 Thread Andreas Andreou
Javarebel is sweet. Regarding disabling-cache, I always disliked it (prefering the enable-reset-service approach) for performance and OOME issues. I had a greasemonkey script for this @ http://blog.andyhot.gr/a/java/2006/09/23/Implementing-a-Firefox-Plugin-for-Tapestrys-Reset-Service.html but nowa

Re: [T4.1.3] Javascript is shown after login

2008-01-16 Thread Alejandro Scandroli
Hi Henrik It sounds like you are using Acegi (or another security service). This is what I think is happening: Your Home page is not protected (it allows anonymous access), but that javascript file IS. So when you go to your Home page your security service blocks the access to the javascript file

T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-16 Thread David Kendall
I would like to have a way to force tapestry to flush/reload its caches and I am wondering how best to get such functionality incorporated into the Tapestry 5 framework. I am not sure what the best forum is to post suggestions around T5 so I thought I would start here. If there is a more appropriat

Re: Tapestry & IDEA

2008-01-16 Thread Alejandro Scandroli
Hi Kevin > Any thoughts on what I may be doing wrong? Just to confirm, are you sure you are compiling? Idea needs you to explicitly hit CRTL-SHIFT-F9 (to compile just one class) or CTRL-F9 (make project) That was my problem when I started working with Idea and Tapestry (both 4 and 5). BTW, I'm us

[T4.1.3] Javascript is shown after login

2008-01-16 Thread Henrik Schlanbusch
Hi again, I have a strange problem with my app. When I have logged in the first time, my Home page is not rendered, but instead I can see a javascript file core.js (loaded by the asset service). If I then press back (to the login form) and login again, I will get the Home page as expected, and I c

Re: Tapestry & IDEA

2008-01-16 Thread Kevin Menard
Hi Michael, Thanks for the advice. I added Jetty6 as a test dependency and wrote my own class that's a more domain-specific version of the JettyRunner. I didn't take your approach 100% because that class is a Tapestry test artifact and as such, not part of the primary distribution. Anyway, thin

property/parameter transmission T-4.1.3

2008-01-16 Thread Ken in nashua
Folks, I am operating a page that contains a component. Can you confirm my logic? Pages have properties (so I used @Persist) Components have parameters (so I used @Parameter) Now the interaction/synchronization/update of these properties is performed automatically... right? This is what

Re: Tapestry & IDEA

2008-01-16 Thread Kevin Menard
Thanks for the reply Jesse. Your directions have me up and running with T4 quite smoothly now. I think I even wept a little. It's still not as nice as working with JettyLauncher, but it's a remarkable improvement over what I was using. I haven't been able to get class reloading working for T5 y

T5: Encoder and Loop

2008-01-16 Thread Michael Courcy
Hi, Reading the doc on the loop component http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsloop I can see that one of the parameter is encoder (PrymaryKeyEncoder) and this one should be used for a loop inside a form. I don't really

Re: [Slightly OT] GZIP compression filter and java.lang.IllegalStateException: Cannot create a session...

2008-01-16 Thread Kaspar Fischer
For the sake of completeness: I've solved this by enabling Tomcat 5.5's GZIP compression in server.xml: disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8080" redirectPort="8443"

RE: bidirectional dom interface

2008-01-16 Thread Ken in nashua
Well the fact that one definition refers to the same ognl instance being "ognl:components.autoPagingContent" commonsense tells me I shouldn't even should be mucking with this... it should update automatically. The fact that this component's PropertySelect doesn't even survive a page

Re: bidirectional dom interface

2008-01-16 Thread Kevin Menard
I could be mistaken, but I think if you have the component in a loop, then updateComponent("baseIdName") will apply to all of those components in the loop . . . I.e., you don't have to specify each individual instance. If you're running into issues with grouping though, you could surround the the

RE: bidirectional dom interface

2008-01-16 Thread Ken in nashua
more feedback... I tried this explicitly getResponseBuilder().updateComponent("tableSizeSelect_0"); and it did not update the select dom with the expected value that lives in the other select dom getResponseBuilder().updateComponent("tableSizeSelect"); Best regards Ken in nashua From: [E

RE: bidirectional dom interface

2008-01-16 Thread Ken in nashua
Ok, I fixed the ID issue... But... it don't work. What don't Work? more than one DOM referencing one instance of a tapestry component/widget... namely a PropertySelect. Here is the proof. I did view-source fro the browser to look at the markup. markup... ... Now will HTML crap out if

Re: Tapestry & IDEA

2008-01-16 Thread Michael Lake
For T5, in lieu of jettyLauncher you might try looking into extending the following class somewhere in your test sources: org.apache.tapestry.test.JettyRunner make a wrapper around it with a class that has a static main function. there's an example of it in "tapestry-core" sources org.apac

RE: bidirectional dom interface

2008-01-16 Thread Ken in nashua
Well it's probably because the ID has changed now to id="[EMAIL PROTECTED]" OK, so I should use jwcid.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: bidirectional dom interfaceDate: Wed, 16 Jan 2008 10:44:32 -0500 Well I tried this in the page that contains t

Re: Tapestry & IDEA

2008-01-16 Thread Jesse Kuhnert
For tap 4: -) Use the latest eap release if you use maven - they make tiny improvements to that minefield with each release. -) Under project settings make sure you un-check the option to build a "war" file for your web facet. (also don't create an exploded directory to run it in) -) Make sure y

Re: bidirectional dom interface

2008-01-16 Thread Kevin Menard
Pai is correct. UpdateComponent() must be passed a component ID. An arbitrary ID does not work. -- Kevin On 1/16/08 12:40 PM, in article [EMAIL PROTECTED], "Pai911" <[EMAIL PROTECTED]> wrote: > > Hi! > Maybe you should make the division you want to update Tapestry components? > > > >

RE: bidirectional dom interface

2008-01-16 Thread Ken in nashua
PAI, I tried your suggestion on the ANY component. My Gallery.script is being impacted now. I cannot do the following: // just paste a Loading text at bottom of table // this worked previously to your suggestion var divBlock = document.createElement("div"); divBlock.appendChild(document.

Tapestry & IDEA

2008-01-16 Thread Kevin Menard
Hi all, It's time for me to ask about IDEA and Tapestry again. I seem to go in cycles with the whole thing. Recent traffic indicates that there's now a decent number of people using IDEA with Tapestry. My question is simply, how? I've been using the third party Jetty integration plugin and set

Re: [T4.1.3] problems with localisation and possibly Prototype

2008-01-16 Thread Henrik Schlanbusch
The problem was that we had the two following files: trans.properties (default locale) and trans_no.properties This always ended up with values from the first file. Then we renamed the files: trans_en.properties trans_no.properties and it worked, why - I do not know... -

TAP-5: Tapestry Release Semantics and legacy thereof

2008-01-16 Thread Ken in nashua
Hi, I have been watching tapestry release semantics for many years now, as they happen, as they impact the commercial field and related hurdles. Given the maturity of the framework and it's concepts... is it reasonable to ask for the following: o Tapestry 5 be 100% commercially validated a

Re: [T5] [ANN] - Tapestry + Spring + Acegi and now + Apache Derby DataBase

2008-01-16 Thread Mohammad Shamsi
Im working on next release of this app. Derby + Hibrenate + Spring + Acegi + Tapestry in this release i will use derby az a standalone service instead of embedded. On Jan 16, 2008 8:23 PM, Daniel Jue <[EMAIL PROTECTED]> wrote: > Nice! I really like working with Derby. If I could run it as a

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Ulrich Stärk
I still can't see the DirectLink declaration you are using... Where is it? Uli Pai911 schrieb: Hi! The related logic: public abstract String getTab(); public abstract void setTab(String tabName); /* Listeners */ public void switchTab(String tabName) { this.setTab(tabN

RE: bidirectional dom interface

2008-01-16 Thread Pai911
Hi! Maybe you should make the division you want to update Tapestry components? nhhockeyplayer wrote: > > > Well I tried this in the page that contains the component... > > public void refresh() > { > getResponseBuilder().updateComponent("headerSelect"); > getResponseBuil

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Pai911
Hi! The related logic: public abstract String getTab(); public abstract void setTab(String tabName); /* Listeners */ public void switchTab(String tabName) { this.setTab(tabName); } I think it's more likely related to the version of IE It seems to happen in certain

Re: [T5] [ANN] - Tapestry + Spring + Acegi and now + Apache Derby DataBase

2008-01-16 Thread Daniel Jue
Nice! I really like working with Derby. If I could run it as a service here (so that it stays up beyond tomcat restarts), I would. BTW it works fine with Hibernate 3.3.2+ as far as I noticed. On Jan 16, 2008 8:56 AM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > Hi all, > > New release of phone b

Re: T5+IDEA: Suggestions for getting .tml files copied to the target/test-classes folder of a maven project

2008-01-16 Thread Sven Homburg
better the regexp: !?*.java 2008/1/16, Mohammad Shamsi <[EMAIL PROTECTED]>: > > Or > > Go to File --> Settings > expand Project Settings, click Compiler, then where it says "Resource > Patterns:" > add your favorite extension here (for example ;?*.tml;?*.css) > > > > On 1/16/08, Michael Lake <[EM

Re: bidirectional dom interface

2008-01-16 Thread Igor Drobiazko
getResponseBuilder().updateComponent is the way to update parts of your view. Check if your html is correct. On Jan 16, 2008 4:44 PM, Ken in nashua <[EMAIL PROTECTED]> wrote: > > Well I tried this in the page that contains the component... > > public void refresh() > { > getResponseBuilder().upda

Re: T5+IDEA: Suggestions for getting .tml files copied to the target/test-classes folder of a maven project

2008-01-16 Thread Mohammad Shamsi
Or Go to File --> Settings expand Project Settings, click Compiler, then where it says "Resource Patterns:" add your favorite extension here (for example ;?*.tml;?*.css) On 1/16/08, Michael Lake <[EMAIL PROTECTED]> wrote: > > > I've got my component library set up in the same fashion as the >

RE: bidirectional dom interface

2008-01-16 Thread Ken in nashua
Well I tried this in the page that contains the component... public void refresh() { getResponseBuilder().updateComponent("headerSelect"); getResponseBuilder().updateComponent("footerSelect"); } Since these are my dom references... and this does not cut it. I am looking at come

T5+IDEA: Suggestions for getting .tml files copied to the target/test-classes folder of a maven project

2008-01-16 Thread Michael Lake
I've got my component library set up in the same fashion as the "tapestry-core" project. I really like this approach of having an integration test app in the /src/test/app1 folder. The problem is when I use IDEA to make the module before running a test. some non-.java files(.tml, .css, etc) u

Re: T5: Access to services from Dispatcher ?

2008-01-16 Thread Hugo Palma
Just realized i can just inject them in the contribute method in the module builder. Sorry Hugo Palma wrote: > Is there any way i can access services from a dispatcher class ? > > Thanks. > > -- Hugo Palma LOGICAL SOFTWARE Human Capital | E

T5: Access to services from Dispatcher ?

2008-01-16 Thread Hugo Palma
Is there any way i can access services from a dispatcher class ? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: T5: using velocity in the app

2008-01-16 Thread Lance Semmens
You'll need to configure an appropriate resource loader http://velocity.apache.org/engine/devel/developer-guide.html#configuring _resource_loaders -Original Message- From: AngeloChen960 [mailto:[EMAIL PROTECTED] Sent: 16 January 2008 03:01 To: users@tapestry.apache.org Subject: T5: using

[T5] [ANN] - Tapestry + Spring + Acegi and now + Apache Derby DataBase

2008-01-16 Thread Mohammad Shamsi
Hi all, New release of phone book application with apache derby database support is available here : http://code.google.com/p/shams/ -- sincerely yours M. H. Shamsi

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Ulrich Stärk
Please post the DirectLink definition and the rest of the logic you wrote to switch tabs. Pai911 schrieb: Dear all: The following is the template for three tabs. When each tab is clicked, switchTab listener should be invoked to set the tab property and asynchrounously update [EMAIL PROTECTED

Re: tapestry-spring

2008-01-16 Thread Ulrich Stärk
It's not broken it's just not generating directory listings. Uli HongDa Tang schrieb: http://howardlewisship.com/repository/ seems to be broken. Does anyone know of a mirror site for http://howardlewisship.com/repository/ where I can use maven to retrieve tapestry-spring library version 1.0.

Re: tapestry-spring

2008-01-16 Thread Ulrich Stärk
Instructions on how to configure the correct maven repository can be found at http://howardlewisship.com/tapestry-javaforge/ (linked to from the tapestry-spring site): howardlewisship.com Tapestry @ JavaForge http://howardlewisship.com/repository/ Also read this http://www.nabble.com/

[T4.1.3] Problems with async DireckLink

2008-01-16 Thread Pai911
Dear all: The following is the template for three tabs. When each tab is clicked, switchTab listener should be invoked to set the tab property and asynchrounously update [EMAIL PROTECTED] component. However, I found that in IE 6.0, the click of DirectLink will cause the refresh of the whole p

bidirectional dom interface

2008-01-16 Thread Ken in nashua
Hi Folks, I am impressed with this interface. @EventListener(events = { "onchange" }, targets = { "pagingSpanSelect" }, submitForm = "myForm", async = true) public void pagingSpanListener(IRequestCycle cycle) { } It provides a nice interface from DOM into server side. But How do I talk t

Re: tapestry-spring

2008-01-16 Thread Pai911
Dear Hong: I also try to find the package myself for a while and then I found this repository: http://svn.javaforge.com/svn/tapestry/tapestry-spring/trunk But I have no idea how can I get access to this repository. So I went to here http://javaforge.com/proj/sources/sccBrowse.do?proj_id=220&d

[T5] adjusting BeanEditor

2008-01-16 Thread Tandel Sascha
Hello, I am generating beans on the fly (via ClassFactory and ClassFab) and using the BeanEditor to edit them. This works fine. Now my questions: 1. I need to set some fields required. But they differ from user to user. Is it possible to "tell" the BeanEditor which are required? 2. Is it

Re: T5: using velocity in the app

2008-01-16 Thread Hugo Palma
Your problem is not specific to Tapestry. You can use Velocity in a Tapestry application just like you use anywhere else. In this case, i think the problem is that your not setting the velocity resource loader, and by default velocity tries to load the file you provide from the current directory.