t5: dispatcher not fired in the start page

2008-03-07 Thread Angelo Chen
Hi, I have a page that I make it as 'start' page by configuration.add("tapestry.start-page-name", "home"); and I have a dispatcher that is configured in the AppModule as follow: public static void contributeMasterDispatcher(OrderedConfiguration configuration, @InjectServic

JumpStart 3.3.4 is now available

2008-03-07 Thread Geoff Callender
Hi all, JumpStart 3.3.4 is now available for T5.0.10. It fixes and improves some items in 3.3.3: * Replaced html and body elements of BoldItalicDisplay component with t:container. * Corrected the erroneous explanation of invisible instrumentation in Previewable Template example. * Min

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Roger_man
Hi Andreas , Cleared the Browser cache. Still getting this JS error while clicking DatePicker component Line : 1 Char: 1 Error: 'calendar_DatePicker_7' is undefined Code:0 URL:http://localhost:8080/kp/app? component=dataTable&container=ContainerDataList&page=ContainerDataList&service=direct&ses

Re: javassist problems with Java 1.6

2008-03-07 Thread Yunhua Sang
Hi Geoff, I found upgrading JBossAS may not help, it can be a bug in Javassist. I compiled latest T5 (5.0.11 SNAPSHOT) code by using JDK 1,6, just want to see how well T5 works on Java 6 bytecode. I started the integration app1, then ended up of ArrayIndexOutOfBoundsException when I was trying t

Re: [FAQ] common design

2008-03-07 Thread Geoff Callender
Thanks for pointing this out. Will be fixed in JumpStart 3.4, replacing the component's html and body elements with a t:container element. Works like a charm. Geoff http://files.doublenegative.com.au/jumpstart/ On 06/03/2008, at 4:53 AM, Julian Wood wrote: On Mar 5, 2008, at 10:26 AM, C

Re: javassist problems with Java 1.6

2008-03-07 Thread Geoff Callender
How right you are. Thanks. From http://sourceforge.net/project/shownotes.php?release_id=548923&group_id=22866 : "JDK5 is *required* to run JBossAS 4.2.x" and "JDK6 support will come with JBossAS 5.x." On 07/03/2008, at 10:57 PM, Joachim Van der Auwera wrote: From what I understand, JBos

Re: Comma-delimited looper

2008-03-07 Thread Filip S. Adamsen
And? Whatever content you put after the will still be rendered - and properly comma-delimited. :) -Filip Bill Holloway skrev: Well, sometimes this will be page links, sometimes literal text, sometimes other components. The loop body might contain anything. Bill On Fri, Mar 7, 2008 at 8:24

Re: [FAQ] common design

2008-03-07 Thread Sven Homburg
a look at http://213.160.23.119:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Remove.html mybe helps 2008/3/7, Robert Zeigler <[EMAIL PROTECTED]>: > > TestPage.tml: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > SampleComponent.tml: > > http://t

Re: T4: EventListener on multiple elements

2008-03-07 Thread Andreas Andreou
I think i was just printing the value parameter of @For inside the EventListener enhanced listener, and was always seeing the value of the last iteration (btw, without using BrowserEvent ). But, I will recheck and try to come up with a testcase this weekend. On Thu, Mar 6, 2008 at 10:19 PM, Jess

Re: T5: Examples for Cayenne integration?

2008-03-07 Thread Mark W. Shead
On Mar 7, 2008, at 6:11 AM, Angelo Chen wrote: I read the online doc of Tapestry5 and I found those documents are complete and informative, far better than most of open source projects, maybe what needed are some "getting started" ones or some "best practice" things for certain tasks. I

Re: [T5] Help getting generics to work

2008-03-07 Thread buckofive
Howard, Thank you for the quick response! Are there intentions to get Tapestry to support generics for cases like this when its released? It would really be great to have this kind of support (I've already come across a few cases where it would come in very handy). Thanks again, B Howard Le

Re: javassist problems with Java 1.6

2008-03-07 Thread Geoff Callender
Typo in the email only. -Dsun.lang.ClassLoader.allowArraySyntax=true On 07/03/2008, at 10:36 PM, Andreas Andreou wrote: -Dsun.lang.ClassLoader.allowArraySyntex=true a typo just in this email, or in the actual usage? On Fri, Mar 7, 2008 at 1:17 PM, Geoff Callender <[EMAIL PROTECTED] > wrote:

Re: JumpStart 3.3.3 now available - fixes 3.3.1 bugs

2008-03-07 Thread Borut Bolčina
Thanks Geoff, it works now with JDK 1.5. 2008/3/6, Geoff Callender <[EMAIL PROTECTED]>: > > I've finally been able to reproduce this problem by using JDK 1.6. > Not sure why that is but I'll be looking into it. > > in the meantime please drop back to JDK 1.5 like this: > - In Eclipse choose Window

Re: Comma-delimited looper

2008-03-07 Thread Bill Holloway
Well, sometimes this will be page links, sometimes literal text, sometimes other components. The loop body might contain anything. Bill On Fri, Mar 7, 2008 at 8:24 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Bill, > > Try this: > > > , > >context="currThing.id">${curr

Re: T5: onValidationFrom

2008-03-07 Thread ronaldlee
Thx for replying! I am using 5.0.6 now.. is that feature supported? Ronald Ted Steen wrote: > > If you are on T5.0.11-SNAPSHOP try, onValidateFormFrom{name} > I've seen that it has changed > > 2008/3/7, ronaldlee <[EMAIL PROTECTED]>: >> >> >> Hi, >> >> I am trying to use "onValidateFrom{Page

Re: [FAQ] common design

2008-03-07 Thread Robert Zeigler
TestPage.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> SampleComponent.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> If t:container replaces $content$, this shouldn't render This is the only thing that should render if t:container replaces $content$.

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Andreas Andreou
2) The generated javascript should have calendar_DatePicker_7 and not calendar.DatePicker_7 so, can you make sure you have the right versions + clear browser cache, e.t.c 3) Try pasting the javascript here On Fri, Mar 7, 2008 at 6:54 PM, Roger_man <[EMAIL PROTECTED]> wrote: > > Im working for a c

Re: [FAQ] common design

2008-03-07 Thread Christian Köberl
Robert Zeigler wrote: > > I think you're misunderstanding the point of t:container? > As far as I understand the comment on the JIRA (https://issues.apache.org/jira/browse/TAPESTRY-1469?focusedCommentId=12508885#action_12508885) it should be a replacement of $content$. And, the code works - so

Re: [FAQ] common design

2008-03-07 Thread Robert Zeigler
I think you're misunderstanding the point of t:container? 1) T5 templates have to be well-formed xml. 2) Well-formed xml documents have to have a single root node 3) Tapestry basically renders all of the markup in your template. Suppose you have a component that should insert some content. Some

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Roger_man
Im working for a client and they have recommended only T4.1.3. So plz give a solution to resolve this issue in this version itself. Thanks, Roger. Andreas Andreou wrote: > > Weird... > 1) More up-to-date is T4.1.5 > 2) The generated javascript should have calendar_DatePicker_7 and not > calend

Re: T5: onValidationFrom

2008-03-07 Thread Ted Steen
If you are on T5.0.11-SNAPSHOP try, onValidateFormFrom{name} I've seen that it has changed 2008/3/7, ronaldlee <[EMAIL PROTECTED]>: > > > Hi, > > I am trying to use "onValidateFrom{Page Property name}" event handler to > do > validation according to the guide: > "http://tapestry.apache.org/tapestr

T5: onValidationFrom

2008-03-07 Thread ronaldlee
Hi, I am trying to use "onValidateFrom{Page Property name}" event handler to do validation according to the guide: "http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html"; But my function is never called? Is it supported? thx. Ronald -- View this message in context: http:/

Re: [FAQ] common design

2008-03-07 Thread Christian Köberl
Julian Wood wrote: > > I tried your code verbatim and I here's what I get rendered: > ...Test start Start > This is with both 5.0.10 and 5.0.11-SNAPSHOT, so now I'm a little > flummoxed. > That's really weird!? Can anybody else try this example? Has anybody else had the same issue with t:c

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Andreas Andreou
Weird... 1) More up-to-date is T4.1.5 2) The generated javascript should have calendar_DatePicker_7 and not calendar.DatePicker_7 so, can you make sure you have the right versions + clear browser cache, e.t.c 3) Try pasting the javascript here On Fri, Mar 7, 2008 at 5:41 PM, Roger_man <[EMAIL PROT

Re: T5: proper handling of hibernate exception?

2008-03-07 Thread Angelo Chen
Hi Ted, Thanks, I added flush then catch the exception, problem gone. Ted Steen wrote: > > The problem is that the exceptions does not occur at the line > usr.setEmail("[EMAIL PROTECTED]"); // email already used by other > user > the exception occurs when the session is flushed (at the

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Roger_man
Hi, I have used the below code in tapestry 4.0. But its not working in ugraded version tapestry 4.1.3. Then i put @DatePicker component in place of @tacos:DatePicker. Still it's not working.. What is the way to avoid JS error? Andreas Andreou wrote: > > Yes - there's no datepi

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Roger_man
Hi, I have used the below code in tapestry 4.0. But its not working in ugraded version tapestry 4.1.3. Then i put @DatePicker component in place of @tacos:DatePicker. Still it's not working.. What is the way to avoid JS error? Andreas Andreou wrote: > > Yes - there's no datepicker

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Roger_man
Hello Patrick, Yeah!.. i tried with @DatePicker compoent in place of @tacos:DatePicker. It's still showing the same JS error and Calendar not working. Thanks, Roger Patrick Klein wrote: > > Hello! >> Im getting javascript error "calendar.DatePicker_7 is >> undefined" while click

Re: Comma-delimited looper

2008-03-07 Thread Filip S. Adamsen
Hi Bill, Try this: , context="currThing.id">${currThing.name} On the first iteration of the loop index will be 0 which evaluates to false. Any other iteration will output the comma. -Filip Bill Holloway skrev: I need to comma-delimit components in a loop that will be . I.e

Re: t5: home page

2008-03-07 Thread David Marquis
I also like to "decide" which page the user sees when entering the application, so I do : /* Any page I want to display */ public class MyHomepage { ... } /* Default tapestry page for "app root" : */ public class Start { Class onActivate() { return MyHomepage.class; } } This wil

Re: Newbie Tapestry

2008-03-07 Thread David Marquis
AND, not to forget references to Tapestry 'Six' : Rob Smeets (?) quoted: > I googled and also learnt there is Tapestry -Six- in the works which would also be a whole new beast not compatible with all previous Tapestry versions. WTheck ? Come on, give us a break. -- David On 7-Mar-08, at 6:2

Re: T5: Examples for Cayenne integration?

2008-03-07 Thread Andreas Pardeike
On 7 mar 2008, at 13.11, Angelo Chen wrote: I have the same complaints when I started using Tapestry5, a few months later now, I read the online doc of Tapestry5 and I found those documents are complete and informative, far better than most of open source projects, maybe what needed are som

Re: Tapestry 5 and Spring Web Flow 2.0

2008-03-07 Thread Francois Armand
Howard Lewis Ship a écrit : I've been itching to do a good SWF integration for a while. I think it could work really well ... map Tapestry page fields directly to SWF flow variables, automatically hook in the SWF query parameters into generated links, and map flow results to Tapestry page names.

a question about App Server

2008-03-07 Thread Mohammad Shamsi
Hi Friends, this is not tapestry related question. i want to choose an application server for my Java EE 5 project between WebLogic, GalssFish and Geronimo any benchmark or compare available ? -- sincerely yours M. H. Shamsi

AW: T5: Examples for Cayenne integration?

2008-03-07 Thread Martin Kersten
I think the best way to support Tapestry is a comprehensive single PDF-Document. I know how I started with Spring some years ago. Just a single PDF explaining most things you ever need. Reading it from first page to last page you are a well trained Spring user. 100 pages or so. I loved it. :-) But

[T5] - [ANN] Phonebook new release for Tapestry 5.0.10

2008-03-07 Thread Mohammad Shamsi
Hi Friends, After a while i finished my work on Phone book improvements and i find some way to bypass Google code (for uploading my code from Iran). i have to big problems with Internet in Iran, first : some site are not legal to access because of Iran Gov. rules. second : some sites or produc

Re: T5: Examples for Cayenne integration?

2008-03-07 Thread Angelo Chen
Hi, I have the same complaints when I started using Tapestry5, a few months later now, I read the online doc of Tapestry5 and I found those documents are complete and informative, far better than most of open source projects, maybe what needed are some "getting started" ones or some "best practic

[T5] - [ANN] Phonebook new release for Tapestry 5.0.10

2008-03-07 Thread Mohammad Shamsi
Hi Friends, After a while i finished my work on Phone book improvements and i find some way to bypass Google code (for uploading my code from Iran). i have to big problems with Internet in Iran, first : some site are not legal to access because of Iran Gov. rules. second : some sites or produc

Re: javassist problems with Java 1.6

2008-03-07 Thread Joachim Van der Auwera
From what I understand, JBoss 4 is not Java 6 compatible. For that you should ues JBoss 5. Kind regards, Joachim Geoff Callender wrote: To Howard, and anyone else with experience of javassist problems with Java 1.6 (with the possibly that it's only related to Tomcat in JBoss 4.2.2): It look

Re: Newbie Tapestry

2008-03-07 Thread Davor Hrg
I really hope there are no Tapestry trolls on wicket mailing list, like you are one here. I'd like not to feed the troll, but I feel the need to mark you as troll, so that new users don't get alarmed too much by your fud. Like for chain letters and spam, it takes a moment to recognize the pattern

Re: javassist problems with Java 1.6

2008-03-07 Thread Andreas Andreou
-Dsun.lang.ClassLoader.allowArraySyntex=true a typo just in this email, or in the actual usage? On Fri, Mar 7, 2008 at 1:17 PM, Geoff Callender <[EMAIL PROTECTED]> wrote: > To Howard, and anyone else with experience of javassist problems with > Java 1.6 (with the possibly that it's only related

Re: Tapestry 5 Form

2008-03-07 Thread Geoff Callender
Simon, Try or Cheers, Geoff On 07/03/2008, at 10:46 AM, Simon Raveh wrote: Hi, I have a small demo application that use to work correctly with version 5.0.6 but know when I switch to 5.0.10 it's stop working. I'm getting an exception: An unexpected application exception has occurred.

Re: [T5] Jetty issues after using Tomcat

2008-03-07 Thread Szemere Szemere
Thanks - that was it. My problem; having dug deeper now and lest anyone else runs into this; was that: mvn war:inplace tomcat:inplace creates lib+classes directories under src\main\webapp\WEB-INF and mvn clean doesn't get rid of them. Deleting these 2 directories did the trick. On Thu, Mar 6,

Re: Newbie Tapestry

2008-03-07 Thread Angelo Turetta
Rob Smeets wrote: Hi Gabriel, I dug into this list and found a routine that when someone dare to ask a legitimate question that probably may sound "politically incorrect" to some members, he gets the troll label. Why? I think that's too easy to do. Please answer my questions, if you have one.

javassist problems with Java 1.6

2008-03-07 Thread Geoff Callender
To Howard, and anyone else with experience of javassist problems with Java 1.6 (with the possibly that it's only related to Tomcat in JBoss 4.2.2): It looks like this is a javassist classloading issue with Java 1.6. Everything works fine with Java 1.5. The root cause is an ArrayIndexOut

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-07 Thread Andreas Andreou
Yes - there's no datepicker in tacos 4.1 On Fri, Mar 7, 2008 at 9:45 AM, Patrick Klein <[EMAIL PROTECTED]> wrote: > Hello! > > > Im getting javascript error "calendar.DatePicker_7 is > > undefined" while clicking tacos:DatePicker component in tapestry 4.1.3. > > It was working fine

Re: Newbie Tapestry

2008-03-07 Thread Rob Smeets
Hi Gabriel, I dug into this list and found a routine that when someone dare to ask a legitimate question that probably may sound "politically incorrect" to some members, he gets the troll label. Why? I think that's too easy to do. Please answer my questions, if you have one. Rob On Fri, Mar 7, 2

AW: Newbie Tapestry

2008-03-07 Thread Martin Kersten
Hi Rob, check out this one: http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1 It is one of the best resources for this kind of question I know about. Check out later responses. Tapestry T5 is around quite a long time so the early posts are really about the alpha-alpha state.

Re: t5: home page

2008-03-07 Thread Kheldar666
See : http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html Parameter : tapestry.start-page-name Regards, Angelo Chen wrote: > > hi, > > t5 loads start page when it is called: > > http://localhost:8080/myapp > > I'd like it to load home.tmp instead, any way to set it? renamin

Re: Newbie Tapestry

2008-03-07 Thread Gabriel Landais
Rob Smeets a écrit : Hi, [...] Rob Don't feed the troll Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Christian Gorbach
Francois Armand schrieb: Kristian Marinkovic a écrit : havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly I think th

Newbie Tapestry

2008-03-07 Thread Rob Smeets
Hi, I am a newbie in Tapestry. Our organization is going to build a large scale web application in 3 months time and me together with 2 other developers have been asked to research and come up with a good web framework to use. I suggested Tapestry but almost all the developers on our team rejected

Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Francois Armand
Kristian Marinkovic a écrit : havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly I think that the problem here is if

Re: T5: proper handling of hibernate exception?

2008-03-07 Thread Ted Steen
The problem is that the exceptions does not occur at the line usr.setEmail("[EMAIL PROTECTED]"); // email already used by other user the exception occurs when the session is flushed (at the end of the request) so my suggestion would be to make an UsrService with a updateUsr(Usr usr) method

AW: T5: proper handling of hibernate exception?

2008-03-07 Thread Stroeber, Andreas
I am wondering about this question here at a tapestry mailing list?! But how about the following hints: 1. Catch your exceptions! void onActionFromUpdate1() { try { Usr usr = (Usr) session.get(Usr.class, new Long(2)); usr.setEmail("[EMAIL PROTECTED]"); // email already use

Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Kristian Marinkovic
havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly g, kris Christian Gorbach <[EMAIL PROTECTED]> 07.03.2008 09:43 Bi

T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Christian Gorbach
hi group, I'm trying to achive to let T5 server xhtml valid pages. This seems to be easy, because T5 uses a DOM (this is really great) and different markup writers can render out different markup styles (e.g. html vs xhtml). The html markup writer is the default markup writer, to use a xml writ

T5: proper handling of hibernate exception?

2008-03-07 Thread Angelo Chen
I have a class where its email field has unique constraint, a page like this: @Inject private Session session; void onActionFromUpdate1() { Usr usr = (Usr) session.get(Usr.class, new Long(2)); usr.setEmail("[EMAIL PROTECTED]");// email already used by other user }