Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{composition-setup}{composition-setup}

Feel free to play here!

Testing...

In your java:

ttttt

Wiki Markup
{toggle-cloak:id=Cloaked Content}

Cloaked Content

teeest

Wiki Markup
{cloak:id=Cloaked Content}

This section will be cloaked until it is toggled.

Wiki Markup
{cloak}
Code Block

  import wicket.markup.html.WebComponent;
  import wicket.model.IModel;
  import wicket.model.Model;
  import wicket.AttributeModifier;
  import wicket.Component;
  
  ...
  
  WebComponent c = new WebComponent( "mycss" );
  IModel model = new Model()
  {
      public Object getObject( Component c )
      {
          if ( someConditionIsTrue )
              return "stylesheetx.css";
          else
              return "stylesheety.css";
      }
  };
  c.add( new AttributeModifier( "href", model ) );
  add( c );