Re: T3: Spindle Tomcat

2007-11-08 Thread Nick Westgate
With T3 & Spindle I always used the Sysdeo Tomcat plugin before WTP. Spindle adds a nature to the project in the .project file. E.g. in Eclipse 3.1 it is: com.iw.plugins.spindle.core.tapestrynature You could try adding the (new version) Spindle nature to a WTP project, but this is pretty hac

T3: Spindle Tomcat

2007-11-08 Thread Nazmul Bhuiyan
Hi, I'm using WTP to deploy my web application from eclipse. I've setup the WTP according to the document http://wiki.apache.org/tapestry/HowToSetupEclipseWtp. It works perfect but can't add any other project other then Dynamic Web project. Now I've created a Tapestry Web project by spindle bu

Re: T5: Intercepting the body of a component

2007-11-08 Thread Howard Lewis Ship
This is one of those cases that is, somewhat delibrately, not covered by T5 directly. I think you are on to something: capturing the Element and working your way into the body to re-write the markup generated by the components in the body. Tapestry uses a very light-weight DOM; I wonder if it wou

T5: Intercepting the body of a component

2007-11-08 Thread Andy Huhn
Hello, I'm trying to write a component that allows Tapestry to render its body into the MarkupWriter, and then it performs string substitutions on the MarkupWriter to "transform" the output before it is sent back to the client. Any ideas? I've looked through a bunch of the source code, and I can

Re: [t5] Firing a page activate event with a different event name?

2007-11-08 Thread Howard Lewis Ship
My point is that if you inject into a field whose type is an interface, then you have to specify the page name. However, and perhaps this is your point, we could extend the concept of marker annotations to pages and have a mechanism to inject based on the intersection of type (the interface) and m

Re: [t5] Firing a page activate event with a different event name?

2007-11-08 Thread Massimo Lusetti
On Nov 8, 2007 4:46 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > To be honest, these kind of page-to-page interactions may be better > implemented as ordinary Java methods, rather than events: Right, so the events we are talking about are external, right? This seems to put a lot of power in

RE: getting remote IP address

2007-11-08 Thread Nguyen, Michael
Thanks! I'll try that! --Michael -Original Message- From: Norman Franke [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 1:40 PM To: Tapestry users Subject: Re: getting remote IP address Here is what I do: @InjectObject("service:tapestry.globals.HttpServletRequest") public

Re: getting remote IP address

2007-11-08 Thread Norman Franke
Here is what I do: @InjectObject("service:tapestry.globals.HttpServletRequest") public abstract HttpServletRequest getRequest(); Then: getRequest().getRemoteAddr() That works for me. -Norman Franke ASD, Inc. On Nov 8, 2007, at 4:16 PM, Nguyen, Michael wrote: Yea.. Turns out the example I fou

RE: getting remote IP address

2007-11-08 Thread Nguyen, Michael
Yea.. Turns out the example I found in Jira was for an older version of T5 possibly T4. so I'm still stuck. :) Thanks! -Original Message- From: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 11:52 AM To: Tapestry users Subject: Re: getting rem

Re: getting remote IP address

2007-11-08 Thread Thiago H de Paula Figueiredo
On Thu, 08 Nov 2007 17:36:07 -0200, Nguyen, Michael <[EMAIL PROTECTED]> wrote: Eclipse complains about an undefined attribute value for the @Inject annotation. Check if you have imported the right @Inject annotation (org.apache.tapestry.ioc.annotations.Inject), as it doesn't hava attribu

getting remote IP address

2007-11-08 Thread Nguyen, Michael
Hello, I've been working on getting login authentication (http://www.nabble.com/T5-how-to-control-login-state-tf4744201.html) to work for my application and have hit a roadblock. How do I retrieve the remote IP address of

Re: Changing from https and http

2007-11-08 Thread Norman Franke
This is an odd one. Apparently, this technique doesn't work either. After loggin in via HTTPS, I can switch back to normal http. This is all done outside of Tapestry. Things get interesting, however, once I go to a tapestry page. I have a page with a a contrib:table. It will display properl

Re: Callbacks in Tap5

2007-11-08 Thread Stephane Decleire
Thanks Howard, The activate/passivate events seems the right way for simple things like the sample described in the Tap5 guide. But what if i needed the callback to store a request from a user while he is redirected to the signon page where he can click the registration or "i forgot my passwor

T5.0.5 ValidationTracker not available from the Environment

2007-11-08 Thread Daniel Jue
My application fails in IE6 after I changed the following code in my login component. (I moved the validation required into an annotation instead of in the template) Older, working code: User Name: Password:

Re: Maven servers for tapestry-javaforge

2007-11-08 Thread Alejandro Scandroli
Hi Tobias The original repository for the tapestry-javaforge project is: http://howardlewisship.com/repository/ Alejandro. On Nov 8, 2007 4:36 PM, <[EMAIL PROTECTED]> wrote: > Are there any mirrors of this server? > > > Codehaus Snapshots > http://snapshots.repository.codehaus.org/ >

Re: [t5] Firing a page activate event with a different event name?

2007-11-08 Thread Howard Lewis Ship
To be honest, these kind of page-to-page interactions may be better implemented as ordinary Java methods, rather than events: Page A injects page B and invokes arbitrary method m() on it. This can be made cleaner by defining method m() in an interface, perhaps ... hm, then you have to use @Inject

Maven servers for tapestry-javaforge

2007-11-08 Thread superoverdrive
Are there any mirrors of this server? Codehaus Snapshots http://snapshots.repository.codehaus.org/ true false Maven can not download: GroupId: com.javaforge.tapestry ArtifactId: tapestry-javaforge Version: 1.0.0-SNAPSHOT from there ( when builing

Re: Callbacks in Tap5

2007-11-08 Thread Howard Lewis Ship
Yes, the passivate/activate events fill similar roles to ICallback. There is no exact analog, but that's because you can build your own so easily on top of the passivate and activate events. On Nov 8, 2007 5:40 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: > I'm trying to migrate an application

Re: T5.0.7-SNAPSHOT: AppModule constructor not called??

2007-11-08 Thread Howard Lewis Ship
Module classes are not instantiated until a non-static method of the module must be invoked. Could this be the source of your issue? Because Tapestry IoC services are lazily instantiated, you may be able to navigate a section of your application before it becomes necessary to instantiate the modul

T5: Redundant javascripts in the page when clientvalidate="false"

2007-11-08 Thread Angelo Chen
Hi, This is a post related to http://www.nabble.com/T5%3A-disable-javascript-tf4749556.html#a13581860 disable javascript , here is a simple form: The page still contains javascript even when clientvalidate="false", the only way to totally remove javascript f

Re: T5 how to control login state

2007-11-08 Thread Chris Lewis
Michael, I understand what you are after, and I think you could hook in your engine by adding a dispatcher of your own. Perhaps you could do this in a filter as well - as long as you can access ASOs (for storing navigational history) and control output to the client, it should be possible. I

Re: T5: @Injectpage and ajax

2007-11-08 Thread Angelo Chen
Hi Lococode, Looks a good solution, will give it a try. Lococode wrote: > > Tty this filter: > > import java.io.IOException; > > > -- View this message in context: http://www.nabble.com/T5%3A-%40Injectpage-and-ajax-tf4768575.html#a13647997 Sent from the Tapestry - User mailing list arch

Callbacks in Tap5

2007-11-08 Thread Stephane Decleire
I'm trying to migrate an application which use ICallback from Tap 4.1.3 to Tap 5.0.6 Is there an equivalent to the callback notion in Tap 5 ? If not, does anybody know a way to implement such a mechanism ? Thanks in advance. Stephane

T5: Problem with Grid's pager

2007-11-08 Thread Marcelo Lotif
Hi all, I'm having a problem with the Grid's pager behavior. I have a page that makes a search in the database with some specific parameters. The result of the search is show in the same page, inside a Grid component, and sometimes it appears with the pager. The problem is: when i choose a grid p

Re: Strange OGNL exceptions just on test server

2007-11-08 Thread Martino Piccinato
It seems that this happen just when I have two diffrent deploy/context on the same host for the same tapestry 4.1.2 application... On Nov 8, 2007 11:40 AM, Martino Piccinato <[EMAIL PROTECTED]> wrote: > We have a strange phenomenon where we find in our log lots (really a > lot) of the exceptions r

Re: T5: @Injectpage and ajax

2007-11-08 Thread Lococode
Tty this filter: import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.Ht

tapestry @ javaforge anonymous svn access

2007-11-08 Thread Alejandro Scandroli
Hi I can't access the tapestry javaforge svn repository (403 Forbidden). James Carman commented about a similar issue on the HiveMind users's list. He had add the anonymous user as a Customer on his project (something he didn't have to do before). Can you add the anonymous user as a Customer in t

Strange OGNL exceptions just on test server

2007-11-08 Thread Martino Piccinato
We have a strange phenomenon where we find in our log lots (really a lot) of the exceptions reported below. It seems not to be a memory problem (all cpu/mem/heap/permgen/open file handles values seems to be just perfect) but this just happens on our test server while it does not happen on our works

Re: asset from byte array or stream

2007-11-08 Thread Ulrich Stärk
An asset is nothing more than a representation of an URL to some kind of image or style sheet. When asked to return it's content it will employ the asset service to do so. You should create an engine service that displays the image data with content-type image/* and call it from your page (much lik

T5.0.7-SNAPSHOT: AppModule constructor not called??

2007-11-08 Thread Alexander Lamb
Hello, I have an AppModule with several services defined. I need to initialize a few things when the application starts. I thought I would put them in the constructor of AppModule. Well, depending on what is in the constructor, sometimes it is called, sometimes not. Something as simple as