Primeface Dialog Framework로 열린 대화 상자에서 머리글을 제거 할 수 있습니까? 커스텀 헤더 (snipped 코드 참조)를 설정할 수 있다는 것을 알고 있지만, 그것을 제거하는 방법은 무엇입니까? 모든 대화 상자에서 제거하고 싶지 않으므로 CSS 클래스 .ui-dialog .ui-dialog-titlebar
을 재정의하는 것은 옵션이 아닙니다.Primefaces 대화 상자에서 머리글 제거
Map<String,Object> options = new HashMap<String, Object>();
options.put("modal", true);
options.put("width", 640);
options.put("height", 340);
options.put("contentWidth", "100%");
options.put("contentHeight", "100%");
options.put("headerElement", "customheader");
RequestContext.getCurrentInstance().openDialog("viewCars", options, null);
css 클래스를 추가 할 수 있습니다. 그것을 사용하여 단 하나의 대화 상자에서 제거하십시오. – Kukeltje
음,하지만 어떻게 추가합니까? 나는 CSS 규칙을 .ui-dialog .ui-dialog-titlebar를 오버라이드하고 display : none을 사용하여 직접적으로 시도했다. 그러나 작동하지 않는다. 나는 자바 스크립트 준비 함수에서 CSS 속성을 추가하려고 시도했지만 doens't도 작동합니다. – Zardo