English 中文(简体)
JSF2: 找不到转换器属性 :
原标题:JSF2: converter attribute not found:

I m upgrading our webapp from JSF1.2 to JSF2. Our VDL is JSP. We are using Richfaces 3.3.3

我有一个h:选择OneMenu和h:outputText 使用以下属性:

converter="SelectObjectConverter"

选择对象反转器定义在脸面配置. xml 中 :

<converter>
  <converter-id>SelectObjectConverter</converter-id>
  <converter-class>com.vc.mm.utils.jsf.converter.SelectObjectConverter</converter-class>
</converter>

转换器按JSF1.2的预期工作,但JSF2 则不工作。

以下是错误消息 :

例外: org.pache.jasper.el.JspEL 例外: /bla/bla/foobar.jsp (14,1) 选择目标转换器无法从 java.lang 类中强制 。 准备连接 javax. faces. convert.

如果我使用这个语法 :

<f:converter converterId="SelectObjectConverter"/>

It s work! But, as we have a lot of files with the other syntax, I would like to find the cause.

脸面配置文件头已更新到 :

<faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
最佳回答

在我们的耳朵里,有一个jbpmjar和juel**jar。

消除所有“juel”罐解决了问题。

我猜Juel向JSF提供(错误的)EL执行。

问题回答

暂无回答




相关问题
Copy data from Access to SQL

I am in the process of migrating an existing Access database to a SQL database with a web front-end. I have successfully copied the database to SQL using the SQL Server Migration tool and am working ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

Switching to WPF. Is it time?

I m considering switching from MFC to WPF. My first concern is that there are too many users who don t have .NET with WPF installed yet. Can anybody point to a source containing the WPF penetration ...

rake db:migrate running all migrations correctly

I m fairly new to Ruby on Rails here. I have 2 migrate files that were provided. The first one, prefixed with 001, creates a table and some columns for that table. The next migrate file, prefixed ...

Migrate Java Applet to what/where?

I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems. It s a tool to create custom labels, so we need drag-n-drop and other ...

热门标签