Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.WicketTag


  public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
      final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag)tag;
      if (wtag.isMessageTag())
      {
        String messageKey = wtag.getAttributes().getString("key");
        if ((messageKey == null) || (messageKey.trim().length() == 0))
        {
          throw new MarkupException(
              "Wrong format of <wicket:message key='xxx'>: attribute 'key' is missing");
        }
View Full Code Here


    for (int i = 0; i < markup.size(); i++)
    {
      MarkupElement elem = markup.get(i);
      if (elem instanceof WicketTag)
      {
        WicketTag wtag = (WicketTag)elem;
        if (wtag.isExtendTag())
        {
          // Ok, inheritance is on and we must get the
          // inherited markup as well.
          return i;
        }
View Full Code Here

  public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
    final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag)tag;
      if (wtag.isMessageTag())
      {
        String messageKey = wtag.getAttributes().getString("key");
        if ((messageKey == null) || (messageKey.trim().length() == 0))
        {
          throw new MarkupException(
            "Wrong format of <wicket:message key='xxx'>: attribute 'key' is missing");
        }
View Full Code Here

  {
    // It must be <wicket:...>
    if (tag instanceof WicketTag)
    {
      // It must be <wicket:component...>
      final WicketTag wicketTag = (WicketTag)tag;
      if (wicketTag.isComponentTag())
      {
        // Create and initialize the component
        final Component component = createComponent(container, wicketTag);
        if (component != null)
        {
View Full Code Here

    {
      return false;
    }

    // And it must be <wicket:body>
    final WicketTag wtag = (WicketTag)tag;
    if (!wtag.isBodyTag())
    {
      return false;
    }

    body.render(markupStream);
View Full Code Here

  public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
    final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag)tag;
      if (wtag.isMessageTag())
      {
        String messageKey = wtag.getAttributes().getString("key");
        if ((messageKey == null) || (messageKey.trim().length() == 0))
        {
          throw new MarkupException(
            "Wrong format of <wicket:message key='xxx'>: attribute 'key' is missing");
        }
View Full Code Here

  {
    // It must be <wicket:...>
    if (tag instanceof WicketTag)
    {
      // It must be <wicket:component...>
      final WicketTag wicketTag = (WicketTag)tag;
      if (wicketTag.isComponentTag())
      {
        // Create and initialize the component
        final Component component = createComponent(container, wicketTag);
        if (component != null)
        {
View Full Code Here

  public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
      final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag) tag;
      if (wtag.isLinkTag() && (wtag.getNamespace() != null))
      {
        final String id = "_link_" + container.getPage().getAutoIndex();
        final Component component = new WebMarkupContainer(id)
          {
            private static final long serialVersionUID = 1L;
View Full Code Here

  public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
      final ComponentTag tag)
  {
    if (tag instanceof WicketTag)
    {
      WicketTag wtag = (WicketTag)tag;
      if (wtag.isMessageTag())
      {
        String messageKey = wtag.getAttributes().getString("key");
        if ((messageKey == null) || (messageKey.trim().length() == 0))
        {
          throw new MarkupException(
              "Wrong format of <wicket:message key='xxx'>: attribute 'key' is missing");
        }
View Full Code Here

  {
    // It must be <wicket:...>
    if (tag instanceof WicketTag)
    {
      // It must be <wicket:component...>
      final WicketTag wicketTag = (WicketTag)tag;
      if (wicketTag.isComponentTag())
      {
        // Create and initialize the component
        final Component component = createComponent(container, wicketTag);
        if (component != null)
        {
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.WicketTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.