[jbosstools-issues] [JBoss JIRA] (JBIDE-4903) CA should recognize the object type when using generics in rich:dataTable value
Max Rydahl Andersen (JIRA)
issues at jboss.org
Mon Jan 20 06:56:05 EST 2014
[ https://issues.jboss.org/browse/JBIDE-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen resolved JBIDE-4903.
----------------------------------------
Resolution: Out of Date
Thank you for reporting this issue but this issue have been resolved as out-of-date since it has not had any updates for the last 2+ years (730 days).
If you believe this issue is still relevant and important then please reopen the issue or create a new one mentioning/linking this jira for background information.
Thank you!
> CA should recognize the object type when using generics in rich:dataTable value
> -------------------------------------------------------------------------------
>
> Key: JBIDE-4903
> URL: https://issues.jboss.org/browse/JBIDE-4903
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: jsp/jsf/xml/html source editing
> Affects Versions: 3.1.0.M2
> Reporter: Julien Kronegg
> Assignee: Alexey Kazakov
> Priority: Minor
> Fix For: LATER
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> When having a rich:dataTable whose value is a List of objects (saying List<User>), the suggestion completion (aka CA) is done on the var attribute and works fine:
> <rich:dataTable value="#{myBean.userList}" var="_user">
> <rich:column>
> <h:outputText value="#{_user.name}" /> <!-- CA is done correctly on the name property -->
> </rich:column>
> </rich:dataTable>
> However, when having a generic List of objects, CA does not work.
> This occurs for example when converting a Set<User> to a List<User> to provide to the dataTable (due to JSF restrictions to work on List and not on Set) if the convert function uses generics:
> @Name("jsfUtils")
> public class JsfUtils {
> public <T> List<T> asList(Set<T> set) {
> return new ArrayList<T>(set);
> }
> }
> <rich:dataTable value="#{jsfUtils.asList(myBean.userSet)}" var="_user">
> <rich:column>
> <h:outputText value="#{_user.name}" /> <!-- CA does not work on the name property -->
> </rich:column>
> </rich:dataTable>
> It would be nice if the type <T> is recognized as <User> by transitivity.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list