> no no in the constructor. That will never work i think.
> Except maybe if we go the SWT and other GUI toolkit ways by forcing the
> parent in the constructor.

That's one of the ideas that Igor is playing with. It might be a good
idea to force this actually, as our contract would be a lot tighter.

Are we then supporting moving a child to another parent? Because this is not really supported in swt
there is no add and remove methods.
(there is a setParent but that can fail if the underlying platform doesn't support it)


> One example we have now is the SubmitLink and the form cssid that is needed.
> Currently if you have a submitlink above a form tag. Then the submit link
> will ask for the _javascript_/cssid of the form component
> But the form component doesn't know that until it is rendered itself so i
> generate one that will overwrite if there is one of that form.
>

Another when you want component cooperate with each other e.g. with
generated _javascript_ and the HTML id attributes that were set on them
in the markup. For instance see issue
http://sourceforge.net/tracker/index.php?func=detail&aid=1326849&group_id=119783&atid=684975


Does the datepicker wants a Form cssid? That is currently already possible.
And a datepicker is most of the time inside the form it wants so the form already knows the id.

johan

Reply via email to