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=lnk&kid=120709&bid=263057&dat=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=lnk&kid=120709&bid=263057&dat=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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to