Because currently you have to render it once because before that the component has no idea of its markup and because of that no idea of its id.
On 11/5/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
so something like
public interface IMarkupIdentifiable { String getMarkupId(); }
the component with this interface would always render a html id variable and the same value would be returned from getMarkupId() ? and this value will probably be the component path?
if we want to support this i can put it in.
-Igor
On 11/4/05, SourceForge.net <[EMAIL PROTECTED] > wrote:Bugs item #1348770, was opened at 2005-11-05 02:55
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=1348770&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: Ralf Ebert (dreivier)
Assigned to: Nobody/Anonymous (nobody)
Summary: id attribute for wicket components
Initial Comment:
When adding _javascript_ behaviour to default Wicket components (for
example by ajax handlers or by deriving components) it's essential
that you can access the components markup on the client side using
"document.getElementById()" _javascript_. Although this can be added
to components by using AttributeModifiers (or deriving) I wish for a
more easy approach.
My idea would be an interface like IMarkupIdentifiable which allows
to get the id for a component. Components implementing this
interface have to add the document id to their tag markup.
This would not only make attaching _javascript_ behaviour easier, it
would unify id generation and accessing component markup on the
client side.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1348770&group_id=119783
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
