Sure. It should be pretty simple. First, please define "doesn't work".
Does anything get written into the html?

Also, you probably want to extend AbstractField, not AbstractTextField.

Cheers,
Nick.


Donyee wrote:
I need to submit a hidden value, so i write like this:(copy from this TextField)

public class HiddenField extends AbstractTextField {
    @Override
    protected final void writeFieldTag(MarkupWriter writer, String value) {
writer.element("input", "type", "hidden", "name", getElementName(), "id",
                getClientId(), "value", value);
    }

    final void afterRender(MarkupWriter writer) {
        writer.end(); // input
    }

}
but it doesn't works!
Can anyone help??


----徐 依伟

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to