Re: Page template and class location

2008-04-21 Thread János Jarecsni
Hm, does not work. I tried http://localhost:8080/Celebrities/mylib/SomePage and http://localhost:8080/mylib/SomePage so both with and without a context, but none worked. cheers, janos On 22/04/2008, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > > When you contribute it via > > new LibraryMappin

Re: problem with example .TML

2008-04-21 Thread János Jarecsni
Hi Michael, I had a look... but it does not make too much sense for me :) Where do I use model.remove() now? Or do you mean I should change the remove attribute in wrote: > > Hi Janos, > > take a look at the upgrade notes. Close to the bottom the change of the > BeanModel signature is documente

Re: problem with example .TML

2008-04-21 Thread Michael Gerzabek
Hi Janos, take a look at the upgrade notes. Close to the bottom the change of the BeanModel signature is documented. Now you need mode.exlude(..) instead of model.remove(..). Regards, Michael [1] http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html János Jarecsni schrieb: Hi, I

Re: Page template and class location

2008-04-21 Thread Michael Gerzabek
When you contribute it via new LibraryMapping( "mylib", "com.mycompany.package" ) you wanna browse it with http://localhost:8080/mylib/x /M János Jarecsni schrieb: no :) I tried a lot of URLs in the browser, but none worked. What URL did you use to browse to such a page? thx janos On 22/0

Re: Page template and class location

2008-04-21 Thread János Jarecsni
no :) I tried a lot of URLs in the browser, but none worked. What URL did you use to browse to such a page? thx janos On 22/04/2008, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > > Exactly. Does it work now? > > /M > > János Jarecsni schrieb: > > > Hi Michael, > > > > I have the following line in

problem with example .TML

2008-04-21 Thread János Jarecsni
Hi, I have upgraded from 5.0.10 to 5.0.11 and a .TML which worked before now throws this: An unexpected application exception has occurred. Render queue error in SetupRender[AddCelebrity:celebrity.editor]: Exception instantiating instance of com.packtpub.celebrities.model.Celebrity (for componen

Re: Page template and class location

2008-04-21 Thread Michael Gerzabek
Exactly. Does it work now? /M János Jarecsni schrieb: Hi Michael, I have the following line in the manifest.mf of my T5 component library JAR: Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule Is it what you mean? thx Janos On 21/04/2008, [EMAIL PROTECTED] <[EMAIL PROTEC

T5: Form in a loop with PropertyEditor and custom type editor

2008-04-21 Thread Bill Holloway
This is kind of a reprise of an earlier e-mail, but it's more narrowed down and easy to reproduce. I have a form in a loop (in a cell parameter basically). The form is very simple. It has a propertyeditor component which edits a custom data type. I have defined a custom component which inherits

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-21 Thread zack1403
Why doesnt tapestry attach events to the DOM instead of using onClick? Zack Chris Lewis-5 wrote: > > Hi Lucca, > > I'd been looking for a good example to use to write a wiki explaining > the integration javascript by Tapestry, and your request gave me what I > was looking for. Check out the a

Re: Tapestry Start

2008-04-21 Thread zack1403
When I renamed my classes the package length didn't throw an oom error. Is working right now with the same package depth as when it was throwing an error. Right now I am using: -vmargs -Xmx1g -XX:PermSize=256M -XX:MaxPermSize=512M Zack Sven Homburg wrote: > > your package depth is too deep

Re: Tapestry Start

2008-04-21 Thread zack1403
Using T5 Components. I was able to get rid of the error when I renamed my classes back to what they were. I.e: pages.project.ProjectAdd went back to pages.project.Add etc. I know the feature is pretty new, maybe a bug? Zack Hi Zack. By chance are you using any 3rd party component libs? c

RE: T5 actionlink, ajax zone and user onclick handler

2008-04-21 Thread Blower, Andy
Chris, Just wanted to say that's a very well written wiki page which seems to pull together all relevant points without being too verbose. Bravo. Hope you get the urge to write more. Andy. > -Original Message- > From: Luca Fossato [mailto:[EMAIL PROTECTED] > Sent: 19 April 2008 22:30 >

Re: Tapestry Start

2008-04-21 Thread Sven Homburg
your package depth is too deep every package URL (not only the classes and files ) are stored by tapestry in an internal queue if there are too many packages, java throws an oom excpetion. try to start your servlet container with more heap memory (eg. -Xms512m) 2008/4/21, Chris Lewis <[EMAIL PROT

Re: Tapestry Start

2008-04-21 Thread Chris Lewis
Hi Zack. By chance are you using any 3rd party component libs? chris zack1403 wrote: > I have a very basic project with a few pages just doing basic crud stuff. My > Tomcat6 (SDK 1.6) server is running just this one tapestry project with > nothing running of my own during startup. I get this s

Tapestry Start

2008-04-21 Thread zack1403
I have a very basic project with a few pages just doing basic crud stuff. My Tomcat6 (SDK 1.6) server is running just this one tapestry project with nothing running of my own during startup. I get this stack trace after 10 seconds starting up. I should not that this project was working like a c

Re: T5: question about onValidate and form reset

2008-04-21 Thread Robert Zeigler
Whoops... Peter is correct about the method/event name: onValidateForm. Not onValidateFromForm, as I had posted, sorry. Robert On Apr 21, 2008, at 4/212:40 PM , Peter Beshai wrote: You want to use onValidateForm to handle validation that involves more than one field. Seems like the simples

Re: T5: question about onValidate and form reset

2008-04-21 Thread Peter Beshai
You want to use onValidateForm to handle validation that involves more than one field. Seems like the simplest solution to your second problem is to use an actionlink instead of a submit button and just have the fields reset by the event handler. I believe t5-components has a button component that

Re: T5: question about onValidate and form reset

2008-04-21 Thread Robert Zeigler
On Apr 21, 2008, at 4/212:15 PM , Kevin C. Dorff wrote: Sorry if these have been covered, I am somewhat new to T5, using 5.0.11. First, onValidate seems to be called once for each form variable, BEFORE the setter is called for that form variable. While I understand that logic, it SEEMS

T5: question about onValidate and form reset

2008-04-21 Thread Kevin C. Dorff
Sorry if these have been covered, I am somewhat new to T5, using 5.0.11. First, onValidate seems to be called once for each form variable, BEFORE the setter is called for that form variable. While I understand that logic, it SEEMS makes things a touch difficult to check the value I want to valida

Re: unsubscribe

2008-04-21 Thread Martin Strand
Try [EMAIL PROTECTED] instead: List-Unsubscribe: On Mon, 21 Apr 2008 18:12:32 +0200, Gert Thiel <[EMAIL PROTECTED]> wrote: unsubscribe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

unsubscribe

2008-04-21 Thread Gert Thiel
unsubscribe -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: example doesn't work :(

2008-04-21 Thread Chris Lewis
And unfortunately that should be expected, as it was based on an older alpha version. János Jarecsni wrote: > things are ok now :) thanks guys. unfortunately the example code from the T5 > book is broken in a lot of places now. I will need more time to look into > this. but the upgrade is ok now :

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
things are ok now :) thanks guys. unfortunately the example code from the T5 book is broken in a lot of places now. I will need more time to look into this. but the upgrade is ok now :) thanks again cu janos On 21/04/2008, Sven Homburg <[EMAIL PROTECTED]> wrote: > > bingo > > 2008/4/21, János Jar

Re: example doesn't work :(

2008-04-21 Thread Sven Homburg
bingo 2008/4/21, János Jarecsni <[EMAIL PROTECTED]>: > > ah, you mean I should not have added typestry-hibernate-XXX at all? > > > On 21/04/2008, Chris Lewis <[EMAIL PROTECTED]> wrote: > > > > Of course you don't need hibernate. I suggested that you upgrade the > > hibernate module because one of

Re: example doesn't work :(

2008-04-21 Thread Chris Lewis
It is a module for hibernate integration, so if you don't need hibernate, you don't need that module. János Jarecsni wrote: > ah, you mean I should not have added typestry-hibernate-XXX at all? > > On 21/04/2008, Chris Lewis <[EMAIL PROTECTED]> wrote: > >> Of course you don't need hibernate. I

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
ah, you mean I should not have added typestry-hibernate-XXX at all? On 21/04/2008, Chris Lewis <[EMAIL PROTECTED]> wrote: > > Of course you don't need hibernate. I suggested that you upgrade the > hibernate module because one of the exceptions you shared was caused by > it, so I assumed you had ad

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
definitely not! that's why I don't see why I get these exceptions. On 21/04/2008, Sven Homburg <[EMAIL PROTECTED]> wrote: > > are you using hibernate in your application ? > > 2008/4/21, János Jarecsni <[EMAIL PROTECTED]>: > > > > > can I just pass some fake hibernate.cfg.xml or T5 now requires so

RE: example doesn't work :(

2008-04-21 Thread Jonathan Barker
T5components pulls in some dependencies that you might not want. For example, if you are not running Hibernate, you want to make sure that you don't have tapestry-hibernate pulled in. You may need to explicitly exclude libraries. Also, beware of mixes of versions being pulled in. Jonathan >

Re: example doesn't work :(

2008-04-21 Thread Chris Lewis
Of course you don't need hibernate. I suggested that you upgrade the hibernate module because one of the exceptions you shared was caused by it, so I assumed you had added it out of need. If you don't, remove the dependency, otherwise please spend some time figuring out your configuration. None of

Re: example doesn't work :(

2008-04-21 Thread Sven Homburg
are you using hibernate in your application ? 2008/4/21, János Jarecsni <[EMAIL PROTECTED]>: > > can I just pass some fake hibernate.cfg.xml or T5 now requires some > database > resources to work? I mean do I have to create a valid hibernate config > just > to run T5? > > thx > janos > > > On 21/0

T5: T5 and EJB3

2008-04-21 Thread CG
Hi all, I am a newbie in Java Web Application programming. I am now plan to use Tapestry 5 + EJB3 to write a web application. After googling , I found that T4 does not support EJB3 due to Hivemind's EJBProxyFactory service does not support EJB3 . Therefore, I try to search again in Google for EJ

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
can I just pass some fake hibernate.cfg.xml or T5 now requires some database resources to work? I mean do I have to create a valid hibernate config just to run T5? thx janos On 21/04/2008, János Jarecsni <[EMAIL PROTECTED]> wrote: > > I updated everything, now I get this exception: > > some hiber

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
I updated everything, now I get this exception: some hibernate.cfg.xml is not found this time ... I think I'm close to the solution :) thanks again Janos Caused by: java.lang.RuntimeException: Error invoking service contribution method org.apache.tapestry.hibernate.HibernateModule.contributeValu

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
hm :( that yes, but now I examined the .WAR file, and saw that the old versions for the other JARs are there. sh..it :) thanks, I will give it another, more precise shot :P thanks janos On 21/04/2008, Chris Lewis <[EMAIL PROTECTED]> wrote: > > did you update everything, including tapestry-hib

Re: example doesn't work :(

2008-04-21 Thread Chris Lewis
did you update everything, including tapestry-hibernate? János Jarecsni wrote: > I upgraded to 5.0.11, but nothing works now :) I saw some complains that > Hibernate is missing, added Hibernate jars, then now I see some IOC problems > > > like this: > > Caused by: java.lang.RuntimeException: Error

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
I upgraded to 5.0.11, but nothing works now :) I saw some complains that Hibernate is missing, added Hibernate jars, then now I see some IOC problems like this: Caused by: java.lang.RuntimeException: Error invoking service contribution method org.apache.tapestry.hibernate.HibernateModule.contrib

Re: T5: onActivate() called twice

2008-04-21 Thread Leon Derks
Hi Davor, Indeed, I have a BasePage that implements the public void onActivate() {}method. In my subpage I also have implemented the public void onActivate() {}. The code in onActivate() of my subpage is executed twice. BASEPAGE: public void onActivate() { String pageName = resources.g

Re: T5: onActivate() called twice

2008-04-21 Thread Davor Hrg
you have to be more specific, same OnActivate method will not be called more than once in normal circumastances, but overriding onActivate from a base class I belive can cause this ... some code would be useful. Davor Hrg On Mon, Apr 21, 2008 at 12:41 PM, Leon Derks <[EMAIL PROTECTED]> wrote:

Re: example doesn't work :(

2008-04-21 Thread János Jarecsni
thanks for the prompt help! I'm now updating everything :) have a nice day! On 21/04/2008, Sven Homburg <[EMAIL PROTECTED]> wrote: > > now i am see it too ;- > > 2008/4/21, Chris Lewis <[EMAIL PROTECTED]>: > > > > > Hi, > > > > From the package in the stack trace it looks like you're using the ol

Re: example doesn't work :(

2008-04-21 Thread Sven Homburg
now i am see it too ;- 2008/4/21, Chris Lewis <[EMAIL PROTECTED]>: > > Hi, > > From the package in the stack trace it looks like you're using the old > version of that component. It has since been merged into the > http://code.google.com/p/tapestry5-components/, so try that. Also, the > latest T5

Re: example doesn't work :(

2008-04-21 Thread Chris Lewis
Hi, >From the package in the stack trace it looks like you're using the old version of that component. It has since been merged into the http://code.google.com/p/tapestry5-components/, so try that. Also, the latest T5 release is 5.0.11. chris János Jarecsni wrote: > Hi, > > the fckeditor compone

Re: example doesn't work :(

2008-04-21 Thread Sven Homburg
lastes tapestry is 5..0.11 lastest fckeditor is 2.6 have a look here http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html and here http://87.193.218.134:8080/t5c-demo/editorpage 2008/4/21, János Jarecsni <[EMAIL PROTECTED]>: > > Hi, > > the fc

example doesn't work :(

2008-04-21 Thread János Jarecsni
Hi, the fckeditor component doesn't work in my environment. For the page below I get an error message: An unexpected application exception has occurred. Render queue error in BeginRender[AddCelebrity:biography]: org.apache.tapestry.ioc.internal.util.TapestryException And in the tomcat log I fin

Re: Page template and class location

2008-04-21 Thread János Jarecsni
Hi Michael, I have the following line in the manifest.mf of my T5 component library JAR: Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule Is it what you mean? thx Janos On 21/04/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Janos, > You have to provide the full cla

Re: Page template and class location

2008-04-21 Thread michael . gerzabek
Janos, You have to provide the full class name of your Module (in your jar file) in the MANIFEST.MF file which is located in the META-INF directory. More infos on that in the two links I added my last post. http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580 http://tapestry

Re: Page template and class location

2008-04-21 Thread János Jarecsni
Hi Michael, what did you do? I did what I wrote (yes it is a library JAR, I have the LibraryModule class I quoted, the library name is "mylib", and the quoted URLs do NOT work. What URL did you use? thx a lot Janos On 21/04/2008, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > > Hi Janos, > > if y

Re: Page template and class location

2008-04-21 Thread Michael Gerzabek
Hi Janos, if your library is in a jar file read [1], else add the method you posted in your current Module. Tested it, works like a charm ;) [1] http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580 Infos on Modules: http://tapestry.apache.org/tapestry5/tapestry-ioc/modul

T5: onActivate() called twice

2008-04-21 Thread Leon Derks
Hi, I noticed that my onActivate() is called twice. I solved the problem by changing onActivate() into onActivate(Object[] parameters). Now it is only called once. But is this the way to do this or is there a better way? greetings, Leon --

Re: Page template and class location

2008-04-21 Thread János Jarecsni
Yes, but how? :) I tried various ways, none worked. The library contains the following library module: public static void contributeComponentClassResolver(Configuration configuration) { configuration.add(new LibraryMapping("mylib", "com.mycompany.package")); } In the "com.mycompan

Re: T5: Capture a component body as a block?

2008-04-21 Thread Tobias Wehrum
Hi Bill, do you mean ? Tobias Bill Holloway schrieb: In a couple of places I have Some interesting content. My need is to to capture whatever the "body" of MyComponent is into a block. Is there a better way to accomplish this? --

Re: T5: Is there a simple way to display property of embedded instance in Grid?

2008-04-21 Thread Tobias Wehrum
I only wish Java had an one-line reorder function. (Or has it?) I was (like you, ningdh) very irritated by said behavoir. My wish would be that we could use "add" both to add existing properties (but, for the one or other reason, like "has only a getter", non-showing) and not-property-blocks.

Re: Page template and class location

2008-04-21 Thread Michael Gerzabek
János Jarecsni schrieb: I have a component library, x.jar. I placed a y.tml into its pages package (some.package.pages, where some.package is declared in the library module as the root package). I added the component jar to the web application, still I cannot access the x.tml as a page. When y

Re: Page template and class location

2008-04-21 Thread János Jarecsni
I have a component library, x.jar. I placed a y.tml into its pages package (some.package.pages, where some.package is declared in the library module as the root package). I added the component jar to the web application, still I cannot access the x.tml as a page. Any help is welcome! :) Cheers, J

Re: org.apache.tapestry.BindingException in T4.1

2008-04-21 Thread Andreas Andreou
Hi, you can try the latest ognl version from: http://opencomponentry.com/repository/m2-snapshot-repo/ognl/ognl/2.7.3-SNAPSHOT/ If that still fails, you should log a bug for ognl at: http://jira.opensymphony.com/browse/OGNL For a workaround, simplify your expression by moving it (or parts) in your