Re: How to load tml files from the filesystem instead of classpath?

2010-05-10 Thread MauricioF
Thanks Josh for your reply. After looking the code the reason was 1) TextBlock.tml existed in my classpath. so my implementation of PageTemplateLocator was never triggered as you mentioned. Now everything works like a charmm! Thanks everybody Mauricio Farache -- View this message in context:

Re: How to load tml files from the filesystem instead of classpath?

2010-05-10 Thread Inge Solvoll
I'll do the conclusion: Isn't it nice that we have a framework that actually allows us to freely override such a crucial feature in a radically different way than it was originally intended? The override is very logical and it just works. This is the number one reason for me to use T5 :) Thanks

How tell T5 to return HTML page (not JSON) on AJAX call

2010-05-10 Thread Radek Terber
Hi all I try to use jQuery "tabs" together with the T5 grid in simple page - the page with grid is put as content of a tab (it seams to be good idea due application could be divided into amall pieces - without static component dependencies, as it is required by tabs made using T5, and I can c

Component extension and default parameter value overriding

2010-05-10 Thread Robin Komiwes
Hi there, Here is my problem, please tell me if I'm missing something or if I've encountred a bug: Here are two components definition : public class MyComponent { @Parameter(value = "literal:something") private String myParam; } public class MyExtendedComponent extends MyComponent { @P

Re: Component extension and default parameter value overriding

2010-05-10 Thread Kristian Marinkovic
hi Robin, maybe the thread http://markmail.org/message/gwnq5npogomlk6ae helps. the common answer in this cases is to use/favour composition over inheritance maybe it is a bug afterall; i almost never use component inheritance in my T5 projects g, kris Von:Robin Komiwes An: Tapestr

JSP custom tag

2010-05-10 Thread tarek jaifar
Salam Developer, How are you ? I sent this email beceause i search a answer for my question which is : *how to write jsp custom tag using tapestry 5* * * Thanks in advance

Re: JSP custom tag

2010-05-10 Thread Kristian Marinkovic
Hi, T5 is a completley different technology and does not use JSP to render its view. You could create a JSP tag library that uses T5 to return HTML snippets (using a StreamResponse) but i don't see any reason to do so. why would you want to create JSP tags using T5 anyway? if you have to

Re: Tapestry5 template name simplification

2010-05-10 Thread Kristian Marinkovic
hi sandeep, the reason to do so is to have prettier URLs. When developing an application you tend to group your pages into logical packages. lets assume your application is able to change Customer and Address objects. So you'll have a bunch of pages in the respective packages. Its very common t

Re: Tapestry5 template name simplification

2010-05-10 Thread sandeepraj singh
Thanks For the reply Kris, But thats very subjective.I can easily overrule this by having address/EmployeeAddressList and customer/HighlyPaidCustomerList So i was just thinking why this special take care when there is some redundancy due to my pages being named somewhat same to my package(addres

TSS add custom voter

2010-05-10 Thread Nicolas Gillet - MARKET-IP
Hello, I’m using Tapestry Spring Security 2.1.0 and I try to add a custom voter to allow an user to edit only himself. So on my UserManager I will add an @Secured(“HIMSELF”) on the save(User user) method. I found a code working with acegi security doing this, the problem is when I add a new

Re: Tapestry5 template name simplification

2010-05-10 Thread Kristian Marinkovic
hi Sandeep, you're right this solution does not work in any circumstances. but when you learn a new framework you'll have to live with its features :) if i recall correctly there have been several suggestions on the mailing list to make this feature configurable. i don't know what the current

[ANN] JumpStart demo is now on port 80

2010-05-10 Thread Geoff Callender
Hi all, To help everyone who is behind a firewall that blocks port 8080, the JumpStart demo site is now available on port 80. The new address is: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff - To

Re: TSS add custom voter

2010-05-10 Thread Jonathan Barker
Nicolas, Are you sure you want another AccessDecisionVoter? This sounds more like you want instance-based security, available through the spring-security-acl package. I can't help you much on code, because what I have is using 2.0, with deprecated interfaces and classes, from my evolution from A

Re: Tapestry5 template name simplification

2010-05-10 Thread Martin Strand
In my experience, this strategy automatically gives prettier URLs in most cases but still allows you to have unique class names that make sense: .details.CustomerDetails --> /details/customer/123 .details.PaymentDetails --> /details/payment/123 .list.CustomerList --> /list/customer .list.

Re: Why can't I return a rendered block via JSON?

2010-05-10 Thread Alex Kotchnev
Chuck, it is my understanding that today, when you return a Block in response to an ajax request, the contents of that block do get serialized into a JSON structure which is then parsed on the client. Isn't that what you need ? Regards, Alex Kotchnev On Mon, May 10, 2010 at 2:18 AM, Chuck Krin

Re: How tell T5 to return HTML page (not JSON) on AJAX call

2010-05-10 Thread Alex Kotchnev
Radek, what if you just point the URL that's used w/ jQuery tabs to a regular Tapestry page ? If I recall correctly, the jQuery tabs used a , and each with inside had an URL of a standalone page that renders w/o any particular layout . Regards, Alex K 2010/5/10 Radek Terber > Hi all > >

Noob problem with Guessing Game tutorial

2010-05-10 Thread aibkwik
Two problems: 1. The tutorial says to create Index.java but the class it creates is "public class Start". I can't even compile the tutorial. Eclipse is telling me that "Start" should be declared in a separate file. It offers to rename the class for me. (It wants the class to be called "Index

Re: Why can't I return a rendered block via JSON?

2010-05-10 Thread Chuck Kring
Hi Alex, No quite. Currently, you can return a Block to refresh a zone or a JSON array to send data to a custom handler on the client. My project has a number of dashboards and I use JSON data to refresh image tags to make 'real-time' charts and icons that automatically update. My handler

Re: Tapestry5 template name simplification

2010-05-10 Thread sandeepraj singh
Thanks for your inputs Kris , I have raised a jira as a "wish" :-) https://issues.apache.org/jira/browse/TAP5-1142 You can add your self as watcher. Lets see what happens next:) Regards Sandeep kristian.marinkovic wrote: > > hi Sandeep, > > you're right this solution does not work in any

Re: Tapestry5 template name simplification

2010-05-10 Thread sandeepraj singh
Yes Martin, I agree its just a nice to have feature. I have raised a jira to make it configurable Thanks Martin Strand-4 wrote: > > In my experience, this strategy automatically gives prettier URLs in most > cases but still allows you to have unique class names that make sense: > > .details.