>> I've
got two problems with this:
>>
- first it is not standard HTML. the span element is not allowed in
the head.
>> -
second it generates AWFULL HTML -> not standards
compliant.
It is not very
difficult to remove <span ..> and </span> and just print the body
which leads to standard HTML
>> It
does not address the problem of two components of the same type requiring
_javascript_ put ONCE in the header, and not
twice.
That of course is
true. Do you already have an idea on how to solve it?
regards
Juergen
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Martijn Dashorst
Gesendet: Freitag, 26. November 2004 17:13
An: [EMAIL PROTECTED]
Betreff: RE: [Wicket-develop] Question on components that require html rendering on two disjunct places
I've got two problems with this:
- first it is not standard HTML. the span element is
not allowed in the head.
- second it generates AWFULL HTML -> not standards
compliant.
It does not address the problem of two components of the
same type requiring _javascript_ put ONCE in the header, and not
twice.
Martijn
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Donnerstag, Juergen
Verzonden: vrijdag 26 november 2004 14:44
Aan: '[EMAIL PROTECTED]'
Onderwerp: AW: [Wicket-develop] Question on components that require html rendering on two disjunct places
Martijn,
Wicket tags can actually be every where and span
everything. This is how I did it. Though I'm not sure a standard
HTML-editor is able to display it. It is part of a border-derived base class
like in the Library example.
<html>
<span id = "wcn-[border]">
<head>
<span id = "wcn-[border]">
<head>
...
</head>
<body>
</head>
<body>
....
</body>
</span>
</html>
</body>
</span>
</html>
regards
Juergen
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Martijn Dashorst
Gesendet: Freitag, 26. November 2004 14:19
An: [EMAIL PROTECTED]
Betreff: [Wicket-develop] Question on components that require html rendering on two disjunct places
Hi,
In order to be able
to support the HTMLArea component, and in order to have a default template for
pages I have the following question:
I want to be able to
both render in the <head> and in the <body> tags. How can I make
this happen?
An example: each
page should include the same stylesheet. in order not to have to edit all pages
when the stylesheet changes name, or
another stylesheet
is needed, I want to include it in a base class/component which renders my menu
(like the CD-app's simple border).
So for
instance:
<html>
<head>
<!-- start content from component foo
-->
<script> <!-- ..... -->
</script>
<!-- end content from component foo
-->
</head> <body>
<span id="wcn-[foo]">
<!-- ..... -->
<span id="wcn-[body]"/>
</span>
</body>
</html>
