Skip to content

Apache Tapestry – Component Classes (Annotated example)

This is pretty neat and is one of the reasons I started looking for a component based architecture. This snippet happens to be from Tapestry.

package org.example.app.pages;
import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.example.app.components.Count; 

public class Countdown {
    @Component(parameters = { "start=5", "end=1", "value=countValue" })
    private Count count; 

    @Property private int countValue;
}

via Apache Tapestry – Component Classes.

Related posts:

  1. InfoQ: Tapestry for Nonbelievers
  2. A look at Apache Wicket
  3. My look at Wicket has ended, bad news I’m afraid

Post a Comment

Your email is never published nor shared.