On Mon, 27 Apr 2015 12:04:48 -0300, Davide Vecchi <d...@amc.dk> wrote:

Hi everybody,

Hi!

Now I'm wondering if there is some similar mechanism in Tapestry that can be used not only for grids but also for other components, f.ex. a normal TextField not inside a grid.

Not out-of-the-box.

In other words I would like that f.ex. text fields outside any grid could display and edit like the grid cells of the columns that I have annotated with @DataType .

You can try doing something with ComponentOverride, a service introduced in 5.4, which will replace every usage of a component with another one. It's not documented yet, but you contribute overrides to it:

public static void contributeComponentOverride(MappedConfiguration<Class,Class> config) {
        config.add(TextField.class, YourTextField.class);
}


If you want to see the history of it plus learn a bit more about Java (seriously, the Tapestry team actually did learn while implementing and discussing this feature), you can read this ticket: https://issues.apache.org/jira/browse/TAP5-1611.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to