No problem Gus.
Igor
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Hexsel
Sent: Friday, June 24, 2005 12:26 PM
To: wicket-user
Subject: RE: [Wicket-user] Should Borders isolate the surrounding data from
the inner content?

  Worked beautifully!  And it's much simpler than Borders.  Thanks a lot.


  []s Gus


---------- Início da mensagem original -----------

      De: [EMAIL PROTECTED]
    Para: wicket-user@lists.sourceforge.net
      Cc: 
    Data: Fri, 24 Jun 2005 11:17:11 -0700
 Assunto: RE: [Wicket-user] Should Borders isolate the surrounding data from
the inner content?

> Check out the HEAD version from cvs. You can find some examples in the 
> wicket\src\test\wicket\markup dir.
> 
> Igor
>  
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo 
> Hexsel
> Sent: Friday, June 24, 2005 11:21 AM
> To: wicket-user
> Subject: RE: [Wicket-user] Should Borders isolate the surrounding data 
> from the inner content?
> 
>   Hey, that's exactly what I was looking for!  I'd like to try it.  
> Where can I find an example of what the Java code should look like?  
> Is there a daily binary snapshot?
> 
>   []s Gus
> 
> 
> ---------- Início da mensagem original -----------
> 
>       De: [EMAIL PROTECTED]
>     Para: wicket-user@lists.sourceforge.net
>       Cc: 
>     Data: Fri, 24 Jun 2005 10:52:31 -0700
>  Assunto: RE: [Wicket-user] Should Borders isolate the surrounding 
> data from the inner content?
> 
> > Good point.
> > I suppose this is the problem with borders in this situation, that’s 
> > why these guys are working hard on markup inheritance. I am using it 
> > now and it seems to works fine, but its not recommended for prod use
yet.
> > 
> > Inheritance is like inverted borders.
> > 
> > For example:
> > 
> > BasePage.html
> > 
> > <html><head>...</head><body>.......<wicket:child/>....</body></html>
> > 
> > 
> > DerivedPage.html (extends BasePage)
> > 
> > <html><head>..</head><body>.....<wicket:extend> page content 
> > </wicket:extend> ...</body>...</html>
> > 
> > In pages that extend your base page everything outside 
> > <wicket:extend> gets ignored so you keep previewability.
> > 
> > 
> > Igor
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Gustavo Hexsel
> > Sent: Friday, June 24, 2005 10:49 AM
> > To: wicket-user
> > Subject: RE: [Wicket-user] Should Borders isolate the surrounding 
> > data from the inner content?
> > 
> >   Can't use <wicket:remove> ... </wicket:remove>, as I'd have to 
> > include the whole page, even <html> where the wicket namespace is 
> > defined.  Either that or break the XML tree structure by closing 
> > tags when inner tags are still open.
> > 
> >   []s Gus
> > 
> > 
> > ---------- Início da mensagem original -----------
> > 
> >       De: [EMAIL PROTECTED]
> >     Para: wicket-user@lists.sourceforge.net
> >       Cc: 
> >     Data: Fri, 24 Jun 2005 10:28:09 -0700
> >  Assunto: RE: [Wicket-user] Should Borders isolate the surrounding 
> > data from the inner content?
> > 
> > > Here is a quick and dirty walkthrough of how the border component 
> > > works with your example:
> > > 
> > > 1) your page starts rendering:
> > > <html xmlns:wicket="http://wicket.sourceforge.net/";>
> > > <body><!-- from LoginPage.html -->
> > > 
> > > 2) wicket encounters <span wicket:id="border"> and resolves it to 
> > > your border component
> > > 
> > > 3) border renders
> > > 
> > > 3.1) border ouputs its open tag
> > > <span wicket:id="border">
> > > 
> > > 3.2) border begins rendering its body by processing its template 
> > > (notice everything before <wicket:border> and after 
> > > </wicket:border> is ignored <head>
> > >      <title wicket:id="pageTitle">Page Title</title>
> > >      <link wicket:id="urlContextAdder" rel="stylesheet"
> href="general.css"
> > >  type="text/css" />
> > >    </head>
> > >    <body><!-- from PCDBorder.html -->
> > > 
> > > 3.3) wicket encounters <wicket:body> tag and renders border's body 
> > > from the page template <form wicket:id="loginForm">  ... a couple 
> > > of fields, tables to align ...
> > >      </form>
> > >      <span wicket:id="feedback"/>
> > > 
> > > 3.4) wicket finishes rendering the border </span>  ... closing the 
> > > tags ...
> > >    </body>
> > >  </wicket:border>
> > > </html>
> > > 
> > > 3.5) border is done rendering, the close tag is rendered
> > >    </span>
> > > 
> > > 4) page continues its rendering after the border tag </body> 
> > > </html>
> > >  
> > > So if you do not want doulbe body tags do not include them in your 
> > > page template, or if you want to be able to preview stuff surround 
> > > them with <wicket:remove> ... </wicket:remove>
> > > 
> > > Hope this helps,
> > > Igor
> > > 
> > > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > > Gustavo Hexsel
> > > Sent: Friday, June 24, 2005 10:17 AM
> > > To: wicket-user
> > > Subject: RE: [Wicket-user] Should Borders isolate the surrounding 
> > > data from the inner content?
> > > 
> > >   No, I'm talking about the content around the border, for 
> > > instance I'm getting 2 <body> tags:
> > > <body><!-- from LoginPage.html -->
> > >    <span wicket:id="border"><wicket:border>
> > >    <head><!-- from the Border too -->
> > >      <title wicket:id="pageTitle">PCD Login</title>
> > >      <link href="/pcd/general.css" type="text/css" rel="stylesheet"
> > >  wicket:id="urlContextAdder"/>
> > >    </head>
> > >  <body><!-- from PCDBorder.html -->
> > > 
> > >   As far as I understand the borders, the first <body> should not 
> > > be there, right?  What I understood from borders was: the 
> > > component you add will get replaced in your page.  That's what the 
> > > <span wicket:id="border"> is there for... the content inside that 
> > > span will be replaced inside the <wicket:border > tag, right?  
> > > Maybe I just
> > misunderstood it.
> > > 
> > >   But if it is so, how can I add a common <head> to all my pages?  
> > > I disagree with the reasons in the new How-to page for not 
> > > including anything outside the <body> tag.  I think that most "web
applications"
> > > (mostly functional, database driven web apps) should have a simple 
> > > functional design, not full of JS or having different CSS files 
> > > for each page.  So having a way to mandate the CSS to be the same 
> > > is useful for me.  In case of dire need, there are ways of adding 
> > > Javascript other than putting it in the <head>.
> > > 
> > >   []s Gus
> > > 
> > > 
> > > ---------- Início da mensagem original -----------
> > > 
> > >       De: [EMAIL PROTECTED]
> > >     Para: wicket-user@lists.sourceforge.net
> > >       Cc: 
> > >     Data: Thu, 23 Jun 2005 18:33:37 -0700
> > >  Assunto: RE: [Wicket-user] Should Borders isolate the surrounding 
> > > data from the inner content?
> > > 
> > > > Are you referring to the <span wicket:id="boxBorder"> and 
> > > > <wicket:border> type tags? If so, in your application class'
> > > > constructor or init add this
> > > > line:
> > > > 
> > > > getSettings().seStripWicketTags( true );
> > > > 
> > > > It will tell wicket to strip wicket specific markup from the 
> > > > produced
> > > html.
> > > > By default this setting is off I think because it aids development. 
> > > > I think that will also strip wicket:id variables.
> > > > 
> > > > Igor
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > > > Gustavo Hexsel
> > > > Sent: Thursday, June 23, 2005 5:40 PM
> > > > To: wicket-user
> > > > Subject: [Wicket-user] Should Borders isolate the surrounding 
> > > > data from the inner content?
> > > > 
> > > >   Hmm.  I'm still having some trouble with the borders.  I'm 
> > > > trying to use borders to set the general layout, however the 
> > > > tags surrounding the inner content are also being added.  Do I 
> > > > need to create
> > panels?
> > > > If I do, do I need to create 2 classes for each page (a page and 
> > > > a
> > > > panel) that uses the border?
> > > > 
> > > > -------------------
> > > >   This is my border:
> > > > -------------------
> > > > <html xmlns:wicket="http://wicket.sourceforge.net/";>
> > > > <wicket:border>
> > > >   <head>
> > > >     <title wicket:id="pageTitle">Page Title</title>
> > > >     <link wicket:id="urlContextAdder" rel="stylesheet"
> > href="general.css"
> > > > type="text/css" />
> > > >   </head>
> > > >   <body><!-- from PCDBorder.html --> ... tables, etc ...
> > > >     <span wicket:id="boxBorder">
> > > >       <wicket:body/>
> > > >     </span>
> > > > ... closing the tags ...
> > > >   </body>
> > > > </wicket:border>
> > > > </html>
> > > > ------------------
> > > >   This is my page:
> > > > ------------------
> > > > <html xmlns:wicket="http://wicket.sourceforge.net/";>
> > > > <body><!-- from LoginPage.html -->
> > > >   <span wicket:id="border">
> > > >     <form wicket:id="loginForm"> ... a couple of fields, tables 
> > > > to align ...
> > > >     </form>
> > > >     <span wicket:id="feedback"/>
> > > >   </span>
> > > > </body>
> > > > </html>
> > > > -------------------------
> > > >   This is the result on the browser:
> > > > -------------------------
> > > > <html xmlns:wicket="http://wicket.sourceforge.net/";>
> > > > <body><!-- from LoginPage.html -->
> > > >   <span wicket:id="border"><wicket:border>
> > > >   <head>
> > > >     <title wicket:id="pageTitle">PCD Login</title>
> > > >     <link href="/pcd/general.css" type="text/css" rel="stylesheet"
> > > > wicket:id="urlContextAdder"/>
> > > >   </head>
> > > > <body><!-- from PCDBorder.html --> ... whole bunch of stuff...
> > > >     </wicket:border></span>
> > > > </body>
> > > > </wicket:border></span>
> > > > </body>
> > > > </html>
> > > > --------------------------------
> > > > 
> > > >   For the sake of brevity, I've excluded all tables, including 
> > > > the one put there by the boxborder.
> > > > 
> > > >   Thanks!
> > > > 
> > > >      []s Gus
> > > > 
> > > > 
> > > >  
> > > > ________________________________________________________________
> > > > __ __ __ ____ UOL Fone: Fale com o Brasil e o Mundo com até 90% 
> > > > de economia.
> > > > http://www.uol.com.br/fone
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -------------------------------------------------------
> > > > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > > > Strategies from IBM. Find simple to follow Roadmaps, 
> > > > straightforward articles, informative Webcasts and more! Get 
> > > > everything you need to get up to speed,
> > > fast.
> > > > http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net 
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -------------------------------------------------------
> > > > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > > > Strategies from IBM. Find simple to follow Roadmaps, 
> > > > straightforward articles, informative Webcasts and more! Get 
> > > > everything you need to get up to speed, fast.
> > > > http://ads.osdn.com/?ad_idt77&alloc_id492&op
> > > 
> > >  
> > > __________________________________________________________________
> > > __ __ ____ UOL Fone: Fale com o Brasil e o Mundo com até 90% de 
> > > economia.
> > > http://www.uol.com.br/fone
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > > Strategies from IBM. Find simple to follow Roadmaps, 
> > > straightforward articles, informative Webcasts and more! Get 
> > > everything you need to get up to speed,
> > fast.
> > > http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > > Strategies from IBM. Find simple to follow Roadmaps, 
> > > straightforward articles, informative Webcasts and more! Get 
> > > everything you need to get up to speed, fast. 
> > > http://ads.osdn.com/?ad_idt77&alloc_id492&op
> >  
> > ____________________________________________________________________
> > __ ____ UOL Fone: Fale com o Brasil e o Mundo com até 90% de 
> > economia.
> > http://www.uol.com.br/fone
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > Strategies from IBM. Find simple to follow Roadmaps, straightforward 
> > articles, informative Webcasts and more! Get everything you need to 
> > get up to speed,
> fast.
> > http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > 
> > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration 
> > Strategies from IBM. Find simple to follow Roadmaps, straightforward 
> > articles, informative Webcasts and more! Get everything you need to 
> > get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op
>  
> ______________________________________________________________________
> ____ UOL Fone: Fale com o Brasil e o Mundo com até 90% de economia.
> http://www.uol.com.br/fone
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies 
> from IBM. Find simple to follow Roadmaps, straightforward articles, 
> informative Webcasts and more! Get everything you need to get up to speed,
fast.
> http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies 
> from IBM. Find simple to follow Roadmaps, straightforward articles, 
> informative Webcasts and more! Get everything you need to get up to 
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op
 
__________________________________________________________________________
UOL Fone: Fale com o Brasil e o Mundo com até 90% de economia. 
http://www.uol.com.br/fone




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from
IBM. Find simple to follow Roadmaps, straightforward articles, informative
Webcasts and more! Get everything you need to get up to speed, fast.
http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to