5 Replies Latest reply on May 11, 2013 4:45 PM by andreimariusb

    Font size issues

    andreimariusb

      I have issues with the font size. Because of this I can't use EAP Alpha.

      I am using RichFaces 4.3.1.Final.

       

      The same EAR app in JBoss EAP Alpha has a huge font size compared to when it is run in JBoss AS 7.

       

      Any solution (except manually changing the font-size) ?

       

      Edit for clarification:

       

      I am talking about the default font-size in RichFaces (which is 11px). The theme used is the dafault one.

       

      For example, the following code renders the header, the outputLabel and the outputText in about 14, 16 px:

      I have also set in css, so my notifyMessages have a smaller font but in EAP it is ignored (in AS 7 works as expected) - with or without "!important":

       

      The only font-size that is kept the same, are those for the rich:panel header, the rich:toolbar with rich:dropDownMenu items and the links / buttons.

      body { font-size: 0.7em; }

       

      <h:form id="form">
                                    <a4j:push address="modificat">
                                              <a4j:ajax event="dataavailable" render="contracteAll" />
                                    </a4j:push>
                                    <rich:collapsiblePanel id="contracteAll" header="Toate Contractele" switchType="client">
                                              <rich:dataGrid var="contract" value="#{indexController.contracteAll}" columns="6">
                                                        <rich:panel>
                                                                  <f:facet name="header">
                                                                            <h:outputText value="Contract cu Nr. #{contract.numar}" />
                                                                  </f:facet>
                                                                  <h:panelGrid columns="2">
                                                                            <!-- Nr Contract -->
                                                                            <h:outputLabel for="nrContract" value="Nr Contract:" styleClass="labelStyle" />
                                                                            <h:outputText id="nrContract" label="Nr Contract" value="#{contract.numar}" />
      
                                                                  </h:panelGrid>
                                                                  <a4j:commandLink id="afContract" value="Afiseaza Contract" execute="@this"
                                                                            render="@none" action="#{indexController.informatiiContract}" status="ajaxStatus">
                                                                            <f:setPropertyActionListener target="#{indexController.contractSelectat}" value="#{contract}" />
                                                                  </a4j:commandLink>
                                                                  #{' | '}
                                                                  <a4j:commandLink id="adClient" value="Adauga Client" execute="@this" render="@none"
                                                                            action="#{indexController.adaugaClient}" status="ajaxStatus">
                                                                            <f:setPropertyActionListener target="#{indexController.contractSelectat}" value="#{contract}" />
                                                                  </a4j:commandLink>
                                                        </rich:panel>
                                              </rich:dataGrid>
                                    </rich:collapsiblePanel>
                          </h:form>
      
      

       

       

       

       

      Message was edited by: andreimariusb

       

      Message was edited by: andreimariusb

        • 1. Re: Font size issues
          jaikiran

          Welcome to the forums!

           

          Can you explain a bit more about which font-size are you talking about? What does you web page code look like?

          • 2. Re: Font size issues
            jamezp

            EAP wouldn't really have anything to do with the font size. None of that is up to the application server. Are you using the same version of RichFaces on both deployments?

             

            --

            James R. Perkins

            • 3. Re: Font size issues
              andreimariusb

              It's the exact same EAR (so everything is identical - same version of RichFaces).

              I have deployed the same EAR using the deployment folder from the standalone.

               

              I wonder if it is Mojarra's fault. I will also try with MyFaces.

              • 4. Re: Font size issues
                jaikiran

                This should be really easy to test. Just take a look via Firebug (in Firefox) to see which CSS is being applied and which one is being overridden.

                • 5. Re: Font size issues
                  andreimariusb

                  For those interested, the problem is with the Mojarra version (same problem in EAP beta).

                  A workaround is to change the DOCTYPE to <!DOCTYPE html> or to make it Strict.