p:datalist problem with List<String>

UI Components for JSF
Post Reply
dark_prime
Posts: 46
Joined: 02 Dec 2010, 14:30

18 Mar 2011, 18:07

Code: Select all

<p:dataList value="#{taskController.selectedTask.keywords}"
								var="keyword" itemType="disc">  
   							 #{keyword}  
							</p:dataList>

							<h:outputLabel value="#{msgs.files}" />
							<div style="width: 50px;" />
							<p:dataList value="#{taskController.selectedTask.fileList}"
								var="file" itemType="disc">  
   							 #{file.name}, #{file.size} KB  
							</p:dataList>
Why does the first datalist not work ? keywords is of the type List<String>

fileList is a more complex object and it works perfectly

dark_prime
Posts: 46
Joined: 02 Dec 2010, 14:30

21 Mar 2011, 13:56

nobody ?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 40 guests