Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.action
Class SiteActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.action.SiteActionsBean

@Name(value="siteActions")
@Scope(value=STATELESS)
public class SiteActionsBean
extends Object

Performs re-rendering of webcontainer layout widgets.

Author:
Anahide Tchertchian, rux added the site name validation

Constructor Summary
SiteActionsBean()
           
 
Method Summary
 void validateBlogTitle(FacesContext context, UIComponent component, Object value)
           
 void validateName(FacesContext context, UIComponent component, Object value)
          Validates the web container fields.
 void validateSiteTitle(FacesContext context, UIComponent component, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteActionsBean

public SiteActionsBean()
Method Detail

validateName

public void validateName(FacesContext context,
                         UIComponent component,
                         Object value)
Validates the web container fields. If the workspace is web container, it also needs to have name. The usual required JSF component can't be used, because it will block the validation no matter if the checkbox is set or not. As result, the widget validation is used. The both values need to be available in layout to be used.


validateSiteTitle

public void validateSiteTitle(FacesContext context,
                              UIComponent component,
                              Object value)

validateBlogTitle

public void validateBlogTitle(FacesContext context,
                              UIComponent component,
                              Object value)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.