Re: Website concept

2009-09-10 Thread Peter Stavrinides
Sebastian, I applaud your effort, you have made some positive suggestions, I hope something will come of them. regards, Peter - Original Message - From: "Sebastian Hennebrueder" To: "Tapestry users" Sent: Thursday, 10 September, 2009 11:38:44 GMT +02:00 Athens, Beirut, Bucharest, Ist

Re: Website concept

2009-09-10 Thread Michael Gerzabek
Sebastian, great job! The main point is your thesis of missing 50 to 80 percent of potential new customers. What a waste of time and brainpower!!! I completely agree in selling the stuff to new users. This could as you pointed out very elegantly with rather small changes in the structure and g

Re: New Tapestry tutorial -> documentation structure

2009-09-10 Thread ice
Volunteer for spanish translation/proofreading! Michael Gerzabek wrote: > > Sebastian Hennebrueder schrieb: >> >> Furthermore, do you agree that we only translate the tutorial into >> languages where at least 2 persons are ready to keep the translation >> up to date. I propose this backup for

Re: Website concept

2009-09-10 Thread Ulrich Stärk
http://tapestry.formos.com/nightly/tapestry5/guide/request.html BTW: http://tapestry.formos.com/nightly/tapestry5/guide/rendering.html is still not working. (see https://issues.apache.org/jira/browse/TAP5-813) Uli On 10.09.2009 12:00 schrieb Michael Gerzabek: Sebastian, great job! The main po

Re: Website concept

2009-09-10 Thread Michael Gerzabek
Ulrich Stärk schrieb: http://tapestry.formos.com/nightly/tapestry5/guide/request.html GREAT! Thanks for that. BTW: http://tapestry.formos.com/nightly/tapestry5/guide/rendering.html is still not working. (see https://issues.apache.org/jira/browse/TAP5-813) Interesting, because http://tapestr

Dynamically creating submit buttons, how to call submit methods?

2009-09-10 Thread Stephan Windmüller
Hello! On a page I am looping over a list of objects. In each iteration I want to place a button which calls an action upon the iterated object. So basically I have something like this: This will not work, the id has to be unique. But how do I dynamically generate submit buttons and

Re: Website concept

2009-09-10 Thread Sebastian Hennebrueder
Michael Gerzabek schrieb: Ulrich Stärk schrieb: http://tapestry.formos.com/nightly/tapestry5/guide/request.html GREAT! Thanks for that. BTW: http://tapestry.formos.com/nightly/tapestry5/guide/rendering.html is still not working. (see https://issues.apache.org/jira/browse/TAP5-813) Interest

Re: Redirect page

2009-09-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Sep 2009 01:18:11 -0300, Xuan Tran Le escreveu: -- B class - @InjectPage private C c;//page C Object onActivate() { return c; } This should do the redirection. If not, try making your onActivate method public. You could also return C.class. All you need

Re: Dynamically creating submit buttons, how to call submit methods?

2009-09-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Sep 2009 09:11:55 -0300, Stephan Windmüller escreveu: Hello! Hi! This will not work, the id has to be unique. You could annotate your event handler method with @OnEvent(EventConstants.SELECTED) and use the context to disambiguate between them. -- Thiago H. de

Re: Website concept

2009-09-10 Thread Michael Gerzabek
Sebastian Hennebrueder schrieb: I setup a quick web page to visualize the information groups and pointers http://www.laliluna.de/tapestry/tapestry.html Very nice. A lot of time on your side :) It uses the current design but just edit jquery accordion functionality and related css. The purpo

Re: Projects and sites powered by Tapestry

2009-09-10 Thread Benny Law
Pardon me if I am mistaken, but shouldn't .class and .tml files be under WEB-INF and hence inaccessible automatically? Benny On Thu, Sep 10, 2009 at 2:52 AM, martijn.list wrote: > Angelo Chen wrote: > >> how to close access to ".class" and ".tml"? >> >> > > This has been posted to the list multi

Re: Website concept

2009-09-10 Thread Ivano Luberti
Sebastian, first of all thanks for your work. I believe that something should be made more clear is that T4 is dead. At the beginning of my T4 usage I was convinced T5 was a fork but T4 would have been still evolving. Michael Gerzabek ha scritto: > Sebastian Hennebrueder schrieb: >> I setup a qu

Re: Website concept - branch wanted

2009-09-10 Thread Sebastian Hennebrueder
Michael Gerzabek schrieb: What do you think? As you mentioned in your OpenOffice document. Make T5.1 most prominent. So when offering the downloads just offer a link the latest version. Then in a smaller font or maybe not so splendig color offer "older versions". Maybe this is also an invi

Re: Projects and sites powered by Tapestry

2009-09-10 Thread Alex Kotchnev
Benny, indeed that would be the case for a "traditional" web framework that serves web application assets (e.g. stylesheets, images, javascript) only from the publicly available directories (e.g. outside of WEB-INF). However, because of T5's component nature , if you deployed a component (e.g. a

Re: Projects and sites powered by Tapestry

2009-09-10 Thread Benny Law
Thanks for the detailed info, Alex. There is so much to learn. I hope this hole gets patched soon. Benny On Thu, Sep 10, 2009 at 9:41 AM, Alex Kotchnev wrote: > Benny, > indeed that would be the case for a "traditional" web framework that > serves web application assets (e.g. stylesheets, ima

T5: access some user session from another thread

2009-09-10 Thread Sergey Didenko
How can I delete a user session not from his request but from another thread in T5? Suppose user deletion happens on a regular basis. But the user to be deleted can be logged in. How can I delete not just database record for that user but also invalidate his current session objects if they exist?

Testify and asset/context?

2009-09-10 Thread Mats Henricson
Hi! How should we make Testify aware of asset and context? For example, we have this in our TML: ${context:/foo/bar/} Currently testify barfs at us like this: Caused by: java.lang.RuntimeException: Unable to locate asset 'context:foo/bar' (the file does not exist). at org.apache.t

Re: Testify and asset/context?

2009-09-10 Thread Paul Field
Mats Henricson wrote on 10/09/2009 14:59:32: > How should we make Testify aware of asset and context? > For example, we have this in our TML: >${context:/foo/bar/} > Currently testify barfs at us like this: > > Caused by: java.lang.RuntimeException: Unable to locate asset > 'context:foo/bar'

Re: Redirect page

2009-09-10 Thread Xuan Tran Le
Thank you. I hope it works. On Thu, Sep 10, 2009 at 7:32 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 10 Sep 2009 01:18:11 -0300, Xuan Tran Le > escreveu: > > -- B class - >> @InjectPage >> private C c;//page C >> >> Object onActivate() { >> ret

Re: T5: access some user session from another thread

2009-09-10 Thread Sergey Didenko
I see, this question is not in the Tapestry field probably. I should use HttpSessionListener. On Thu, Sep 10, 2009 at 4:57 PM, Sergey Didenko wrote: > How can I delete a user session not from his request but from another > thread in T5? > > Suppose user deletion happens on a regular basis.  But t

Re: T5: AccessController Dispatcher asm.exists() not working?

2009-09-10 Thread neo anderson
I am trying to do authorization stuff, but how to configure so that UserPermissions.class can be obtained using ApplicationStateManger.exists(UserPermissions.class) method? What I want to do is user request -> AccessController (Dispatcher) -> News (Page) User will click the url and then Acces

Re: Website concept - Missing PDF

2009-09-10 Thread Sebastian Hennebrueder
Here is the missing PDF -- Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer and Trainer for Hibernate / Java Persistence http://www.laliluna.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.

Re: Website concept - Missing PDF - Third try

2009-09-10 Thread Sebastian Hennebrueder
Sebastian Hennebrueder schrieb: Here is the missing PDF - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail

Re: Testify and asset/context?

2009-09-10 Thread Mats Henricson
Paul Field wrote: > Mats Henricson wrote on 10/09/2009 14:59:32: >> How should we make Testify aware of asset and context? >> For example, we have this in our TML: >>${context:/foo/bar/} >> Currently testify barfs at us like this: >> >> Caused by: java.lang.RuntimeException: Unable to locate a

T5: On-site edition of messages (translation) ?

2009-09-10 Thread Nicolas Bouillon
Hi, I'm working on a website which has to be translated in many languages. The people that will do the translation are not the web developpers, and i'm searching a way to make that translation work easier. My prefered way would be a way to live edit the messages (on a test server), or at lea

Re: T5: On-site edition of messages (translation) ?

2009-09-10 Thread Sebastian Hennebrueder
Nicolas Bouillon schrieb: Hi, I'm working on a website which has to be translated in many languages. The people that will do the translation are not the web developpers, and i'm searching a way to make that translation work easier. My prefered way would be a way to live edit the messages (on

[T5.1] Loops, Forms, and Events

2009-09-10 Thread xfile80303
Hi all, Forgive me, please, I'm feeling a bit slow and for the life of me am struggling with what I think should be a trivial concept... Please consider this simple example... Let's say there's a list of products, and one wants to loop over those products, displaying them as line items in a for

Tapestry Training in Frankfurt, Germany: Nov 23-25

2009-09-10 Thread Howard Lewis Ship
Sebastian Hennebrüder and I have been working on a plan to bring open-enrollment Tapestry training to Europe! We are planning on offering training in Frankfurt, Germany on Nov 23-25. This is my three-day, hands-on Tapestry workshop, which I normally teach on-site for specific clients. Recent clien

Exception handling + @CommitAfter

2009-09-10 Thread Bruno Santos
Good evening, I have a form using a zone and i have @CommitAfter on the onSubmitFromEntityForm() @CommitAfter Object onSubmitFromEntityForm() { try { entityDao.persist(entity); } catch (exception ex) { // handle exception } } altough i'm handling the exception the @CommitAfter creates

Re: Exception handling + @CommitAfter

2009-09-10 Thread Kalle Korhonen
You should instead try storing it onValidate. If it fails, you should record an error and if it succeeds you should commit only in onSuccess (but the method body can be otherwise empty). Kalle On Thu, Sep 10, 2009 at 2:55 PM, Bruno Santos wrote: > Good evening, > > I have a form using a zone an

Re: [T5.1] Loops, Forms, and Events

2009-09-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Sep 2009 18:26:18 -0300, xfile80303 escreveu: purpose... is there no way to identify the event handler in such a way as to be tied to the 'remove' concept? Use an EventLink instead of an ActionLink. t:event="remove" t:context="..."/> 2) The quantity of the line item is reflect

Problem with ZoneUpdater example

2009-09-10 Thread Geoff Callender
I can't figure why this example of ZoneUpdater (in a component) doesn't work when a field is cleared... http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxcomponents1 whereas this example of ZoneUpdater works just fine... http://jumpstart.doubleneg

Re: [T5.1] Loops, Forms, and Events

2009-09-10 Thread xfile80303
Thanks again Thaigo. I will try an EventLink. > Doesn't onSelectedFromMyLinkSubmit(Integer id) work in your case? (you > would need to add t:id="mylinksubmit" to your LinkSubmit). I can't try this at the moment, but will this work? The id will end up being mylinksubmit0, mylinksubmit1, mylin

Re: [T5.1] Loops, Forms, and Events

2009-09-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Sep 2009 21:37:57 -0300, xfile80303 escreveu: Thanks again Thaigo. You're welcome! I can't try this at the moment, but will this work? The id will end up being mylinksubmit0, mylinksubmit1, mylinksubmit2, etc. Will the onSelectedFromMyLinkSubmit() handler get called? Yes. I'v

Re: Problem with ZoneUpdater example

2009-09-10 Thread Thiago H. de Paula Figueiredo
Playing with them a little, it seems to me that the keyup event ignores non-printing chars. Try typing some spaces: nothing happens. Then type any letter: the AJAX update is triggered. Have you tried the change event? -- Thiago H. de Paula Figueiredo Consultor, desenvolvedor e instrutor em Ja

Re: How to .tml template access a class's static variable

2009-09-10 Thread Xuan Tran Le
Thank you. But A have so many method, so I can't do that. On Tue, Sep 8, 2009 at 7:01 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 08 Sep 2009 01:39:41 -0300, Xuan Tran Le > escreveu: > > - A.java -- >> public class A { >> >>pr

Re: How to .tml template access a class's static variable

2009-09-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Sep 2009 23:19:57 -0300, Xuan Tran Le escreveu: Thank you. But A have so many method, so I can't do that. Why not? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago ---

Re: Problem with ZoneUpdater example

2009-09-10 Thread Kalle Korhonen
Yes, but I guess Geoff was asking why the same keyup event works fine on the page, including non-printing chars. Kalle On Thu, Sep 10, 2009 at 6:17 PM, Thiago H. de Paula Figueiredo wrote: > Playing with them a little, it seems to me that the keyup event ignores > non-printing chars. Try typing

t5: Snow Leopard upgrade?

2009-09-10 Thread Angelo Chen
Hi, Snow Leopard comes with 64 bit java 6, programs compiled under that compatible with Tapestry 5 binary from the apache site? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-Snow-Leopard-upgrade--tp25394678p25394678.html Sent from the Tapestry - User mailing list

Re: t5: Snow Leopard upgrade?

2009-09-10 Thread Howard Lewis Ship
Hard to say; there's been some issues with Javassist and Java 6 not meshing together very well. On Thu, Sep 10, 2009 at 8:56 PM, Angelo Chen wrote: > > Hi, > > Snow Leopard comes with 64 bit java 6, programs compiled under that > compatible with Tapestry 5 binary from the apache site? Thanks, > >

Re: t5: Snow Leopard upgrade?

2009-09-10 Thread Angelo Chen
thanks for the quick response. currently, I compiled the program under Tiger's java which is 1.5, but the java runtime in the deployed server is 1.6, it works quite well. Howard Lewis Ship wrote: > > Hard to say; there's been some issues with Javassist and Java 6 not > meshing > together very w

Re: How to .tml template access a class's static variable

2009-09-10 Thread Xuan Tran Le
Because I have so many methods On Fri, Sep 11, 2009 at 9:27 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 10 Sep 2009 23:19:57 -0300, Xuan Tran Le > escreveu: > > Thank you. But A have so many method, so I can't do that. >> > > Why not? > > > -- > Thiago H. de Paula F

Re: How to .tml template access a class's static variable

2009-09-10 Thread DH
One question is how you expect to access the variable/method in the template and why you prefer to show/access so many static variable in the template? DH http://www.gaonline.com.cn - Original Message - From: "Xuan Tran Le" To: "Tapestry users" Sent: Friday, September 11, 2009 1:27 PM

Re: t5: Snow Leopard upgrade?

2009-09-10 Thread Sebastian Hennebrueder
Hello, Leopard has Java 64 bit as well. If I open programs -> service programs (name might be different, I translated the name) -> Java, I can see Java 6 - 64 bit, 6 - 32 bit, 5 - 64 bit, 5 - 32 bit, 1.4 - 32 bit -- Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer

Re: Tapestry Training in Frankfurt, Germany: Nov 23-25

2009-09-10 Thread Sebastian Hennebrueder
Hello, just a note. The price of 1300 EUR is excluding VAT. VAT is 19 % in Germany. -- Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer and Trainer for Hibernate / Java Persistence http://www.laliluna.de Howard Lewis Ship schrieb: Sebastian Hennebrüder and I have