문제

I'm using jsf p:commandLink from jQuery modal dialog. It calls an actionListener but can't update components. If I work the same button integrated within the page, it works fine. Is there any idea what should I check and how to find a problem?

<p:commandLink id="connectComp" value="connect" styleClass="iconConnect"
               actionListener="#{comprecommend.connectCompetence}"
               update="compRecommendGrowl :changableActivitiesRegion :RecommendedCompetencesPanel"
               oncomplete="$('#accessCompetenceHereBallon .ballonMessage').trigger('pulsate');">
    <f:param name="compUri" value="#{compIterator.uri}" />
</p:commandLink>
도움이 되었습니까?

해결책

I solved the problem after I removed the h:body elements that were in included components. I realized that the structure of the generated html page contained multiple body tags which probably caused that modal dialog was attached to the random body tag.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top