일부 필드를 삽입하는 대화 상자가 있는데, 그 중 하나는 비활성화 된 것처럼 보이게 표시되는 p : 편집기입니다. 이상한 "참"문자열이 편집기 본문에 표시됩니다. 코드 :대화 상자의 초벌면 편집기가 작동하지 않습니다.
<p:dialog id="insertPanel" header="Inserisci" widgetVar="dlg1" appendToBody="true" modal="true">
<h:form id="insertForm">
<h:panelGrid columns="2">
<h:outputLabel value="Nome: " for="name" />
<p:inputText id="name" value="#{controller.name}" />
<h:outputLabel value="Oggetto: " for="subject" />
<p:inputText id="subject" value="#{controller.subject}" />
<h:outputLabel value="Visibilità: " for="visibility" />
<p:inputText id="visibility" value="#{controller.visibility}" />
<h:outputLabel value="Testo: " for="text" />
<p:editor id="text" value="#{controller.text}" width="600"/>
<f:facet name="footer">
<p:commandButton actionListener="#{controller.insert}" value="Inserisci" />
</f:facet>
</h:panelGrid>
</h:form>
</p:dialog>
문제를 보여줍니다 대화 상자의 이미지 :
에디터를 사용할처럼 그 몸으로 "true"로 표시됩니다 볼 수 있듯이.
가 도움이 될 수있는 경우 , 나는 내가 삽입 다른 분야하지 않고 유효성 검사 오류와 양식 반환을 삽입 버튼을 누른 경우에만 다음 편집기가 작동하기 시작 것을 알 수! 나는 이유를 이해할 수 없다! –
' '과 같은 다른 PrimeFaces 구성 요소 안에' '을 삽입 하시겠습니까? –
예, 그것은 ''내부에 있습니다. 그러나'appendToBody = "true"'가 있습니다. 거의 아무것도 고쳐서는 안되나요? –