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;
}
...
//
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 .
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
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
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?
徐 依伟
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo