[richfaces-issues] [JBoss JIRA] Updated: (RF-2417) orderingList:

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu Mar 6 11:05:58 EST 2008


     [ http://jira.jboss.com/jira/browse/RF-2417?page=all ]

Nick Belaevski updated RF-2417:
-------------------------------

    Affects:   (was: [Documentation (Ref Guide, User Guide, etc.)])

> orderingList:
> -------------
>
>                 Key: RF-2417
>                 URL: http://jira.jboss.com/jira/browse/RF-2417
>             Project: RichFaces
>          Issue Type: Bug
>          Components: doc
>    Affects Versions: 3.1.4
>         Environment: windowxp, jdk 1.5.0_14,tomcat 5.5.25,eclipse3.3
>            Reporter: jessie
>         Assigned To: Anton Belevich
>             Fix For: 3.2.0
>
>   Original Estimate: 2 days
>  Remaining Estimate: 2 days
>
> when submit form,it's wrong:
> Exception setting property fileListSelected of base with class TaskBean
> TaskBean is a managed bean,
> public class TaskBean {
> ...............
> private ArrayList<TaskAttachFile> fileList = new ArrayList<TaskAttachFile>();
> private ArrayList<TaskAttachFile> fileListSelected = new ArrayList<TaskAttachFile>();
> /**
>      * @return the fileList
>      */
>     public ArrayList<TaskAttachFile> getFileList() {       
>         
>         if (fileList.isEmpty()) {
>             for (int i = 0; i < 10; i++) {
>                 TaskAttachFile file = new TaskAttachFile();
>                 file.setFileType("doc");
>                 file.setIconPath(fileTypeIcon.fileIconRelations.get("doc").toString());
>                 file.setName("doc document " + i);
>                 fileList.add(file);
>             }
>         }
>         return fileList;
>     }
>     /**
>      * @param fileList
>      *            the fileList to set
>      */
>     public void setFileList(ArrayList<TaskAttachFile> fileList) {
>         this.fileList = fileList;
>     }
>     /**
>      * @return the fileListSelected
>      */
>     public ArrayList<TaskAttachFile> getFileListSelected() {
>         return fileListSelected;
>     }
>     /**
>      * @param fileListSelected
>      *            the fileListSelected to set
>      */
>     public void setFileListSelected(ArrayList<TaskAttachFile> fileListSelected) {
>         this.fileListSelected = fileListSelected;
>     }
> .....
> }
> jsp source:
> <h:form>
> 		<rich:orderingList id="orderList_jessie" orderControlsVisible="true"
> 			var="localFile" fastOrderControlsVisible="true"
> 			selection="#{taskBean.fileListSelected}" value="#{taskBean.fileList}"
> 			listWidth="250px" listHeight="260px" converter="AttachFileConverter">
> 			<rich:column>
> 				<h:graphicImage value="#{localFile.iconPath}"></h:graphicImage>
> 				<h:outputText value="#{localFile.name}" style="font-size:13px;"></h:outputText>
> 			</rich:column>
> 		</rich:orderingList>
> 		
> 		<h:commandButton action="#{taskBean.deleteLocalFile}" value="Delete Selected Ones"></h:commandButton>
> 		<h:messages showDetail="true" showSummary="true"></h:messages>
> 	</h:form>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list