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().setStripWicketTags( 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=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to