2014-04-30 2 views
0

InputText]를 나는 다음과 같은 다양한 데이터 테이블의 열을 데 :추가 공간 :

<h:panelGrid columns="2" width="100%" 
style="text-align: center;line-height:0px;">             

    <h:outputText value="*"        style="font: bold 19px;color: red;position: relative;margin:0;padding:0;" 
    rendered="#{s:isNotNumber(forecastList.rasMap[mapElements])}"></h:outputText> 
    <h:inputText value="#{forecastList.rasMap[mapElements]}" 
    readonly="true" onfocus="captureFocus(this,this.form);" 
    size="15" 
    style="#{s:contains(forecastList.rasMap[mapElements],'-') ? 'color: red;' : ''}; 
    text-align: right; vertical-align: middle;background-color: white;margin:0;padding:0;" 
    label="For #{forecastList.currencySymbolRas} - #{mapElements},"> 
    <s:bigDecimalConverter decimalDigits="2" /> 
    </h:inputText> 
              </h:panelGrid> 

그러나 나는 asterik 및 입력 텍스트 상자 사이의 공간을 제거 할 수 없습니다입니다. 나는 그들 사이를 서로 가깝게하고 싶다. h:panelGrid에 추가 속성을

답변

0

width="100%"를 제거하고 (선택적으로) 추가 :

<h:panelGrid columns="2" border="0" cellpadding="0" cellspacing="0"> 
+0

감사 Lukach을 이미 아니 ... 그것을 시도했다 운!! – Aashish

+0

더 많은 회선이 있습니까? 다른 텍스트가 1 이상이면, h : panelGrid'style' 속성에서'text-align : center'을 제거하고 각 열마다 스타일을 사용할 수 있습니다. –

+0

추가로 중요한 것은'h : panelGrid'에서'width = "100 %"'를 제거하십시오! –

0

을이 시도해보십시오 issue.but을 조사하기위한

<h:outputText value="*" > 
</h:outputText><h:inputText ... /> 
+0

정확한 코드 외에도 설명은 항상 높이 평가됩니다 (예상되는 IMO). –

+0

@JonathonReinhart : 줄 바꿈이 쉽게 자리를 잡기 때문에 나는 OP를 위해 아 - 하 순간을 남기고 싶다. 나는 앞으로 더 잘할 것이다 : D –