Re: page under web-inf subdirectory won't load

2007-05-20 Thread Paul Stanton
OK, so the strategy seems primed for a fairly limited approach; everything under web-inf or root. Why not also look under folders named the same as the package name (minus the value of 'org.apache.tapestry.page-class-packages') ? This is done in the root, so wouldn't it be just as simple to als

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-20 Thread Massimo Lusetti
On 5/21/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Wait for 5.0.5 ... I'm working on code for that right now, so you'll be able to write: Still, from a maintainability situation, I would prefer that the complete URL come from the Java code side; if "/product_images" ever becomes, say, "

Re: T5: Cobertura?

2007-05-20 Thread Jiri Mares
Hi Howard, I'm developing cobertura ... can you, please, give more information where the problem is to solve it ... or show me the way how to investigate, where it is ... Thanks Jirka Howard Lewis Ship napsal(a): > Sorry if I was inexact; I'm shifting gears too constantly. > > On 5/17/07, Jo

Re: Create sub-package base on Tapestry5.0.4

2007-05-20 Thread Allen Guo
I did a lot of test yesterday. I found the real problem is If the page class start with package name then you put it under WEB-INF/, it won't work . For example, suppose there is a page class named Admin.java or Admin1.java lie in the sub package name is 'org/opend/bogo/pages/admin/' , it won't

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-20 Thread Howard Lewis Ship
Wait for 5.0.5 ... I'm working on code for that right now, so you'll be able to write: Still, from a maintainability situation, I would prefer that the complete URL come from the Java code side; if "/product_images" ever becomes, say, "/images/catalog" some day, you may be able to fix it across

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-20 Thread 蝈蝈龙
Thank you very much. My image file is put on file system. It works now. But I feel that it's not flexible. I wrote the img tag like But I want write it like You see, there is a folder prefix for the src property of img tag above For this efffect, what should I do? 2007/5/21, Howard Lewis Shi

Re: looking for such a component

2007-05-20 Thread Heping Zhang
hi, Jonathan, thank you. That's what I am trying to do now. As I have ever used JSF and it has a table component which can designate its style to ask it display rows as grids, I do know whether tap has such a component, so I post this email. Still thanks for your help. Your demo helps me with this

RE: looking for such a component

2007-05-20 Thread Jonathan Barker
Have you considered a simple @For and then use CSS and display:block, float:left to generate the positioning? It looks like you are wanting a multi-column display of a list, rather than a real table. Play around with row 1 row 2 ... etc. And in css: ul.mylist li { display:block;

looking for such a component

2007-05-20 Thread Heping Zhang
hi, all, I'm a novice to tapestry. And I wonder whether there is such a compenont. Generally, it acts like a table. But while table presents content this way: - row 1 - row 2 - row 3 - row 4 - I am looking for a compon

Re: General Tapestry Question - File permissions

2007-05-20 Thread Peter Dawn
am not sure if i follow. so how can i fix this. i have a tomcat server running. so i have to `edit something in the tomcat settings? and if yes, could you provide some further info. thanks. - To unsubscribe, e-mail: [EMAIL PROTE

Re: Is onActivate a robust place for authentication?

2007-05-20 Thread Bill Holloway
Yeah, that's how I'm doing this now. Having a Tapestry annotation like @Secure that invokes your pipeline contribution sounds the most solid. Bill On 5/18/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: For the meantime, an "activate" event handler method (in a base class) is how I've envisio

Re: Is onActivate a robust place for authentication?

2007-05-20 Thread Bill Holloway
Sorry, everybody, I should have mentioned that I'm in T5. Looking for a solution. Bill On 5/18/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: I think what you are looking for is interface PageValidateListener http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/event/PageValid

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-20 Thread Howard Lewis Ship
In order to answer this question, some background is needed. If you know the product's id (whatever you use, where it's SKU number or a surrogate key) ... what is the exact process from going from that to a URL suitable for an tag? That is ... are the images stored in the database? Or are the

Re: just posted some thoughts on tapestry and its future

2007-05-20 Thread Howard Lewis Ship
And they are very good thoughts. There won't be a Tapestry 6. The design of Tapestry 5 is to create the stability you call for in your blog posting. The essence of Tapestry for me is that there is a fundamental germ of an idea encapsulated in the code and the design, and it's a powerful and com

Re: May I use the tapestry-ioc other packages?

2007-05-20 Thread Howard Lewis Ship
You can create modules and use the IoC annotations to build services. However, the "magic" injection into private fields is part of Tapestry's very aggressive bytecode enhancement of component classes. It's not available for ordinary classes (I'd tend to call them data- or model-classes) outside

May I use the tapestry-ioc other packages?

2007-05-20 Thread Donyee
I try to use the Tapestry-ioc in the other packages,not just in the .pages.* package. Does it support this? I try to use @Inject in my domain.service.Impl.AccountServiceImpl.java code: @Inject private AccountDao dao; but it doesn't work! Any suggestion? 徐 依伟

T4.1.1 Validation issue - clientside + decoration works, but getHasErrors is false?

2007-05-20 Thread Jan Vissers
I must be missing something very trivial here. I have a form with some 'required' validation specified, in the onSubmit I check for getHasErrors()==true. The strange thing is that this is always false, but the form *does* contain errors. What's more - the fields are properly decorated as having err

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-20 Thread petros
This is how I used Asset for an image in T5.0.4 Java class @Inject @Path("context:images/banners/new_logo.jpg") private Asset logoImage; HTML code Petros Allen Guo wrote: > > Hi All, > > I want to show the ProductDetail page with product image. It looks like > p_001.jpg . > You know, eve

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-20 Thread petros
This is how I used Asset for an image in T5.0.4 Java class @Inject @Path("context:images/banners/new_logo.jpg") private Asset logoImage; HTML code prop:logoImage Petros Allen Guo wrote: > > Hi All, > > I want to show the ProductDetail page with product image. It looks like > p_001.