Re: [Wicket-user] Auto extend webpage for plain html file ?

2006-09-07 Thread Ingram Chen
Thanks all ideas, I will try these to see which is  better :-) On 9/7/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:there are examples in extensions already that load markup from a different place - all you have to do is pass a parameter to the page - maybe a file name - and that page can use the markup from that file to render itself.

or another way is to use a regular page that adds a label whose model points to the html - loaded from some file? - with setescapemodelstrings(false) - better make the model detachable so the contents of the file is not kept in session.
-IgorOn 9/6/06, Juergen Donnerstag <
[EMAIL PROTECTED]> wrote:
Actually I like this Page/Panel/Border class <-> markup enforcementbecause it means there is no magic, it is a very simple rule, it isvery easy to understand. But this of course is my own opinion. If you

come up with an implemention which can be added to wicket-extension,than it is fine by me. What that means however is that is must notrequire any changes to core (such as additional settings etc.) but bebased on existing core hooks. I don't mind adding additional hooks if
required though.JuergenOn 9/7/06, Ingram Chen <[EMAIL PROTECTED]> wrote:> Hi all,
>> Wicket provide very good page inheritance, and it's perfect for page
> layout.> However, as far as I know, to apply layout to static, logicless page, we> still need> to create a blank page class:>> public class MyStaticPage extends MyBaseLayoutPage {
> //does nothing> }>> >   >   MyStaticPage content...>   >  >> Is it possible we can skip such blank class ? how about configure specific
> directory and> automatically apply Parent page ?>> in WebAppliction:> autoExtend( somePackage, MyBaseLayoutPage.class );>> or just write parent class in template:

>> >>MyStaticPage content...>>  >>

>> --> Ingram Chen> Java [EMAIL PROTECTED]> Institue of BioMedical Sciences Academia Sinica Taiwan> blog: 
http://www.javaworld.com.tw/roller/page/ingramchen
> -> 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 easierDownload 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.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=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
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


Re: [Wicket-user] Auto extend webpage for plain html file ?

2006-09-06 Thread Igor Vaynberg
there are examples in extensions already that load markup from a different place - all you have to do is pass a parameter to the page - maybe a file name - and that page can use the markup from that file to render itself.
or another way is to use a regular page that adds a label whose model points to the html - loaded from some file? - with setescapemodelstrings(false) - better make the model detachable so the contents of the file is not kept in session.
-IgorOn 9/6/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
Actually I like this Page/Panel/Border class <-> markup enforcementbecause it means there is no magic, it is a very simple rule, it isvery easy to understand. But this of course is my own opinion. If you
come up with an implemention which can be added to wicket-extension,than it is fine by me. What that means however is that is must notrequire any changes to core (such as additional settings etc.) but bebased on existing core hooks. I don't mind adding additional hooks if
required though.JuergenOn 9/7/06, Ingram Chen <[EMAIL PROTECTED]> wrote:> Hi all,>> Wicket provide very good page inheritance, and it's perfect for page
> layout.> However, as far as I know, to apply layout to static, logicless page, we> still need> to create a blank page class:>> public class MyStaticPage extends MyBaseLayoutPage {
> //does nothing> }>> >   >   MyStaticPage content...>   >  >> Is it possible we can skip such blank class ? how about configure specific
> directory and> automatically apply Parent page ?>> in WebAppliction:> autoExtend( somePackage, MyBaseLayoutPage.class );>> or just write parent class in template:
>> >>MyStaticPage content...>>  >>
>> --> Ingram Chen> Java [EMAIL PROTECTED]> Institue of BioMedical Sciences Academia Sinica Taiwan> blog: http://www.javaworld.com.tw/roller/page/ingramchen
> -> 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 easierDownload 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.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=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Auto extend webpage for plain html file ?

2006-09-06 Thread Juergen Donnerstag
Actually I like this Page/Panel/Border class <-> markup enforcement
because it means there is no magic, it is a very simple rule, it is
very easy to understand. But this of course is my own opinion. If you
come up with an implemention which can be added to wicket-extension,
than it is fine by me. What that means however is that is must not
require any changes to core (such as additional settings etc.) but be
based on existing core hooks. I don't mind adding additional hooks if
required though.

Juergen

On 9/7/06, Ingram Chen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Wicket provide very good page inheritance, and it's perfect for page
> layout.
> However, as far as I know, to apply layout to static, logicless page, we
> still need
> to create a blank page class:
>
> public class MyStaticPage extends MyBaseLayoutPage {
> //does nothing
> }
>
> 
>   
>   MyStaticPage content...
>   
>  
>
> Is it possible we can skip such blank class ? how about configure specific
> directory and
> automatically apply Parent page ?
>
> in WebAppliction:
> autoExtend( somePackage, MyBaseLayoutPage.class );
>
> or just write parent class in template:
>
> 
>
>MyStaticPage content...
>
>  
>
>
>
> --
> Ingram Chen
> Java [EMAIL PROTECTED]
> Institue of BioMedical Sciences Academia Sinica Taiwan
> blog: http://www.javaworld.com.tw/roller/page/ingramchen
> -
> 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


[Wicket-user] Auto extend webpage for plain html file ?

2006-09-06 Thread Ingram Chen
Hi all,    Wicket provide very good page inheritance, and it's perfect for page layout.However, as far as I know, to apply layout to static, logicless page, we still need to create a blank page class:  
public class MyStaticPage extends MyBaseLayoutPage {    //does nothing}    MyStaticPage content...  
Is it possible we can skip such blank class ? how about configure specific directory and automatically apply Parent page ?in WebAppliction:    autoExtend( somePackage, MyBaseLayoutPage.class
);or just write parent class in template:
  
  MyStaticPage content...
  


-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen

-
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