facebook

4.0GA JSP Designer Rendering of h:selectOneMenu[closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #235394 Reply

    David Orriss Jr
    Participant

    With the following code the text to the left of the select menu (Select a server) does not display in the designer..

    
    
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    
    <%
            String path = request.getContextPath();
            String basePath = request.getScheme() + "://" + request.getServerName()
                    + ":" + request.getServerPort() + path + "/";
    %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <base href="<%=basePath%>">
    
    <title>Admin UI</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
    </head>
    
    <body>
    <f:view>
    
        <h:outputText id="welcomeOutput" value="Admin UI"
            style="font-family: Arial, sans-serif; font-size: 24; color: green;" />
        <br />
        <h:form>
            <h:panelGrid columns="3">
                <h:outputLabel for="serverList">
                    <h:outputText id="serverListLabel" value="Select a server:" />
                </h:outputLabel>
                <h:selectOneMenu onchange="submit()"
                    valueChangeListener="#{AsyncUIControllerBean.serverListValueChanged}">
                    <f:selectItems value="#{AsyncUIControllerBean.serverList}" />
                </h:selectOneMenu>
            </h:panelGrid>
            <h:dataTable value="asyncData" var="data">
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Server Name" />
                    </f:facet>
                    <h:outputText value="#{data.serverName}" />
                </h:column>
            </h:dataTable>
        </h:form>
    </f:view>
    </body>
    </html>
    
    #235397

    Scott Anderson
    Participant

    Dave,

    Good point, it looks like we missed styling the outputText when it’s in an outputLabel. We’ve got an open bug report for it and should have it resolved in the 4.0GA release on the 29th. Thanks for reporting it!

    #235398

    David Orriss Jr
    Participant

    Scott,

    Glad to help in furthering the cause… 🙂

    #236299

    David Orriss Jr
    Participant

    OK.. now the above code renders a SelectOneListBox instead of a SelectOneMenu….

    Might want to open a new bug report on that.. 😉

    #236404

    Greg
    Member

    Hey Dave,

    I wanted to followup with you on this issue. I loaded your page in our designer and here is what I am seeing:

    Can you confirm if this is what you are seeing as well?

    If so, I wanted to discuss the rendering of a h:selectOneMenu. Consider the following source code.

    <table>
       <tr>
          <td>h:selectOneListbox</td>
          <td>
             <h:selectOneListbox size="5" value="#{form.yearOfBirth}">
                <f:selectItems value="#{form.yearItems}"/>
             </h:selectOneListbox>
          </td>
       </tr>
       <tr>
          <td>h:selectOneMenu</td>
          <td>
             <h:selectOneMenu value="#{form.yearOfBirth}">
                <f:selectItems value="#{form.yearItems}"/>
             </h:selectOneMenu>
          </td>
       </tr>
    </table>

    I deployed this example code using Sun’s JSF reference to Tomcat and it rendered the browser like the following:

    So the selectOneMenu is rendered as a dropdown combobox. The selectOneListbox is rendered as a multiline select element. Here is a screenshot of this code snippet in our JSP Designer:

    To my understanding, we are rendering the selectOneMenu in design the same way it is rendered in a deployed application. Do you have any thoughts or comments about this rendering?

    Thanks for the feedback.

    #236410

    David Orriss Jr
    Participant

    Hi Greg,

    Oh wow.. that’s odd… Lemme try again tonite (my office box can’t load the designer). Maybe my workspace went funky when going from M3 to GA… I’ll do a ‘start from scratch’ and see what happens. But if it’s working for you with GA then it should be working for me the same way… 😉

    If the problem goes away then I’ll nuke the workspace and recreate the projects from the code in a new one..

    I’ll keep you posted.

    #236446

    David Orriss Jr
    Participant

    Well, that’s odd.. this evening it’s rendering fine…

    Dunno *why* that happened now.. Oh well.. it’s all good.. thanks for your time!! 😀

    #236447

    Greg
    Member

    No problem. Glad its working.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: 4.0GA JSP Designer Rendering of h:selectOneMenu[closed]

You must be logged in to post in the forum log in