mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Output path pattern help added to Create Website wizard (Configure Form Templates and Web Form Details pages)
- help cursor mouse over added to help icon - incorrect alt text removed - renamed output path pattern help jsp page to standard naming convention . Found that all "Required Field" images in our JSPs with ALT text were not I18N - find-and-replaced all occurances with an I18Ned message . Some more WCM UI improvements/fixes . Fix up of 3rd Party Eclipse project after xalan library changes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4780 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -108,6 +108,9 @@ public class AVMBrowseBean implements IContextListener
|
||||
/** Current webapp context for actions and sandbox view */
|
||||
private String webapp;
|
||||
|
||||
/** List of top-level webapp directories for the current web project */
|
||||
private List<SelectItem> webapps;
|
||||
|
||||
/** Sandbox title message */
|
||||
private String sandboxTitle = null;
|
||||
|
||||
@@ -405,14 +408,26 @@ public class AVMBrowseBean implements IContextListener
|
||||
*/
|
||||
public List<SelectItem> getWebapps()
|
||||
{
|
||||
String path = AVMConstants.buildSandboxRootPath(getStagingStore());
|
||||
Map<String, AVMNodeDescriptor> folders = this.avmService.getDirectoryListing(-1, path);
|
||||
List<SelectItem> webapps = new ArrayList<SelectItem>(folders.size());
|
||||
for (AVMNodeDescriptor node : folders.values())
|
||||
if (this.webapps == null)
|
||||
{
|
||||
webapps.add(new SelectItem(node.getName(), node.getName()));
|
||||
String path = AVMConstants.buildSandboxRootPath(getStagingStore());
|
||||
Map<String, AVMNodeDescriptor> folders = this.avmService.getDirectoryListing(-1, path);
|
||||
List<SelectItem> webapps = new ArrayList<SelectItem>(folders.size());
|
||||
for (AVMNodeDescriptor node : folders.values())
|
||||
{
|
||||
webapps.add(new SelectItem(node.getName(), node.getName()));
|
||||
}
|
||||
this.webapps = webapps;
|
||||
}
|
||||
return webapps;
|
||||
return this.webapps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return count of the root webapps in the current web project
|
||||
*/
|
||||
public int getWebappsSize()
|
||||
{
|
||||
return getWebapps().size();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -478,6 +493,7 @@ public class AVMBrowseBean implements IContextListener
|
||||
// clear context when we are browsing a new website
|
||||
this.lastWebsiteId = this.navigator.getCurrentNodeId();
|
||||
this.webapp = null;
|
||||
this.webapps = null;
|
||||
this.webProject = null;
|
||||
}
|
||||
return this.navigator.getCurrentNode();
|
||||
@@ -987,6 +1003,9 @@ public class AVMBrowseBean implements IContextListener
|
||||
|
||||
this.files = null;
|
||||
this.folders = null;
|
||||
|
||||
// clear webapp listing as we may have returned from the Create Webapp dialog
|
||||
this.webapps = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user