How to instance object using generic method?

2008-05-06 Thread Jun Tsai
public class GenericCreatePage{ private T entity; void onSuccess(){ orm.save(entity); } public void setter/getter } public class CreateUser exntends GenericCreatePage{ void onActivate(){ // Must instance the entity object.How to avoid or using generic method? setEntity(new Us

T5: IE conditional not working under template

2008-05-06 Thread Angelo Chen
hi, if I put following code in a pure html file and open it with IE, it works, but if I put this in a T5 template then run the app, open it in a IE, the 'Welcome to...' will not display, any idea how to make this works? thanks. Angelo < p> test ie < !--[if IE]>Welcome to Internet Explorer

Re: tapestry web app , deployed in tomcat. Need to set as default web app

2008-05-06 Thread Marcus
Hi Mahen, Maybe this help, server.xml: ... ... ... ... Marcus

Re: Tapestry 5 Beaneditform and TextFlield

2008-05-06 Thread Howard Lewis Ship
It is possible; you must make your own contribution to the BeanBlockOverrideSource service configuration. In this way, you can override how "text" data types are displayed or editted (or both). Contibutions to BeanBlockOverrideSource do exactly that, override the contributions to BeanBlockSource.

Tapestry 5 Beaneditform and TextFlield

2008-05-06 Thread ice96
Hello, I have simple question: I have extended TextField component with few new futures (I called it Input), now I want to replace TextField component to my Input component in BeanEditForm. Is it not painfull way without tapestry corelib recompilation? -- View this message in context: http://www

Re: Replace item in OrderedConfiguration

2008-05-06 Thread Howard Lewis Ship
I've been thinking for a while about adding remove() and replace() methods to OrderedConfiguration and MappedConfiguration, and adding other methods to OrderedConfiguration to allow minor tweaks to dependencies. It just hasn't been a priority. It also leads to ambiguities ... what if you remove a

Re: Replace item in OrderedConfiguration

2008-05-06 Thread Daniel Jue
Sounds the same as my issue with replacing the "Default" hibernate config, which is stored in a OrderedConfiguration list. (I ended up just putting a minimal dummy hibernate.cfg.xml in the path, and then the configuration I made replaces the entire config since it's loaded after the "Default". Can

Replace item in OrderedConfiguration

2008-05-06 Thread Robin Helgelin
Hi, My tapestry5-acegi module contains this: public static void contributeHttpServletRequestHandler( OrderedConfiguration configuration, @InjectService("HttpSessionContextIntegrationFilter") HttpServletRequestFilter httpSessionContextIntegrationFilter, @InjectSer

Re: Tapestry 5 - doesn't generate valid XHTML

2008-05-06 Thread Francois Armand
Christian Gorbach wrote: yep, this is mainly an IE flaw. IMHO tapestry should use the xmlModel as the default model. (or use a mapped config for model selection..) check http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/internal/services/Markup

Re: T5 PopUp Windows & JavaScript

2008-05-06 Thread maxthesecond
I reply to myself for if someone needs to do the same > > 1) Is this pattern feasible? > 2) Shall I use the mixins aproach for doing this? > 3) where can I found information to build up my javascript functions to > embed the pagelink path? > 4) how can I avoid the replication of javascrip

Re: T5: default.css and IE7 problem

2008-05-06 Thread Chris Lewis
The preferred way would be via conditional comments in your document header. http://www.quirksmode.org/css/condcom.html http://msdn.microsoft.com/en-us/library/ms537512.aspx There are probably browser hacks that would work as well, but if you've used hacks in the past you've probably learned why

Re: T5: pass value between components in different pages

2008-05-06 Thread DavidWei
Thanks for your suggestion. Actually it is not caused by session timeout, because by default session timeout is 30 min. In my case, I refresh page just after 10 min. I think the way I was doing somehow the value/reference of value was cleared by T5. joshcanfield wrote: > > Instead of persisting

Re: Tapestry.js and firefox 3

2008-05-06 Thread Adriaan Joubert
False alarm - once I had wiped my maven repository and got a fresh snapshot of tapestry down things started working again. Cheers, Adriaan On Tue, May 6, 2008 at 9:50 AM, Adriaan Joubert <[EMAIL PROTECTED]> wrote: > Hi, > > since starting to use firefox 3 (upgrade to new ubuntu!), the tapestry

Re: T5: default.css and IE7 problem

2008-05-06 Thread Angelo Chen
hi Tomasz, This works, thanks. however, the its effect is, look just right in IE7 but shift too much to the right in other browsers, any idea how to make this works only in IE7? Angelo Tomasz Dziurko wrote: > > Override T5 default css file. > > Put this in every your page class or (better sol

Re: T5: Persistence pains

2008-05-06 Thread Ivan Dubrov
Kalle Korhonen wrote: Hey Ivan, When you say "we", who are you referring to? I mean my company. In my mind, this flow aka conversation support is absolutely the right solution for the problem. Are you planning to share the code or include it with some other project? Unfortunately, I can

Re: T5: default.css and IE7 problem

2008-05-06 Thread Tomasz Dziurko
Almost forgot :) You need also add to tag in you tml file: Regards -- Tomasz Dziurko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: default.css and IE7 problem

2008-05-06 Thread Tomasz Dziurko
Override T5 default css file. Put this in every your page class or (better solution) in TopPage from all pages inherits. Just remember not to place TopPage in pages package, so it won't be accessible to user (e.g. place it in package org.myapp.commons). @Inject @Path("context:styles/style.css") p

Re: [T5.0.11] ClassCastException

2008-05-06 Thread János Jarecsni
Ok, following the instructions at the end of the page pointed to by the link below I could solve this issue :) cheers, janos 2008/5/6 János Jarecsni <[EMAIL PROTECTED]>: > Hi all, > > I've found an answer to this from Howard ( > http://article.gmane.org/gmane.comp.java.tapestry.user/53987 ). He s

Re: [T5.0.11] ClassCastException

2008-05-06 Thread János Jarecsni
Hi all, I've found an answer to this from Howard ( http://article.gmane.org/gmane.comp.java.tapestry.user/53987 ). He says: "*Basically, you shouldn't mix component classes with services classes. When you do so, you need to define an interface for your components to implement.*" Here's what I did

Re: Page pool exausted?

2008-05-06 Thread Dmitry Shyshkin
Look at http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html for parameters tapestry.page-pool.hard-limit and tapestry.page-pool.soft-limit Peter Stavrinides wrote: Hi All, I have a peculiar error turning up in our server logs, I am running a Tapestry 5 application on Tomcat 6:

Page pool exausted?

2008-05-06 Thread Peter Stavrinides
Hi All, I have a peculiar error turning up in our server logs, I am running a Tapestry 5 application on Tomcat 6: Render queue error in BeginRender[hf/Client:wrapper.header.pagelink_0]: The page pool for page 'hf/Home' (in locale en) has been exausted: there are 20 instances currently being us

T5: default.css and IE7 problem

2008-05-06 Thread Angelo Chen
Hi, I have a form like following, when the error is displayed, it is in the correct position in all the browsers except IE7, the error was shifted to the left, you can see it from the attached link, I trace the default.css, it seems this is the problem: HTML>BODY DIV.t-error LI { margin-left