Re: AjaxButton without a Form
Thank you...just found that out myself and was about to update this forum. Gerolf Seitz wrote: you can have input type=button wicket:id=linkButton/ in markup and new AjaxLink(linkButton) {...} in java code. Gerolf On Tue, May 20, 2008 at 2:35 AM, mnwicket [EMAIL PROTECTED] wrote: That is an option, but would rather use; input type=button.../ I have styles around my input buttons that I want to reuse. I'm sure I can create my own custom component, but thought someone has probably done it or has a good way around it. Mathias P.W Nilsson wrote: Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup lt;a wicket:id=closeLinkgt;lt;img src=../path/to/link/gt;lt;/agt; -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17331010.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17525287.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxButton without a Form
you can have input type=button wicket:id=linkButton/ in markup and new AjaxLink(linkButton) {...} in java code. Gerolf On Tue, May 20, 2008 at 2:35 AM, mnwicket [EMAIL PROTECTED] wrote: That is an option, but would rather use; input type=button.../ I have styles around my input buttons that I want to reuse. I'm sure I can create my own custom component, but thought someone has probably done it or has a good way around it. Mathias P.W Nilsson wrote: Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup lt;a wicket:id=closeLinkgt;lt;img src=../path/to/link/gt;lt;/agt; -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17331010.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxButton without a Form
Is there a good way to create a button, say AjaxButton that does depend on a form? Basically I just want to create my own button with in the content of a modal window to close it. -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17330924.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxButton without a Form
Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup ../path/to/link -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17330993.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxButton without a Form
That is an option, but would rather use; input type=button.../ I have styles around my input buttons that I want to reuse. I'm sure I can create my own custom component, but thought someone has probably done it or has a good way around it. Mathias P.W Nilsson wrote: Are you talking about an input type button? Couldn't you just use add( new AjaxLink( closeLink ){ public void onClick( AjaxRequestTarget target ){ // close the modal window } } ); Markup lt;a wicket:id=closeLinkgt;lt;img src=../path/to/link/gt;lt;/agt; -- View this message in context: http://www.nabble.com/AjaxButton-without-a-Form-tp17330924p17331010.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]