You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Neo Anderson <ja...@yahoo.co.uk> on 2009/06/11 21:44:09 UTC
Display product detail information
I read the message at
http://www.mail-archive.com/users@tapestry.apache.org/msg17772.html.
It seems like the beaneditform can be marked as readonly for displaying
information. For instance, I have a product detail page which will show
product information e.g. product image, price, etc. and I do not want the
user to change it.
However, when check similar page e.g.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html,
it seems like beaneditform doesn't provide any property to mark the field as
readonly. For instance, <input type="text" ... readonly="ture">
How can I do that or what is the right way to do it?
Env used : tapestry 5.1.0.5/ java 1.6.0.10/ tomcat 6.0.18
P.S.: I tried to use beandisplay, but seeming beandisplay only show bean
property value. I can not e.g. transforms path into image tag.
Thanks
--
View this message in context: http://n2.nabble.com/Display-product-detail-information-tp3064053p3064053.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Display product detail information
Posted by neo anderson <ja...@yahoo.co.uk>.
I just found out the display can be simply solved by using output component.
I took many things into account.
Thanks for the advice.
I appreciate it.
Thiago H. de Paula Figueiredo wrote:
>
> Em Thu, 11 Jun 2009 16:44:09 -0300, Neo Anderson
> <ja...@yahoo.co.uk> escreveu:
>
>> I read the message at
>> http://www.mail-archive.com/users@tapestry.apache.org/msg17772.html.
>> It seems like the beaneditform can be marked as readonly for displaying
>> information.
>
> As far as I know, no. BeanEditForm is for editing info, no displaying it.
>
>> P.S.: I tried to use beandisplay, but seeming beandisplay only show bean
>> property value. I can not e.g. transforms path into image tag.
>
> As with BeanEditForm and BeanEditor, with BeanDisplay you can override how
> a property is shown. Its documentation shows how. There's another option:
> http://tapestry.apache.org/tapestry5.1/guide/beaneditform.html shows you
> can provide a special viewing and edition block for anything you want.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Display-product-detail-information-tp23987706p23989604.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Display product detail information
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 11 Jun 2009 16:44:09 -0300, Neo Anderson
<ja...@yahoo.co.uk> escreveu:
> I read the message at
> http://www.mail-archive.com/users@tapestry.apache.org/msg17772.html.
> It seems like the beaneditform can be marked as readonly for displaying
> information.
As far as I know, no. BeanEditForm is for editing info, no displaying it.
> P.S.: I tried to use beandisplay, but seeming beandisplay only show bean
> property value. I can not e.g. transforms path into image tag.
As with BeanEditForm and BeanEditor, with BeanDisplay you can override how
a property is shown. Its documentation shows how. There's another option:
http://tapestry.apache.org/tapestry5.1/guide/beaneditform.html shows you
can provide a special viewing and edition block for anything you want.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org