예제 #1
0
 public String safeElementID() {
   String id = (String) valueForBinding("id");
   if (id == null) {
     return ERXWOContext.safeIdentifierName(context(), false);
   }
   return id;
 }
 @Override
 public Object fireNow(D2WContext c) {
   WOComponent component = ERXWOContext.currentContext().component();
   D2WPage currentPage = ERD2WUtilities.enclosingComponentOfClass(component, D2WPage.class);
   if (ERD2WUtilities.enclosingPageOfClass(currentPage, D2WPage.class) == null) {
     try {
       Class<?> clazz = Class.forName((String) value());
       return clazz.newInstance();
     } catch (Exception e) {
       throw NSForwardException._runtimeExceptionForThrowable(e);
     }
   }
   return null;
 }
예제 #3
0
 /** @return the value bound to id or an manufactured string if id is not bound */
 public String id() {
   return hasBinding("id")
       ? (String) valueForBinding("id")
       : ERXWOContext.safeIdentifierName(context(), false);
 }
 /**
  * Base unique identifier, used to create the other id's in the component
  *
  * @return String
  */
 public String id() {
   if (_id == null) {
     _id = stringValueForBinding("id", ERXWOContext.safeIdentifierName(this.context(), true));
   }
   return _id;
 }
예제 #5
0
 public String safeID(WOContext context) {
   return "mtTabbedPanel" + ERXWOContext.safeIdentifierName(context, true);
 }