cancel
Showing results for 
Search instead for 
Did you mean: 

BrowseBean Outcome Error

p3d3r0s0
Champ in-the-making
Champ in-the-making
Hi, I'm trying to go to the details view of a new file/node i just created. I'm doing this:


         if(this.browseBean == null){
            this.browseBean =(BrowseBean) FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), "BrowseBean");
         }
         this.browseBean.setDocument(new Node(tempNodeRef));// nodeRef of the new file
         
         outcome = "dialog:showDocDetails";

My class extends from BaseDialogBean.
After returning my new outcome, i get an error:

javax.faces.FacesException: org.apache.jasper.JasperException: javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.repository.Node, property: downloadUrl
caused by:
org.apache.jasper.JasperException: org.apache.jasper.JasperException: javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.repository.Node, property: downloadUrl
caused by:
org.apache.jasper.JasperException: javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.repository.Node, property: downloadUrl
caused by:
javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.repository.Node, property: downloadUrl

I dont understand where this error is coming from, because i can "see" the new file details if i access it after its created. I just can't access the details using the outcome method.
Can anyone help?
1 REPLY 1

p3d3r0s0
Champ in-the-making
Champ in-the-making
Found the problem, i didnt know that i had to set the Id from the created file, like this:


         this.browseBean.setDocument(new Node(tempNodeRef));
         this.browseBean.setupContentAction(tempNodeRef.getId(), true);

its working now.