[jboss-user] [JBoss Seam] - Re: seam-gen and type specific controls

zeljko_t do-not-reply at jboss.com
Wed Jan 17 05:44:18 EST 2007


I found the right file, thanks.

It doesn't behave as I was expecting because checkboxes are generated only for Hibernate boolean type and no other types, not even for yes_no. I think they should be generated for every type that has Boolean or boolean returned class.

Solution will be to modify edit.xhtml.ftl by replacing

<#elseif property.value.typeName == "boolean">

with

<#elseif property.value.type.returnedClass == "class java.lang.Boolean">

Second suggestion will be to use checkboxes in both list and view templates, too.

Should I put this in Jira?
Seam or Hibernate Tools?
One issue for edit and one for view/list?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002692#4002692

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002692



More information about the jboss-user mailing list