2015-01-02 3 views
2

Oracle ADF에서 html과 같은 테이블을 만드는 방법은 무엇입니까? 다음Oracle ADF에서 테이블과 같은 html 만들기

<af:table> 

또한 내 경우에는 바람직하지 않은 헤더를 추가합니다. 행과 셀 사이에 여백없이 레이아웃과 같은 단순한 테이블 만 있으면됩니다. 이런 식으로 뭔가 (참고 : 텍스트 대신 아무것도, 레이아웃, imags 등이있을 수 있습니다) :

enter image description here

내가 panelGridLayout와 비슷한 만들 수 있습니다

하지만 여전히 행 사이 테두리, 여백을 추가 할 때 남아있는. 모양을

<af:panelGridLayout id="pgl3"> 
     <af:gridRow height="auto" id="gr4"> 
      <af:gridCell id="gc9" 
         inlineStyle="padding-top:5px; padding-bottom:5px; padding-right:20px; padding-left:20px; border-right:solid thin; border-left:solid thin; border-top:solid thin; border-bottom:solid thin; border-color:Silver;"> 
      <af:outputText value="Text1"/> 
      </af:gridCell> 
      <af:gridCell id="gc8" 
         inlineStyle="padding-top:5px; padding-bottom:5px; padding-right:20px; padding-left:20px; border-right:solid thin; border-top:solid thin; border-bottom:solid thin; border-color:Silver;"> 
      <af:outputText value="Text2"/> 
      </af:gridCell> 
     </af:gridRow> 
     <af:gridRow height="auto" id="gr6"> 
      <af:gridCell id="gc10" 
         inlineStyle="padding-top:5px; padding-bottom:5px; padding-right:20px; padding-left:20px; border-right:solid thin; border-left:solid thin; border-top:solid thin; border-bottom:solid thin; border-color:Silver;"> 
      <af:outputText value="Text3"/> 
      </af:gridCell> 
      <af:gridCell inlineStyle="padding-top:5px; padding-bottom:5px; padding-right:20px; padding-left:20px; border-right:solid thin; border-top:solid thin; border-bottom:solid thin; border-color:Silver;" 
         id="gc6"> 
      <af:outputText value="Text4"/> 
      </af:gridCell> 
     </af:gridRow> 
     </af:panelGridLayout> 

: 또한

enter image description here

, 나는이 솔루션 (https://community.oracle.com/thread/1104448)를 발견,하지만 난 단지 배치를 필요로하기 때문에, ADF 테이블을 방지하는 것을 선호합니다.

감사

답변

0

내가이 일을하거나하지 않습니다 모르겠지만,이 다치게하지 않습니다 노력 예를 들어 <af:outputFormatted>value 속성 내부에 html 태그를를 넣어 :

<af:outputFormatted styleUsage="yourStyle" 
       value="<b>any output</b>"/> 
1

JSF <h:panelGrid>을 사용하면 모양과 느낌이 html tabl로 제공됩니다. E :

<h:panelGrid columns="2" id="pg1" width="100%" frame="box" rules="all"> 
    <af:outputText value="Text1" id="ot1"/> 
    <af:outputText value="Text2" id="ot2"/> 
    <af:outputText value="Text3" id="ot3"/> 
    <af:outputText value="Text4" id="ot4"/> 
</h:panelGrid> 
0

Trinidad table는 HTML 테이블 레이아웃을 정확한 줄 것이다.

가능하면 adf 응용 프로그램에서 html을 사용하지 마십시오. 테이블과 같은 피부에 헤더 층의 전원을 끄십시오 : 귀하의 요구 사항 헤더없이 테이블이 만 있으면
, 당신은
AF 스타일을 지정할 수 있습니다

.noHeader af|column::column-header-cell{ 
    display: none; 
} 

AF = 레이아웃에 panelGroupLayout 수평 모드는 내용에도 HTML 테이블을 렌더링하지만, 행을 하나만 가지며 동작을 거의 제어 할 수 없습니다.

af : panelGridLayout도 표 레이아웃으로 사용할 수있는 표를 렌더링합니다.

관련 문제