Inconsisting Handling of id mismatch on wicket:container
--------------------------------------------------------

                 Key: WICKET-1750
                 URL: https://issues.apache.org/jira/browse/WICKET-1750
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-M2
            Reporter: Marat Radchenko


  Given this simple case:


public class Home extends WebPage {

    public Home() {
        add(new EmptyPanel("test"));
    }
}


and the following HTML page:

<span wicket:id='test2'/>

Please notice that the ids do not match.

Executing this app will give the following Exception:


WicketMessage: Unable to find component with id 'test2' in [Page class =
com.myapp.wicket.Home, id = 0, version = 0]. This means that you declared
wicket:id=test2 in your markup, but that you either did not add the
component to your page at all, or that the hierarchy does not match.


Whereas when using a wicket:container instead of a HTML tag, like this:


<wicket:container wicket:id='test2'/>


And when the ids doesn't match, Wicket throws the following exception:


WicketMessage: Failed to handle: <wicket:container wicket:id='test2'/>


Which is quite cryptic at the first glance.


Original: 
http://mail-archives.apache.org/mod_mbox/wicket-dev/200803.mbox/[EMAIL 
PROTECTED]

We ran across same problem too.

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