entao…to com um probleminha chato aki q to meio sem saber como resolver.
Todos os rich:modal do meu sistema estao com um comportamento estranho…eu nao alterei nada no css dele, mas quando abro algum ele mostra o header igual o da imagem em anexo…
alguem ai ja passou por isso ou sabe como volto ao header normal sem esse espaçamento que ele ta colocando?
<%@taglibprefix="f"uri="http://java.sun.com/jsf/core"%><%@taglibprefix="h"uri="http://java.sun.com/jsf/html"%><%@taglibprefix="a4j"uri="http://richfaces.org/a4j"%><%@taglibprefix="rich"uri="http://richfaces.org/rich"%><f:view><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>Busca de Restrições por Colaborador</title><linkrel="stylesheet"type="text/css"href="../../Css/data_table_style.css"/><linkhref="../../Include/estilo2.css"rel="stylesheet"type="text/css"/><linkrel="stylesheet"type="text/css"href="../../Include/style.css"/><linkrel="stylesheet"type="text/css"href="../../Include/subModal.css"/><linkhref="../../bin/css/style_main.css"type="text/css"rel="stylesheet"><linkhref="../../bin/css/style_main2.css"type="text/css"rel="stylesheet"><scripttype="text/javascript"src="../../Include/common.js"></script><scripttype="text/javascript"src="../../Include/subModal.js"></script></head><body><jsp:includepage="../../menu.jsp"/><jsp:includepage="colab.jsp"/><tablewidth="704"height="100%"border="0"align="center"cellpadding="0"cellspacing="0"><tr><tdheight="14"colspan="3"valign="middle"class="TituloRed"><imgsrc="../../Img/arrow_next.gif"width="15"height="16"><imgsrc="../../Img/arrow_next.gif"width="15"height="16">
Restrições por Colaborador</td></tr><tr><tdheight="14"colspan="3"valign="middle"bgcolor="#E9E9E9"> </td></tr><tr><tdwidth="3"height="6"></td><tdwidth="1208"></td><tdwidth="5"height="6"></td></tr><tr><td> </td><tdheight="100%"valign="top"><divalign="center"></div><h:formid="idFormPesquisaRestColab"rendered="true"><tablewidth="98%"border="0"align="center"cellpadding="2"cellspacing="1"><tr><tdwidth="18%"class="style15"><divalign="right">Marca:</div></td><tdwidth="40%"><selectname="select2"class="combo"id="select2"><option>Selecione...</option></select></td><tdwidth="15%"><divalign="right">Status:</div></td><tdwidth="26%"><selectname="select5"class="combo"id="select5"><option>Selecione...</option></select></td><tdwidth="1%"> </td></tr><tr><tdclass="style15"><divalign="right">Modelo:</div></td><td><selectname="select3"class="combo"id="select3"><option>Selecione...</option></select></td><td> </td><td> </td><td> </td></tr><tr><tdclass="style15"> </td><td> </td><td> </td><td> </td><td> </td></tr><tr><tdcolspan="5"nowrapheight="12"></td></tr><tr><tdcolspan="5"nowrap><divalign="center"><imgsrc="../../Img/bt_pesquisar.png"width="65"height="18"style="CURSOR: hand"> <a4j:commandButtonid="idShowModalCadRestColab"reRender="pnlCadRestColab"oncomplete="javascript:Richfaces.showModalPanel('pnlCadRestColab')"image="../../Img/bt_novo.png"style="width:65;height:18;cursor:hand"/> </div></td></tr><tr><tdcolspan="5"></td></tr></table><rich:datascrollerid="idScrollerRestColab"for="idDataTableRestColab"fastControls="hide"boundaryControls="show"stepControls="show"pageIndexVar="pageIndex"pagesVar="pages"><f:facetname="pages"><h:outputTextvalue="#{pageIndex} / #{pages}"/></f:facet><f:facetname="first"><h:graphicImagevalue="../../Img/ultimo.png"style="border:0px"/></f:facet><f:facetname="first_disabled"><h:graphicImagevalue="../../Img/ultimo.png"style="border:0px"/></f:facet><f:facetname="last"><h:graphicImagevalue="../../Img/primeiro.png"style="border:0px"/></f:facet><f:facetname="last_disabled"><h:graphicImagevalue="../../Img/primeiro.png"style="border:0px"/></f:facet><f:facetname="previous"><h:graphicImagevalue="../../Img/anterior.png"style="border:0px"/></f:facet><f:facetname="previous_disabled"><h:graphicImagevalue="../../Img/anterior.png"style="border:0px"/></f:facet><f:facetname="next"><h:graphicImagevalue="../../Img/proximo.png"style="border:0px"/></f:facet><f:facetname="next_disabled"><h:graphicImagevalue="../../Img/proximo.png"style="border:0px"/></f:facet></rich:datascroller><br><rich:dataTableid="idDataTableRestColab"rendered="true"width="700px"value='#{restricaoHandler.restricoes}'var='item'rowClasses="linha1,linha2"border="0"cellpadding="0"cellspacing="0"reRender="idScrollerRestColab"><f:facetname="header"><rich:columnGroupstyleClass="my-header"style="my-header"><rich:columnwidth="5%"style="text-align:center"styleClass="rich-table-header"><h:selectBooleanCheckboxid="idCheckAll"value="#{restricaoHandler.checkAllBoxes}"onclick="selectAllRestricoesCheckBox()"/></rich:column><rich:columnwidth="5%"styleClass="rich-table-header"><h:outputTextvalue=""/></rich:column><rich:columnwidth="30%"styleClass="rich-table-header"><h:outputTextvalue="#{msg.dataTableReCaV1}"/></rich:column><rich:columnwidth="30%"styleClass="rich-table-header"><h:outputTextvalue="#{msg.dataTableReCaV2}"/></rich:column><rich:columnwidth="15%"styleClass="rich-table-header"><h:outputTextvalue="#{msg.dataTableReCaV3}"/></rich:column><rich:columnwidth="15%"styleClass="rich-table-header"><h:outputTextvalue="#{msg.dataTableReCaV4}"/></rich:column></rich:columnGroup></f:facet><rich:columnwidth="5%"style="text-align:center"><h:selectBooleanCheckboxvalue="#{restricaoHandler.selectedIds[item.idRestricao]}"><a4j:supportaction="#{restricaoHandler.selectItens}"event="onclick"/></h:selectBooleanCheckbox></rich:column><rich:columnwidth="5%"style="text-align:center"><a4j:commandButtonid="idShowModalEditaModelo"action="#{restricaoHandler.edit}"reRender="pnlCadRestColab,idFormPesquisaRestColab,pnlError,pnlAlert,idDataTableRestColab,idScrollerRestColab"oncomplete="javascript:Richfaces.showModalPanel('pnlCadRestColab')"image="../../Img/edit.png"style="width:65;height:18;cursor:hand"/></rich:column><rich:columnwidth="30%"><h:outputTextvalue="#{item.modelo.marca.descricao}"style="text-align:center"></h:outputText></rich:column><rich:columnwidth="30%"><h:outputTextvalue="#{item.modelo.descricao}"style="text-align:center"></h:outputText></rich:column><rich:columnwidth="15%"><h:outputTextvalue="#{item.modelo.descricao}"style="text-align:center"/></rich:column><rich:columnwidth="15%"><h:outputTextrendered="#{item.flagLiberadoRestrito eq 'L'}"value="Liberado"style="text-align:center"/><h:outputTextrendered="#{item.flagLiberadoRestrito eq 'R'}"value="Restrito"style="text-align:center"/></rich:column></rich:dataTable><rich:jQueryselector="#idDataTableRest tr"query="mouseover(function(){jQuery(this).addClass('active-row')})"/><rich:jQueryselector="#idDataTableRest tr"query="mouseout(function(){jQuery(this).removeClass('active-row')})"/></h:form></td><td> </td></tr><tr><tdwidth="3"height="19"></td><tdalign="right"></td><td></td></tr></table><br><br><rich:modalPanelid="pnlConfirmaExc"autosized="true"width="400"><f:facetname="header"><h:outputTextvalue="#{msg.confirmaExc}"/></f:facet><h:formid="formPnlConfExc"><h:outputTextvalue="#{msg.confExc}"/><f:verbatim><br></f:verbatim><f:verbatim><br></f:verbatim><center><a4j:commandButtonid="idSimModalExc"action="#{restricaoHandler.delete}"oncomplete="#{messageBean.onComplete}"reRender="idFormPesquisaRestColab,pnlError,pnlAlert"value="Sim"style="width:65;height:18;cursor:hand"><rich:componentControlfor="pnlConfirmaExc"attachTo="idSimModalExc"operation="hide"event="onclick"/></a4j:commandButton><fontcolor="white">a</font><a4j:commandButtonaction="#"value="Não"onclick="Richfaces.hideModalPanel('pnlConfirmaExc');return false;"/></center></h:form></rich:modalPanel></body></html></f:view>
alguem ai pode dar um help?
vlw
juniorsatanas
cs.santos0 Esse teu css não da pegando não ? parece que para pegar css junto com rich tem que fazer assim :
usar : !important;
*{/*Define que todos os elementos da pgina, ficaro em negrito e com a fonte arial */font-weight:bold;font-family:arial;/*Define a tamanho da fonte para todos os elementos */font-size:10px;}.edit{/*Define a borda do elemento, com um efeito de baixo-relevo menor que o padro */border:1pxinset;/*Especifica a cor cinza, como pano de fundo do elemento */background-color:#D3D3D3;/*Especifica como preta a cor da fonte do elemento */color:#000000;}.botoes{/*Especifica a cor chocolate, como pano de fundo do elemento */background-color:#D2691E;/*Especifica como preta a cor da fonte do elemento */color:#FFFFFF;/*Define a borda do elemento, com um efeito de alto-relevo menor que o padro */border:1pxoutset;}.rotulos{/*Especifica preta a cor da fonte do elemento */color:#000000;}legend{/*Define a tamanho da fonte para a legenda do FieldSet */font-size:12px}input.inputPesquisa{font-size:16px;/* CONFLITO: Só pra mostrar uma outra propriedade conflitante */padding-left:23px;padding-top:5px;height:20px;background-image:url(../images/zoom.gif)!important;/* CONFLITO */background-position:right;background-repeat:no-repeat;font-size:16pt;color:#FF6A6A;}input.inputPesquisaBtn{position:fixed;top:60px;left:538px;margin:0px;padding:0px;}input.inputLogin{font-size:16px;/* CONFLITO: Só pra mostrar uma outra propriedade conflitante */padding-left:23px;padding-top:5px;height:20px;background-image:url(../images/zoom.gif)!important;/* CONFLITO */background-position:right!important;background-repeat:no-repeat;font-size:30pt!important;color:#FF6A6A!important;}input.inputPesquisa2{font-size:25px;/* CONFLITO: Só pra mostrar uma outra propriedade conflitante */padding-left:15px;padding-top:4px;height:35px;background-image:url(../images/zoom.gif)!important;/* CONFLITO */background-position:right;background-repeat:no-repeat;color:#FF6A6A;width:550px;height:px;}input.inputPesquisaBtn2{position:fixed;top:50px;left:670px;margin:0px;padding:0px;}input.inputLogin2{font-size:16px;/* CONFLITO: Só pra mostrar uma outra propriedade conflitante */padding-left:23px;padding-top:5px;height:20px;background-image:url(../images/zoom.gif)!important;/* CONFLITO */background-position:right!important;background-repeat:no-repeat;font-size:30pt!important;color:#FF6A6A!important;}
cs.santos0
nao precisa ter o important…
o problema nao esta em pegar o css…isso ai é de boa…
acabei descobrindo onde ta o problema…é em um css que esta no jsp incluido q é o do menu…
gostaria de fazer um jeito desse css nao pegar só no modal…