[ 
https://issues.apache.org/jira/browse/WICKET-3250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970151#action_12970151
 ] 

Szádeczky-Kardoss Szabolcs commented on WICKET-3250:
----------------------------------------------------

I don't have the capacity to check with the snapshot release, but the 3150 
issue might well be related. I will definitely check with 1.5-M4 when it comes 
out and tell you the outcome. If you think so, you can close the issue until 
then or put it on hold. Thanks.

> "MarkupException: The component [...] was rendered already" when using 
> wicket:message="title:..." markup attribute
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3250
>                 URL: https://issues.apache.org/jira/browse/WICKET-3250
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Szádeczky-Kardoss Szabolcs
>
> I have a Panel for that there's a markup like this:
> <span wicket:message="title:favoriteCount.tip"/>
> without any actual associated Java code or child elements (for this part). I 
> am reusing the Panel on several Pages. As long as I only visit one of these 
> Pages, it works and shows fine, even if I go to another Pages (without this 
> Panel) and then back or even if I refresh the Page.
> However if I visit the second page with this Panel (that's still fine) and 
> then go back to the first one (I mean via explicitly clicking on a link to 
> the first page and not via browser's back button), then a MarkupException 
> occurs:
> "org.apache.wicket.markup.MarkupException: The component 
> [TransparentWebMarkupContainer [Component id = _message_attr_11]] was 
> rendered already. You can render it only once during a render phase. Class 
> relative path: 
> org.apache.wicket.markup.html.TransparentWebMarkupContainer:searchResultsPanel:_message_attr_11
>      at org.apache.wicket.Page.componentRendered(Page.java:361)
>      at org.apache.wicket.Component.rendered(Component.java:2762)
>      at org.apache.wicket.Component.render_(Component.java:2566)
>      at org.apache.wicket.Component.render(Component.java:2489)
>      at 
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1466)
>      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1589)
>      at 
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1564)
>      at 
> org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:746)
>      at 
> org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:121)
>      at org.apache.wicket.Component.renderComponent(Component.java:2700)
>      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1527)
>      at org.apache.wicket.Component.render_(Component.java:2562)..."
> The error doesn't go away with browser refresh and keeps returning (for the 
> first page) if I switch between the two pages. If I go back to the first 
> scenario (click between a page with this panel on it and between another 
> without it) then it is fine even after multiple visits, but the error returns 
> again when I start the second scenario.
> I think this issue might be related to Wicket-3122, at least it's at the same 
> place in my code.

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

Reply via email to