jeraldmuthu 0 Newbie Poster
public List<SelectItem> getAnalysisList() throws ProjectContentServiceException {
selectItems1.clear();
  if (getTreeTable() != null && this.rootTreeNode != null) {
	  this.rootTreeNode.accept(new TreeNodeVisitor() {
	public void visit(TreeTableNode node) {
										                    TreeTableUserObject obj = node.getUserObject();
            
    if (obj.isLeaf()) {
             	List<String> aa = new ArrayList<String>();
                 	 Map<String, Object> attributes = obj.getAttributes();
                       if (attributes.containsKey("selected") && ((Boolean)attributes.get("selected")) == Boolean.TRUE) {
	lis = obj.getText();
    	TreeTableNode obj1 = node.getParent();
   	String path5=obj1.toString();
	String parentname=path5+"/"+lis;
	String path2 = parentt;
				            				          		String path3 = path1 + "/"+ path5;
				            							try {
												projectContext.createFolder1(path3);
		if(projectContentSvc.exists(path3))
			{
				String path4 = path1 + "/"+ path5 + "/" + lis;
				AnalysisBean ab = new AnalysisBean();
															ab.saveAnalysis();
														}
													} catch (ProjectContentServiceException e) {
														// TODO Auto-generated catch block
														e.printStackTrace();
													} catch (Exception e) {
														e.printStackTrace();
													}
				            						String ana = lis;
				            						Object o=parentname;
if(aa.contains(o))
				            						{
}
				            						else
				            						{
				                                      	aa.add(parentname);
				                    		            selectItems1.add(new SelectItem(aa));
				            					}
				                        	
				                        }
			                    }
							 }
		            });
					  
					 
				  }
				  
 System.out.println("selectItems1 userRole:"+selectItems1);
	 return selectItems1;
			  }

i have got the list of items in the selectItems1.

if i have added to this code

<ice:selectOneMenu value="#{sample.analysisList}" valueChangeListener="#{sample.ValueChange}" >
 
<f:selectItems id="listAnalysis_box" value="#{sample.analysisList}" partialSubmit="false"/>

</ice:selectOneMenu>

in this client side the selectOneMenu the user selected item wanted to get and display in <ice:outputText> </ice:outputText>

what i need to want to do please Help me...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.