Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsp JSF:无法转换字符串';宽度:100%';为属性样式设置javax.el.ValueExpression类_Jsp_Jsf_Properties_Websphere_El - Fatal编程技术网

Jsp JSF:无法转换字符串';宽度:100%';为属性样式设置javax.el.ValueExpression类

Jsp JSF:无法转换字符串';宽度:100%';为属性样式设置javax.el.ValueExpression类,jsp,jsf,properties,websphere,el,Jsp,Jsf,Properties,Websphere,El,这是jsp页面。 实际上,这个“width:100%”元素正在将其转换为ASCII码(';width:100%;;;';),因此将其作为属性处理,任何人都能找到解决方案吗 <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <f:subview id="hea

这是jsp页面。 实际上,这个“width:100%”元素正在将其转换为ASCII码(
';width:100%;;;';
),因此将其作为属性处理,任何人都能找到解决方案吗

<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>

<f:subview id="header">
    <h:panelGrid style="width:100%;" border="0" cellpadding="0"
        cellspacing="0">
        <f:verbatim>
            <table class="heading" cellpadding="0" cellspacing="0" border="0"
                width="100%">
                <tr>
                    <td width="41">
                        <img src="images/logo01.gif" border="0" />
                    </td>
                    <td nowrap="nowrap" style="padding:7px 0px 0px 0px;">
                        Administration&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </f:verbatim>
    </h:panelGrid>
</f:subview>

我正在使用MyFaces1.1.1。请告诉我会出现什么问题。

您是否尝试过分配不带%符号的
width
值?是的,我尝试过,它不起作用
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1691)
Caused by: com.ibm.ws.jsp.JspCoreException: Unable to convert string **'width:100%;' to class javax.el.ValueExpression** for attribute style: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
    at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:939)
    at com.ibm._jsp._header_5F_admin._jspx_meth_h_panelGrid_0(_header_5F_admin.java:155)
    at com.ibm._jsp._header_5F_admin._jspx_meth_f_subview_0(_header_5F_admin.java:213)
    at com.ibm._jsp._header_5F_admin._jspService(_header_5F_admin.java:90)
    ... 78 more

[3/23/17 2:20:41:202 CDT] 00000043 servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause faces: com.ibm.websphere.servlet.error.ServletErrorReport: com.ibm.ws.jsp.JspCoreException: Unable to convert string **(`&#39;width:100&#37;&#59;&#39;`) to class javax.el.ValueExpression** for attribute style: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:695)
    at com.ibm._jsp._header_5F_admin._jspService(_header_5F_admin.java:98)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1225)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:775)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:457)