Hi

which issue do you get with the "proxy"? should work the same way a normal bean


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-15 14:43 GMT+01:00 Daniel Kasmeroglu <[email protected]>:
> Hi,
>
> I intend to make my beans available in a Freemarker Template which means
> that I have to implement a wrapper (TemplateHashModel) for this. Is
> there already something similar like a bean wrapper that is capable to
> deal with the proxied instance ?
> To clarify a small example:
>
> --begin Freemarker--
> Dear Mr. ${currentCustomer.callName}
> --end Freemarker
>
> In my app I got a bean 'CurrentCustomer':
>
> @Named @ManagedBean
> @Data @FieldDefaults(PRIVATE)
> public class CurrentCustomer {
>
>   String   callName = "Joe";
>
>   ...
>
> } /* ENDCLASS */
>
> In a Freemarker TemplateModel I can resolve 'currentCustomer' to a bean
> (CdiEjbBean). Is there some sort of BeanWrapper available for this proxy
> or is there any other solution to this ?
>
> Best regards
>
> Daniel Kasmeroglu

Reply via email to