Re: T5: page without template?

2007-09-10 Thread Nick Westgate
So process the request in onActivate and then forward to another page. Cheers, Nick. Angelo Chen wrote: Hi, I tried a page class without template, but got "No root element has been defined." exception. My need is like this, I'll ask user to click a link to activate his account, so I don't nee

T5: page without template?

2007-09-10 Thread Angelo Chen
Hi, I tried a page class without template, but got "No root element has been defined." exception. My need is like this, I'll ask user to click a link to activate his account, so I don't need a html in this case: http://forum.hibernate.org/profile.php?mode=activate&u=47561&act_key=7863a51d45df6e7

Re: T5: Hibernate

2007-09-10 Thread Angelo Chen
Hi Davor, Ok, that's good, I'd prepare a tutorial from newbie's perspective in the next few days, will be very basic, just a 'hello world' thing, actually there are some in the net but mostly not so simple. Davor Hrg wrote: > > there is a wiki page where issues from mailing list endup > http:/

Re: T5: Hibernate

2007-09-10 Thread Lindsay Steele
Just for the record, I got a heads up from someone else's message saying that things still worked with the warning message. My eventual problem was that I was importing org.hibernate.annotations.Entity instead of javax.persistence.Entity. The warning message is still there but everything el

Revisit T5 / OC4J (Oracle) 10.1.3 - No root element has been defined.

2007-09-10 Thread Jan Vissers
Retrying some stuff on OC4J 10.1.3 and T5. Running into issues going through Tapestry 5 Tutorial #1 (Forms). >From 'Start' to 'Create Address' the link returns the following error: No root element has been defined. Stack trace org.apache.tapestry.dom.Document.toMarkup(Document.java:89) org.apache

Re: T5 and Stateless Forms

2007-09-10 Thread Daniel Leffel
Not sure why, but seems if I inject the regular ValidationTrackerImpl implementation and don't persist it, I don't get null pointers anymore and all seems to be well. As an aside, using @Persist("client") is undesirable to me because of the url parameter it was adding. In T4, I sometimes used the

tapestry5 security

2007-09-10 Thread T. Papke
Hello their, currently i am doing my first steps with tapestry5. Now i have a problem with the question of security. I found two possiblities: Acegi or friendly urls with j2ee container based security. The first seems really complicated and the second one - I only found a tapestry4 example. So

Re: T5 and Stateless Forms

2007-09-10 Thread Filip S. Adamsen
Maybe injecting the ValidationTracker in your page and persisting it with @Persist("client:page") and then using the form's tracker parameter to use this will work? -Filip Daniel Leffel skrev: Is that done by setting clientValidation=true? I tried that and got the same behavior. Or did you m

Re: "6-10x performance gain in general rendering of pages" associated with 4.1.2?

2007-09-10 Thread Jesse Kuhnert
http://blog.opencomponentry.com/2007/05/30/upcoming-tapestry-412-release-is-going-to-be-a-little-bit-faster/ Although, if you are going to go through any kind of substantial effort to upgrade you may also want to take a look at Tapestry 5 as it's already super fast by default. On 9/10/07, Ari Mi

"6-10x performance gain in general rendering of pages" associated with 4.1.2?

2007-09-10 Thread Ari Miller
http://tapestry.apache.org/news.html#Tapestry%205.0.5 mentions "a 6-10x performance gain in general rendering of pages" associated with Tapestry 4.1.2, and refers to the release notes for additional details. I can't find those details in the release notes. The closest related item based on title

Re: T5: Hibernate

2007-09-10 Thread Davor Hrg
there is a wiki page where issues from mailing list endup http://wiki.apache.org/tapestry/Tapestry5HowTos If you have time you can contirbute to it, if not I'll probably put an hibernate example in few days there there is also a tutorial Howard is writing (not finished, but nice and verbose) http

Re: Rounded Corners Service not working?

2007-09-10 Thread Jesse Kuhnert
Yeah that's definitely been fixed in the 4.1.3-snapshots now. It queries the jre image service provider api for the list of supported providers and regresses back to jpg when GIF isn't available. 4.1.3-SNAPSHOT/OGNL 2.7.1 will be getting released later this week. On 9/10/07, Norman Franke <[EMAI

Re: Rounded Corners Service not working?

2007-09-10 Thread Norman Franke
That's likely because you are using JDK 1.5 which doesn't support GIF writing. I think I read that the latest svn version has a fix for that (pending the release of Tapestry 4.1.3) or just upgrade your JDK. Under JDK 1.6 I have the rounded corner service working as expected. -Norman On Aug

Re: T5 and Stateless Forms

2007-09-10 Thread Daniel Leffel
Is that done by setting clientValidation=true? I tried that and got the same behavior. Or did you mean to store the validation tracker as a hidden element in the form? On 9/10/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > You can store the validation tracker on the client side instead of t

Re: T5 and Stateless Forms

2007-09-10 Thread Howard Lewis Ship
You can store the validation tracker on the client side instead of the server side. On 9/10/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > > I realize client-side persistence isn't complete,so... Is there any way to > turn off validation to make a form stateless? I tried implementing my own > vali

T5 and Stateless Forms

2007-09-10 Thread Daniel Leffel
I realize client-side persistence isn't complete,so... Is there any way to turn off validation to make a form stateless? I tried implementing my own validation tracker which ignores errors, but I get a null pointer exception. Stack below: - org.apache.tapestry.internal.services.ComponentIn

Re: T5: Hibernate

2007-09-10 Thread Angelo Chen
Hi Davor, I spent whole day just to find out how tapestry-hibernate module works, it's a effort well spent, now I find it easy to use, if there were a sample program, that will be great help to newbies. anyway, works now, I encounter some warnings, but program still proceeds, any idea why warning

[T4.1.2] Using tapestry app behind a proxy server

2007-09-10 Thread Christian Dutaret
Hi all, I have many complaints from users using my T4.1.2 application from behind some proxy servers. Basically, all JS/Ajax stuff gets broken. Unfortunately I don't have any proxied environment available here, and no way to build one (our web access is shared across several companies, and they wo

Antwort: [T5] Tomcat and source path

2007-09-10 Thread Marcus Schmidke
Hello, have a look at http://tapestry.apache.org/tapestry5/tomcat.html. Perhaps it helps. Marcus. Hibowl

[T5] Tomcat and source path

2007-09-10 Thread Hibowl
Hi, i'm new to T5, and I would like to have such a source path : src/myapp instead of src/main/java/myapp. I built my project with Maven and quickstart. I managed to run it on Jetty, but can't find a way to do this with Tomcat. When I deploy the war created by maven on Tomcat, it don't find my a

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Howard Lewis Ship
Create a component with it's own template. However, you may find that once you are creating your own component, it so easy to replicate the things that ActionLink does, that you'll do it inline. On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote: > > Yes that is true ,I found this point also, If i wan

Re: Trying to read tapestry.supported-locales

2007-09-10 Thread Howard Lewis Ship
There are even easier ways coming; you can use @Inject @Value in a field of your component ... except that there's a bug that's preventing that from working. On 9/10/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: > > It was so easy! T5 is great! > > Service interface: > > public interfac

Re: Trying to read tapestry.supported-locales

2007-09-10 Thread Davor Hrg
niceely done, I belive this should work without this workarround, you could add a ticket for this Davor On 9/10/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: > > It was so easy! T5 is great! > > Service interface: > > public interface AvailableLocales { > public String getLocal

RE: Trying to read tapestry.supported-locales

2007-09-10 Thread Kolesnikov, Alexander GNI
It was so easy! T5 is great! Service interface: public interface AvailableLocales { public String getLocales(); } Service: public class AvailableLocalesImpl implements AvailableLocales { private String localeNames; public AvailableLocalesImpl(@Inject

RE: Trying to read tapestry.supported-locales

2007-09-10 Thread Kolesnikov, Alexander GNI
Yeah, I tried that too. This way I get nothing. Perhaps because in this case a different Inject annotation is used, without 'ioc' in its package. I guess those annotations with ioc should be used inside of /services subpackage, shouldn't they? Looks like I will have to create a custom service if I

Re: Trying to read tapestry.supported-locales

2007-09-10 Thread Davor Hrg
you can not use Inject in the getter firstly because it is not a getter method if it has parameters, and secondly because you can use inject only for page variables, injecting inside methods only works inside you AppModule class change your code: @Inject @Symbol("tapestry.supported-locales") priv

Trying to read tapestry.supported-locales

2007-09-10 Thread Kolesnikov, Alexander GNI
I am trying to read the value of tapestry.supported-locales in the code and display it in an expansion. Tried like so: public String getLocaleNames(@InjectService ("tapestry.supported-locales") String localeNames) { return localeNames; } And like so: public String getLocaleNames(@Inject

Antwort: Re: T5: Hibernate

2007-09-10 Thread Marcus Schmidke
Hi Angelo, yes ... the service you get from tapestry-hibernate is not mainly just reading the config. This is simple, you could do it yourself, this is just an additional benefit. The main service you get is that sessions and transactions are openend, closed and committed (hopefully even rolled

Re: T5: Hibernate

2007-09-10 Thread Angelo Chen
Hi Davor, Never mind the question, the error comes from a invalid table name, I forgot it's case senstive. I'd like to now if can use the transaction normally, like: Transaction tx = _session.beginTransaction(); List fruits = _session.createQuery("from Fruit f order by id").list();

Re: T5: Hibernate

2007-09-10 Thread Angelo Chen
Hi Davor, Marcus, finally working, thanks for both of you for taking patience to help a newbie like me. two more questions: 1. should we _seesion.close() after using? I got an exception when doing that. 2. to retrieve the rows, I did following: Transaction tx = _session.getTransaction();

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Davor Hrg
uh, I'm not sure, but i belive you'll need to change your approach to the problem, what are you trying to acheive ? Davor Hrg On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote: > > Yes that is true ,I found this point also, If i want to write tapestry > core > component,How to do?? > > use > @compon

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Doublel
Yes that is true ,I found this point also, If i want to write tapestry core component,How to do?? use @component(parameters={"id=literal:splitPage"}) private Actionlink link1; getter /setter^^ then I didn't know how to use link1?? how to nest into it ? 2007/9/10, Davor Hrg <[EMAIL PROTECTED]

T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Doublel
I write a custom componnet page ,in beginRender method I want to get a image link ,so the code is : writer.element("a", "t:type","ActionLink" ,"context",totalPage,"t:id","splitPage"); writer.element("img", "src",this.getLast02());

Re: T5: MarkupWriter.element() can not display correctly in my custom component page

2007-09-10 Thread Davor Hrg
I belive writer only writes elements it doesn't handle template syntax t:id and t:type belong to the template Davor Hrg On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote: > > I write a custom componnet page ,in beginRender method I want to get a > image link ,so the code is : > writer.element("a", >

Re: T5: Hibernate

2007-09-10 Thread Marcus Schmidke
Hi, it's jta.jar which comes with Hibernate. In Eclipse, make an additional project containing all jars you have. So you can always search for any class using Ctrl-Shift-T finding the right jar for it an add it to the project. Even better: You can also make a function less class in your project

Re: T5: Hibernate

2007-09-10 Thread Davor Hrg
that is: jta I have following because I use c3p0 pool: c3p0 c3p0 0.9.0 geronimo-spec geronimo-spec-jta 1.0-M1 test I'm not sure if geronimo spec if because of c3p0 or something else in my project i have jta-1.0.1B in my libs bu

Re: T5: Hibernate

2007-09-10 Thread Angelo Chen
Hi Davor, Thanks for the sharing of your hibernate.cfg.xml, the problem went away, now elimating some other exceptions, the last one seems this javax/transaction/Synchronization, any idea what package contains this? A.C. Davor Hrg wrote: > > > > -- View this message in context: http://

Re: [info] Tapestry >= 4.1.2 memory issues potentially fixed in latest 4.1.3-SNAPSHOT

2007-09-10 Thread Peter Stavrinides
Thanks for the quick fix, will give it a try! Peter Renat Zubairov wrote: Thanks Jesse! Solution of this bug was a clear sign for us to switch to the latests Tapestry version. Would be very nice to have a new release ASAP that we can use it in production. Renat On 07/09/2007, Jesse Kuhnert

Re: T5: Two simple questions

2007-09-10 Thread Francois Armand
Marcus Schmidke wrote: But (1) I still don't understand. Where do I have to put this method? Tapestry convention specify the directory layer for your webapp : tapestryRoot |- base |- components |- mixins |- pages `- services "Services" should contains a "AppModule" class, where "App" is the