From: Joern T. <joe...@be...> - 2012-03-01 21:37:56
|
Hi Daniel, so sorry that you got no response yet - we're just too busy finishing a project and your question is not one of the quick to answer ones. Repeats are always the biggest challenge - one area to look for is the repeat prototype which is kind of tricky to handle. You should find it right in front of a repeat in the DOM (when inspecting with Firebug). The problem here is that the repeat prototype must not be intialized as this would cause problems with Dijit when that is created later. I'm not sure if that has to do with your problem but is probably an area you should look for. As i said i currently have no time to dive deeper into it so i hope this guess might help you somehow. Btw, we are reworking the whole area of component creation and extension - this will make it much easier to create your own components. However it will need some time to get finished. Am 01.03.12 16:52, schrieb Daniel Ebner: > The problem is I can't find where to do that... > > I guess the information has to be avilable when the Control is created > in the srcNodeRef because the other attributes like mediatype and > appearance are allready set here > > The custom control is not directly in the xf:repeat. The template is like: > > <xf:repeat nodeset="nodes"> > <xf:group> > <xf:trigger ref="."/> > <xf:textarea apperance="custom" ref="."> > </xf:group> > <xf:repeat> > > I don't understand why but it seems that the trigger-control is created > in the Repeat.handleInsert and the textarea-control is created in > FluxProzessor._handleBetterFormStateChanged: > new betterform.ui.Control({contextInfo:xmlEvent.contextInfo}, > dojo.byId(xfControlId)); > > but where does the widget from dojo.byId(xfControlId) come from? > > Daniel > > > > > > On 01.03.2012 09:06, Ronald van Kuijk wrote: >> With repeats do called prototype nodes are created in html that sever as a placeholder for neemt created nodes >> >> In addition there is javascript code that copies these nodes and attributes to the newly created ones. If you have custom attributes, these might not get copies. I don't have the exact js file at hand but i think it is triest.ja. take a look there >> >> Cheers, >> >> Ronald > > |