For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 3 voices, and was last updated 20 years, 6 months ago by
Greg.
-
AuthorPosts
-
David Orriss JrParticipantWith 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>August 20, 2005 at 9:38 pm #235397
Scott AndersonParticipantDave,
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!
August 20, 2005 at 9:46 pm #235398
David Orriss JrParticipantScott,
Glad to help in furthering the cause… 🙂
August 31, 2005 at 8:16 pm #236299
David Orriss JrParticipantOK.. now the above code renders a SelectOneListBox instead of a SelectOneMenu….
Might want to open a new bug report on that.. 😉
September 1, 2005 at 1:14 pm #236404
GregMemberHey 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.
September 1, 2005 at 2:42 pm #236410
David Orriss JrParticipantHi 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.
September 1, 2005 at 11:46 pm #236446
David Orriss JrParticipantWell, that’s odd.. this evening it’s rendering fine…
Dunno *why* that happened now.. Oh well.. it’s all good.. thanks for your time!! 😀
September 2, 2005 at 12:18 am #236447
GregMemberNo problem. Glad its working.
-
AuthorPosts
