0 Replies Latest reply on Sep 14, 2010 2:37 AM by Krishan Kumar

    width attribute is not working for rich:column

    Krishan Kumar Newbie

      I have a rich:dataTable having four columns. I wan to set a particular width for one of the columns. But It is not working. I am using richfaces 3.3.0 version. The code is as follows:

       

      <rich:dataTable id="AlarmListTable" value="#{aeAlarmNEList.alarmInfoDTOList}"
      var="alarmsInfoDto"
      headerClass="table"
      styleClass="tagTable"
      rowClasses="odd,even"
      onRowMouseOver="this.style.backgroundColor='#6666FF'"   
                                       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.rowBackgroundColor}'"
      rows="10">
      <rich:column id="alarmId">
      <f:facet name="header">
         
      </f:facet>
      <input type="radio" name="alarmId"
      value="#{alarmsInfoDto.alarmId}" />
      </rich:column>
      <rich:column id="alarmTime">
      <f:facet name="header">
                                                  <h:outputText value="#{bundle.modal_panel_alarm_time_header}"/>
      </f:facet>
      <h:outputText id="alarmTimeValue" value="#{alarmsInfoDto.alarmTime}" styleClass="nonEditableTableText"/>
      </rich:column>
      <rich:column id="alarmText" width="50">
      <f:facet name="header">
                                                  <h:outputText value="#{bundle.modal_panel_alarm_text_header}"/>
      </f:facet>
      <h:outputText id="alarmTextValue" value="#{alarmsInfoDto.alarmText}"  style="width:50px;" styleClass="nonEditableTableText"/>
      </rich:column>
      <rich:column id="alarmNumber">
      <f:facet name="header">
                                                  <h:outputText value="#{bundle.modal_panel_alarm_num_header}"/>
      </f:facet>
      <h:outputText id="alarmNumberValue" value="#{alarmsInfoDto.specificProblem}" styleClass="nonEditableTableText"/>
      </rich:column>
      <rich:column id="alarmSeverity">
      <f:facet name="header">
                                                  <h:outputText value="#{bundle.modal_panel_alarm_svrty_header}"/>
      </f:facet>
      <h:outputText id="alarmSeverityValue" value="#{alarmsInfoDto.perceivedSeverity}" styleClass="nonEditableTableText"/>
      </rich:column>
      </rich:dataTable>

      <rich:dataTable id="AlarmListTable" value="#{aeAlarmNEList.alarmInfoDTOList}"

      var="alarmsInfoDto"

      headerClass="table"

      styleClass="tagTable"

      rowClasses="odd,even"

      onRowMouseOver="this.style.backgroundColor='#6666FF'"   

                                  onRowMouseOut="this.style.backgroundColor='#{a4jSkin.rowBackgroundColor}'"

      rows="10">

      <rich:column id="alarmId">

      <f:facet name="header">

          </f:facet>

      <input type="radio" name="alarmId"

      value="#{alarmsInfoDto.alarmId}" />

      </rich:column>

       

      <rich:column id="alarmTime">

      <f:facet name="header">

          <h:outputText value="#{bundle.modal_panel_alarm_time_header}"/>

      </f:facet>

      <h:outputText id="alarmTimeValue" value="#{alarmsInfoDto.alarmTime}" styleClass="nonEditableTableText"/>

      </rich:column>

       

                                    <rich:column id="alarmText" width="50">

      <f:facet name="header">

          <h:outputText value="#{bundle.modal_panel_alarm_text_header}"/>

      </f:facet>

      <h:outputText id="alarmTextValue" value="#{alarmsInfoDto.alarmText}"  style="width:50px;"                                                   styleClass="nonEditableTableText"/>

            </rich:column>

           

                                   <rich:column id="alarmNumber">

      <f:facet name="header">

          <h:outputText value="#{bundle.modal_panel_alarm_num_header}"/>

              </f:facet>

              <h:outputText id="alarmNumberValue" value="#{alarmsInfoDto.specificProblem}" styleClass="nonEditableTableText"/>

                         </rich:column>

       

                                <rich:column id="alarmSeverity">

      <f:facet name="header">

          <h:outputText value="#{bundle.modal_panel_alarm_svrty_header}"/>

      </f:facet>

      <h:outputText id="alarmSeverityValue" value="#{alarmsInfoDto.perceivedSeverity}" styleClass="nonEditableTableText"/>

      </rich:column>

       

      </rich:dataTable>