RE: Explicitly setting the locale

2006-07-24 Thread Firas A.
Hi Daniel, You would probably need to use an DirectLink on your page template: a href=# jwcid=@DirectLink listener=listener:setNewLocale parameters=literal:de_DEClick here for German/a In your page class: public void setNewLocale(String localeString) { Locale newLocale =

Re: weird problem - Bean delegate has already been declared

2006-07-24 Thread Nick Faiz
Jesse, Thanks, but it's really a hard one to reproduce. It seems to follow in the wake of db failures. If I can reliably reproduce it I will follow the steps you suggest. Nick Jesse Kuhnert wrote: No idea what the problem is, but if you give a more complete example (preferrably attached

RE: PermGen space - Caching is ON

2006-07-24 Thread Ben Sommerville
I don't know any easy answers to this sort of problem, but I can suggest several avenues of investigation. If you are running on solaris or linux then Sun has several tools available that you can use to diagnose what is using the Perm Gen memory. Have a look at

RE: PermGen space - Caching is ON

2006-07-24 Thread Danny Angus
Harvey, David [EMAIL PROTECTED] wrote on 24/07/2006 02:50:17: Thanks for your comments, discussion. However, this occurs when caching is turned on, i.e. -Dorg.apache.tapestry.disable-caching=false. I sure hope there's a fix, I don't know if MaxPermSize can be made any larger in

Are components treated as pages?

2006-07-24 Thread Rui Pacheco
Hi all I've been knocking my head on the wall trying to find whats wrong here, and I can't see anything. I have a set of fields, inside a form, in an html snippet I defined as a component. I created a html file that contains just a snippet of that file, a .jwc file that contains the definition

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
I have no problem with validators for a TextField within a custom component. You might like to post your component's .java, .jwc. and .html and see if anyone in the list can help. Shing --- Rui Pacheco [EMAIL PROTECTED] wrote: Hi all I've been knocking my head on the wall trying to

RE: PermGen space - Caching is ON

2006-07-24 Thread James Carman
How many pages does your application have roughly? Thanks for your comments, discussion. However, this occurs when caching is turned on, i.e. -Dorg.apache.tapestry.disable-caching=false. I sure hope there's a fix, I don't know if MaxPermSize can be made any larger in production and it

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
Here they go: This is my .jwc: ?xml version=1.0 encoding=UTF-8? !DOCTYPE component-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 4.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd; component-specification class=pt.te.universal.components.login.Login

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
I think you have left out the delegate attribute in the Form component. http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Form.html Shing --- Rui Pacheco [EMAIL PROTECTED] wrote: Here they go: This is my .jwc: ?xml version=1.0 encoding=UTF-8? !DOCTYPE

RE: Are components treated as pages?

2006-07-24 Thread James Carman
I am doing exactly as you are and it works just fine for me. -Original Message- From: Rui Pacheco [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 7:44 AM To: Tapestry users Subject: Re: Are components treated as pages? I am looking at another project where I defined the form

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
Oops ! What I said about the missing delegate is rubbish. The validator should work without it. (I have tested it.) There should not be any difference whether a component is defined explicitly (in jwc or .page) or implicitly (in .html). The java class of your component extends

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
My component extends AbstractBaseComponent. Its a class I created to work as a parent for all my components. That way I can use inheritance to customize my components at will. AbstractBaseComponent itself extends BaseComponent. On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote: Oops ! What I

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
I do not know whether the following helps. In your custom class AbstractBaseComponent, if you have over ridden any methods of its parent BaseComponent, please check if you need to do a super().(overRidden method). Shing --- Rui Pacheco [EMAIL PROTECTED] wrote: My component extends

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
I didn't override any methods, although calling super could be usefull. On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote: I do not know whether the following helps. In your custom class AbstractBaseComponent, if you have over ridden any methods of its parent BaseComponent, please check if

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
Nope, nothing changed. On 7/24/06, Rui Pacheco [EMAIL PROTECTED] wrote: I didn't override any methods, although calling super could be usefull. On 7/24/06, Shing Hing Man [EMAIL PROTECTED] wrote: I do not know whether the following helps. In your custom class AbstractBaseComponent, if

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
To narrow down your problem, you could make the java class of your component extends BaseComponent directly (if possible) and see whether the validator works. Also, it might be a good idea to post the code of your AbstractBaseComponent (if it is reasonably short). Shing --- Rui Pacheco

RE: PermGen space - Caching is ON

2006-07-24 Thread Harvey, David
Roughly 100 unique pages. Several pages have multiple Ajax round trips for autocomplete using the Tacos toolkit. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 5:03 AM To: Tapestry users Subject: RE: PermGen space - Caching is ON How

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
I just tried to make my class extend BaseComponent and nothing happened. This is the source for the base class I use for all my components. Its pretty straightforward and since all components are DB aware, I handle all the db logistics in here. But still, I cannot see how this could fail to

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
I have tested your Login component (in the case extending BaseComponent and then extending AbstractBaseComponent) and there is no problem with the validator. Shing --- Rui Pacheco [EMAIL PROTECTED] wrote: I just tried to make my class extend BaseComponent and nothing happened. This is

Re: Are components treated as pages?

2006-07-24 Thread Shing Hing Man
If I click submit without entering a username and password, both will be marked by two red asterisks. Any blank text filed is marked with two asterisks. I noticed that that in your earlier post, the .html of the Login component does not have the form component defined in Login.jwc. So in my

Hivemind: Difference between invoke-factory and create-instance

2006-07-24 Thread Kristian Marinkovic
Hi, can somebody explain to me the difference between invoke-factory and create-instance? Is there any difference in behaviour as long as the class referenced by invoke-factory does not implement ServiceImplementationFactory? Or am i completely wrong :) I'm not sure how to use them. Thanks in

RE: Hivemind: Difference between invoke-factory and create-instance

2006-07-24 Thread James Carman
Kris, The create-instance is a very simplistic mechanism. All it does is instantiate that class. It does no configuration or wiring of the instantiated object. If you want dependency injection, use invoke-factory instead, which by default uses the BuilderFactory to instantiate and configure

Re: weird problem - Bean delegate has already been declared

2006-07-24 Thread Chris Chiappone
I was the original one to open up the JIRA issue about annotations and the binding issues. I still occasionally get the exception but its very difficult to reproduce. I've also switched to jetty for development and it has seemed to help with it. On 7/24/06, Nick Faiz [EMAIL PROTECTED] wrote:

RE: RE: Hivemind: Difference between invoke-factory and create-instance

2006-07-24 Thread Kristian Marinkovic
Hi James, i did a few tests and i understand now :) Thank you! g, kris James Carman [EMAIL PROTECTED]

Re: PermGen space - Caching is ON

2006-07-24 Thread Martin Strand
So you're seeing this in your production environment, not only when you hot redeploy from Eclipse? Martin On Mon, 24 Jul 2006 03:50:17 +0200, Harvey, David [EMAIL PROTECTED] wrote: Thanks for your comments, discussion. However, this occurs when caching is turned on, i.e.

problem with page service incoder

2006-07-24 Thread xVik
I add standart page service url encoder: contribution configuration-id=tapestry.url.ServiceEncoders page-service-encoder id=page extension=html service=page/ so my url become beautiful: domain.com/Page.html but url for pages wich is content subfolders renders like that:

Re: PermGen space - Caching is ON

2006-07-24 Thread Henri Dupre
Yes I've seen the same issue on linux and windows with all JDKs using Tomcat or JBoss. I'd be curious to know if other containers such as Jetty, Weblogic or Websphere have better solutions... I'm not sure what do you refer as hot redeploy... We are using the tomcat ant tasks to redeploy into

Re: PermGen space - Caching is ON

2006-07-24 Thread Konstantin Ignatyev
Just an idea: could it be that some aspectizing container (Spring or HiveMind)has a not quite correctly written service that is not a singleton, but a (bad) factory. That factory might create new aspectized class every time and then instantiate object instead of creating a weaved class once and

Re: PermGen space - Caching is ON

2006-07-24 Thread Martin Strand
Hot redeploy is when you edit your code in Eclipse and Eclipse automatically adds the new classes to the running JVM and reloads the context. That would leave the old classes in the classloader, eventually leading to the OOM error you're seeing. I'm far from an expert on the subject, but

RE: PermGen space - Caching is ON

2006-07-24 Thread David . Harvey
To answer Martin's question: This is in a production environment. There isn't any hot deploying happening. Our production environment virtual machine args: -Xms128m -Xmx1024m -Dorg.apache.tapestry.disable-caching=false -XX:MaxPermSize=128m I don't know how much larger the PermSize can be.

RE: PermGen space - Caching is ON

2006-07-24 Thread David . Harvey
This is in a production environment. There isn't any hot deploying happening. We just let the application run. Our production environment virtual machine args: -Xms128m -Xmx1024m -Dorg.apache.tapestry.disable-caching=false -XX:MaxPermSize=128m I don't know how much larger the PermSize

Re: PermGen space - Caching is ON

2006-07-24 Thread Martin Strand
What I meant is that the redeploy ant task you mentioned likely causes the same error as Eclipse's hot redeploy - old unused classes are still left in permgen space. Restarting tomcat rather than redeploying would probably cure the problem. Also, if you check google:

EventListener annotation

2006-07-24 Thread Alexandru Dragomir
Hi ! I tried the time tracker application included in tapestry examples ( neat). I made a maven build of tapestry so i'm using the latest files. Everything works just fine only one pb.. and i'm not sure if i did something wrong. The issue is with the use of EventListener (very cool otherwise)

Re: EventListener annotation

2006-07-24 Thread Jesse Kuhnert
You'd see a debug error/warn if no content was found to update. If you are running with firefox get the FireBug extension and turn on watch xmlhttp requests to see exactly what is getting returned in your response. On 7/24/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: Hi ! I tried the time

Re: EventListener annotation

2006-07-24 Thread Alexandru Dragomir
Ok, i tried it. I get an error : tapestry.html has no properties... core.js (line 143) anonymous anonymous anonymous doLoad anonymous null I'll look into core.js maybe i can find the pb. thanks ! Alex On 7/24/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: You'd see a debug error/warn if

Re: EventListener annotation

2006-07-24 Thread Jesse Kuhnert
P.S. If you are using maven2 for a specific project, specifying a version of 4.1-SNAPSHOT should keep you in sync with the most current snapshot version available without having to rebuild. On 7/24/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Ah ok. That sounds like a bug that was recently

Re: EventListener annotation

2006-07-24 Thread Jesse Kuhnert
Ah ok. That sounds like a bug that was recently fixed. Are you using the most recent version? On 7/24/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: Ok, i tried it. I get an error : tapestry.html has no properties... core.js (line 143) anonymous anonymous anonymous doLoad anonymous null

Re: EventListener annotation

2006-07-24 Thread Alexandru Dragomir
ok, thanks. the response look fine : ?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; [ !ENTITY nbsp '#160;' ] ajax-responseresponse id=projectDescription type=elementdiv id=projectDescription

Re: How much faster have you found tapestry 4 to be over tapestry 3?

2006-07-24 Thread ZedroS Schwart
It would be great to reduce this turnaround time. Indeed, for the developpers, it's really painful, even with the no cache option on. For sure, I don't know the internal of the beast, but from a (low level ;)) developper point of view, the turnaround time is pretty important, and the slower the

Re: EventListener annotation

2006-07-24 Thread Alexandru Dragomir
I just got synchronized with svn. Hope i'm not missing some files somewhere , but i still have the same problem. I'll look more into it . thanks ! Alex On 7/24/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: ok, thanks. the response look fine : ?xml version=1.0 encoding=UTF-8?!DOCTYPE

Re: EventListener annotation [solved]

2006-07-24 Thread Alexandru Dragomir
After i synchronized with svn was not working because the cache was keeping the old script. Now is working , with the latest core.js . thanks a lot ! Alex On 7/24/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: HI'd be interested in an example. I'd really like to nip problems like

Re: Maven 2, jetty 6, snapshots, the example applications

2006-07-24 Thread Konstantin Ignatyev
This is the flaw in Maven I am constantly ranting about: dependency of build on server content. That is because of ranges in versions and snapshot dependencies for system stuff (plugins). Maven’s dependencies resolver should be really thrown away and replaced by something decent like IVY. It is

Re: Maven 2, jetty 6, snapshots, the example applications

2006-07-24 Thread Josh Long
I wasnt sure this was a flaw in maven or even jetty... i just forgot to nail down a working iteration, is all.. :-/ i might be wrong, but I think i read that snapshots was meant for say a team of people with inter-team dependencies that need to be in sync. With that theres the implication that

Re: How much faster have you found tapestry 4 to be over tapestry 3?

2006-07-24 Thread Josh Long
tapestry 4 seems faster on some things, the same on others for me. it does scale better as suddenly you can move a lot of persistant state onto the client, optimize away unecessary creation of application state objects, ognl calls are fewer and faster, etc. for development turnaround, tapestry

Re: Explicitly setting the locale

2006-07-24 Thread Daniel Trebbien
Hi Firas, Thank you for the 'getRequestCycle().cleanup();' line. Daniel Trebbien. On 7/24/06, Firas A. [EMAIL PROTECTED] wrote: Hi Daniel, You would probably need to use an DirectLink on your page template: a href=# jwcid=@DirectLink listener=listener:setNewLocale

Tapestry Workbench Example

2006-07-24 Thread Peter Dawn
hi guys, where abouts is the tapestry workbench example war file. i am trying to find it but am not sure where abouts it is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Component events

2006-07-24 Thread Rui Pacheco
Hi all One quick question, as the API got me a bit confused: which event is equivalent to pageBeginRender for a component that extends BaseComponent? -- Cumprimentos, Rui Pacheco

Re: Component events

2006-07-24 Thread Jesse Kuhnert
prepareForRender ? http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/index.html On 7/24/06, Rui Pacheco [EMAIL PROTECTED] wrote: Hi all One quick question, as the API got me a bit confused: which event is equivalent to pageBeginRender for a component that extends