XHTML DTD/Schemas in T5

2008-04-28 Thread Toby Hobson
Hi I hope someone can point me in the right direction here. I've hit a minor problem re: T5 templates: I am using eclipse to develop my templates and I have set the .tml extension to open in the xml editor which is great BUT I've now got myself in a bit of a mess because I'm trying to use the t

Re: XHTML DTD/Schemas in T5

2008-04-28 Thread Toby Hobson
org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> and i have my *.tml files associated with the HTML content-type to use the HTML editor g kris Toby Hobson <[EMAIL PROTECTED]> 28.04.2008 14:31 Bitte antworten an "Tapestry users"

Question about T5 and OpenSessionInViewFilter

2008-04-30 Thread Toby Hobson
Hi guys, Anyone know af any "gotchas" re: using this filter in T5? I'm trying to display a collection of objects in my page but i'm getting hibernate LazyInitialization errors. Here's the relevant code: Start.tml ${photo.na

Re: Question about T5 and OpenSessionInViewFilter

2008-04-30 Thread Toby Hobson
That fixed it! ... thanks Jonathan Toby - Original Message From: Jonathan Barker <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Wednesday, 30 April, 2008 6:18:46 PM Subject: RE: Question about T5 and OpenSessionInViewFilter You might

T5 pagelink problem

2008-05-01 Thread Toby Hobson
I have a strange problem with the pagelink component. I am trying to navigate from the start page to the ViewPhoto page but I get an exception: [ERROR] RequestExceptionHandler Processing of request failed withuncaught exception: Exception in methodcom.thc.web.pages.ViewPhoto.onActivate(java.lan

Re: T5 pagelink problem

2008-05-01 Thread Toby Hobson
It seems if i change all the hrefs to /myapp/images/... or /myapp/styles/... things work ok. Is there a tapestry version of ? Thanks Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Thursday, 1 May, 2008 1:53:11 PM Subject: T5 pa

T5 custom component params

2008-05-01 Thread Toby Hobson
I am trying to create my first tapestry component. Basically I want to take a collection of keywords and for each keyword generate a link to a tapestry page. I'd like to use the component in page templates like I have written the component class and template: public class Keywords { @Param

Re: T5 custom component params

2008-05-01 Thread Toby Hobson
Sorry ... that should read "But tapestry is complaining because it can't find a property called home on the ViewPhoto page " - Original Message ---- From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Thursday, 1 May, 2008 7:07:22 PM Subject: T5 cu

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-02 Thread Toby Hobson
Hi Rob ... which site are you referring to? Cheers Toby - Original Message From: Rob Smeets <[EMAIL PROTECTED]> To: Tapestry users Sent: Friday, 2 May, 2008 10:03:38 AM Subject: Tapestry users declined for the first time in 3 years, says this researh site ... Hi guys, I don't mean t

Dynamic asset

2008-05-02 Thread Toby Hobson
I am developing a photo sharing application and i would like to display a photo whose url is retrieved dynamically. I have a property "photo" on my ViewPhoto page and my ViewPhoto.tml is: but this causes the onActivate(Long) method to fall over. I've also tried but this doesn't work because

Re: Dynamic asset

2008-05-02 Thread Toby Hobson
Tried that but no luck because it misses the context root ... what i really need is something like Toby - Original Message From: Josh Canfield <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Friday, 2 May, 2008 11:34:48 PM Subject: Re: D

Re: Dynamic asset

2008-05-03 Thread Toby Hobson
Sorry ... To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Saturday, 3 May, 2008 1:05:52 AM Subject: Re: Dynamic asset I don't know what is. How are you getting the url? what is it supposed to point to? A page? an action? a static file on the server? Josh On Fri, May 2

Form event handler not being called

2008-05-04 Thread Toby Hobson
Can anyone see anything which is wrong with this code: EditPhoto.tml: EditPhoto.java public void onSubmitFromEditPhoto() { ... } my event handler is not being called, I have also tried @OnEvent(value="submit", component="editPhoto") public void update() { ... } but this doesn't wo

Re: Form event handler not being called

2008-05-04 Thread Toby Hobson
008 12:09:00 To:"Tapestry users" , "Toby Hobson" <[EMAIL PROTECTED]> Subject: Re: Form event handler not being called On Sun, May 4, 2008 at 10:44 AM, Toby Hobson <[EMAIL PROTECTED]> wrote: > public void onSubmitFromEditPhoto() { > ... > } > @O

Re: Form event handler not being called

2008-05-04 Thread Toby Hobson
Fixed it! Our designer added a form to our border.tml so we had a nested form which messed things up. Btw ... I believe the form component fires onSuccess and onSubmit events, onSuccess only fires if the form has passed validation Toby - Original Message From: Toby Hobson <[EM

Page property reset during request

2008-05-10 Thread Toby Hobson
Hi I have a simple problem which is probably due to my lack of understanding about the Tapestry request cycle: I am trying to implement a basic pagination system - I have a form with a textfield called startIndex and a loop component which iterates through a list of values. Basically I am tryi

Re: Page property reset during request

2008-05-10 Thread Toby Hobson
I managed to get around this by using @Persist on the startIndex property but this doesn't seem right - do I need to use the session for a single request? Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Saturday, 10 May, 2008

Re: Page property reset during request

2008-05-10 Thread Toby Hobson
uld do this (probably @Persist("flash")). The redirect-after-post removes the danger of things like double posts (from page refreshes, etc). Toby Hobson wrote: > I managed to get around this by using @Persist on the startIndex property but > this doesn't seem right - do I ne

T5 @Persist with hibernate objects

2008-05-10 Thread Toby Hobson
Hi I have hit an interesting problem: basically I am trying to search for some records and display them in a list - simple stuff. The problem is that Tapestry uses a redirect-after-post design so I have to stick the search results in the session: @Persist("flash") private SearchResults

Re: T5 @Persist with hibernate objects

2008-05-10 Thread Toby Hobson
Yeah I should have thought of that one! Thanks Thiago! Toby - Original Message From: Thiago HP <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Saturday, 10 May, 2008 8:33:16 PM Subject: Re: T5 @Persist with hibernate objects On 5/10/08,

Re: change persist property value in component

2008-05-10 Thread Toby Hobson
Do you want to change the value of a persistent property? Many methods are called during the lifecycle of a page, see http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html Toby - Original Message From: haipeng du <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent:

Re: [ANN] New article about Tapestry 5

2008-05-11 Thread Toby Hobson
Great article guys - well done! Toby - Original Message From: Renat Zubairov <[EMAIL PROTECTED]> To: Tapestry users Cc: Igor Drobiazko <[EMAIL PROTECTED]> Sent: Sunday, 11 May, 2008 7:58:50 PM Subject: [ANN] New article about Tapestry 5 Hello All, My self and Igor Drobiazko are proud t

T5 Blank option for select component

2008-05-12 Thread Toby Hobson
I am trying to display list of enums in my select component and this works well, but i would like to add a blank option and validate that the field has been selected by a user (i.e. not the blank option). Reading through the docs is seems T5 should support this but I can't seem to get it to disp

Alternative to OutputLocale

2008-05-12 Thread Toby Hobson
Hi I was wondering if there is a way to display a localized date using an expansion, my idea is something like this: tml contains an expansion which references a Date object e.g. ${currentDate). Tapestry looks up the format for a date in the messageCatalogue and spits out the nicely formatted

Mixin render phases

2008-05-13 Thread Toby Hobson
Hi guys, I'm trying to show/hide an html element based on Robert's recent suggestion (Re: how do we secure our views) but I've hit a minor problem. The mixin's @BeforeRender method is being called but then tapestry complains that the component (textArea) is unbalanced. I'm using the component a

Re: Can struts 1 and tapestry 5 play together nicely?

2008-05-13 Thread Toby Hobson
I'm actually done this (albeit using Spring MVC but similar issues apply). In general it's pretty easy - the new activation context makes it much easier to point to tapestry pages from a non-tapestry base (or indeed a bookmark). For example you can now call http://www.domain.com/app/showProduct/

Re: Mixin render phases

2008-05-13 Thread Toby Hobson
phases (or at least the short circuiting) do not work as i was expecting :). maybe you can take a look at the problem description (it think there are a lot of details in the comments) of the jira at https://issues.apache.org/jira/browse/TAPESTRY-1805 and comment on it. g, kirs Toby Hob

Re: Mixin render phases

2008-05-13 Thread Toby Hobson
Something else i've noticed ... if i modify my mixin to always return true during the @BeginRender phase I still get the exception! - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: Tapestry users Sent: Tuesday, 13 May, 2008 4:52:33 PM Subject: Re: Mixin render ph

Re: Mixin render phases

2008-05-13 Thread Toby Hobson
ds should return void, to avoid unintentionally short circuiting other methods for the same phase." Robert On May 13, 2008, at 5/1310:55 AM , Toby Hobson wrote: > Something else i've noticed ... if i modify my mixin to always > return true during the @BeginRender phase I still

Re: T5: Calling method with parameter in prop

2008-05-13 Thread Toby Hobson
I'm not sure I like the idea of a framework FORCING me to do something, IMHO poorly structured code should be prevented by coding standards and peer reviews, not a rigid framework. Just moving the logic from a JSP/Template to a Java class doesn't necessarily mean it's cleaner. Sometimes it is ac

Changing a components property at runtime

2008-05-13 Thread Toby Hobson
This may sound like a simple question but I can't work out how to change a property programatically. Basically I'd like to disable a component from an event handler. I know I can pass params in via TML or using annotations but I can't find any setX() methods on the components Thanks Toby

Re: Changing a components property at runtime

2008-05-13 Thread Toby Hobson
e such interfaces. chris Toby Hobson wrote: > This may sound like a simple question but I can't work out how to change a > property programatically. Basically I'd like to disable a component from an > event handler. I know I can pass params in via TML or using annotations but

Re: Changing a components property at runtime

2008-05-13 Thread Toby Hobson
nent: @Parameter boolean disabled; ... The page or component that contains the component: @Component(parameters={"disabled=disabled",...} private SomeComponent comp; @Property @Persist private boolean disabled; public onActionFromSomewhere() { return disabled=false; }

Regexp within a custom component

2008-05-13 Thread Toby Hobson
Hello again :) I've just added some validation to my custom component and I'm having trouble with the regexp validator. As per the "forms" tutorial on the T5 site I've placed a @Validate annotation on my getEmail() accessor: @Validate("required,regexp") public String getEmail() {

Re: Regexp within a custom component

2008-05-13 Thread Toby Hobson
}) @Validate(...) private TextField emailText; Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Tuesday, 13 May, 2008 8:37:57 PM Subject: Regexp within a custom component Hello again :) I've just added some validation to my cus

Client side validation messages not re-displayed

2008-05-13 Thread Toby Hobson
I've just noticed something: If I have two validators and validation fails twice, I only see one error message. E.g. @Validator("required, regexp"); public String getEmail() { return email; } message catalogue: email-required=please enter your email email-regexp=(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+

Event bubbling

2008-05-14 Thread Toby Hobson
Hi Guys, I would like to define an area at the top of my border.tml to show messages which may be "flashed" to the user. Ideally pages and nested components will be able to set the message that will be displayed here. I was thinking of allowing pages and components to fire a custom event, which

Re: Event bubbling

2008-05-14 Thread Toby Hobson
e a RuntimeException - it will keep moving up until it's handled Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: tapestry Sent: Wednesday, 14 May, 2008 2:00:43 PM Subject: Event bubbling Hi Guys, I would like to define an area at the top of my border.tml to

T5 hidden field

2008-05-14 Thread Toby Hobson
Is there a reason why there is no component to render a hidden field? Thanks Toby

Re: T5: select + enum

2008-05-14 Thread Toby Hobson
You might want to look at Java's EnumSet.range() method for this. Toby - Original Message From: Leon Derks <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, 14 May, 2008 4:33:58 PM Subject: T5: select + enum Hello, Is it possible to show a limited list of my enum values in the s

Re: [ANN]: T5 website and validation feedback

2008-05-15 Thread Toby Hobson
Is it possible to tell T5 to not perform client-side validation? For the moment I'm happy to take the round-trip hit to get around the problems I'm having with the Javascript stuff Toby - Original Message From: babbler <[EMAIL PROTECTED]> To: Tapestry users Sent: Thursday, 15 May, 200

Re: T5: absolute beginner's question with CSS

2008-05-16 Thread Toby Hobson
If you look at the generated HTML do you see a link to your stylesheet? Toby - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Friday, 16 May, 2008 10:11:18 AM Subject: T5: absolute beginner's question with CSS Hi, I try to enable my c

Making a property available to nested components

2008-05-16 Thread Toby Hobson
Hi I am looking to achieve something similar to the way in which JSP custom tags work - I would like to make a property of a component available to nested components/markup e.g. TestPage.tml: hello ${container.user.name} Container { @Property User user; @PageAttached() void atta

Re: Making a property available to nested components

2008-05-16 Thread Toby Hobson
I've managed to achieve something by making the "container" a component AND a property on my test page: @Property @Component(id="container") private Container container; but this seems like a bit of a hack, there must be a neater way of doing this! Toby - Origina

Re: how to use ognl in tapestry 5

2008-05-16 Thread Toby Hobson
Tapestry 5 does not use ognl by default, there is a long running discussion on this list about this. T5 uses the "prop:" binding which will look for a property on your page or component class which must be either a javabean property or a no-arguments method. So it is not possible to call a metho

Re: Making a property available to nested components

2008-05-16 Thread Toby Hobson
a property available to nested components Check out the environment service. Robert On May 16, 2008, at 5/169:23 AM , Toby Hobson wrote: > I've managed to achieve something by making the "container" a > component AND a property on my test page: > > @Property > @Compo

Re: Making a property available to nested components

2008-05-16 Thread Toby Hobson
atic final long serialVersionUID = 1L; private int startIndex; private int endIndex; ... getters/setters } Toby - Original Message ---- From: Toby Hobson <[EMAIL PROTECTED]> To: Tapestry users Sent: Friday, 16 May, 2008 6:09:19 PM Subject: Re: Making a property available to n

Possible bug?

2008-05-16 Thread Toby Hobson
kage (in this case my *.model package) it worked as expected. To double check I moved it back and got the old and unhelpful error. Should I raise a JIRA for this? Thanks Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: Tapestry users Sent: Friday, 16 May, 2

Re: Making a property available to nested components

2008-05-16 Thread Toby Hobson
Original Message > From: Robert Zeigler <[EMAIL PROTECTED]> > To: Tapestry users > Sent: Friday, 16 May, 2008 3:32:00 PM > Subject: Re: Making a property available to nested components > > Check out the environment service. > > Robert > > On May

Using t5-components

2008-05-17 Thread Toby Hobson
Hi I'm looking at the t5-components project and I am trying to use the PagedLoop component. I've added the commons and contrib dependencies and the repo to my pom.xml and they are now on my classpath. But when I try to use ${photo.name} Tapestry complains that it

Hibernate validator

2008-05-18 Thread Toby Hobson
Hi I was thinking of integrating the hibernate-validator with T5's validation framework (or trying to!) so I can re-use the validation rules I have already defined on my model (kinda like JBoss seam). Firstly is anyone else working on anything like this? Secondly do you think this would be usef

Re: getting ClassFactory is matched by 2 services After upgrade from 5.06 -> 5.0.11

2008-05-18 Thread Toby Hobson
Check your classpath - one of your dependencies (which may be nested) might be putting something on the classpath which is conflicting with Tapestry's classes. Have you upgraded all your other Tapestry dependencies e.g. tapestry-spring etc? Toby - Original Message From: Britske <[EMAI

Re: Little confused

2008-05-18 Thread Toby Hobson
@Property is certainly in 5.0.11, you can also achieve the same effect with standard getters and setters - in fact this is probably a better idea because it makes it easier to test your pages IMHO Toby - Original Message From: Manuel Corrales <[EMAIL PROTECTED]> To: Tapestry users Sen

Re: Little confused

2008-05-18 Thread Toby Hobson
snap! - Original Message From: Filip S. Adamsen <[EMAIL PROTECTED]> To: Tapestry users Sent: Sunday, 18 May, 2008 6:17:09 PM Subject: Re: Little confused Hi, Bleeding edge 5.0.12-SNAPSHOT at the moment. @Property autogenerates getters and setters so you can just specify getters and se

Unit testing T5 pages/components

2008-05-18 Thread Toby Hobson
Can anyone recommend a suitable testing strategy for T5 components - I've looked at PageTester which seems suitable but I'm injecting spring managed beans into my components and PageTester is unable to see them. I tried to Inject the beans manually using a setter on the component but PageTester

Re: T5: Exception Handling

2008-05-19 Thread Toby Hobson
Given that a JSP is basically a servlet, why not do something like <% response.include(request.getContextPath() + "/MyTapestryErrorPage); %> from your jsp exception page btw I can't remember - can you map an exception handler to a servlet in web.xml? Toby - Original Message From:

Re: T5: how to get hold of an id in a loop component?

2008-05-19 Thread Toby Hobson
I'm sure there are many ways of doing this but here is an idea: Page.java @Persist("flash") private Card selectedCard // or you could use the primary key if your Object has one @Property private Card card // this is the current card the loop is processing void onActionFromSelectCard(Card card)

T5 cross-form validation

2008-05-19 Thread Toby Hobson
Hi According to the T5 site: "After the fields have done their processing, the Form emits a"validate" event. This is a chance to perform cross-form validationthat can't be described declaratively." I understood this to mean that a validate event will be fired after the individual fields have

Re: T5 cross-form validation

2008-05-19 Thread Toby Hobson
Problem fixed ... it appears the form doesn't emit a "validate" event, it emits a "validateForm" event! Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: tapestry Sent: Monday, 19 May, 2008 11:17:44 PM Subject: T5 cross-form validatio

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-20 Thread Toby Hobson
Yeah ... when he published his article I asked him for the stats to back it up but no response! Toby - Original Message From: Chris Lewis <[EMAIL PROTECTED]> To: Tapestry users Sent: Tuesday, 20 May, 2008 3:16:02 PM Subject: Re: Tapestry users declined for the first time in 3 years, sa

Overriding default validation messages

2008-05-21 Thread Toby Hobson
Hi How do I change the default validation message for a validator i.e. I want to change the message from "you must supply a value for is" to "x is required". I know how to do it for each property i.e. email-required-message=x but I'd like to change the default Thanks! Toby

Re: Overriding default validation messages

2008-05-21 Thread Toby Hobson
Sorry ... I should have looked at the wiki first Thanks Manuel Tob - Original Message From: Manuel Corrales <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Wednesday, 21 May, 2008 9:19:48 PM Subject: Re: Overriding default validation messa

Re: Generics with contexts?

2008-05-22 Thread Toby Hobson
Funny you should ask that Dan ... I was just struggling with something very similar: BasePage.java public abstract class BasePage { @Inject private Session session; @Property private List items private Class entityClass; public BasePage(Class entityClass) { th

T5 assets and trailing slash on urls

2008-05-22 Thread Toby Hobson
I have a slight problem using assets (images and css files) my app. within Layout.tml I have: This works fine when I access the app at http://localhost/app/start for example. But when I try http://localhost/app/start/ the css and images are screwed. I've noticed that in the generated html, T5

Re: T5 assets and trailing slash on urls

2008-05-22 Thread Toby Hobson
Yes, that works! Thanks Thiago - I should have read your earlier post! Toby - Original Message From: Thiago HP <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Friday, 23 May, 2008 2:08:36 AM Subject: Re: T5 assets and trailing slash on urls

Re: Tapestry Page Pool handling.

2008-05-23 Thread Toby Hobson
What application server are you using? Toby - Original Message From: zaxeer <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Friday, 23 May, 2008 1:40:54 PM Subject: Tapestry Page Pool handling. Hi All, I am facing a problem in tapestry related to pages cache, when some html pag

Re: T5.0.11 + Hibernate

2008-05-25 Thread Toby Hobson
I'm pretty sure I got this error when I tried to use a newer version of hibernate, but 3.2.2.ga worked ok. Btw the tapestry-hibernate stuff works brilliantly ... well done to all the T5 and T5-Hibernate team! Toby - Original Message From: János Jarecsni <[EMAIL PROTECTED]> To: Tapestry

Re: T5: prohibit directory listing

2008-05-25 Thread Toby Hobson
Sadly it's a bit more scary than that :( if you try http://myserver/contextRoot/assets you will get a (not very nice) surprise! I'm using acegi to block access to everything except *.css, *.js and images under the assets path but I believe Robert has written a dispatcher which also controls acc

Re: T5: prohibit directory listing

2008-05-25 Thread Toby Hobson
I think that setting TapestryConstants.PRODUCTION_MODE_SYMBOL, "true" should only allow clients to download *.css, *.js and *.jpg, *.gif etc. files from the asset service What do you guys think? Toby - Original Message ---- From: Toby Hobson <[EMAIL PROTECTED]> To: Tape

Re: T5: prohibit directory listing

2008-05-25 Thread Toby Hobson
05-25 16:28, Toby Hobson wrote: > Sadly it's a bit more scary than that :( if you try > http://myserver/contextRoot/assets you will get a (not very nice) surprise! > You mean a 404 Not Found or blank page depending on whether or not I put a slash at the end?

Re: T5: prohibit directory listing

2008-05-25 Thread Toby Hobson
AH ... maybe it has been fixed in 5.0.12 ... I hope so! - Original Message From: Filip S. Adamsen <[EMAIL PROTECTED]> To: Tapestry users Sent: Sunday, 25 May, 2008 3:57:41 PM Subject: Re: T5: prohibit directory listing I'm on 5.0.12-SNAPSHOT. -Filip On 2008-05-25 16:55,

T5 - integrating with a RIA

2008-05-25 Thread Toby Hobson
I'm trying to integrate a flash application with my T5 code. My flash app (built using OpenLaszlo) will make various http get and post requests to the server. Ideally I would like to write a custom component which will render the flash swf on the page and also handle all the callbacks from the

T5 Setting selected option on Select component

2008-06-10 Thread Toby Hobson
Hi I have a page which allows a user to update his profile. This includes a select component to choose the user's state of residence: public Enum State { ALABAMA, ALASKA, ARIZONA ... } MyAccount.tml // text fields etc. User.java public class User { private State state; pu

Re: T5 Setting selected option on Select component

2008-06-10 Thread Toby Hobson
Problem solved ... a typo in my code! Sorry! Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: tapestry Sent: Tuesday, 10 June, 2008 12:19:28 PM Subject: T5 Setting selected option on Select component Hi I have a page which allows a user to update his profile

t5-components ratingField validation

2008-06-17 Thread Toby Hobson
I am trying to add validation to a ratingField, I was assuming it bahaved similar to a radioGroup but I can't seem to add validation to the field. I have a property on my page with getters and setters: private Integer rating; @validate("required") public Integer getRating() { } ... my templat

T5 nested components within t:block

2008-07-14 Thread Toby Hobson
Hi I have been experimenting with T5's ajax support which looks really nice! One problem I have hit is when I use a nested component within a block, simple properties are displayed but the nested components don't render e.g. photo.tml name: ${photo.name} rating: ... show details photo.

Re: T5 nested components within t:block

2008-07-14 Thread Toby Hobson
It seems the problem is that I had wrapped my block inside a form, removing the form fixed it! Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: tapestry Sent: Monday, 14 July, 2008 1:06:45 PM Subject: T5 nested components within t:block Hi I have been experim

T5 nested ajax partial replace

2008-07-14 Thread Toby Hobson
Hi Is it possible to use ajax partial replace to include a component which also uses ajax, as in this scenario: I create a custom component which uses zones to perform a partial update, I then use this custom component on a page: MyComponent.tml hello world click me MyComponent.java @I

T5 component lifecycle

2008-07-21 Thread Toby Hobson
Hi Could anyone tell point me to some docs about T5's component lifecycle? I know there are methods like pageLoaded and onActivate available to pages, I wondered if there was something similar for components Thanks Toby

t5-components ratingField within ajax partial replace

2008-07-22 Thread Toby Hobson
Hi I have noticed some strange behavior with the ratingField component - if i use it within a block which is rendered inside a zone the star's no longer appear and it defaults back to a regular radio group e.g. show rating @In

Re: [T5] Tapestry & FLASH Objects ?

2008-07-23 Thread Toby Hobson
I've been using T5 and Flash (OpenLaszlo) successfully, I'm currently writing a tutorial about it ... i'll let you know when i publish it. In the meantime if you have any specific questions feel free to email me Toby - Original Message From: Antonio Fernández - STAR Málaga <[EMAIL PR

Re: Explorer like tree component

2008-07-25 Thread Toby Hobson
I have written a component based on treemenu. I'll happily send you the code but it comes with no warranty!! Toby - Original Message From: Hugo Palma <[EMAIL PROTECTED]> To: Tapestry users Sent: Friday, 25 July, 2008 6:41:02 PM Subject: Explorer like tree component I was wondering if

Re: T5: HttpSession id. How to get it?

2008-07-28 Thread Toby Hobson
Hi Russel, Have a look at http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest Toby - Original Message From: Russell Brown <[EMAIL PROTECTED]> To: Tapestry users Sent: Monday, 28 July, 2008 12:17:25 PM Subject: T5: HttpSession id. How to get it? Hi, I need to HttpSe

Re: [T5] Tapestry & FLASH Objects ?

2008-07-29 Thread Toby Hobson
Hi Steve We're actually trailing red5 at the moment. So far we've had mixed results but these have been issues related to the server itself, nothing relating to T5 integration. OpenLaszlo is a pretty compelling alternative to Flex because it's relatively mature and there is a large amount of do

T5 possible AJAX bug

2008-07-31 Thread Toby Hobson
Hi everyone, I may have found a bug in 5.0.14 but I wanted to run it by everyone before posting it: If I have a component (lets call it component-a) which uses ajax zones to do a partial refresh and I include it on a page or other component through an ajax call the zones no longer work e.g. M

New article re: T5-Flash integration

2008-07-31 Thread Toby Hobson
Hi Guys, I have just written an article re: T5-Adobe flash integration. It can be found at http://knol.google.com/k/toby-hobson/tapestry5-flash-integration/ I would be grateful for any feedback I'm planning to write a few more articles on this subject so I'll keep you all informed! Toby

Re: New article re: T5-Flash integration

2008-07-31 Thread Toby Hobson
Yes you can ... I think I will update the article to reflect that. Thanks for your feedback Toby - Original Message From: Jun Tsai <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Friday, 1 August, 2008 2:40:18 AM Subject: Re: New article

Re: Updating a zone within a form ?

2008-08-01 Thread Toby Hobson
Hi Hugues, Which version of Tapestry are you using? Toby - Original Message From: Hugues Narjoux <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Friday, 1 August, 2008 9:00:48 AM Subject: Updating a zone within a form ? Hi, I am trying to update a zone which is included in a

Re: t5 how to write response to file

2008-08-01 Thread Toby Hobson
Sorry ... i don't fully understand your question. Could you explain a little more Thanks Toby - Original Message From: luna_guo <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Saturday, 2 August, 2008 4:07:55 AM Subject: t5 how to write response to file how to use t5 to writ

Re: [T5] Tapestry & FLASH Objects ?

2008-08-01 Thread Toby Hobson
I've just published the first article on this subject. You can find it at http://knol.google.com/k/toby-hobson/tapestry-5-flash-integration/ The second article (client-server interaction) is in progress! Toby Toby Hobson-2 wrote: > > I've been using T5 and Flash (OpenLasz

Re: New article re: T5-Flash integration

2008-08-02 Thread Toby Hobson
rwise, the component always will > render the same id for his div, being able to create conflicts, right? > Thanks again > > > Toby Hobson wrote: > >> Hi Guys, >> >> I have just written an article re: T5-Adobe flash integration. It can be >> found at >

Re: New article re: T5-Flash integration

2008-08-03 Thread Toby Hobson
Hi Francisco, Google have changed the link to my article - now I know whey their code is beta! please see: http://knol.google.com/k/toby-hobson/tapestry-5-flash-integration Thanks Toby 2008/8/3 Massimo Lusetti <[EMAIL PROTECTED]> > On Sun, Aug 3, 2008 at 6:51 AM, Toby Hobso

Re: T5 beta. why so long..

2008-08-03 Thread Toby Hobson
There are still a few issues relating to AJAX which need to be sorted out. I believe this is why T5 is still beta - although I think T5 beta is more stable than many other production frameworks! Toby 2008/8/4 Partogi, Joshua <[EMAIL PROTECTED]> > As for me, I don't really care about the beta sta

Re: Transmitting a javascript-value to the server using JSON

2008-08-05 Thread Toby Hobson
Hello Peer, Sure it can be done ... have a look at JSON.stringify() at http://www.json.org/js.html, this will turn the Javascript object into JSON text. On the server-side you need to use JSONTokener and JSONObject see http://www.json.org/java/index.html to convert back to a Java object If you n

Re: Explorer like tree component

2008-08-05 Thread Toby Hobson
Sorry guys ... I'm writing it at the moment! Toby 2008/8/4 Francisco Manzano <[EMAIL PROTECTED]> > Yes, we are really waiting for it !! > > Thanks > > Hugo Palma wrote: > >> Hi again Toby, >> please don't forget to add your code to the wiki. >>

Re: T5 getApplicationName

2008-08-05 Thread Toby Hobson
You don't actually need the underlying HttpServletRequest, you can use Tapestry's abstraction org.apache.tapestry5.services.Request e.g. @Inject private Request request; void method() { String context = request.getContextPath(); } There's nothing wrong with using the HttpServletRequest, but ke

Second article re: T5-Flash integration

2008-08-05 Thread Toby Hobson
Hi Everyone, I have just written a draft article re: client-server communication between flash applications and tapestry pages/components: http://knol.google.com/k/toby-hobson/tapestry-5-flash-integration-part-2 As always feedback (positive and negative!) is welcomed Toby

Re: Transmitting a javascript-value to the server using JSON

2008-08-05 Thread Toby Hobson
Does anyone know if something similar is available (or planned) for T5? Toby 2008/8/5 Thiago Henrique de Carvalho <[EMAIL PROTECTED]> > Hi, > > Take a look at @EventListener annotation. Docs show example of transmiting > JSON from page to Tapestry. > > Thiago > > -Mensagem original- > De

Re: [T5]

2008-08-07 Thread Toby Hobson
Hi I use eclipse together with maven's jetty plugin - I dont have to compile the files I just change the TML then refresh the page in my browser - easy! Togy 2008/8/6 kace <[EMAIL PROTECTED]> > > Hi fellas, > > Do you have to compile .tml files if you want the changes to be picked up > by > jet

Re: [T5]

2008-08-07 Thread Toby Hobson
Hi Howard, jetty:run seems to work pretty well for me. It can be configured for manual or automatic reloading of the files. I run it from eclipse as an external application and use remote debugging. The advantage I have found to this approach is that I can configure maven lifecycle goals so for ex

  1   2   >