Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #4982
| Date | 2011-06-04 18:49 +0200 |
|---|---|
| From | Elegie <elegie@invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JSF feeds a Set<String> into a Set<Foo> |
| References | <4de7e53a$0$21180$426a34cc@news.free.fr> <isdg7s$npv$1@dont-email.me> |
| Message-ID | <4dea6201$0$3948$426a74cc@news.free.fr> (permalink) |
| Organization | Guest of ProXad - France |
Le 04/06/2011 16:42, Stanimir Stamenkov a écrit :
Hi,
> You're missing the generics type erasure [1]. JSF doesn't have the
> generics type information at run time.
Ah, I see. I did not know about generics type erasure at all, so that
explains it.
> A related (but not the same)
> issue [2] has been brought to the JSF Dev mailing list.
I have also submitted the case as a minor bug to the Java.Net
repository, this morning. I wish I had waited for your explanation
before submitting it, though - making a fool of myself, again... I'll
update the entry with a comment.
> To resolve the issue you could attach converter to your input component
> explicitly, e.g.:
>
> <h:selectManyCheckbox
> value="#{testCase.foos}"
> converter="#{...}">
> ...
> </h:selectManyCheckbox>
This looks like a fine approach, I will investigate it and try to work
it out properly in my design.
Thank you for all your explanations and suggestions!
Kind regards,
Elegie.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
JSF feeds a Set<String> into a Set<Foo> Elegie <elegie@invalid> - 2011-06-02 21:32 +0200
Re: JSF feeds a Set<String> into a Set<Foo> Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-04 17:42 +0300
Re: JSF feeds a Set<String> into a Set<Foo> Elegie <elegie@invalid> - 2011-06-04 18:49 +0200
csiph-web