[Wicket-user] Encountered issues during quickStack

2007-05-03 Thread Sebastian Hennebrueder
Hello,

I am evaluating Wicket and encountered some issues during development. I
found solutions by myself but post here my notes so that the docs may be
updated or the bug may be fixed.

In the helloWorld example you might consider to explain more precisely
that the webpage and the class are places in the same folder and must
have the same name. The first one is not at all common to a newbee.


Fix for AExampleAjaxCounter example. The modelChanged call was missing
and let to old page exception. here is a code snipped fixing the code.


 private Label label;
public Page1()
{
add(new Label(label1, This is in the subclass Page1));
 Model model = new Model() {
private int counter = 0;

public Object getObject(Component arg0) {
return new Integer(counter++);
}
};
add(new Link(link){

public void onClick() {
label.modelChanged();

}
});
label =new Label(counter, model);
  add(label);
}

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Encountered issues during quickStack

2007-05-03 Thread Sebastian Hennebrueder
Hello,

I apologize for the first issue. But marking this in bold might help
even blind people like me.
;-)

Sebastian Hennebrueder schrieb:
 Hello,

 I am evaluating Wicket and encountered some issues during development. I
 found solutions by myself but post here my notes so that the docs may be
 updated or the bug may be fixed.

 In the helloWorld example you might consider to explain more precisely
 that the webpage and the class are places in the same folder and must
 have the same name. The first one is not at all common to a newbee.


 Fix for AExampleAjaxCounter example. The modelChanged call was missing
 and let to old page exception. here is a code snipped fixing the code.


  private Label label;
 public Page1()
 {
 add(new Label(label1, This is in the subclass Page1));
  Model model = new Model() {
 private int counter = 0;

 public Object getObject(Component arg0) {
 return new Integer(counter++);
 }
 };
 add(new Link(link){

 public void onClick() {
 label.modelChanged();

 }
 });
 label =new Label(counter, model);
   add(label);
 }

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user