This content has been marked as final.
Show 4 replies
-
1. Re: Urgent Help: DnD returns no client ID or client ID hasn'
shenyizhe Oct 3, 2009 1:51 AM (in response to shenyizhe)BTW, the error I get is:
drag:Element with [form:j_id_id55] ID was not found in the DOM tree. Probably element has no client ID or client ID hasn't been written. DnD's disabled. Check please!"shenyizhe" wrote:
Hi guys, I tried to get DnD in 3.1.1 GA to work but it is still throwing me the error whenever I load the page.
I have this in my JSF
<h:panelGrid cellpadding="0" cellspacing="5" width="700" border="0" binding="#{ITeventBean.gridElems}"></h:panelGrid>
This is in my beans:public HtmlPanelGrid getGridElems() { HtmlPanelGrid grid=new HtmlPanelGrid(); System.out.println("OutputText Created"); HtmlOutputText ot = new HtmlOutputText(); ot.setValue("test"); grid.getChildren().add(ot); System.out.println("DragZone Created"); HtmlDragSupport myDragZone = new HtmlDragSupport(); myDragZone.setValue("test123;"); grid.getChildren().add(myDragZone); return grid; }
-
2. Re: Urgent Help: DnD returns no client ID or client ID hasn'
nbelaevski Oct 3, 2009 11:03 AM (in response to shenyizhe)drag/drop support can be attached only to components that output their client ids. Standard JSF components output client ids only if "id" attribute was set explicitly, so you'll have to set it explicitly to get this working.
-
3. Re: Urgent Help: DnD returns no client ID or client ID hasn'
shenyizhe Oct 4, 2009 5:21 AM (in response to shenyizhe)"nbelaevski" wrote:
drag/drop support can be attached only to components that output their client ids. Standard JSF components output client ids only if "id" attribute was set explicitly, so you'll have to set it explicitly to get this working.
Thanks for the reply. I have no problem using drag/drop if I code the stuff all in the JSF. However, when I try to programmatically create it, it will throw the error.
I research online and it seems to be a bug identified however, they mention that it is fixed in 3.1.1 but I still gets the same problem. If you check
https://jira.jboss.org/jira/browse/RF-6910
Anyone has a solution to this? I really need help in this. -
4. Re: Urgent Help: DnD returns no client ID or client ID hasn'
nbelaevski Oct 4, 2009 8:44 AM (in response to shenyizhe)Check your code: you are creating standard component and not setting explicit "id".