Codota Logo
StaticHtmlMetawidget
Code IndexAdd Codota to your IDE (free)

How to use
StaticHtmlMetawidget
in
org.metawidget.statically.faces.component.html

Best Java code snippets using org.metawidget.statically.faces.component.html.StaticHtmlMetawidget (Showing top 14 results out of 315)

  • Common ways to obtain StaticHtmlMetawidget
private void myMethod () {
StaticHtmlMetawidget s =
  • Codota Iconnew StaticHtmlMetawidget()
  • Smart code suggestions by Codota
}
origin: org.jboss.forge/forge-scaffold-faces

private void resetMetaWidgets()
{
 ForgeConfigReader configReader = new ForgeConfigReader(this.config, this.project);
 this.entityMetawidget = new StaticHtmlMetawidget();
 this.entityMetawidget.setConfigReader(configReader);
 this.entityMetawidget.setConfig("scaffold/faces/metawidget-entity.xml");
 this.searchMetawidget = new StaticHtmlMetawidget();
 this.searchMetawidget.setConfigReader(configReader);
 this.searchMetawidget.setConfig("scaffold/faces/metawidget-search.xml");
 this.beanMetawidget = new StaticHtmlMetawidget();
 this.beanMetawidget.setConfigReader(configReader);
 this.beanMetawidget.setConfig("scaffold/faces/metawidget-bean.xml");
 this.qbeMetawidget = new StaticJavaMetawidget();
 this.qbeMetawidget.setConfigReader(configReader);
 this.qbeMetawidget.setConfig("scaffold/faces/metawidget-qbe.xml");
 
 this.rmEntityMetawidget = new StaticJavaMetawidget();
 this.rmEntityMetawidget.setConfigReader(configReader);
 this.rmEntityMetawidget.setConfig("scaffold/faces/metawidget-remove-entity.xml");
}
origin: org.metawidget.modules/metawidget-all

/**
 * Overridden to carry CSS style attributes into the nested Metawidget.
 */
@Override
public void initNestedMetawidget( StaticMetawidget nestedMetawidget, Map<String, String> attributes ) {
  super.initNestedMetawidget( nestedMetawidget, attributes );
  StaticHtmlMetawidget htmlMetawidget = (StaticHtmlMetawidget) nestedMetawidget;
  // Attributes
  htmlMetawidget.setStyle( mStyle );
  htmlMetawidget.setStyleClass( mStyleClass );
}
origin: org.jboss.forge.addon/scaffold-faces

/**
* Writes the entity Metawidget and its namespaces into the given context.
*/
protected void writeEntityMetawidget(final Map<Object, Object> context, final int entityMetawidgetIndent,
    final Map<String, String> existingNamespaces)
{
 StringWriter stringWriter = new StringWriter();
 this.entityMetawidget.write(stringWriter, entityMetawidgetIndent);
 context.put("metawidget", stringWriter.toString().trim());
 Map<String, String> namespaces = this.entityMetawidget.getNamespaces();
 namespaces.keySet().removeAll(existingNamespaces.keySet());
 context.put("metawidgetNamespaces", namespacesToString(namespaces));
}
origin: org.jboss.forge.addon/scaffold-faces

     + StringUtils.SEPARATOR_DOT_CHAR
     + StringUtils.decapitalize(columnAttributes.get(NAME));
output.setValue(StaticFacesUtils.wrapExpression(displayExpression));
output.setValue(StaticFacesUtils.wrapExpression(valueExpression));
  StaticHtmlMetawidget footerMetawidget = new StaticHtmlMetawidget();
  Map<String, String> footerAttributes = CollectionUtils.newHashMap();
  metawidget.initNestedMetawidget(footerMetawidget, footerAttributes);
  footerMetawidget.removeWidgetProcessor(footerMetawidget
      .getWidgetProcessor(RequiredAttributeProcessor.class));
  footerMetawidget.setValue(StaticFacesUtils.wrapExpression(controllerName + "Bean.add." + columnName));
  footerMetawidget.setPath(componentType + StringUtils.SEPARATOR_FORWARD_SLASH_CHAR + columnName);
  footerMetawidget.setLayout(new SimpleLayout());
  message.putAttribute("for", footerMetawidget.getAttribute("id"));
  message.putAttribute("styleClass", "error");
  footerFacet.getChildren().add(message);
origin: org.jboss.forge.addon/scaffold-faces

this.entityMetawidget.setValue(StaticFacesUtils.wrapExpression(beanName + "." + ccEntity));
this.entityMetawidget.setPath(entity.getQualifiedName());
this.entityMetawidget.setReadOnly(false);
this.entityMetawidget.setStyle(null);
this.entityMetawidget.setReadOnly(true);
writeEntityMetawidget(context, this.viewTemplateEntityMetawidgetIndent, this.viewTemplateNamespaces);
this.searchMetawidget.setValue(StaticFacesUtils.wrapExpression(beanName + ".example"));
this.searchMetawidget.setPath(entity.getQualifiedName());
this.beanMetawidget.setValue(StaticFacesUtils.wrapExpression(beanName + ".pageItems"));
this.beanMetawidget.setPath(viewBean.getQualifiedName() + "/pageItems");
writeSearchAndBeanMetawidget(context, this.searchTemplateSearchMetawidgetIndent,
    this.searchTemplateBeanMetawidgetIndent, this.searchTemplateNamespaces);
origin: org.metawidget.modules/metawidget-all

columnContents = new StaticHtmlMetawidget();
String valueExpression = dataTable.getAttribute( "var" ) + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize( columnAttributes.get( NAME ) );
columnContents.putAttribute( "value", StaticFacesUtils.wrapExpression( valueExpression ) );
columnMetawidget.setPath( WidgetBuilderUtils.getComponentType( tableAttributes ) + StringUtils.SEPARATOR_FORWARD_SLASH_CHAR + columnAttributes.get( NAME ) );
metawidget.initNestedMetawidget( columnMetawidget, columnAttributes );
columnMetawidget.setLayout( new SimpleLayout() );
columnMetawidget.setReadOnly( true );
origin: org.jboss.forge.addon/scaffold-faces

StaticHtmlMetawidget nestedMetawidget = new StaticHtmlMetawidget();
metawidget.initNestedMetawidget(nestedMetawidget, attributes);
String unwrappedExpression = StaticFacesUtils.unwrapExpression(nestedMetawidget.getValue());
nestedMetawidget.putAttribute("rendered",
     StaticFacesUtils.wrapExpression("!empty " + unwrappedExpression));
origin: org.jboss.forge/forge-scaffold-faces

     + StringUtils.decapitalize(columnAttributes.get(NAME)) + ")";
((BaseStaticXmlWidget) link).putAdditionalNamespaceURI("forgeview", "http://jboss.org/forge/view");
output.setValue(StaticFacesUtils.wrapExpression(displayExpression));
output.setValue(StaticFacesUtils.wrapExpression(valueExpression));
  StaticHtmlMetawidget footerMetawidget = new StaticHtmlMetawidget();
  Map<String, String> footerAttributes = CollectionUtils.newHashMap();
  metawidget.initNestedMetawidget(footerMetawidget, footerAttributes);
  footerMetawidget.removeWidgetProcessor(footerMetawidget
      .getWidgetProcessor(RequiredAttributeProcessor.class));
  footerMetawidget.setValue(StaticFacesUtils.wrapExpression(controllerName + "Bean.add." + columnName));
  footerMetawidget.setPath(componentType + StringUtils.SEPARATOR_FORWARD_SLASH_CHAR + columnName);
  footerMetawidget.setLayout(new SimpleLayout());
  message.putAttribute("for", footerMetawidget.getAttribute("id"));
  message.putAttribute("styleClass", "error");
  footerFacet.getChildren().add(message);
origin: org.jboss.forge/forge-scaffold-faces

this.entityMetawidget.setValue(StaticFacesUtils.wrapExpression(beanName + "." + ccEntity));
this.entityMetawidget.setPath(entity.getQualifiedName());
this.entityMetawidget.setReadOnly(false);
this.entityMetawidget.setStyle(null);
this.entityMetawidget.setReadOnly(true);
writeEntityMetawidget(context, this.viewTemplateEntityMetawidgetIndent, this.viewTemplateNamespaces);
this.searchMetawidget.setValue(StaticFacesUtils.wrapExpression(beanName + ".example"));
this.searchMetawidget.setPath(entity.getQualifiedName());
this.beanMetawidget.setValue(StaticFacesUtils.wrapExpression(beanName + ".pageItems"));
this.beanMetawidget.setPath(viewBean.getQualifiedName() + "/pageItems");
writeSearchAndBeanMetawidget(context, this.searchTemplateSearchMetawidgetIndent,
    this.searchTemplateBeanMetawidgetIndent, this.searchTemplateNamespaces);
origin: org.jboss.forge/forge-scaffold-faces

StaticHtmlMetawidget nestedMetawidget = new StaticHtmlMetawidget();
metawidget.initNestedMetawidget(nestedMetawidget, attributes);
String unwrappedExpression = StaticFacesUtils.unwrapExpression(nestedMetawidget.getValue());
nestedMetawidget.putAttribute("rendered",
     StaticFacesUtils.wrapExpression("!empty " + unwrappedExpression));
origin: org.jboss.forge.addon/scaffold-faces

private void resetMetaWidgets()
{
 ForgeConfigReader configReader = new ForgeConfigReader(getConfig(), this.project);
 this.entityMetawidget = new StaticHtmlMetawidget();
 this.entityMetawidget.setConfigReader(configReader);
 this.entityMetawidget.setConfig(SCAFFOLD_META_WIDGET_ENTITY);
 this.searchMetawidget = new StaticHtmlMetawidget();
 this.searchMetawidget.setConfigReader(configReader);
 this.searchMetawidget.setConfig(SCAFFOLD_META_WIDGET_SEARCH);
 this.beanMetawidget = new StaticHtmlMetawidget();
 this.beanMetawidget.setConfigReader(configReader);
 this.beanMetawidget.setConfig(SCAFFOLD_META_WIDGET_BEAN);
 this.qbeMetawidget = new StaticJavaMetawidget();
 this.qbeMetawidget.setConfigReader(configReader);
 this.qbeMetawidget.setConfig(SCAFFOLD_META_WIDGET_QBE);
 this.rmEntityMetawidget = new StaticJavaMetawidget();
 this.rmEntityMetawidget.setConfigReader(configReader);
 this.rmEntityMetawidget.setConfig(SCAFFOLD_META_WIDGET_REMOVE_ENTITY);
}
origin: org.jboss.forge/forge-scaffold-faces

/**
* Writes the entity Metawidget and its namespaces into the given context.
*/
protected void writeEntityMetawidget(final Map<Object, Object> context, final int entityMetawidgetIndent,
    final Map<String, String> existingNamespaces)
{
 StringWriter stringWriter = new StringWriter();
 this.entityMetawidget.write(stringWriter, entityMetawidgetIndent);
 context.put("metawidget", stringWriter.toString().trim());
 Map<String, String> namespaces = this.entityMetawidget.getNamespaces();
 namespaces.keySet().removeAll(existingNamespaces.keySet());
 context.put("metawidgetNamespaces", namespacesToString(namespaces));
}
origin: org.jboss.forge.addon/scaffold-faces

/**
* Writes the search Metawidget, the bean Metawidget and their namespaces into the given context.
*/
protected void writeSearchAndBeanMetawidget(final Map<Object, Object> context, final int searchMetawidgetIndent,
    final int beanMetawidgetIndent,
    final Map<String, String> existingNamespaces)
{
 StringWriter stringWriter = new StringWriter();
 this.searchMetawidget.write(stringWriter, searchMetawidgetIndent);
 context.put("searchMetawidget", stringWriter.toString().trim());
 stringWriter = new StringWriter();
 this.beanMetawidget.write(stringWriter, beanMetawidgetIndent);
 context.put("beanMetawidget", stringWriter.toString().trim());
 Map<String, String> namespaces = this.searchMetawidget.getNamespaces();
 namespaces.putAll(this.beanMetawidget.getNamespaces());
 namespaces.keySet().removeAll(existingNamespaces.keySet());
 context.put("metawidgetNamespaces", namespacesToString(namespaces));
}
origin: org.jboss.forge/forge-scaffold-faces

/**
* Writes the search Metawidget, the bean Metawidget and their namespaces into the given context.
*/
protected void writeSearchAndBeanMetawidget(final Map<Object, Object> context, final int searchMetawidgetIndent,
    final int beanMetawidgetIndent,
    final Map<String, String> existingNamespaces)
{
 StringWriter stringWriter = new StringWriter();
 this.searchMetawidget.write(stringWriter, searchMetawidgetIndent);
 context.put("searchMetawidget", stringWriter.toString().trim());
 stringWriter = new StringWriter();
 this.beanMetawidget.write(stringWriter, beanMetawidgetIndent);
 context.put("beanMetawidget", stringWriter.toString().trim());
 Map<String, String> namespaces = this.searchMetawidget.getNamespaces();
 namespaces.putAll(this.beanMetawidget.getNamespaces());
 namespaces.keySet().removeAll(existingNamespaces.keySet());
 context.put("metawidgetNamespaces", namespacesToString(namespaces));
}
org.metawidget.statically.faces.component.htmlStaticHtmlMetawidget

Javadoc

Static Metawidget for Java Server Faces environments.

Most used methods

  • <init>
  • setLayout
  • setPath
  • setReadOnly
  • setStyle
  • getAttribute
  • getNamespaces
  • getValue
  • getWidgetProcessor
  • putAttribute
  • removeWidgetProcessor
  • setConfig
  • removeWidgetProcessor,
  • setConfig,
  • setConfigReader,
  • setValue,
  • write,
  • getStyle,
  • getStyleClass,
  • getWidgetBuilder,
  • setStyleClass,
  • setWidgetBuilder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now