Bugs item #1496139, was opened at 2006-05-27 20:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1496139&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: sakiss (sakiss)
Assigned to: Nobody/Anonymous (nobody)
Summary: MarkupContainer.get(path) error for id starting with "_"
Initial Comment:
Method Component.get(final String path)
does not work if I create component with id starting
with "_". See appended example - Page2 will throw
wicket.MarkupException.
The cause is the following code in
wicket.MarkupContainer (line 265):
// If the container is transparent, than ask its parent.
// ParentResolver does something quite similar, but
because of <head>,
// <body>, <wicket:panel> etc. it is quite common to
have transparent
// components. Hence, this is little short cut for a
tiny performance
// optimization.
if ((child == null) && isTransparentResolver() &&
(getParent() != null))
{
// Special tags like "_body", "_panel" must
implement IComponentResolver
// if they want to be transparent.
if (path.startsWith("_") == false)
{
child = getParent().get(path);
}
}
Either user should not be able to add component with
such id or above mentioned code changed ?
saki
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1496139&group_id=119783
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop