-Igor
On 9/22/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:
well, i looked into it and here is what you have to do. i dont have the time this weeend (jewish new year) so maybe someone who does can implement the full func.
1) you have to let wicket resolvers handle markup that has wicket:message attr and no wicket:id, for this you need to make wicket think this tag is not raw markup - so an id needs to be set
WicketTagIdentifier:126
// Identify wicket:message attr tags
if (xmlTag.getAttributes().containsKey("wicket:message")&&tag.getId()==null)
{
// replace random with some counter - but you get the idea...
tag.setId("wicket-message" + Math.random());
}
now we need to autoadd a webmarkupcontainer for any of these tags
WicketMessageResolver:74
if (tag.getAttributes ().containsKey("wicket:message")&&tag.getId().startsWith("wicket-message"))
{
final String id = "_message_" + container.getPage().getAutoIndex();
container.autoAdd(new WebMarkupContainer(id)
{
public boolean isTransparentResolver()
{
return true;
}
});
return true;
}
and thats the meat of it, now you need that IComponentTagHandler { oncomponenttag() } deal, a way to register it in settings and something like
Component:1666 <=== wow
Iterator handlers = getApplicationSettings().getComponentTagHandlers().iterator();
while (handlers.hasNext())
{
((IComponentTagHandler)handlers.next()).onComponentTag(this, tag);
}
and oh yeah...the taghandler that does the actual resource lookup
-Igor
On 9/22/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:On 9/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> but you DO want it to sync with your component tree because you want the
> localization lookup to be synced to the component tree.
Yep. I want it to work the same as <wicket:message>.
Eelco
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop