0

JSFのELで列挙型を評価したい。

列挙型は

package com.divudi.data;

/**
 *
 * @author Buddhika
 */
public enum InvestigationItemValueType {
    Varchar,
    Memo,
    Double,
    Integer,
    List,
    Image,
    Line,
    Rectangle,
    Circle,

}

ELは

                                <h:inputText value="#{pv.strValue}" rendered="#{pv.investigationItem.ixItemValueType='Varchar'}" ></h:inputText>

例外は

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: /lab_patient_report_dataentry.xhtml @40,139 rendered="#{pv.investigationItem.ixItemValueType='Varchar'}" Error Parsing: #{pv.investigationItem.ixItemValueType='Varchar'}
root cause

javax.faces.view.facelets.TagAttributeException: /lab_patient_report_dataentry.xhtml @40,139 rendered="#{pv.investigationItem.ixItemValueType='Varchar'}" Error Parsing: #{pv.investigationItem.ixItemValueType='Varchar'}
root cause

javax.el.ELException: Error Parsing: #{pv.investigationItem.ixItemValueType='Varchar'}
root cause

com.sun.el.parser.ParseException: Encountered "=" at line 1, column 39.
Was expecting one of:
    "}" ...
    "." ...
    "(" ...
    "[" ...
    ">" ...
    "gt" ...
    "<" ...
    "lt" ...
    ">=" ...
    "ge" ...
    "<=" ...
    "le" ...
    "==" ...
    "eq" ...
    "!=" ...
    "ne" ...
    "&&" ...
    "and" ...
    "||" ...
    "or" ...
    "*" ...
    "+" ...
    "-" ...
    "?" ...
    "/" ...
    "div" ...
    "%" ...
    "mod" ...

note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.
4

1 に答える 1