Simple sanity check: maybe someone could try to reproduce this error? i have just tried in another machine, and i got the same wrong result. here is what you need:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
a backing bean:
package newpack;import com.sun.webui.jsf.model.Option;
import com.sun.webui.jsf.model.OptionTitle;import java.util.Vector;
public class NewClass { private Vector<Option> vec = new Vector<Option>();
public Vector getVec() { return vec;
} public void setVec(Vector vec) {
this.vec = vec; }
public NewClass() { vec.add(new OptionTitle("title"));
vec.add(new Option("1", "a")); vec.add(new Option("2", "b"));
} }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
a visual web page with a drop down list:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> <f:view>
<webuijsf:page id="page1"> <webuijsf:html id="html1">
<webuijsf:head id="head1"> <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
</webuijsf:head> <webuijsf:body id="body1" style="-rave-layout: grid">
<webuijsf:form id="form1"> <webuijsf:dropDown id="dropDown1" items="#{myobj.vec}" style="position: absolute; left: 96px; top: 72px"/>
</webuijsf:form> </webuijsf:body>
</webuijsf:html> </webuijsf:page>
</f:view></jsp:root>////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
and a managed bean in faces-config:
<managed-bean> <managed-bean-name>myobj</managed-bean-name>
<managed-bean-class>newPack.NewClass</managed-bean-class> <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
we are looking to see if the hifens before and after the title on the drop down list gets rendered, or we get something like:
— title —
Thanks in advance.
On Wed, Jul 23, 2008 at 9:27 AM, Futaleufu_John <jhalupka@...> wrote:
I'm not sure how this will help but — represents an mdash character in
HTML. Why it appears, I can't say, but this might give you a place to start.
ramiroBot wrote:
>
> OptionTitle o = new OptionTitle("my title");
>
> and the output i get is :
>
> — mytitle —
>
> btw, the problem with — happened in two different machines, in
> different projects.
>
--
View this message in context: http://www.nabble.com/web-application%2C-woodstock%2C-drop-down-list%2C-Option-Title%2C---8212--tp18600508p18609615.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.