You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Makundi (JIRA)" <ji...@apache.org> on 2008/08/16 08:09:44 UTC

[jira] Updated: (WICKET-1789) Border fails to render if its contents are not visible by default

     [ https://issues.apache.org/jira/browse/WICKET-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Makundi updated WICKET-1789:
-----------------------------------

    Attachment: border-bug-quickstart.zip

Quickstart application for reproducing the border bug.

Try running it and it should crash.

However, if you adjust the border contents to be visible by default (HomePage.java and ShowHideBorder constructor), it will render just fine and continue operating. This suggests to me that it is a bug as it fails only if the contents are hidden by default.

> Border fails to render if its contents are not visible by default
> -----------------------------------------------------------------
>
>                 Key: WICKET-1789
>                 URL: https://issues.apache.org/jira/browse/WICKET-1789
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-M3
>            Reporter: Martin Makundi
>         Attachments: border-bug-quickstart.zip
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> If the "contents" -element is visible=false during the first time the page is loaded, Wicket crashes
> <wicket:border>
> 	<fieldset style="padding: 0px;">
> 	<legend> 
> 	  <input type="button" wicket:id="toggle_contents_button" value="Click here to show/hide"> 
> 	  <span wicket:id="legend"></span> 
> 	</legend> 
> 	
> 	<span wicket:id="contents">
> 		<wicket:body />
> 	</span>
> 	
> 	</fieldset>
> </wicket:border>
> Unexpected RuntimeException:
> WicketMessage: Expected close tag for <span id="show_hide_bordera" wicket:id="show-hide-border">
> [markup = file:/C:/workspaces/testspace/border-bug/target/classes/org/wicket/quickstart/HomePage.html
> <html>
> <head>
> <title>Wicket Quickstart Archetype Homepage</title>
> </head>
> <body>
> <strong>Wicket Quickstart Archetype Homepage</strong>
> <br/><br/>
> <span wicket:id="message">message will be here</span>
> Show-hide -content:
> <form wicket:id="form">
> <span wicket:id="show-hide-border">Rendering the border crashes if its contents are hidden by default.</span>
> </form>
> </body>
> </html>
> , index = 12, current = [Raw markup]]
> Root cause:
> org.apache.wicket.markup.MarkupException: Expected close tag for <span id="show_hide_bordera" wicket:id="show-hide-border">
> [markup = file:/C:/workspaces/testspace/border-bug/target/classes/org/wicket/quickstart/HomePage.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.