You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2008/01/29 07:09:08 UTC
Ajax Busy Indicator
Hi!
Can anyone help? I am having difficulties showing a bysy indicator
besides the submit button, while the form is being submitted and
processed. I have only found pieces of varying examples and I have
tried to put them work together, but it just does not seem want to
show the indicator. Here is my code:
public class Login extends WebPage {
// ... default constructor contents:
final Form loginForm = new Form(LOGIN_FORM, new Model());
final AjaxIndicatorContainer indicatorContainer = new
AjaxIndicatorContainer();
indicatorContainer.setOutputMarkupId(true);
loginForm.add(indicatorContainer);
final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) {
/**
* @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
*/
@Override
public void onSubmit() {
super.onSubmit();
Thread.sleep(5000); // Simulate form processing
}
};
abstract class AjaxFormSubmitIndicator extends
AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
/**
* Constructor for TODO
*
*/
public AjaxFormSubmitIndicator() {
super("onchange"); // I have tried "onchange" and "onclick"
}
}
loginButton.add(new AjaxFormSubmitIndicator() {
@Override
protected void onError(AjaxRequestTarget arg0) {
// TODO Auto-generated method stub
}
@Override
protected void onSubmit(AjaxRequestTarget arg0) {
loginButton.onSubmit();
}
public String getAjaxIndicatorMarkupId() {
return indicatorContainer.getMarkupId();
}
});
loginForm.add(loginButton);
// ... etc..
add(new FeedbackPanel("feedback"));
add(loginForm);
}
public class AjaxIndicatorContainer extends WebMarkupContainer {
/**
*
*/
private static final long serialVersionUID = 5573778050703849297L;
/**
*
*/
public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
/**
* Constructor for TODO
*/
public AjaxIndicatorContainer() {
super(INDICATOR_MARKUP_ID);
}
/**
* @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
*/
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
}
<body>
<wicket:extend>
<h1>Login</h1>
<span wicket:id="feedback">Feedback messages will be here.</span>
<form wicket:id="loginForm">
<table border="0" cellspacing="0" cellpadding="2" align="center">
<tr><td NOWRAP width="80" align="right">
Username:
</td>
<td><input type="text" wicket:id="userId"></td></tr>
<tr><td NOWRAP align="right">
Password: </td><td><input type="password" wicket:id="password"></td></tr>
<tr><td align="right"><img src="#" border="0"
wicket:id="ajaxIndicator" style="display:none"/></td><td NOWRAP>
<input type="submit" value="Sign in" wicket:id="loginButton">
</td></tr>
</table>
</form>
</wicket:extend>
</body>
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Igor Vaynberg <ig...@gmail.com>.
IAjaxIndicatorAware simply takes the html id of the element you want
to show/hide; it can be placed anywhere in html...
alternatively there are clientside javascript callbacks you can hook
into to create gmail-like busy indicator, see wicket-ajax.js
-igor
On Jan 29, 2008 11:11 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Hi!
>
> I can get the default behaviour to work. However, I do not want the
> ajax indicator icon to be appended after the button. Instead, I want
> to simply mark it elsewhere in my html file to position it suitably. I
> have not found a way to separate the button from the icon in the
> markup. I am new to Wicket, so I haven't got my mind wrapped around
> this the right way yet.
>
> To put it in swing, I would set the icon visible on default render.
> Then I would set it visible for the duration of the processing and set
> it invisible again after that. At least this is what it should look
> like, but I cannot seem to get the pieces together nicely. Anybody can
> help? Anyone have boilerplate code for the same problem?
>
> **
> Martin
>
> 2008/1/29, Michael Sparer <mi...@gmx.at>:
>
> >
> > Take a look at IndicatingAjaxButton in the extensions-project and adapt it
> > for your form.
> > If you don't mind taking the default indicator, you can use
> > WicketAjaxIndicatorAppender just like in the mentioned class
> >
> >
> >
> > Martin Makundi wrote:
> > >
> > > Hi!
> > >
> > > Can anyone help? I am having difficulties showing a bysy indicator
> > > besides the submit button, while the form is being submitted and
> > > processed. I have only found pieces of varying examples and I have
> > > tried to put them work together, but it just does not seem want to
> > > show the indicator. Here is my code:
> > >
> > > public class Login extends WebPage {
> > > // ... default constructor contents:
> > > final Form loginForm = new Form(LOGIN_FORM, new Model());
> > > final AjaxIndicatorContainer indicatorContainer = new
> > > AjaxIndicatorContainer();
> > > indicatorContainer.setOutputMarkupId(true);
> > > loginForm.add(indicatorContainer);
> > > final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new
> > > Model()) {
> > > /**
> > > * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
> > > */
> > > @Override
> > > public void onSubmit() {
> > > super.onSubmit();
> > > Thread.sleep(5000); // Simulate form processing
> > > }
> > > };
> > > abstract class AjaxFormSubmitIndicator extends
> > > AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
> > > /**
> > > * Constructor for TODO
> > > *
> > > */
> > > public AjaxFormSubmitIndicator() {
> > > super("onchange"); // I have tried "onchange" and "onclick"
> > > }
> > > }
> > > loginButton.add(new AjaxFormSubmitIndicator() {
> > > @Override
> > > protected void onError(AjaxRequestTarget arg0) {
> > > // TODO Auto-generated method stub
> > > }
> > >
> > > @Override
> > > protected void onSubmit(AjaxRequestTarget arg0) {
> > > loginButton.onSubmit();
> > > }
> > >
> > > public String getAjaxIndicatorMarkupId() {
> > > return indicatorContainer.getMarkupId();
> > > }
> > > });
> > > loginForm.add(loginButton);
> > >
> > > // ... etc..
> > >
> > > add(new FeedbackPanel("feedback"));
> > > add(loginForm);
> > > }
> > >
> > >
> > >
> > >
> > > public class AjaxIndicatorContainer extends WebMarkupContainer {
> > > /**
> > > *
> > > */
> > > private static final long serialVersionUID = 5573778050703849297L;
> > > /**
> > > *
> > > */
> > > public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
> > >
> > > /**
> > > * Constructor for TODO
> > > */
> > > public AjaxIndicatorContainer() {
> > > super(INDICATOR_MARKUP_ID);
> > > }
> > >
> > > /**
> > > * @see
> > > org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
> > > */
> > > @Override
> > > protected void onComponentTag(ComponentTag tag) {
> > > super.onComponentTag(tag);
> > > tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> > > }
> > >
> > >
> > >
> > >
> > > <body>
> > > <wicket:extend>
> > > <h1>Login</h1>
> > > Feedback messages will be here.
> > > <form wicket:id="loginForm">
> > > <table border="0" cellspacing="0" cellpadding="2" align="center">
> > > <tr><td NOWRAP width="80" align="right">
> > > Username:
> > > </td>
> > > <td><input type="text" wicket:id="userId"></td></tr>
> > > <tr><td NOWRAP align="right">
> > > Password: </td><td><input type="password" wicket:id="password"></td></tr>
> > > <tr><td align="right"> # </td><td NOWRAP>
> > > <input type="submit" value="Sign in" wicket:id="loginButton">
> > > </td></tr>
> > > </table>
> > > </form>
> > > </wicket:extend>
> > > </body>
> > >
> > >
> > > **
> > > Martin
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> > >
> >
> >
> > -----
> > Michael Sparer
> > http://talk-on-tech.blogspot.com
> > --
> > View this message in context: http://www.nabble.com/Ajax-Busy-Indicator-tp15153150p15160382.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> > This seems like tweaking...
> nope, that's what CSS is for, you wouldn't want to change your markup just
> to put something as tiny as an ajaxindicator some pixels to the left would
> you? (just an example)
What I do not want is the indicator to take up extra space from where
it does not belong (i.e., either immediate left or right side of the
button). Say, I want the following layout:
<element A><element B><indicatorIcon><element C><new row/block>
<element D><ajaxSubmitButton><element E><element F>
With css I cannot position the IndicatorAppender like that. It will
only appear on either left or right side of the ajaxSubmitButton. What
I want is to a) independently position the indicatorIcon and b)
independently position the submitButton and c) activate the
indicatorIcon with the submitbutton.
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Michael Sparer <mi...@gmx.at>.
> This seems like tweaking...
nope, that's what CSS is for, you wouldn't want to change your markup just
to put something as tiny as an ajaxindicator some pixels to the left would
you? (just an example)
Martin Makundi wrote:
>
>> You can use CSS to control the positon of the busy indicating image. To
>> place it
>> right from the button use
>
> This seems like tweaking...
>
>> IAjaxIndicatorAware simply takes the html id of the element you want
>> to show/hide; it can be placed anywhere in html...
>
> This is more of what I am looking for, but with IAjaxIndicatorAware I
> havent succeeded in making the indicator appear. I posted earlier the
> code I have, but it didn't do the job. I will repeat it here if
> someone can see immediately what is wrong in it:
>
>
> public class Login extends WebPage {
> // ... default constructor contents:
> final Form loginForm = new Form(LOGIN_FORM, new Model());
> final AjaxIndicatorContainer indicatorContainer = new
> AjaxIndicatorContainer();
> indicatorContainer.setOutputMarkupId(true);
> loginForm.add(indicatorContainer);
> final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new
> Model()) {
> /**
> * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
> */
> @Override
> public void onSubmit() {
> super.onSubmit();
> Thread.sleep(5000); // Simulate form processing
> }
> };
> abstract class AjaxFormSubmitIndicator extends
> AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
> /**
> * Constructor for TODO
> *
> */
> public AjaxFormSubmitIndicator() {
> super("onchange"); // I have tried "onchange" and "onclick"
> }
> }
> loginButton.add(new AjaxFormSubmitIndicator() {
> @Override
> protected void onError(AjaxRequestTarget arg0) {
> // TODO Auto-generated method stub
> }
>
> @Override
> protected void onSubmit(AjaxRequestTarget arg0) {
> loginButton.onSubmit();
> }
>
> public String getAjaxIndicatorMarkupId() {
> return indicatorContainer.getMarkupId();
> }
> });
> loginForm.add(loginButton);
>
> // ... etc..
>
> add(new FeedbackPanel("feedback"));
> add(loginForm);
> }
>
>
>
>
> public class AjaxIndicatorContainer extends WebMarkupContainer {
> /**
> *
> */
> private static final long serialVersionUID = 5573778050703849297L;
> /**
> *
> */
> public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
>
> /**
> * Constructor for TODO
> */
> public AjaxIndicatorContainer() {
> super(INDICATOR_MARKUP_ID);
> }
>
> /**
> * @see
> org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
> */
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> }
>
>
>
>
> <body>
> <wicket:extend>
> <h1>Login</h1>
> Feedback messages will be here.
> <form wicket:id="loginForm">
> <table border="0" cellspacing="0" cellpadding="2" align="center">
> <tr><td NOWRAP width="80" align="right">
> Username:
> </td>
> <td><input type="text" wicket:id="userId"></td></tr>
> <tr><td NOWRAP align="right">
> Password: </td><td><input type="password" wicket:id="password"></td></tr>
> <tr><td align="right"> # </td><td NOWRAP>
> <input type="submit" value="Sign in" wicket:id="loginButton">
> </td></tr>
> </table>
> </form>
> </wicket:extend>
> </body>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
-----
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context: http://www.nabble.com/Ajax-Busy-Indicator-tp15153150p15177222.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Igor Vaynberg <ig...@gmail.com>.
if ajaxbutton works for you thats great. i was simply trying to
explain that iajaxindicatoraware is decoupled from ajaxbutton - it
will work on any component to which you add an ajax behavior.
-igor
On Jan 30, 2008 9:04 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> > no, you dont need to extend an ajaxbutton, IAjaxIndicatorAware works
> > on any component that has any kind of ajax behavior added to it
>
> This means? I tried using AjaxButton and adding an
> AjaxFormSubmitBehavior implements IAjaxIndicatorAware but that never
> received the submit event. I also tried a SubmitLink button with the
> same behavior, but it did not work.
>
> Finally, extending AjaxButton and implementing IAjaxIndicatorAware
> received the event, but lost the feedback functionality. I am still a
> bit clueless with this new frame ;) So how whould you have done it
> exactly right?
>
> t. Martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> no, you dont need to extend an ajaxbutton, IAjaxIndicatorAware works
> on any component that has any kind of ajax behavior added to it
This means? I tried using AjaxButton and adding an
AjaxFormSubmitBehavior implements IAjaxIndicatorAware but that never
received the submit event. I also tried a SubmitLink button with the
same behavior, but it did not work.
Finally, extending AjaxButton and implementing IAjaxIndicatorAware
received the event, but lost the feedback functionality. I am still a
bit clueless with this new frame ;) So how whould you have done it
exactly right?
t. Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Igor Vaynberg <ig...@gmail.com>.
no, you dont need to extend an ajaxbutton, IAjaxIndicatorAware works
on any component that has any kind of ajax behavior added to it
-igor
On Jan 30, 2008 1:34 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Hi!
>
> Tnx Igor, I finally got it working after quite some wrestling.. I
> understood I must extend the AjaxButton? I shall play around with it
> some more in order to more fully understand it.
>
> However, in case someone else needs it too, my complete code and
> markup is available below for ajax busy indicator for form submit
> button.
>
> /**
> * This class TODO
> */
> public class IndicatorLogin extends WebPage {
> private static final long serialVersionUID = 1L;
> /**
> * Constructor for TODO
> */
> @SuppressWarnings("serial")
> public IndicatorLogin() {
> final Form loginForm = new Form("loginForm", new Model());
> final AjaxIndicatorContainer indicatorContainer = new
> AjaxIndicatorContainer(loginForm);
> {
> TextField userIdField = new TextField("userId", new Model());
> userIdField.setRequired(true);
> loginForm.add(userIdField);
> }
> {
> PasswordTextField passwdField = new
> PasswordTextField("password", new Model());
> passwdField.setResetPassword(false);
> loginForm.add(passwdField);
> }
> {
> final AjaxButton loginButton = new MyAjaxButton("loginButton",
> loginForm) {
> @Override
> protected void onSubmit(AjaxRequestTarget arg0, Form arg1) {
> simulateLoginTransaction();
> }
>
> public String getAjaxIndicatorMarkupId() {
> return indicatorContainer.getMarkupId();
> }
> };
> loginForm.add(loginButton);
> }
> add(new FeedbackPanel("feedback"));
> add(loginForm);
> }
>
> /**
> * This method TODO
> */
> synchronized void simulateLoginTransaction() {
> System.out.println("Transaction begin.");
> try {
> Thread.sleep(5000);
> } catch (InterruptedException e) {
> e.printStackTrace();
> }
> System.out.println("Transaction complete.");
> }
> }
>
> /**
> * This class TODO
> */
> @SuppressWarnings("serial")
> class AjaxIndicatorContainer extends WebMarkupContainer {
> /**
> * Constructor for TODO
> * @param form
> */
> public AjaxIndicatorContainer(Form form) {
> super("ajaxIndicator"); // wicket:id
> setOutputMarkupId(true);
> setMarkupId("ajaxIndicatorId"); // markup:id
> form.add(this);
> }
>
> /**
> * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
> */
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> }
> }
>
> abstract class MyAjaxButton extends AjaxButton implements IAjaxIndicatorAware {
> /**
> * Constructor for TODO
> *
> * @param id
> * @param form
> */
> public MyAjaxButton(String id, Form form) {
> super(id, form);
> }
> };
>
>
> <html xmlns:wicket="http://wicket.sourceforge.net">
> <head>
> <title>Login form</title>
> </head>
> <body>
> <h1>Login</h1>
> <span wicket:id="feedback">Feedback messages will be here.</span>
> <form wicket:id="loginForm">
> <table border="0" cellspacing="0" cellpadding="2" align="center">
> <tr><td NOWRAP width="80" align="right">
> Username:
> </td>
> <td><input type="text" wicket:id="userId"></td></tr>
> <tr><td NOWRAP align="right">
> Password: </td><td><input type="password" wicket:id="password"></td></tr>
> <tr><td align="right">
> <img src="#" border="0" style="display:none"
> wicket:id="ajaxIndicator"/></td><td NOWRAP>
> <input type="submit" value="Sign in" wicket:id="loginButton">
> </td></tr>
> </table>
> </form>
> </body>
> </html>
>
>
> **
> Martin
>
>
> 2008/1/30, Igor Vaynberg <ig...@gmail.com>:
> > <img src="#" border="0" wicket:id="ajaxIndicatorImage"
> > id="ajaxIndicatorImage"/> should get you started :)
> >
> > the only caveat is if that image component for some reason has
> > setoutputmarkupid(true) set on it, in which case the id attr you put
> > into markup will be overwritten, to make this thing work dynamically
> > you would
> >
> > final Image image=new Image("ajxIndicatorImage", ...);
> > image.setOutputMarkupId(true);
> > image.setMarkupId('whatever-you-want-but-make-sure-its-unique');
> >
> > pass that markup id to your iajaxindicatorware component
> >
> > alternatively you can wire up the two components so the use wicket's
> > automatically generated markup id which is available via
> > component.getmarkupid() but the caveat is that it is only available
> > during render
> >
> > -igor
> >
> > class abstract mycomponent implements iajaxindicatoraware {
> > };
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!
Tnx Igor, I finally got it working after quite some wrestling.. I
understood I must extend the AjaxButton? I shall play around with it
some more in order to more fully understand it.
However, in case someone else needs it too, my complete code and
markup is available below for ajax busy indicator for form submit
button.
/**
* This class TODO
*/
public class IndicatorLogin extends WebPage {
private static final long serialVersionUID = 1L;
/**
* Constructor for TODO
*/
@SuppressWarnings("serial")
public IndicatorLogin() {
final Form loginForm = new Form("loginForm", new Model());
final AjaxIndicatorContainer indicatorContainer = new
AjaxIndicatorContainer(loginForm);
{
TextField userIdField = new TextField("userId", new Model());
userIdField.setRequired(true);
loginForm.add(userIdField);
}
{
PasswordTextField passwdField = new
PasswordTextField("password", new Model());
passwdField.setResetPassword(false);
loginForm.add(passwdField);
}
{
final AjaxButton loginButton = new MyAjaxButton("loginButton",
loginForm) {
@Override
protected void onSubmit(AjaxRequestTarget arg0, Form arg1) {
simulateLoginTransaction();
}
public String getAjaxIndicatorMarkupId() {
return indicatorContainer.getMarkupId();
}
};
loginForm.add(loginButton);
}
add(new FeedbackPanel("feedback"));
add(loginForm);
}
/**
* This method TODO
*/
synchronized void simulateLoginTransaction() {
System.out.println("Transaction begin.");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Transaction complete.");
}
}
/**
* This class TODO
*/
@SuppressWarnings("serial")
class AjaxIndicatorContainer extends WebMarkupContainer {
/**
* Constructor for TODO
* @param form
*/
public AjaxIndicatorContainer(Form form) {
super("ajaxIndicator"); // wicket:id
setOutputMarkupId(true);
setMarkupId("ajaxIndicatorId"); // markup:id
form.add(this);
}
/**
* @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
*/
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
}
}
abstract class MyAjaxButton extends AjaxButton implements IAjaxIndicatorAware {
/**
* Constructor for TODO
*
* @param id
* @param form
*/
public MyAjaxButton(String id, Form form) {
super(id, form);
}
};
<html xmlns:wicket="http://wicket.sourceforge.net">
<head>
<title>Login form</title>
</head>
<body>
<h1>Login</h1>
<span wicket:id="feedback">Feedback messages will be here.</span>
<form wicket:id="loginForm">
<table border="0" cellspacing="0" cellpadding="2" align="center">
<tr><td NOWRAP width="80" align="right">
Username:
</td>
<td><input type="text" wicket:id="userId"></td></tr>
<tr><td NOWRAP align="right">
Password: </td><td><input type="password" wicket:id="password"></td></tr>
<tr><td align="right">
<img src="#" border="0" style="display:none"
wicket:id="ajaxIndicator"/></td><td NOWRAP>
<input type="submit" value="Sign in" wicket:id="loginButton">
</td></tr>
</table>
</form>
</body>
</html>
**
Martin
2008/1/30, Igor Vaynberg <ig...@gmail.com>:
> <img src="#" border="0" wicket:id="ajaxIndicatorImage"
> id="ajaxIndicatorImage"/> should get you started :)
>
> the only caveat is if that image component for some reason has
> setoutputmarkupid(true) set on it, in which case the id attr you put
> into markup will be overwritten, to make this thing work dynamically
> you would
>
> final Image image=new Image("ajxIndicatorImage", ...);
> image.setOutputMarkupId(true);
> image.setMarkupId('whatever-you-want-but-make-sure-its-unique');
>
> pass that markup id to your iajaxindicatorware component
>
> alternatively you can wire up the two components so the use wicket's
> automatically generated markup id which is available via
> component.getmarkupid() but the caveat is that it is only available
> during render
>
> -igor
>
> class abstract mycomponent implements iajaxindicatoraware {
> };
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Igor Vaynberg <ig...@gmail.com>.
<img src="#" border="0" wicket:id="ajaxIndicatorImage"
id="ajaxIndicatorImage"/> should get you started :)
the only caveat is if that image component for some reason has
setoutputmarkupid(true) set on it, in which case the id attr you put
into markup will be overwritten, to make this thing work dynamically
you would
final Image image=new Image("ajxIndicatorImage", ...);
image.setOutputMarkupId(true);
image.setMarkupId('whatever-you-want-but-make-sure-its-unique');
pass that markup id to your iajaxindicatorware component
alternatively you can wire up the two components so the use wicket's
automatically generated markup id which is available via
component.getmarkupid() but the caveat is that it is only available
during render
-igor
class abstract mycomponent implements iajaxindicatoraware {
};
-igor
On Jan 30, 2008 12:02 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> > And wait a minute, is the container in fact the indicator?
>
> Yes!
>
> > > @Override
> > > protected void onComponentTag(ComponentTag tag) {
> > > super.onComponentTag(tag);
> > > tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> > > }
> >
> > This part I didn't understand.
>
> The html has just "<img src="#" border="0"
> wicket:id="ajaxIndicator"/>" and that command will replace the src ->
> Wicket's default indicator image.
>
> > Wicket id is a different thing than the markup id. Probably
> > you need to override getMarkupId() to return that id.
>
> Ok. This is probably where I have messed up.
>
> Say I have "<img src="#" border="0" wicket:id="ajaxIndicatorImage"/>"
> in my HTML and an AjaxIndicatorContainer extends WebMarkupContainer
> for it as previously.
>
> Now, how do I set up the markup-id if it is not the same as wicket-id
> :) ? Anyone has done this exact same thing before in a similar manner
> and coud post code?
>
> **
> Martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> And wait a minute, is the container in fact the indicator?
Yes!
> > @Override
> > protected void onComponentTag(ComponentTag tag) {
> > super.onComponentTag(tag);
> > tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> > }
>
> This part I didn't understand.
The html has just "<img src="#" border="0"
wicket:id="ajaxIndicator"/>" and that command will replace the src ->
Wicket's default indicator image.
> Wicket id is a different thing than the markup id. Probably
> you need to override getMarkupId() to return that id.
Ok. This is probably where I have messed up.
Say I have "<img src="#" border="0" wicket:id="ajaxIndicatorImage"/>"
in my HTML and an AjaxIndicatorContainer extends WebMarkupContainer
for it as previously.
Now, how do I set up the markup-id if it is not the same as wicket-id
:) ? Anyone has done this exact same thing before in a similar manner
and coud post code?
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Timo Rantalaiho <Ti...@ri.fi>.
On Wed, 30 Jan 2008, Martin Makundi wrote:
> public class Login extends WebPage {
> // ... default constructor contents:
> final Form loginForm = new Form(LOGIN_FORM, new Model());
> final AjaxIndicatorContainer indicatorContainer = new
> AjaxIndicatorContainer();
> indicatorContainer.setOutputMarkupId(true);
> loginForm.add(indicatorContainer);
Maybe you won't need the container around the indicator if
you say setOutputMarkupPlaceHolderTag(true) to the indicator
itself.
> public String getAjaxIndicatorMarkupId() {
> return indicatorContainer.getMarkupId();
> }
I have used hardocoded HTML ids here, that way you can
easily control the layout of the indicator in CSS.
> public class AjaxIndicatorContainer extends WebMarkupContainer {
...
> */
> public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
...
> */
> public AjaxIndicatorContainer() {
> super(INDICATOR_MARKUP_ID);
> }
Wicket id is a different thing than the markup id. Probably
you need to override getMarkupId() to return that id.
And wait a minute, is the container in fact the indicator?
Then you definitely need to output the placeholder container
for it, otherwise ajax has no way of making it visible
as it does not appear in the HTML. You should be able to see
this as an error in the ajax debug console (available when
running with -Dwicket.configuration=development ).
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> }
This part I didn't understand.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> You can use CSS to control the positon of the busy indicating image. To place it
> right from the button use
This seems like tweaking...
> IAjaxIndicatorAware simply takes the html id of the element you want
> to show/hide; it can be placed anywhere in html...
This is more of what I am looking for, but with IAjaxIndicatorAware I
havent succeeded in making the indicator appear. I posted earlier the
code I have, but it didn't do the job. I will repeat it here if
someone can see immediately what is wrong in it:
public class Login extends WebPage {
// ... default constructor contents:
final Form loginForm = new Form(LOGIN_FORM, new Model());
final AjaxIndicatorContainer indicatorContainer = new
AjaxIndicatorContainer();
indicatorContainer.setOutputMarkupId(true);
loginForm.add(indicatorContainer);
final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new Model()) {
/**
* @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
*/
@Override
public void onSubmit() {
super.onSubmit();
Thread.sleep(5000); // Simulate form processing
}
};
abstract class AjaxFormSubmitIndicator extends
AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
/**
* Constructor for TODO
*
*/
public AjaxFormSubmitIndicator() {
super("onchange"); // I have tried "onchange" and "onclick"
}
}
loginButton.add(new AjaxFormSubmitIndicator() {
@Override
protected void onError(AjaxRequestTarget arg0) {
// TODO Auto-generated method stub
}
@Override
protected void onSubmit(AjaxRequestTarget arg0) {
loginButton.onSubmit();
}
public String getAjaxIndicatorMarkupId() {
return indicatorContainer.getMarkupId();
}
});
loginForm.add(loginButton);
// ... etc..
add(new FeedbackPanel("feedback"));
add(loginForm);
}
public class AjaxIndicatorContainer extends WebMarkupContainer {
/**
*
*/
private static final long serialVersionUID = 5573778050703849297L;
/**
*
*/
public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
/**
* Constructor for TODO
*/
public AjaxIndicatorContainer() {
super(INDICATOR_MARKUP_ID);
}
/**
* @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
*/
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
}
<body>
<wicket:extend>
<h1>Login</h1>
<span wicket:id="feedback">Feedback messages will be here.</span>
<form wicket:id="loginForm">
<table border="0" cellspacing="0" cellpadding="2" align="center">
<tr><td NOWRAP width="80" align="right">
Username:
</td>
<td><input type="text" wicket:id="userId"></td></tr>
<tr><td NOWRAP align="right">
Password: </td><td><input type="password" wicket:id="password"></td></tr>
<tr><td align="right"><img src="#" border="0"
wicket:id="ajaxIndicator" style="display:none"/></td><td NOWRAP>
<input type="submit" value="Sign in" wicket:id="loginButton">
</td></tr>
</table>
</form>
</wicket:extend>
</body>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Ajax Busy Indicator
Posted by Stefan Lindner <li...@visionet.de>.
You can use CSS to control the positon of the busy indicating image. To place it right from the button use
span.wicket-ajax-indicator img {
margin:0;
padding:0;
padding-left: 2px;
display: inline;
white-space: nowrap;
}
Use other css code for other positioning.
Stefan
-----Ursprüngliche Nachricht-----
Von: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com]
Gesendet: Dienstag, 29. Januar 2008 20:12
An: users@wicket.apache.org
Betreff: Re: Ajax Busy Indicator
Hi!
I can get the default behaviour to work. However, I do not want the ajax indicator icon to be appended after the button. Instead, I want to simply mark it elsewhere in my html file to position it suitably. I have not found a way to separate the button from the icon in the markup. I am new to Wicket, so I haven't got my mind wrapped around this the right way yet.
To put it in swing, I would set the icon visible on default render.
Then I would set it visible for the duration of the processing and set it invisible again after that. At least this is what it should look like, but I cannot seem to get the pieces together nicely. Anybody can help? Anyone have boilerplate code for the same problem?
**
Martin
2008/1/29, Michael Sparer <mi...@gmx.at>:
>
> Take a look at IndicatingAjaxButton in the extensions-project and
> adapt it for your form.
> If you don't mind taking the default indicator, you can use
> WicketAjaxIndicatorAppender just like in the mentioned class
>
>
>
> Martin Makundi wrote:
> >
> > Hi!
> >
> > Can anyone help? I am having difficulties showing a bysy indicator
> > besides the submit button, while the form is being submitted and
> > processed. I have only found pieces of varying examples and I have
> > tried to put them work together, but it just does not seem want to
> > show the indicator. Here is my code:
> >
> > public class Login extends WebPage {
> > // ... default constructor contents:
> > final Form loginForm = new Form(LOGIN_FORM, new Model());
> > final AjaxIndicatorContainer indicatorContainer = new
> > AjaxIndicatorContainer();
> > indicatorContainer.setOutputMarkupId(true);
> > loginForm.add(indicatorContainer);
> > final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON,
> > new
> > Model()) {
> > /**
> > * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
> > */
> > @Override
> > public void onSubmit() {
> > super.onSubmit();
> > Thread.sleep(5000); // Simulate form processing
> > }
> > };
> > abstract class AjaxFormSubmitIndicator extends
> > AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
> > /**
> > * Constructor for TODO
> > *
> > */
> > public AjaxFormSubmitIndicator() {
> > super("onchange"); // I have tried "onchange" and "onclick"
> > }
> > }
> > loginButton.add(new AjaxFormSubmitIndicator() {
> > @Override
> > protected void onError(AjaxRequestTarget arg0) {
> > // TODO Auto-generated method stub
> > }
> >
> > @Override
> > protected void onSubmit(AjaxRequestTarget arg0) {
> > loginButton.onSubmit();
> > }
> >
> > public String getAjaxIndicatorMarkupId() {
> > return indicatorContainer.getMarkupId();
> > }
> > });
> > loginForm.add(loginButton);
> >
> > // ... etc..
> >
> > add(new FeedbackPanel("feedback"));
> > add(loginForm);
> > }
> >
> >
> >
> >
> > public class AjaxIndicatorContainer extends WebMarkupContainer {
> > /**
> > *
> > */
> > private static final long serialVersionUID = 5573778050703849297L;
> > /**
> > *
> > */
> > public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
> >
> > /**
> > * Constructor for TODO
> > */
> > public AjaxIndicatorContainer() {
> > super(INDICATOR_MARKUP_ID);
> > }
> >
> > /**
> > * @see
> > org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
> > */
> > @Override
> > protected void onComponentTag(ComponentTag tag) {
> > super.onComponentTag(tag);
> > tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> > }
> >
> >
> >
> >
> > <body>
> > <wicket:extend>
> > <h1>Login</h1>
> > Feedback messages will be here.
> > <form wicket:id="loginForm">
> > <table border="0" cellspacing="0" cellpadding="2" align="center">
> > <tr><td NOWRAP width="80" align="right">
> > Username:
> > </td>
> > <td><input type="text" wicket:id="userId"></td></tr> <tr><td NOWRAP
> > align="right">
> > Password: </td><td><input type="password"
> > wicket:id="password"></td></tr> <tr><td align="right"> # </td><td
> > NOWRAP> <input type="submit" value="Sign in"
> > wicket:id="loginButton"> </td></tr> </table> </form>
> > </wicket:extend> </body>
> >
> >
> > **
> > Martin
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
>
> -----
> Michael Sparer
> http://talk-on-tech.blogspot.com
> --
> View this message in context:
> http://www.nabble.com/Ajax-Busy-Indicator-tp15153150p15160382.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!
I can get the default behaviour to work. However, I do not want the
ajax indicator icon to be appended after the button. Instead, I want
to simply mark it elsewhere in my html file to position it suitably. I
have not found a way to separate the button from the icon in the
markup. I am new to Wicket, so I haven't got my mind wrapped around
this the right way yet.
To put it in swing, I would set the icon visible on default render.
Then I would set it visible for the duration of the processing and set
it invisible again after that. At least this is what it should look
like, but I cannot seem to get the pieces together nicely. Anybody can
help? Anyone have boilerplate code for the same problem?
**
Martin
2008/1/29, Michael Sparer <mi...@gmx.at>:
>
> Take a look at IndicatingAjaxButton in the extensions-project and adapt it
> for your form.
> If you don't mind taking the default indicator, you can use
> WicketAjaxIndicatorAppender just like in the mentioned class
>
>
>
> Martin Makundi wrote:
> >
> > Hi!
> >
> > Can anyone help? I am having difficulties showing a bysy indicator
> > besides the submit button, while the form is being submitted and
> > processed. I have only found pieces of varying examples and I have
> > tried to put them work together, but it just does not seem want to
> > show the indicator. Here is my code:
> >
> > public class Login extends WebPage {
> > // ... default constructor contents:
> > final Form loginForm = new Form(LOGIN_FORM, new Model());
> > final AjaxIndicatorContainer indicatorContainer = new
> > AjaxIndicatorContainer();
> > indicatorContainer.setOutputMarkupId(true);
> > loginForm.add(indicatorContainer);
> > final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new
> > Model()) {
> > /**
> > * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
> > */
> > @Override
> > public void onSubmit() {
> > super.onSubmit();
> > Thread.sleep(5000); // Simulate form processing
> > }
> > };
> > abstract class AjaxFormSubmitIndicator extends
> > AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
> > /**
> > * Constructor for TODO
> > *
> > */
> > public AjaxFormSubmitIndicator() {
> > super("onchange"); // I have tried "onchange" and "onclick"
> > }
> > }
> > loginButton.add(new AjaxFormSubmitIndicator() {
> > @Override
> > protected void onError(AjaxRequestTarget arg0) {
> > // TODO Auto-generated method stub
> > }
> >
> > @Override
> > protected void onSubmit(AjaxRequestTarget arg0) {
> > loginButton.onSubmit();
> > }
> >
> > public String getAjaxIndicatorMarkupId() {
> > return indicatorContainer.getMarkupId();
> > }
> > });
> > loginForm.add(loginButton);
> >
> > // ... etc..
> >
> > add(new FeedbackPanel("feedback"));
> > add(loginForm);
> > }
> >
> >
> >
> >
> > public class AjaxIndicatorContainer extends WebMarkupContainer {
> > /**
> > *
> > */
> > private static final long serialVersionUID = 5573778050703849297L;
> > /**
> > *
> > */
> > public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
> >
> > /**
> > * Constructor for TODO
> > */
> > public AjaxIndicatorContainer() {
> > super(INDICATOR_MARKUP_ID);
> > }
> >
> > /**
> > * @see
> > org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
> > */
> > @Override
> > protected void onComponentTag(ComponentTag tag) {
> > super.onComponentTag(tag);
> > tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> > }
> >
> >
> >
> >
> > <body>
> > <wicket:extend>
> > <h1>Login</h1>
> > Feedback messages will be here.
> > <form wicket:id="loginForm">
> > <table border="0" cellspacing="0" cellpadding="2" align="center">
> > <tr><td NOWRAP width="80" align="right">
> > Username:
> > </td>
> > <td><input type="text" wicket:id="userId"></td></tr>
> > <tr><td NOWRAP align="right">
> > Password: </td><td><input type="password" wicket:id="password"></td></tr>
> > <tr><td align="right"> # </td><td NOWRAP>
> > <input type="submit" value="Sign in" wicket:id="loginButton">
> > </td></tr>
> > </table>
> > </form>
> > </wicket:extend>
> > </body>
> >
> >
> > **
> > Martin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
>
> -----
> Michael Sparer
> http://talk-on-tech.blogspot.com
> --
> View this message in context: http://www.nabble.com/Ajax-Busy-Indicator-tp15153150p15160382.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax Busy Indicator
Posted by Michael Sparer <mi...@gmx.at>.
Take a look at IndicatingAjaxButton in the extensions-project and adapt it
for your form.
If you don't mind taking the default indicator, you can use
WicketAjaxIndicatorAppender just like in the mentioned class
Martin Makundi wrote:
>
> Hi!
>
> Can anyone help? I am having difficulties showing a bysy indicator
> besides the submit button, while the form is being submitted and
> processed. I have only found pieces of varying examples and I have
> tried to put them work together, but it just does not seem want to
> show the indicator. Here is my code:
>
> public class Login extends WebPage {
> // ... default constructor contents:
> final Form loginForm = new Form(LOGIN_FORM, new Model());
> final AjaxIndicatorContainer indicatorContainer = new
> AjaxIndicatorContainer();
> indicatorContainer.setOutputMarkupId(true);
> loginForm.add(indicatorContainer);
> final SubmitLink loginButton = new SubmitLink(LOGIN_BUTTON, new
> Model()) {
> /**
> * @see org.apache.wicket.markup.html.form.SubmitLink#onSubmit()
> */
> @Override
> public void onSubmit() {
> super.onSubmit();
> Thread.sleep(5000); // Simulate form processing
> }
> };
> abstract class AjaxFormSubmitIndicator extends
> AjaxFormSubmitBehavior implements IAjaxIndicatorAware {
> /**
> * Constructor for TODO
> *
> */
> public AjaxFormSubmitIndicator() {
> super("onchange"); // I have tried "onchange" and "onclick"
> }
> }
> loginButton.add(new AjaxFormSubmitIndicator() {
> @Override
> protected void onError(AjaxRequestTarget arg0) {
> // TODO Auto-generated method stub
> }
>
> @Override
> protected void onSubmit(AjaxRequestTarget arg0) {
> loginButton.onSubmit();
> }
>
> public String getAjaxIndicatorMarkupId() {
> return indicatorContainer.getMarkupId();
> }
> });
> loginForm.add(loginButton);
>
> // ... etc..
>
> add(new FeedbackPanel("feedback"));
> add(loginForm);
> }
>
>
>
>
> public class AjaxIndicatorContainer extends WebMarkupContainer {
> /**
> *
> */
> private static final long serialVersionUID = 5573778050703849297L;
> /**
> *
> */
> public static final String INDICATOR_MARKUP_ID = "ajaxIndicator";
>
> /**
> * Constructor for TODO
> */
> public AjaxIndicatorContainer() {
> super(INDICATOR_MARKUP_ID);
> }
>
> /**
> * @see
> org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
> */
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
> }
>
>
>
>
> <body>
> <wicket:extend>
> <h1>Login</h1>
> Feedback messages will be here.
> <form wicket:id="loginForm">
> <table border="0" cellspacing="0" cellpadding="2" align="center">
> <tr><td NOWRAP width="80" align="right">
> Username:
> </td>
> <td><input type="text" wicket:id="userId"></td></tr>
> <tr><td NOWRAP align="right">
> Password: </td><td><input type="password" wicket:id="password"></td></tr>
> <tr><td align="right"> # </td><td NOWRAP>
> <input type="submit" value="Sign in" wicket:id="loginButton">
> </td></tr>
> </table>
> </form>
> </wicket:extend>
> </body>
>
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
-----
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context: http://www.nabble.com/Ajax-Busy-Indicator-tp15153150p15160382.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org