Martijn Dashorst wrote:
Which tags are you referring to, and why are they a problem?

We have tried to minimize our specific tags, and they are nicely escaped so your browser should not complain about it.

Some exist to make a clear distinction to which are components that are added to your panel, and the panel itself, or to set boundaries to what needs to be in the final markup, and what shouldn't. Without these specifc tags, Wicket wouldn't be able to distinguish them.

For instance:
MyPanel.html

<html>
<head>
<script type="text/javascript">function foo() {
    alert('Foo');
}
function bar() {
    alert('Bar');
}
</script>
<script type="text/javascript">function specificPreviewabilityScript() {
    // do something with preview
}
</head>
<body>
<table>
<tr><td>Some header</td></tr>
<tr><td>
<span wicket:id="wicket:panel">
<span wicket:id="foo">
<a href="#" wicket:id="link" onclick="foo();">click me</a>
</span>
<span wicket:id="bar">
<a href="#" wicket:id="barlink" onclick="bar();">click me</a>
</span>
</span>
</td></tr>
</table>
</body>
</html>

Is the span the outer boundary of our component? What is the boundary of our panel?

another <span> should be used. you can have "automatic components" that are 
created/attached on-the-fly, when some id is encountered (wicket:panel in this case). i'm not 
sure about the details of the parser's implementation, but it seems to me that the code:
        if (the current tag a wicket:panel tag) ...
and
        if (the current tag's wicket:id is wicket:panel) ...

are very similar. but in the html page, you still maintain a clean html.


<html>
<head>
<wicket:head>
<script type="text/javascript">function foo() {
    alert('Foo');
}
function bar() {
    alert('Bar');
}
</script>
</wicket:head>
<script type="text/javascript">function specificPreviewabilityScript() {
    // do something with preview
}
</head>
<body>
<table>
<tr><td>Some header</td></tr>
<tr><td>
<wicket:panel>
<span wicket:id="foo">
<a href="#" wicket:id="link" onclick="foo();">click me</a>
</span>
<span wicket:id="bar">
<a href="#" wicket:id="barlink" onclick="bar();">click me</a>
</span>
</wicket:panel>
</td></tr>
</table>
</body>
</html>

The wicket tags clearly mark what gets into the final markup of the component and what not (italics formatted text if you look at this message using a html reader). Everything else is not included into the final markup of the rendered page.

The same goes for all other tags.

Martijn

On 5/8/06, *Ittay Dror* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    why are all these <wicket:xxx> tags? why not <span
    wicket:id="wicket:xxx"> or similar?

    thanks,
    ittay

    --
    ===================================
    Ittay Dror
    Chief architect, openQRM TL,
    R&D, Qlusters Inc.
    [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    +972-3-6081994 Fax: +972-3-6081841

    http://www.openQRM.org
    - Keeps your Data-Center Up and Running


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




--
Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


--
===================================
Ittay Dror Chief architect, openQRM TL, R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


-------------------------------------------------------
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