cache on T4 page

2008-08-25 Thread michael lim
in my pagevalidate method, i call db to retrieve information and print out on page using @insert how do i cache it so that it will not hit the db so frequent ? any example? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-25 Thread Inge Solvoll
Same problem with RequestGlobals. Comes up as null when I inject it. Haven't tried the ApplicationStateManager yet, but in my head, the suggested code sounds like the equivalent of the @Application state annotation, which I already tried. Am I wrong? On Mon, Aug 25, 2008 at 11:40 PM, Inge Solvoll

Re: [T5] Announce - TreeGrid component

2008-08-25 Thread Weisu
Hi Gabriel, I am trying to use your treegrid component in T5.0.14. Do you have a simple example how to use it in T5? Thanks in advance! Weisu. Gabriel Landais wrote: > > Hi, > I've just released an early version of a tree grid component. It is > available via SVN on Google Code > (

[T4.1] Interacting with Tap form from separate widget

2008-08-25 Thread Jim
Hello, I have a complex JavaScript input-widget, and I want to tie its value into a Tapestry form. I made a @Hidden component, gave it an ID, and used JavaScript to set its value based on my widget. My tapestry listener kept getting the string "true", regardless of the value being set to th

Re: T5 : Let's write a book !

2008-08-25 Thread Hugo Palma
2. I definitely think that this would have to be something new. Like you say, they have different purposes and it should be kept that way. 3. I think that using the apache SVN for this will be near impossible as commit permissions would have to be given to everyone that commits to the book. Th

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-25 Thread Inge Solvoll
Ok, thanks, I'll try that! I already tried the following in my class that extends AbstractMessages: @Inject private HttpServletRequest request; @ApplicationState private User user; Which didn't work, both were null. But what your saying is that these objects are not possible to inject in this sc

Re: T5 : Let's write a book !

2008-08-25 Thread Alex Kotchnev
This is great, we have at least a bunch of people who would like to contribute. Any comments on the last couple of questions from my post : > > >> 2. Is there an existing place where this effort can be channeled > better, > > >> instead of creating something new ? > I still don't know the ans

Re: T5 : Let's write a book !

2008-08-25 Thread Toby Hobson
I'd be happy to help out Toby 2008/8/25 marcelo_Java <[EMAIL PROTECTED]> > > I'm want to be part of this, > > I've use tapestry for over two years now and created many J2EE solutions > with it. > My most recently battle was when I wanted to create a CMS using a WYSIWYG > editor called TinyMCE wi

Re: T5: How to implement a simple API servlet?

2008-08-25 Thread Thiago H. de Paula Figueiredo
Em Mon, 25 Aug 2008 16:10:11 -0300, immutability <[EMAIL PROTECTED]> escreveu: Here's what I'm trying to achieve: I'd like to implement a simplistic API in our webapplication using just a plain old servlet to handle all API method calls. The idea is to just call this single servlet, passing

Re: T5: How to implement a simple API servlet?

2008-08-25 Thread immutability
Thanks a lot for the tip Howard, I'll try it this way then, and see how it goes! :) Howard Lewis Ship wrote: > > I did some modest work like this many months back, where I had a page > as a kind of RESTful service endpoint. I returned a StreamResponse > from onActivate(). The "page" didn't ev

Re: T5: How to implement a simple API servlet?

2008-08-25 Thread Howard Lewis Ship
I did some modest work like this many months back, where I had a page as a kind of RESTful service endpoint. I returned a StreamResponse from onActivate(). The "page" didn't even have a template. This is not quite what T5 is intended to do, but you get the benefits of live class reloading and Io

T5: How to implement a simple API servlet?

2008-08-25 Thread immutability
Guys, I've been trying to search google and nabble for this, but just couldn't find the answer, perhaps I'm just using the wrong keywords or something... as I'm sure it will sound trivial to some of you. Here's what I'm trying to achieve: I'd like to implement a simplistic API in our webapplicati

Re: T5 : Let's write a book !

2008-08-25 Thread marcelo_Java
I'm want to be part of this, I've use tapestry for over two years now and created many J2EE solutions with it. My most recently battle was when I wanted to create a CMS using a WYSIWYG editor called TinyMCE with tapestry and I was stuck until I discover the outputraw component. Regards, Marcelo

Re: T5 : Let's write a book !

2008-08-25 Thread Hugo Palma
I agree that getting people to do boring tasks for free might be a challenge. But it's definitely worth a try. I think DocBook Wiki(http://doc-book.sourceforge.net/homepage/) could help here. You get the ease of use of a wiki and are still able to keep the content in docbook format so that it'

Re: T5 : Let's write a book !

2008-08-25 Thread Howard Lewis Ship
It is certainly an interesting idea. I think HIbernate follows a similar approach; they have a Wiki (Confluence, perhaps) and they "scrape" it to get the packaged documentation. We could look into running a more involved Wiki, perhaps from tapestry.formos.com. Confluence would be reasonable, as

T5 : Let's write a book !

2008-08-25 Thread Alex Kotchnev
First of all, I apologize for the long post in advance, I couldn't figure out how to make it shorter. I've been thinking about how much I miss the unborn "T5 in Action" book. I spoke to Howard a while back and he said that it's unlikely that a new revision of the "Tapestry In Action" (from Manning

Re: tomcat error filterStart

2008-08-25 Thread Mike Saavedra
Thanks Filip, Yes, I've tried only components in the jar and all classes in the jar; as well as no classes in WEB-INF/classes in case of dupe problem. All have the same result as below. Does anyone know how to get more information from catalina.out? All it says is: SEVERE: Error filterStart

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-25 Thread Hannes Heijkenskjöld
Hi Inge, glad to have been able to help you! For your current problem, I can see two immediate solutions. 1. Store your user object as an ASO and inject ApplicationStateManager into your Messages implementation. Get the user object instance by calling applicationStateManager.get(UserObject.cl

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-25 Thread Inge Solvoll
Hi, Hannes! I tried your implementation, and it worked right away, I just returned the value "TESTING TESTING" from my DbMessages class that extends Abstract Messages. But, what I need is for the valueForKey(String key) method to be aware of the languageId/customerId of the currently logged in us

T5+EJB3

2008-08-25 Thread Natia Gdzelishvili
Hello I have a stateful session bean UserCreatorBean which implements UserCreatorLocale on a tapestry page when submit is done I want to call UserLocaleBeans's some method, I am injecting bean with @EJB anotation but it is not injected (null pointer exception when invoking bean's method). How can

Re: prototype 1.6.0.2

2008-08-25 Thread Toby Hobson
ok thanks Howard 2008/8/24 Howard Lewis Ship <[EMAIL PROTECTED]> > If you add an issue to JIRA, we can look into upgrading to 1.6.0.2. > Hopefully 1.6.0.2 addresses the issue we originally had with Safari > support. > > On Sun, Aug 24, 2008 at 6:54 AM, Toby Hobson <[EMAIL PROTECTED]> > wrote: > >

Re: Return page from ajax request

2008-08-25 Thread Markus Joschko
Despite the workarounds I think it would be much nicer if tapestry could handle this automatically and don't force the developer to think about that. I created an improvement request https://issues.apache.org/jira/browse/TAPESTRY-2618 On Mon, Aug 25, 2008 at 2:31 AM, Jun Tsai <[EMAIL PROTECTED]>