RE: problem with page service incoder

2006-07-24 Thread Firas A.
Hi, About the 'naked' html: Make sure you have this mapping in your web.xml YourTapestryServletName *.html -Original Message- From: xVik [mailto:[EMAIL PROTECTED] Sent: den 24 juli 2006 17:18 To: users@tapestry.apache.org Subject: prob

Re: Editing properties files on the fly

2006-07-24 Thread Sam Gendler
Well you can provide an overloaded implementation of the org.apache.hivemind.Messages and inject that into the pages via hivemind instead of the default. This will allow you to populate your messages with data from an editable resource (such as a database table) and then provide a webapp to edit

Editing properties files on the fly

2006-07-24 Thread Peter Dawn
guys, is there a way to edit (or even reference) the corresponding properties files. what i am getting to is that i want the user to be able to view the properties file content (i can display it somehow in a textarea) and let them edit and save it, which when saved would render the page with the e

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 BaseComponen

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: Tapestry Workbench Example

2006-07-24 Thread Peter Dawn
found it hidden in the tapestry-examples file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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]

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: Click here for German In your page class: public void setNewLocale(String localeStr

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 c

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 t

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

Maven 2, jetty 6, snapshots, the example applications

2006-07-24 Thread Josh Long
Im not sure if anyone else has experienced the same thing, but... On my windows laptop (at home) yesterday around 6 pm i was testing code and workng just fine on a tapestry 4.1 app. i ran mvn on it and everything was fine. then i got home after a roudy night at 1 am and found that mvn jetty6:run

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 t

Re: EventListener annotation

2006-07-24 Thread Jesse Kuhnert
HI'd be interested in an example. I'd really like to nip problems like this right away. On 7/24/06, Alexandru Dragomir <[EMAIL PROTECTED]> wrote: 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 . t

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 : http://www.w3.org/TR/xhtml1/DTD/xhtml1-tra

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

Re: EventListener annotation

2006-07-24 Thread Alexandru Dragomir
ok, thanks. the response look fine : http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; [ ]> Code Zeitgeist Alex On 7/24/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: P.S. If you are using maven2 for a specific project, specifying a version of

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 nul

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 fi

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
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 ti

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) a

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: http://www.google.com/s

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 ca

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 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

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 th

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 tom

problem with page service incoder

2006-07-24 Thread xVik
I add standart page service url encoder: so my url become beautiful: domain.com/Page.html but url for pages wich is content subfolders renders like that: domain.com/subfolder/Page.html and css file (assigned in the border element) couldn't be found.. and i see naked html.. how it ma

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. -Dorg.apach

RE: RE: Hivemind: Difference between and

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: 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: PermGen space - Caching is ON

2006-07-24 Thread Henri Dupre
On 7/24/06, Ben Sommerville <[EMAIL PROTECTED]> wrote: A final option may be to use a different JDK impl. E.g. I'm pretty sure that Jrockit (from bea) doesn't have a perm gen space & hence wont get the same problem (or at least might manifest it in a different way that is easier to diagnose).

RE: Hivemind: Difference between and

2006-07-24 Thread James Carman
Kris, The 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 instead, which by default uses the BuilderFactory to instantiate and configure your implementation object. Jam

Hivemind: Difference between and

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

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
Many many thanks for the help. I will look into this better, as the problem is obviously with me. Once again, thanks for the patience. On 7/24/06, Shing Hing Man <[EMAIL PROTECTED]> wrote: If I click submit without entering a username and password, both will be marked by two red asterisks. Any

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 Lo

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
So, when you DONT insert a username and password and press submit, he gives a warning about the missing values? On 7/24/06, Shing Hing Man <[EMAIL PROTECTED]> wrote: I have tested your Login component (in the case extending BaseComponent and then extending AbstractBaseComponent) and there is no

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. > > Thi

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 affec

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 many

Re: Explicitly setting the locale

2006-07-24 Thread Jesse Kuhnert
Oh yeah. Duh. The tapestry workbench example application does exactly this. On 7/24/06, Firas A. <[EMAIL PROTECTED]> wrote: Hi Daniel, You would probably need to use an DirectLink on your page template: Click here for German In your page class: public void setNewLocale(String localeString) {

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 <[EMAI

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

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 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 Abstrac

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

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 AbstractCompone

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 inline

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
I am looking at another project where I defined the form inline in the HTML and it worked without it. I just defined a form as and had no problems. Whats the difference between declaring the form properties inline and in the component specification, why does it work in one instance and not on th

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: > > Software > Foundation//Tapestry Specification 4.0//EN"

Re: Are components treated as pages?

2006-07-24 Thread Rui Pacheco
Here they go: This is my .jwc: http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> This is my .java: public abstract class Login extends AbstractBaseComponent { public abstract String getUname();

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 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

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 f

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

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 http://java.sun.com/j2se/1.5/p

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 to

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: Click here for German In your page class: public void setNewLocale(String localeString) { Locale newLocale = getLocale(localeString); // Must be defined somewhere getEngine().setLocale(newLocale);