ADF FACES: font size problems

By default, when jdev creates a new .jspx file, it includes the jsp:output statement below:
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML" doctype-system="http://www.w3.org/TR/html4/loose.dtd" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
With this statement in place, the font size used by IE is incredibly tiny. When I remove this statement from the page, the font sizes are all "normal."
Does this make any sense? How would this statement affect all the font sizing on the page?
Thanks.

This doctype reference is activating the (rather ironically named) standards mode in Internet Explorer. The current HTML used in ADF Faces renders better in Internet Explorer's quirks mode, though we're hoping to resolve that. The simplest tweak to your .jspx is to remove the "doctype-system" part of that <jsp:output> statement.
I'll follow up with the JSP DT team to see if this can be tweaked or configured (or, ideally removed, since <afh:html> and <af:document> are already outputting a doctype).

Similar Messages

  • ADF FACES: font problems on readOnly selectOneChoice

    The output text from an af:selectOneChoice with readOnly="true" is a different font than with readOnly="false" and different than af:inputText with readOnly="true".
    Looking at the generated html, the output from a readOnly selectOneChoice has no class associated with it. The other text elements are given class="x4" (which I think equates to a styleClass of OraFieldText).
    Also, I can't change the font by specifying a styleClass on the af:selectOneChoice - it appears to have no effect on the output html.
    This seems like a bug.
    Thanks.

    You're right that when the selectOneChoice is in readOnly mode, its selectedItem does not have a styleClass associated with it and that setting a styleClass on the readOnly selectOneChoice does not set the styleClass on its selectedItem. This is a bug. Thanks for pointing it out.
    However, you said:
    "Also, I can't change the font by specifying a styleClass on the af:selectOneChoice - it appears to have no effect on the output html."
    In my tests, setting the styleClass attribute on the af:selectOneChoice tag does result in correct markup with a styleClass set on the actual HTML Select control (although, the label doesn't get the user defined styleClass, which is correct behavior). Are you seeing output that doesn't match this?
    Regards,
    Matt Lee
    ADF Faces Team

  • Font Size problem : Swing font looks smaller than pdf font

    Hi
    I'm facing a problem with font size in my swing application. I'm showing some text with a certain predefined font size. Using the same font size and type on same m/c, I 'm generating some pdf text.
    The problem is that the text in swing looks smaller than the same text in pdf. Is there a way to achieve
    consistency in font sizes.

    please don't cross-post.  pick the appropriate forum and use it.  close your cross-thread.

  • ADF Faces - showOneTab PPR problem in Internet Explorer

    Hoping someone has some insight into this that may help. This is causing us a lot of problems for us and could end up causing us to drop ADF faces from our project.
    Basically we are using af:showOneTab in our application and the first time we change tabs and every other time after that, the progress bar in IE basically runs forever and we have problems with afh:script tags that set the focus to the desired input field. We get a Javascript error that the element doesn't exist (it does, checked with a DOM explorer), or its not ready (may not be because of the progress bar) or isn't visible (it is).
    So after a lot of debugging in our application I just went back to the adf demo war file and the showOneTab component demo page in there shows exactly the same behavior. Firefox 1.5.0.7 does not have this problem.
    Here are the relevent versions of everything:
    ADF faces standalone jars, version 10.1.3.0.4 from the main ADF faces page download.
    JSF 1.1_01 RI
    Websphere 6.0 App Server
    Internet Explorer version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
    JDK 1.4 - required because of WAS 6.0
    Thanks!
    Steve

    I did find a workaround to this problem. I think its pretty ugly though. I had to add the following to the page:
    <!-- This code is necessary to prevent the IE progress bar runs forever problem. -->
    <f:verbatim>
         <iframe height="1px" marginheight="0px" marginwidth="0px" id="garbageFrame" name="garbageFrame" width="1px" style="visibility:hidden; position:absolute; top:-200px">
         </iframe>
    </f:verbatim>
    <afh:script id="iframeUpdate"
         text="window.garbageFrame.document.write('');
         window.garbageFrame.close()"/>
    <!-- End of code for IE progress bar problem. -->     
    Then I add the iframeUpdate script as a partial Target in my tab disclosure listener:
         UIComponent c = (UIComponent)de.getComponent();
         UIComponent target = c.findComponent(":iframeUpdate");
         AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
         if(target != null) {
              adfContext.addPartialTarget(target);
    Just thought I'd follow up as I remember others having the progress bar run forever in IE as well.
    Steve

  • ADF Faces: Design-time problems

    Hi!
    We are working at JetBrains on several JSF features, and we have some serious problems with components' behavior on design time. Can we recieve an engineer contact, who can be discussed these problems with?

    I think your question is still confusing - are you saying JetBrains is not used? Is this a pure ADF Faces issue? - it would also help people on the list if you can explain WHAT the actual component is and WHAT the problem you are seeing....
    Regards
    Grant

  • [SOLVED] Urxvt increasing font size problems.

    Hello,
    I'm having some problems getting Urxvt to increase my terminus font size.
    I have installed aur/urxvt-font-size-git and have the following in my .Xdefaults:
    URxvt.keysym.Control-Up: \033[1;5A
    URxvt.keysym.Control-Down: \033[1;5B
    URxvt.keysym.Control-Left: \033[1;5D
    URxvt.keysym.Control-Right: \033[1;5C
    URxvt.iso14755: false
    URxvt.iso14755_52: false
    URxvt.keysym.Control-minus: perl:font-size:increase
    URxvt.keysym.Control-equal: perl:font-size:decrease
    URxvt.keysym.Shift-Control-V: perl:clipboard:paste
    URxvt.perl-ext-common: default,clipboard
    URxvt.font: xft:terminus:size=9
    !URxvt.font: -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-1
    URxvt.antialias: false
    Running
    xrdb ~/.Xdefaults && urxvt
    returns no errors, however Control-Minus/Equal do not increase my font size. I have tried swapping the URxvt.font values between the commented/uncommented lines but it still doesn't work.
    Am I missing something?
    Thanks
    Edit: I am using I3 as my WM and I don't have any mappings that would conflict.
    Last edited by Minsc (2014-07-03 19:26:48)

    n125 wrote:
    Minsc wrote:URxvt.perl-ext-common: default,clipboard
    Looking at the wiki entry for this extension, it appears that you're missing font-size in this line. Try adding it and seeing if it helps.
    Wow, can't believe I missed that. Thanks!

  • ADF Faces: columns sort problem

    Hi all,
    I'm new ADF Faces italian user and I have some problem sorting columns of table component...
    I have tried to convert my ResultSet in a List, and the data are correctly inserted in the "af:table" but the column sort don't work...
    I have already read the "af:table" Oracle specification but I have not just found a solution...
    This is the part of my backing bean that return the List:
    private List anagsList;
    public List getAnagsList()
    Connection connection;
    Statement statement;
    ResultSet resultset;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    connection = DriverManager.getConnection("jdbc:oracle:thin:@192.168.168.75:1521:ORA1", "EL2DEMO", "admin");
    statement = connection.createStatement();
    if(inputText1.getValue().toString().equals(""))
    resultset = statement.executeQuery("SELECT AN_RAGSOC, AN_NOME, AN_DATANASCITA FROM ANAGS");
    else
    String query="SELECT AN_RAGSOC, AN_NOME, AN_DATANASCITA FROM ANAGS WHERE ";
    query=query + "AN_RAGSOC LIKE '%" + inputText1.getValue() + "%' OR ";
    query=query + "AN_NOME LIKE '%" + inputText1.getValue() + "%' OR ";
    query=query + "AN_DATANASCITA LIKE '%" + inputText1.getValue() + "%'";
    resultset=statement.executeQuery(query);
    anagsList = new ArrayList();
    while(resultset.next())
    anagsList.add(new AnagsRecord(resultset.getString(2), resultset.getString(1), resultset.getString(3)));
    resultset.close();
    statement.close();
    connection.close();
    catch(Exception e)
    System.out.println(e);
    return anagsList;
    This is my AnagsRecord class:
    package mypackage.backing;
    public class AnagsRecord
    private String nome;
    private String cognome;
    private String dataNascita;
    public AnagsRecord(String nome, String cognome, String dataNascita)
    setNome(nome);
    setCognome(cognome);
    setDataNascita(dataNascita);
    public String getNome()
    return nome;
    public void setNome(String nome)
    this.nome = nome;
    public String getCognome()
    return cognome;
    public void setCognome(String cognome)
    this.cognome = cognome;
    public String getDataNascita()
    return dataNascita;
    public void setDataNascita(String dataNascita)
    this.dataNascita = dataNascita;
    And this is table component:
    <af:table var="al" emptyText="No records found."
    rows="20" value="#{backing_ADFFaces.anagsList}"
    banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="dataNascita">
    <f:facet name="header">
    <af:outputText value="DATA NASCITA"/>
    </f:facet>
    <af:outputText value="#{al.dataNascita}"/>
    </af:column>
    <af:column sortable="true" sortProperty="cognome">
    <f:facet name="header">
    <af:outputText value="COGNOME"/>
    </f:facet>
    <af:outputText value="#{al.cognome}"/>
    </af:column>
    <af:column sortable="true" sortProperty="nome">
    <f:facet name="header">
    <af:outputText value="NOME"/>
    </f:facet>
    <af:outputText value="#{al.nome}"/>
    </af:column>
    </af:table>
    I have already installed the ADF Faces demos (column_sortable.jspx) and it works well, but the backing bean is not very understandable...
    please help me...
    ciao!

    Hi,
    I have the same problem (with another language), national characters are not sorted properly.
    Any pointers how to solve this?
    Regards,
    Patrik

  • Font size problems between Motion and FCP

    I created a custom Final Cut Pro title in Motion. I set the font size to 110 pixels. My custom title works great, with one exception. The 110 pixel font in my custom title doesn't match the size of 110 pixel fonts in other titles. I double checked the font specs between the two titles, and they are identical. But, the font in my custom title is much bigger (view screen shot). How do I fix this?

    Hi Jim,
    I found the problem. When I right click a text template in FCP and select "open in Motion", the template dimensions are 1920p X 1080p. My original custom templates were 1280p X 720p. So, I didn't realize I was toggling between different template sizes.
    Thanks for you input though.

  • Font size problem in pages and keynote for iPad

    I've been using pages and keynote for just under over a week and when I go to make a table and set the font size in either of them, it makes the text very large even though it is on the very small setting, even if I try to cut and paste in text that was originally small once in the table it become very big, and when I try copying tables between the two apps it makes it even worse to the point that a 5x5 table takes up 5 pages or goes off the edge of the slide.
    Please help.

    i have a first generation ipad but i expect it works the same way. Have you selected tiny on the table font options? also, select Times New Roman. It is a bit smaller. The tiny setting should be the same as size 12 Times New Roman font. When you select the table (tap on it) there should be a small blue dot in the bottom right corner. that is used to edit the table. It is a bit annoying, but I have not found a way to copy things into the t able in the right format, you have to change it manually every time. Hope this helps!

  • Java font size problems

    I am using sun java on Linux, version jre1.5.0_05
    I find the font sizes in java applets are too small to read, e.g.
    http://javaboutique.internet.com/aFont/
    Is there a workaround for this?

    827028 wrote:
    JohnPM wrote:
    then derive a font from that base font which is scaled by an affine transform to the pixel height you need using baseFont.deriveFont(at) I tried that already. Believe it or not the affine transform will do things like shearing but when you scale it simply jumps between integral point sizes. I thought that was kind of strange; but, that is the way it handles affine transforms on text in the deriveFont method and the Graphics2D object. Strange but true.O.k. I guess you were right with using an AffineTransform except that I need one more thing in the Grahics2D:
    g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                                 RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
    g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
                                 RenderingHints.VALUE_FRACTIONALMETRICS_ON);

  • InDesign font size problems

    Hi
    Am having trouble with InDesign - My font size small arrow buttons (up and down) in top dock have decided not to work anymore - Can still change font size manually but I would rather they worked. Any ideas?
    Cheers

    See Replace Your Preferences to start.

  • [adf faces] selectonechoice autosubmit problem

    hello
    i am trying to make a adf faces website, but i have 2 dropdownlists in an overview page
    the first dropdownlist (af:selectonechoice) contains the YEAR
    the second dropdownlist (af:selectonechoice) containts the WEEKS IN THAT YEAR
    the weeks have to be drawn from the database, by using the managed bean "filterBean"
    somehow at this moment i can only get the weeks inside the second dropdownlist by clickin on a commandbutton. the autosubmit from the first dropdownlist doesn't do shit...
    even with partialtriggers it won't work right
    can anybody give me a working example in which a dropdownlist updates another dropdownlist?
    thanks in advance!

    Hi,
    2-minute googling gave these examples:
    "ADF Faces: Building ADF dependent list boxes in ADF Faces table" at http://thepeninsulasedge.com/frank_nimphius/2008/04/08/adf-faces-building-adf-dependent-list-boxes-in-adf-faces-table/
    "62. Cascading Lists in JSF" at http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    "Three Dependent List Boxes in af:table Component" at http://andrejusb.blogspot.com/2007/08/three-dependent-list-boxes-in-aftable.html
    "Implementing dependent select boxes in JSF" at http://www.it-eye.nl/weblog/2006/04/04/implementing-dependent-select-boxes-in-jsf/
    "ADF Learning 6 - Dependent List Boxes" at http://www.scribd.com/doc/2633296/ADF-Learning-6-Dependent-List-Boxes
    HTH,
    Patrik

  • Font size problems in Apple Mail (Snow Leopard)

    Dear all
    When I send messages in large font, e.g. size 18 or size 24, the recipient complains of the text being too small, e.g. size 8 or 9. This is happening on everyone who I send mail too... It's problematic for me because I then have to write emails using gigantic letters so that the recipient receives mail with an average size.
    Does anyone know how this can be addressed?
    Thank you
    Kate

    you're not alone. see a similar thread: http://discussions.apple.com/thread.jspa?threadID=2590118
    i just tried this and for now, it seems to work. i'm waiting for feedback from other Win PC & Mac users.
    Change Message font to Lucinda Grande 12 (seems to be the only font that works to solve this problem)
    Signature - change font to 10
    Uncheck "Always match..."
    if it works for you, please let us know.

  • ADF faces - Urgent! - problem in display row-detail

    Hi all, I've maka a post yesterday but I still can't resolve the problem.
    I have a page that display data from the database.
    The amount of data is variable, so I configure the iterator as follow:
    <methodIterator id="XLB_find_user_OLIter" Binds="XLB_find_user_OL.result"
    DataControl="Session_EJB_TDBLocal" RangeSize="10"
    BeanClass="TDB.model.OltdbView" Refresh="always"
    CacheResults="false"/>
    The table have a single selection column and a view detail button.
    when user click the button, the following method is called (in the backing bean):
    public String ElaboraAtt_action() {
    OperationBinding bind=this.bindings.getOperationBinding("XLB_changeToWorkingOn_olTdb");
    int ret=(Integer)bind.execute();
    if(ret==0){
    XLB_changeToWorkingOn_olTdb make some operation on the record and return a result code.
    the bind for XLB_changeToWorkingOn_olTdb is:
    <methodAction id="XLB_changeToWorkingOn_olTdb"
    InstanceName="Session_EJB_TDBLocal.dataProvider"
    DataControl="Session_EJB_TDBLocal"
    MethodName="XLB_changeToWorkingOn_olTdb"
    RequiresUpdateModel="true" Action="999"
    ReturnName="Session_EJB_TDBLocal.methodResults.Session_EJB_TDBLocal_dataProvider_XLB_changeToWorkingOn_olTdb_result">
    <NamedData NDName="username" NDValue="${userState.name}"
    NDType="java.lang.String"/>
    <NamedData NDName="callid" NDValue="${showOl_backing.currentCallid}"
    NDType="java.lang.String"/>
    </methodAction>
    where showOl_backing is the backing bean.
    In the backing bean, the code for current callid is:
    public String getCurrentCallid() {
    JUCtrlValueBindingRef tableRowRef=(JUCtrlValueBindingRef) this.getOl_table().getRowData();
    return (String) tableRowRef.getRow().getAttribute("callid");
    The problem is:
    If the rows change between the rendered page and the next submit, the row retourned from getCurrentCallid() is wrong.
    I've seen that, before start to execute the action, ADF refresh the table with the new values, so I think that the selection is made with an index, but on new values...
    I've tried almous any solution...
    Thanks!
    Luca

    ...ok...finally...I've done...
    simply, i've setted cache resut to true in the iterator.
    When af:pool refresh the table, or when a refresh button is click, a method call execute the operationBindings, and the result are refreshed...
    Hi all!

  • Font size problem in CS2 for Windows

    I've run into a problem that I had about a year ago but can't remember how to fix it. When I highlight some text and look in the Character palette, the size shows as 9 pt (8.33 pt). When I try to change it to 10 pt, the number in the parentheses changes and is the actual size (not 10 pt). I know this can be fixed so that there are no parentheses and the size that shows is the actual size, but I can't remember how to do it.
    Any suggestions?
    Thanks,
    Lloyd

    Never mind: scale text attributes...

Maybe you are looking for