atom feed216 messages in org.apache.wicket.usersRe: Free wicket from component hierar...
FromSent OnAttachments
Martin MakundiNov 4, 2010 1:13 pm 
7zark7Nov 4, 2010 1:54 pm 
Jonathan LockeNov 4, 2010 3:06 pm 
Martin MakundiNov 4, 2010 3:08 pm 
Martin MakundiNov 4, 2010 3:13 pm 
Jeremy ThomersonNov 4, 2010 9:56 pm 
Martin MakundiNov 4, 2010 10:59 pm 
Martin MakundiNov 4, 2010 11:46 pm 
Michał LetyńskiNov 5, 2010 12:52 am 
Martin MakundiNov 5, 2010 1:07 am 
Martin GrigorovNov 5, 2010 1:12 am 
Martin MakundiNov 5, 2010 1:15 am 
Martin GrigorovNov 5, 2010 1:20 am 
Marc Nuri San FélixNov 5, 2010 1:22 am 
Martin MakundiNov 5, 2010 1:28 am 
Martin MakundiNov 5, 2010 1:31 am 
Martin GrigorovNov 5, 2010 1:34 am 
Martin GrigorovNov 5, 2010 1:36 am 
Martin MakundiNov 5, 2010 1:37 am 
Martin MakundiNov 5, 2010 1:38 am 
Martin MakundiNov 5, 2010 1:40 am 
Leszek GawronNov 5, 2010 5:36 am 
James CarmanNov 5, 2010 5:39 am 
Martin MakundiNov 5, 2010 5:47 am 
Igor VaynbergNov 5, 2010 9:55 am 
Jeremy ThomersonNov 5, 2010 10:00 am 
Martin MakundiNov 5, 2010 10:23 am 
Igor VaynbergNov 5, 2010 11:19 am 
Martin MakundiNov 5, 2010 11:39 am 
Eelco HilleniusNov 5, 2010 11:49 am 
Eelco HilleniusNov 5, 2010 11:56 am 
Martin MakundiNov 5, 2010 11:58 am 
Martin MakundiNov 5, 2010 12:00 pm 
Eelco HilleniusNov 5, 2010 12:15 pm 
Igor VaynbergNov 5, 2010 12:55 pm 
Brian ToppingNov 5, 2010 12:56 pm 
Martin MakundiNov 5, 2010 1:06 pm 
Martin MakundiNov 5, 2010 1:14 pm 
Igor VaynbergNov 5, 2010 1:21 pm 
Brian ToppingNov 5, 2010 1:32 pm 
Martin MakundiNov 5, 2010 10:05 pm 
Martin MakundiNov 5, 2010 10:07 pm 
Jeremy ThomersonNov 5, 2010 10:48 pm 
Martin MakundiNov 5, 2010 11:31 pm 
Igor VaynbergNov 5, 2010 11:53 pm 
Martin MakundiNov 5, 2010 11:57 pm 
James CarmanNov 6, 2010 5:12 am 
Martin MakundiNov 6, 2010 5:20 am 
Jeremy ThomersonNov 6, 2010 6:22 am 
Martin MakundiNov 6, 2010 6:43 am 
samketNov 6, 2010 6:54 am 
Igor VaynbergNov 6, 2010 4:44 pm 
SebastianNov 8, 2010 8:17 am 
Vitaly TsaplinNov 8, 2010 8:23 am 
Igor VaynbergNov 8, 2010 8:27 am 
Martin MakundiNov 8, 2010 8:29 am 
Igor VaynbergNov 8, 2010 8:35 am 
Vitaly TsaplinNov 8, 2010 8:35 am 
Martin MakundiNov 8, 2010 8:42 am 
SebastianNov 8, 2010 8:51 am 
Martin MakundiNov 8, 2010 8:58 am 
Igor VaynbergNov 8, 2010 8:58 am 
Igor VaynbergNov 8, 2010 9:03 am 
SebastianNov 8, 2010 9:07 am 
Martin MakundiNov 8, 2010 9:13 am 
Omid MilaniNov 8, 2010 9:31 am 
Igor VaynbergNov 8, 2010 9:32 am 
Rodolfo HansenNov 8, 2010 10:01 am 
Eelco HilleniusNov 8, 2010 10:22 pm 
Martin MakundiNov 8, 2010 10:39 pm 
Martin MakundiNov 8, 2010 10:40 pm 
Carl-Eric MenzelNov 9, 2010 12:15 am 
Martin MakundiNov 9, 2010 12:19 am 
Martin MakundiNov 9, 2010 12:23 am 
Carl-Eric MenzelNov 9, 2010 12:41 am 
Carl-Eric MenzelNov 9, 2010 12:44 am 
Martin MakundiNov 9, 2010 1:01 am 
139 later messages
Subject:Re: Free wicket from component hierarchy hell
From:Martin Makundi (mart@koodaripalvelut.com)
Date:Nov 5, 2010 10:23:46 am
List:org.apache.wicket.users

Hi!

what bothers me about this is that it wont work for everything. for example, it wont work for repeaters: these are just the two that come up off the top of my head.

What do you mean? Repeaters have unique index, it's not a duplicate.

public ListItem(final int index, final IModel<T> model) { super(Integer.toString(index).intern(), model); this.index = index; }

such helpers will no longer be possible because we have forced the panel to have unique wicket ids

The developer can choose: using unique wicket:ids or traditional ones.

what has always attracted me to wicket is its consistency. once you learn how to add components you can use the same method for all usecases and it works. it seems like this would take away from that.

It is consistent yes, but also redundant.

Keeping the two hierarchies in sync is not really that difficult. I just really don't see the benefit in this. I've taught tons of people Wicket, and keeping the hierarchy in sync is hardly ever the thing that makes it difficult for people to learn or use.

It is not about being difficult, it's all about being efficient. Redundancy is waste. Waste is bad. "Intentional waste" is even worse. So let's lean it out ;]

** Martin

On Thu, Nov 4, 2010 at 1:13 PM, Martin Makundi <mart@koodaripalvelut.com> wrote:

I propose "Free Wicket" from component-hierarchy hell

We have discussd before that Wicket has unnecessary binding to wicket:id and component hierarchy [http://www.mail-archive.com/users@wicket.a@].

I think I found a simple solution: "wicket:id" should be allowed to be on any level within given Panel-type element. User has freedom to position components and change html layout.

What you think?

Old wicket applications can be automatically refectored to have unique ids. Currently the wicket hardcoded component hierarchy slows down development and is totally unnecessary.

https://cwiki.apache.org/confluence/display/WICKET/Wicket+1.5+Wish+List

** Martin