Hi, I need to build one outputfield component that work's in two modes: - read only mode: Render with span elements; - write mode: renders with textfields;
SAMPLE: Component outputfield <t:if test="readOnly"> <span id="${id}" style="${style}" class="${cssClass}">${value}</span> <t:parameter name="else"> <input id="${id}" t:id="${id}" t:type="textfield" style="${style}" class="${cssClass}" value="${value}"/> </t:parameter> </t:if> Use: <inputt:id="${id}" t:id="${id}" t:type="outputfield" class="class" value="val"/> The main issue it's about the server side unique identifier, it's possible to make some workaround about this. The component have to be a constant field. -- Regards, Pedro Januário