Antwort: Why SubModule exported by eclipse can't auto loaded it's pages/* ? but sub module packaged by maven can be loaded?

2010-04-14 Thread Kristian Marinkovic
i guess you're missing the Tapestry-Module-Classes entry in your META-INF/manifest.mf file see also: http://tapestry.apache.org/tapestry5/tapestry-ioc/autoload.html g, kris Von:董和平 An: "Tapestry users" Datum: 15.04.2010 02:56 Betreff:Why SubModule exported by eclipse can't

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Charith Madusanka
hi Uli and Thiago , What do you think about this method. Is this method is ok for render PDF file to Images ? if you have any suggestion please send me.It's great help to me. Thank you, charith

Tapestry/JEE6 developer needed

2010-04-14 Thread Pierce T. Wetter III
Hey gang, we need a new Senior Java developer. San Jose, CA or Flagstaff, AZ. http://sfbay.craigslist.org/sby/eng/1691929735.html Send me your resume if you're interested (you'll be working for me). We're also looking for a consultant to help us bootstrap with OFBiz if there's anyone

Re: PageRenderLinkSource not usable in HttpServletRequestHandler?

2010-04-14 Thread Geoff Callender
Thanks guys, making it a RequestHandler did the trick. On reflection, there was no need for it to be so early in the pipeline. I guess you could even argue it was inappropriate for it to be there, because an HttpServletRequestHandler isn't intended to be aware of Tapestry concepts like page and

Why SubModule exported by eclipse can't auto loaded it's pages/* ? but sub module packaged by maven can be loaded?

2010-04-14 Thread 董和平

Can't autoload pages from Sub Module?

2010-04-14 Thread 董和平
I package a module into a jar file: subapp.jar the packages list are : subapp.jar META-INF com com/gsww com/gsww/subapp com/gsww/subapp/pages in AppModule, I can't load getResources("com/gsww/subapp/pages") from ContextClassLoader. but I can load getResources("com/gsww/subapp/pages/User.class")

RE: Good practices for handling page cleanup

2010-04-14 Thread Juan Isern
Alfie, thanks. It seems that the isXHR() approach will be good enough but it's nice to know of other mechanisms in the case the thing gets too complex. Alfie Kirkpatrick wrote: > > There's been some discussion on this in the past. The easiest way if AJAX > is your only scenario is probably usi

Re: How to change the clientId for AbstractField parent class

2010-04-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Apr 2010 19:10:10 -0300, Robert Hailey wrote: Well... it's a conglomerate field which is backed by a hibernate pojo and represents a date range (so it contains two dateFields). In this case, keep the original id as is and use it as a prefix to the other two dateFields: String

Re: How to change the clientId for AbstractField parent class

2010-04-14 Thread Robert Hailey
On Apr 14, 2010, at 4:36 PM, Thiago H. de Paula Figueiredo wrote: On Wed, 14 Apr 2010 18:32:39 -0300, Robert Hailey > wrote: I'd like to pragmatically change the super-class's field 'clientId' so that I can get a good string value coming into processSubmission. What exactly are you trying

Re: How to change the clientId for AbstractField parent class

2010-04-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Apr 2010 18:32:39 -0300, Robert Hailey wrote: I'd like to pragmatically change the super-class's field 'clientId' so that I can get a good string value coming into processSubmission. What exactly are you trying to implement? -- Thiago H. de Paula Figueiredo Independent Java, Ap

How to change the clientId for AbstractField parent class

2010-04-14 Thread Robert Hailey
I'd like to pragmatically change the super-class's field 'clientId' so that I can get a good string value coming into processSubmission. However... AbstractField.getClientId() is final and cannot be overridden. Rather than re-writing (or copy/pasting) AbstractField to simply provide a s

RE: Good practices for handling page cleanup

2010-04-14 Thread Alfie Kirkpatrick
There's been some discussion on this in the past. The easiest way if AJAX is your only scenario is probably using request.isXHR(). An alternative is to maybe use the ComponentEventLinkEncoder either directly or by intercepting it. It knows whether the request is for a page or component event. h

Re: How do I set up logging with Tapestry 5 and Tomcat?

2010-04-14 Thread Tim Koop
To answer my own question, the answer is this: You need a log4j.properties file in $CATALINA_HOME/lib, as this page describes: http://tomcat.apache.org/tomcat-6.0-doc/logging.html As soon as that file was there, my own log4j.properties in my classes folder started to be used. Just a guess,

Extra input field after ajax returning MultiZoneUpdate

2010-04-14 Thread Adam Derkey
Using Tapestry 5.2.0-SNAPSHOT I'm updating multiple zones after a select on Change event. The JSON response is including an extra input field after a select field in one of the zones I'm updating. The extra input is then showing up in the rendered page in the browser. Why would tapestry be adding

Good practices for handling page cleanup

2010-04-14 Thread Juan Isern
Guys, I've been working with some ajax components that need, to work properly, to store data in the session as persistent fields. I thought onActivate() would be a nice place to clean things up, doing it at the very first moment that a page is requested by the user seems ok. The problem is that

Re: How do I set up logging with Tapestry 5 and Tomcat?

2010-04-14 Thread Tim Koop
Thanks Igor. I just checked, and there are dozens of jar files in the class path, including slf4j-api-1.5.2.jar, slf4j-log4j12-1.5.2.jar, and log4j-1.2.14.jar. Come to think of it, I don't have any need to specifically use log4j at all. If someone can tell me how to get logging to work with

Re: How do I set up logging with Tapestry 5 and Tomcat?

2010-04-14 Thread Igor Drobiazko
Tapestry logs with slf4j. You need the slf4j - log4j - bridge. Make sure log4j-over-slf4j.jar is in the classpath. On Wed, Apr 14, 2010 at 7:07 PM, Tim Koop wrote: > Hi everyone. I've been using Tapestry 5 for a while. I like it, but I > can't seem to get logging working. > > In my page java c

How do I set up logging with Tapestry 5 and Tomcat?

2010-04-14 Thread Tim Koop
Hi everyone. I've been using Tapestry 5 for a while. I like it, but I can't seem to get logging working. In my page java class I have this: @Inject private Logger log; Object onSuccess() { log.debug("Tim was here."); return null; } This compiles and runs. I would like to see that m

Re: PageRenderLinkSource not usable in HttpServletRequestHandler?

2010-04-14 Thread Howard Lewis Ship
Robert has it exactly; where possible, do the work inside RequestHandler pipeline. I've been gradually adding new methods to Request to wrap HttpServletRequest methods ... in a worst case, inject HttpServletRequest into your RequestFilter. On Wed, Apr 14, 2010 at 5:05 AM, Robert Zeigler wrote: >

Re: GridPager with go to a choosen page number

2010-04-14 Thread Christophe Cordenier
Hi 2010/4/14 TNO > Ok I dit it, but in another simpliest way > > I create a form with a textfield in my Grid component. I inject the value > in the Grid with setCurrentPage > Nice > > thats'all > > thanks > > > Le 14/04/2010 17:15, TNO a écrit : > > Any example, please... >> >> Le 14/04/201

Re: GridPager with go to a choosen page number

2010-04-14 Thread TNO
Ok I dit it, but in another simpliest way I create a form with a textfield in my Grid component. I inject the value in the Grid with setCurrentPage thats'all thanks Le 14/04/2010 17:15, TNO a écrit : Any example, please... Le 14/04/2010 16:58, Christophe Cordenier a écrit : Hi 2010/4/1

Re: GridPager with go to a choosen page number

2010-04-14 Thread TNO
Any example, please... Le 14/04/2010 16:58, Christophe Cordenier a écrit : Hi 2010/4/14 TNO Hi everybody, I'm working on display a huge list (60 000 elements) with 20 per page. I've defined my own GridDataSource to get only the data that I display in a classic Grid component. It's very e

Re: GridPager with go to a choosen page number

2010-04-14 Thread Christophe Cordenier
Hi 2010/4/14 TNO > Hi everybody, > > I'm working on display a huge list (60 000 elements) with 20 per page. > I've defined my own GridDataSource to get only the data that I display in a > classic Grid component. > It's very easy and it works fine ! Thanks to Tapestry... > > But now, I want to ad

GridPager with go to a choosen page number

2010-04-14 Thread TNO
Hi everybody, I'm working on display a huge list (60 000 elements) with 20 per page. I've defined my own GridDataSource to get only the data that I display in a classic Grid component. It's very easy and it works fine ! Thanks to Tapestry... But now, I want to add a textfield and a button (go

HttpOnly Cookie

2010-04-14 Thread Mike Oestereter
Hi I would like to make tapestry append '; HttpOnly' to the end of whatever value tapestry decides to write for the "SET-COOKIE" header when applicable. Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.o

Re: PageRenderLinkSource not usable in HttpServletRequestHandler?

2010-04-14 Thread Robert Zeigler
That's possible... I doubt that Request/Request Globals have been initialized yet. Is there some reason you specifically need an HttpServletRequestHandler as opposed to a RequestHandler? More of the T5 infrastructure is available/initialized within the RequestHandler pipeline... Robert O

PageRenderLinkSource not usable in HttpServletRequestHandler?

2010-04-14 Thread Geoff Callender
It seems PageRenderLinkSource.createPageRenderLink(..) can't be used in an HttpServletRequestHandler because it results in NullPointerException. I'm using T5.1.0.5. Can anyone confirm this? (and perhaps give a good alternative?) java.lang.NullPointerException at $Request_127fc1c71ae.get

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Alex Kotchnev
Dmitry, good tip ! Thanks, Alex K On Wed, Apr 14, 2010 at 3:28 AM, Dmitry Gusev wrote: > Alex, > > In Google App Engine you may get another problem, the one associated with > Java 2D. > > Check this issue as a reference: > http://code.google.com/p/googleappengine/issues/detail?id=1423 > > On

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Dmitry Gusev
Alex, In Google App Engine you may get another problem, the one associated with Java 2D. Check this issue as a reference: http://code.google.com/p/googleappengine/issues/detail?id=1423 On Tue, Apr 13, 2010 at 21:11, Alex Kotchnev wrote: > Charith, > seems like as long as it works, it should

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Charith Madusanka
hi Uli , What do you think my method. This method is ok for render PDF file to Images ? if you have any suggestion please send me. charith

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-14 Thread Charith Madusanka
Hi Alex, One issue to investigate is whether you actually need a java.io.File to do > this or not. I think is not, You can generate pdf using another method. charith.