[Wicket-user] Local inner class
I would like to do something like this: Border border = new Border( border ) { { BoxBorder nb = new BoxBorder( navigationBorder ); nb.add( new PageLink( newClient,Insert.class )); nb.add( new PageLink( home,Home.class )); nb.add( new PageLink( signout,Signout.class )); add( nb ); add( new BoxBorder( bodyBorder )); add( new BoxBorder( attributeBorder )); } }; ... border.add(...); The resulting class file for this local inner class is Name$1.class. How do I structure the html for this? Thanks -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - 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] Local inner class
Name$1.html Juergen On 8/16/06, Michael Welter [EMAIL PROTECTED] wrote: I would like to do something like this: Border border = new Border( border ) { { BoxBorder nb = new BoxBorder( navigationBorder ); nb.add( new PageLink( newClient,Insert.class )); nb.add( new PageLink( home,Home.class )); nb.add( new PageLink( signout,Signout.class )); add( nb ); add( new BoxBorder( bodyBorder )); add( new BoxBorder( attributeBorder )); } }; ... border.add(...); The resulting class file for this local inner class is Name$1.class. How do I structure the html for this? Thanks -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - 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 - 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] Local inner class
Which is why I like to use named inner classes instead of anonymous ones if I'm going to tie html to them. The whole foo$1.html, foo$2.html just feels a bit too fragile to me. On 8/16/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Name$1.html Juergen On 8/16/06, Michael Welter [EMAIL PROTECTED] wrote: I would like to do something like this: Border border = new Border( border ) { { BoxBorder nb = new BoxBorder( navigationBorder ); nb.add( new PageLink( newClient,Insert.class )); nb.add( new PageLink( home,Home.class )); nb.add( new PageLink( signout,Signout.class )); add( nb ); add( new BoxBorder( bodyBorder )); add( new BoxBorder( attributeBorder )); } }; ... border.add(...); The resulting class file for this local inner class is Name$1.class. How do I structure the html for this? Thanks -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - 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 - 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 -- Scott Swank reformed mathematician - 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] Local inner class
Yes, it is fragile. But it's quite unusual to make components that need own markup as anonymous classes. Usually anonymous classes are used only if you need to override methods like onClick or isVisible. -Matej Scott Swank wrote: Which is why I like to use named inner classes instead of anonymous ones if I'm going to tie html to them. The whole foo$1.html, foo$2.html just feels a bit too fragile to me. On 8/16/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Name$1.html Juergen On 8/16/06, Michael Welter [EMAIL PROTECTED] wrote: I would like to do something like this: Border border = new Border( border ) { { BoxBorder nb = new BoxBorder( navigationBorder ); nb.add( new PageLink( newClient,Insert.class )); nb.add( new PageLink( home,Home.class )); nb.add( new PageLink( signout,Signout.class )); add( nb ); add( new BoxBorder( bodyBorder )); add( new BoxBorder( attributeBorder )); } }; ... border.add(...); The resulting class file for this local inner class is Name$1.class. How do I structure the html for this? Thanks -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - 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 - 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 - 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] Local inner class
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 May Gosling have mercy on you if you change your class such that those anonymous inner classes are ordered differently. Debugging that should loads of fun. For some value of fun. Matej Knopp wrote: Yes, it is fragile. But it's quite unusual to make components that need own markup as anonymous classes. Usually anonymous classes are used only if you need to override methods like onClick or isVisible. -Matej Scott Swank wrote: Which is why I like to use named inner classes instead of anonymous ones if I'm going to tie html to them. The whole foo$1.html, foo$2.html just feels a bit too fragile to me. On 8/16/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Name$1.html Juergen On 8/16/06, Michael Welter [EMAIL PROTECTED] wrote: I would like to do something like this: Border border = new Border( border ) { { BoxBorder nb = new BoxBorder( navigationBorder ); nb.add( new PageLink( newClient,Insert.class )); nb.add( new PageLink( home,Home.class )); nb.add( new PageLink( signout,Signout.class )); add( nb ); add( new BoxBorder( bodyBorder )); add( new BoxBorder( attributeBorder )); } }; ... border.add(...); The resulting class file for this local inner class is Name$1.class. How do I structure the html for this? Thanks -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - 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 - 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 - 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 - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Skype : evanchooly -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFE44Q+JnQfEGuJ90MRAyJrAJ4w1MZwTE2noM6o4tpUq/0cIorLYgCgzyIN +1Xr6cTH7V1GWd99tFbTFHs= =t3bg -END PGP SIGNATURE- - 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