[Wicket-user] constructors and on attach 2

2006-09-16 Thread Scott Lusebrink
here is a sample of what i was doing, ( i don't have my code infront of me but i'll try to be close)
new BookmarkableLink(new MyPage())

class MyPage
public MyPage()
{
List options =DbUtil.getData()
List selected = new ArrayList()
add(new Palette(palette,new Model(selected),new Mode(options)...)
}

so if I have new bookmarkable link in a table wicket will go to the database and get data for every row of the table, instead of only getting the one set of data when you click the link.

Hope this clearifize my problem
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] constructors and on attach 2

2006-09-16 Thread Martijn Dashorst
Use new BookmarkableLink(MyPage.class);


On 9/16/06, Scott Lusebrink [EMAIL PROTECTED] wrote:

 here is a sample of what i was doing, ( i don't have my code infront of me
 but i'll try to be close)
 new BookmarkableLink(new MyPage())

 class MyPage
 public MyPage()
 {
 List options =DbUtil.getData()
 List selected = new ArrayList()
 add(new Palette(palette,new Model(selected),new Mode(options)...)
 }

 so if I have new bookmarkable link in a table wicket will go to the database
 and get data for every row of the table, instead of only getting the one set
 of data when you click the link.

 Hope this clearifize my problem
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] constructors and on attach 2

2006-09-16 Thread Igor Vaynberg
On 9/16/06, Scott Lusebrink [EMAIL PROTECTED] wrote:
here is a sample of what i was doing, ( i don't have my code infront of me but i'll try to be close)
new BookmarkableLink(new MyPage())new BookmarkableLink(MyPage.class);
class MyPage
public MyPage()
{IModel choiceModel=new LoadableDetachableModel() { Object load() { return 
List options =DbUtil.getData()
}};
List selected = new ArrayList()
add(new Palette(palette,new Model(selected),choiceModel...)
}now you dont create the page needlessly, and even if you do the data wont be loaded from db until the palette needs it.-Igor
so if I have new bookmarkable link in a table wicket will go to the database and get data for every row of the table, instead of only getting the one set of data when you click the link.

Hope this clearifize my problem

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user