Don't use a HiddenField on the Wicket side but a WebMarkupContainer. The HTML side remains the same (i.e., input tag).

Regards,
Sebastiaan

Mathias P.W Nilsson wrote:
I have a page that has 2 fragment. One for normal ordering and one for credit
card ordering.

When sending the input type hidden names they must have the exact name but
wicket changes it

orderPanel:Merchant_id
must be Merchant_id. How can I remove the orderPanel that adds to the
markup.

I have tried to extend the hidden field and override the protected void
onComponentTag(ComponentTag tag)  but this just makes it work even worse.
Why must wicket change the name of the input tag? Is there a way around
this. I must be able to specify my own name. I was hoping that just

 new HiddenField(  "Merchant_id", new Model(  "" ) ); would do the trick but
wicket changes that name.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to