This content has been marked as final.
Show 2 replies
-
1. Re: Dynamic field size
sjmenden Sep 8, 2008 3:23 PM (in response to socken)So, you could get all fancy with this and write custom EL functions to look at the annotations on the field and such. Or, you could take the simple and preferable route, and add @Transient fields to your entity like so:
@Transient int firstnameFieldSize = 10;
@Transient int lastNameFieldSize = 20;
Then do something like:
<h:inputText value="#{personHome.instance.firstName}" size="#{personHome.instance.firstNameFieldSize}" />
Regards,
Samuel -
2. Re: Dynamic field size
socken Sep 8, 2008 3:37 PM (in response to socken)Thanks for the quick answer. The
@Transient-way
actually looks like a good solution to me! I'll try that, thanks!Cheers,
Patrick