You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lucio Crusca <lu...@sulweb.org> on 2014/05/11 22:50:56 UTC
adding Foundation
Hello all,
it's the 1st time I try to use Wicket with the Foundation Framework [1] (or
any other css/js framework for that matter). Being one server side and the
other client side I assumed there wasn't anything special to do in order to
make them play toghether. I was wrong.
I get:
Unexpected RuntimeException
Last cause: Tag does not have a close tag
in a HTML5 file that otherwise (without wicket) passes W3C validation.
The code:
<script>
$(document).foundation();
</script>
</body>
</html>
is being rendered by Wicket this way (btw why the hell is wicket touching that
at all?):
<script>
/*<![CDATA[*/
$(document).foundation();
/*]]>*/
</script>
</body>
</html>
with </body> and </html> marked red in the output page. While searching for
the possible cause, I found [2]: I don't know if the problem is because I did
none of those steps, which seem needed to integrate jQuery and Foundation, but
even if that were the cause, I need your help to understand how can I follow
those instructions in the Wicket case.
Thanks in advance,
Lucio.
1. http://foundation.zurb.com/
2. http://foundation.zurb.com/docs/javascript.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: adding Foundation
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
The problem is elsewhere: https://issues.apache.org/jira/browse/WICKET-3433
Use a <html> no wrapped in conditional comments and it works fine.
Martin Grigorov
Wicket Training and Consulting
On Mon, May 12, 2014 at 12:06 PM, Lucio Crusca <lu...@sulweb.org> wrote:
> In data lunedì 12 maggio 2014 10:46:28, Martin Grigorov ha scritto:
> > Please create a quickstart app demonstrating the issue.
>
> http://www.sulweb.org/download/sparsi/Quickstart.zip
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: adding Foundation
Posted by Lucio Crusca <lu...@sulweb.org>.
In data lunedì 12 maggio 2014 10:46:28, Martin Grigorov ha scritto:
> Please create a quickstart app demonstrating the issue.
http://www.sulweb.org/download/sparsi/Quickstart.zip
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: adding Foundation
Posted by Martin Grigorov <mg...@apache.org>.
Please create a quickstart app demonstrating the issue.
Martin Grigorov
Wicket Training and Consulting
On Mon, May 12, 2014 at 9:38 AM, Lucio Crusca <lu...@sulweb.org> wrote:
> >> There are no opening tags for body and html. I don't see how it is W3C
> >> valid!
> >
> > I posted only the last lines of a 690 lines W3C valid html file.
>
> Anyway, if you need the whole file here it is:
> http://hastebin.com/ubuwodevet.xml
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: adding Foundation
Posted by Lucio Crusca <lu...@sulweb.org>.
>> There are no opening tags for body and html. I don't see how it is W3C
>> valid!
>
> I posted only the last lines of a 690 lines W3C valid html file.
Anyway, if you need the whole file here it is:
http://hastebin.com/ubuwodevet.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: adding Foundation
Posted by Lucio Crusca <lu...@sulweb.org>.
In data lunedì 12 maggio 2014 00:00:37, Martin Grigorov ha scritto:
> Hi,
>
> On Sun, May 11, 2014 at 11:50 PM, Lucio Crusca <lu...@sulweb.org> wrote:
> > Hello all,
> >
> > it's the 1st time I try to use Wicket with the Foundation Framework [1]
> > (or
> > any other css/js framework for that matter). Being one server side and the
> > other client side I assumed there wasn't anything special to do in order
> > to
> > make them play toghether. I was wrong.
> >
> > I get:
> >
> > Unexpected RuntimeException
> > Last cause: Tag does not have a close tag
>
> This is an error at the server, right ?
> Which tag is not closed ?
It does not tell me. It just tells that few words I already posted.
>
> > in a HTML5 file that otherwise (without wicket) passes W3C validation.
> >
> > The code:
> > <script>
> >
> > $(document).foundation();
> >
> > </script>
> >
> > </body>
> >
> > </html>
>
> There are no opening tags for body and html. I don't see how it is W3C
> valid!
I posted only the last lines of a 690 lines W3C valid html file. I chose to
post those lines because Wicket seems to fiddle with those and it marks the
last two closing tags red.
> > with </body> and </html> marked red in the output page. While searching
> > for
>
> Marked red where ?! The browsers won't render them at all, colored or not!
> Again there are no opening tags for body and html, so it is normal to see
> them red if you paste this snippet in any HTML editor.
In the output page I get an exception report, not the real page. Just below
the exception (the two lines that do not tell which tag is open), before the
stack trace, wicket reports the full html source code and </body> and </html>
are red.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: adding Foundation
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
On Sun, May 11, 2014 at 11:50 PM, Lucio Crusca <lu...@sulweb.org> wrote:
> Hello all,
>
> it's the 1st time I try to use Wicket with the Foundation Framework [1] (or
> any other css/js framework for that matter). Being one server side and the
> other client side I assumed there wasn't anything special to do in order to
> make them play toghether. I was wrong.
>
> I get:
>
> Unexpected RuntimeException
> Last cause: Tag does not have a close tag
>
This is an error at the server, right ?
Which tag is not closed ?
>
> in a HTML5 file that otherwise (without wicket) passes W3C validation.
>
> The code:
>
> <script>
> $(document).foundation();
> </script>
> </body>
> </html>
>
There are no opening tags for body and html. I don't see how it is W3C
valid!
>
> is being rendered by Wicket this way (btw why the hell is wicket touching
> that
> at all?):
>
Security related reasons.
>
> <script>
> /*<![CDATA[*/
>
> $(document).foundation();
>
> /*]]>*/
> </script>
> </body>
> </html>
>
> with </body> and </html> marked red in the output page. While searching for
>
Marked red where ?! The browsers won't render them at all, colored or not!
Again there are no opening tags for body and html, so it is normal to see
them red if you paste this snippet in any HTML editor.
> the possible cause, I found [2]: I don't know if the problem is because I
> did
> none of those steps, which seem needed to integrate jQuery and Foundation,
> but
> even if that were the cause, I need your help to understand how can I
> follow
> those instructions in the Wicket case.
> Thanks in advance,
> Lucio.
>
> 1. http://foundation.zurb.com/
> 2. http://foundation.zurb.com/docs/javascript.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>