Tacos can be used in T4.1.X?

2007-04-06 Thread Jun Tsai
hi I want to use tacos in my t4.1 application.Tacos can be used in T4.1.x? Thanks Jun Tsai -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Layout Component

2007-04-06 Thread bjornharvold
HAHA Like I said. I am daft :-p -- View this message in context: http://www.nabble.com/Layout-Component-tf3494445.html#a9878953 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Layout Component

2007-04-06 Thread Howard Lewis Ship
Layout is a component, not a page. It goes into the components package. So Layout.java needs to be in foo.bar.components, and so does Layout.html. Looks like Tapestry found your component but not your template. Therefore it was treated as a component without a template (which is valid). Thus t

Re: Layout Component

2007-04-06 Thread Anjana Gopinath
Your Layout.html should be in src/main/resources/org/example/myapp/components/MyComponent.html. and your Layout.java should be in src/main/java/org/example/myapp/ components/MyComponent.java http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html Anjana Gopinath True North

Re: Layout Component

2007-04-06 Thread bjornharvold
I must be daft. I can't make sense of this example. I'm using 5.0.3. We have a layout like so: (filename: Layout.html) http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Hello This layout goes in the "pages" directory. Then we have a page like so: (filen

Re: T5: Hibernate integration question

2007-04-06 Thread Howard Lewis Ship
Sorry, it's just the sketch of the final library; I haven't had a chance to cycle around and make it useful. On 4/6/07, Celia Mou <[EMAIL PROTECTED]> wrote: Hi, Does anyone have a working example of Tapestry 5 and Hibernate integration? According to the limited docs on the Tapestry site, one n

Re: Tapestry prop: suggestion (or question)

2007-04-06 Thread Andreas Andreou
Probably dangerous but nice...or, probably nice but dangerous ;-) Anyway, perhaps this can find its way in our wiki. http://wiki.apache.org/tapestry/ On 4/6/07, Drew McAuliffe <[EMAIL PROTECTED]> wrote: You can also do what I did and just contribute a brand new expression evaluator: public cla

Re: Tapestry prop: suggestion (or question)

2007-04-06 Thread Drew McAuliffe
You can also do what I did and just contribute a brand new expression evaluator: public class NullSafeExpressionEvaluator extends ExpressionEvaluatorImpl { private static Logger log = Logger.getLogger( NullSafeExpressionEvaluator.class); private static final String START_BRACKET = "{"; pr

Re: [T4.1.2] How do you change dojo component styles

2007-04-06 Thread Chris Chiappone
Another reason I am curious about this is that I have about 40 dropdowndatepickers in one page and that page takes a long time to render the datepickers. I have a feeling its because of the calendar images that it renders but am not sure. I used to use tacos:DatePicker in tap 4.0.2 and the page

T5: Hibernate integration question

2007-04-06 Thread Celia Mou
Hi, Does anyone have a working example of Tapestry 5 and Hibernate integration? According to the limited docs on the Tapestry site, one needs to put the hibernate.cfg.xml file in the src/main/resources directory, and then maybe contribute the entity package to the tapestry.hibernate.Hibernat

Re: T4/T5 and Session/Visit

2007-04-06 Thread Howard Lewis Ship
Looks like you are on the right track. It's simplified between T4 and T5. In T4 you had to come up with a global name for your ASO, and provide a HiveMind contribution to define how to instantiate it (as well as scope). In T5 we've done away with the name, and use the class name as the 'key'.

Re: T5 Upload component?

2007-04-06 Thread Howard Lewis Ship
PS: And may I also say that the new DOM based markup writer is very cool. I was struggling for a while how to add an enctype attribute to the enclosing form without needing to patch the core code (my head was still stuck in t4 mode). Then the penny dropped & I realised I could just follow the pa

Re: Keeping JavaScripts in a .js file instead of .script

2007-04-06 Thread Howard Lewis Ship
The goal of the design is that you put 95% of your logic into a static .js file, references from your .script file. The purpose of the .script is to provide the dynamically generated glue code ... things like event registrations and such. On 4/6/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote:

RE: T4/T5 and Session/Visit

2007-04-06 Thread Bruce Petro
Actually, I have (of course, right after I ask the world!) found this which helps. But if anyone can share more I'd appreciate it. http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html -Original Message- From: Bruce Petro [mailto:[EMAIL PROTECTED] Sent: Friday, April 06

[T4.1.2] How do you change dojo component styles

2007-04-06 Thread Chris Chiappone
Hi, I was wondering how one goes about changing the style of dojo components in T 4.1. Mainly the autocompleter style and dropdowndatepicker. Thanks, -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

:: Shortcut to reset/cleanup page persist properties.

2007-04-06 Thread Angelo Luis
What do i do if i have persisted properties in my page and i want to reset/cleanup their state after a successful listener operation, like a formSubmit? Tapestry has a shortcut for that? There is something like a @End in Seam, that clean my persist state for that page? Some static method? some sup

T4/T5 and Session/Visit

2007-04-06 Thread Bruce Petro
OK, I'm new but trying to learn this stuff... As I understand it: T4 exists within servlet lifespan / T5 utilizes Filter and therefore is outside the servlet lifespan. Therefore I believe various things in T4 such as getting to the session will have to be handled differently. Is that correct?

Re: Keeping JavaScripts in a .js file instead of .script

2007-04-06 Thread Andreas Andreou
??? 1) inside xml you can have 2) you don't have to use .script files, they serve a very specific purpose = writing out dynamic js. 3) Take a look at http://tapestry.apache.org/tapestry4.1/usersguide/script.html there's an include-script section! 4) You can directly add js in your pages, with

Keeping JavaScripts in a .js file instead of .script

2007-04-06 Thread Wojtek Ciesielski
Hi there, Is there ANY sensible way to keep component's javascript in a .js file instead of that .script XML one? Because of an XML format I can't use any syntax-colouring editor with it, also all < > or & chars need to be encoded as an HTML entities... What on earth caused anybody to use XML

RE: T5 Upload component?

2007-04-06 Thread Ben Sommerville
It will be there waiting, no urgency :) My email was more for any other T5 users who have an urgent need (and a willingess to trial new code). There seemed to be at least a couple of people expressing interest previously. BTW - the component is implemented as a separate library/project. cheers