How to map a html field to a complicated property of page class in Tapestry5.0.4

2007-05-20 Thread Allen Guo
Hi All, There is a page class below. // ProductDetail.java private Goods _goods; public void setGoods(Goods g) { this._goods = g; } public Goods getGoods() { Goods goods = new Goods(); goods.setDescription(Pure Cotton TShirt); goods.setName(Pumpkin); this._goods = goods; } ... //

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.jpg .

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 imgimg t:type=Any src=prop:logoImage width=30% height=92 border=0 / Petros Allen Guo wrote: Hi All, I want to show the ProductDetail page

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

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? 徐 依伟

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

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

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 img tag? That is ... are the images stored in the database? Or are

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

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 envisioned

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

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

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 ul class=mylist lirow 1/li lirow 2/li ... etc. /ul And in css: ul.mylist li

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

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 img t:id=productImage src=prop:productImageURL/ But I want write it like img t:id=productImage src=/products_images/prop:productImageURL/ You see, there is a folder

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: img src=/products_images/${productImageURL}/ 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