There isn't one yet, but you can drop this in your components
directory...
// From
http://article.gmane.org/gmane.comp.java.tapestry.user/54606/match=hidden+fields
package yourproject.components;
import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.corelib.base.AbstractTextField;
public class Hidden extends AbstractTextField {
@Override
protected void writeFieldTag(MarkupWriter writer, String value) {
writer.element("input", "type", "hidden", "id", getClientId(),
"name", getClientId(), "value", value);
writer.end();
}
}
Cheers,
Geoff
http://files.doublenegative.com.au/jumpstart/
On 28/01/2008, at 3:24 PM, Zheng, Xiahong wrote:
Is there an HiddenField component in T5? I have been searching all
over
the component reference and source code with no success. How can I
specify hidden field in T5 template?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]