I'm trying to put together an edit / display block for an entity (Entity B) where for simplification the entity contains an id and a desc field
- in an edit scenario I want the rendered output to have a hidden field for the id and an input field for the desc field, so that upon submission I can use the id to update an existing entity using the desc field - in a display scenario I just need to display a readonly text field for the desc I want to be able to use this block system-wide in bean edit forms and bean displays where the form is being rendered for Entity A which contains a 1:1 Entity B. I'm looking at the example at http://tapestry.apache.org/tapestry5/guide/beaneditform.html but drawing a bit of a blank on how some tml to render my hidden id field and my text desc field for edit, and my text desc field only for display fits in with the code. Can anyone point to a more comprehensive online example or let me know if what I am doing is something achievable? I'm not sure if Google just isn't cooperating today or I am being stupid ... Regards, Jim.