[jboss-user] [JBoss Seam] - Re: Problems with convertEntity in seam cvs
petemuir
do-not-reply at jboss.com
Wed May 9 14:21:55 EDT 2007
You can't use convertEntity in this situation (it assumes that all objects in the list are entities, as would any converter). You can extend org.jboss.seam.ui.EntityConverter:
@Name("myConverter")
| @Converter
| public void MyConverter extends EntityConverter {
|
| public String getAsString(...) {
| if ("separator".equals(value) {
| // it's not an entity, you deal with it here
| } else {
| return super.getAsString(...);
| }
| }
|
| // similar for getAsObject
| }
| |
| | then you use it
| |
| | <f:converter id="myConverter" />
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044438#4044438
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044438
More information about the jboss-user
mailing list