myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chamber (JIRA)" <>
Subject [jira] [Issue Comment Edited] (TRINIDAD-2113) Dialog duplicate id
Date Tue, 12 Jul 2011 15:10:59 GMT


Chamber edited comment on TRINIDAD-2113 at 7/12/11 3:10 PM:

Tentative solution, add action: 
 <tr:commandLink id="link_delete" text="delete" partialSubmit="true" actionListener="#{backing.actionDelete}"
action="actualPage" /> 

This solution will refresh the entire page, not only the table appointed.

I reckon the problem could be in the function in the baking bean of the dialog that returns
null, because it happens when an action function returns null or doesn't return anything (void):

public class dialogBackinBean {
	public String return() {
		Long id = (String) RequestContext.getCurrentInstance().getPageFlowScope().get("id");
		RequestContext.getCurrentInstance().returnFromDialog(id, null);

		return null;

      was (Author: machamber):
    Tentative solution: 
 <tr:commandLink id="link_delete" text="delete" partialSubmit="true" actionListener="#{backing.actionDelete}"
action="actualPage" /> 
> Dialog duplicate id
> -------------------
>                 Key: TRINIDAD-2113
>                 URL:
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 2.0.0
>         Environment: tomcat 6, Spring 3.0.5, JPA 2.0
>            Reporter: Chamber
> When the edit link is pressed or the delete link, everything works out. I can press as
many times as I want the edit link and there is no problem, but when I press the delete link
and then edit link or delete link again, I have the following error 
> java.lang.IllegalStateException: component with duplicate id "j_id236570804_32fb8dd4"
> where the id is different each time.
> the code:
> <tr:table id="table" value="#{backing.listResults}" var="result" partialTriggers=":link_delete">
>   ...
>   <tr:commandLink text="edit" action="dialog:popup" useWindow="true" launchListener="#{backing.addContentPopup}"
>   <tr:commandLink id="link_delete" text="delete" partialSubmit="true" actionListener="#{backing.actionDelete}"
> </tr>
> There is no iteration between JSP and JSF. Code in web.xml and faces-config.xml posted
upon request.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message