Since this looks like it's contained to logic in one or two components
it's probably a debate that could be had at a later time, but just in
case it doesn't come up again soon before T5 starts gaining more
traction I'll throw in a more complete set of thoughts..
-) Generally speaking, if / else if / else would of course be very
good things to support.
-) This looks comparable to the argument for allowing components to
specify default bindings for the sake of more intuitive / easy to
write/remember template syntax. If we can agree that from a "template
developer" point of view (someone who may or may not know how
components work underneath the covers) this is clearer / easier to
understand:
<t:comp type="If" test="loggedIn">
Welcome to the show, ${userName}!
</t:comp><t:comp type="Else" >
Click <a t:type="ActionLink" t:id="login">here</a> to log in.
</t:comp>
then the basic argument is at least agreed upon ? (the rest assumes
that this statement is true)
-) If I had to choose between making something harder for a component
developer vs template writer (two fictitious people, don't want to
sound like the ejb spec stating "deployer/developer/etc" roles ;) )
I'd go with making it harder for the component developer.
-) If no other argument works, then thinking about how easy the
proposed logic will be for the mass conversion of velocity / jsp users
we are expecting/hoping for should have some weight in the argument.
(though of course this shouldn't normally be the case I guess ..)
These systems support a similar syntax to that of the current <= T4 if
/ else components.
Besides maybe the Table component I think the current T4 If/Else/For
components are probably some of the more complicated "under the hood"
components Tapestry has, but they also do a good job being fairly
intuitive most of the time.
just my 2 cents, don't want to distract you from the bigger picture /
larger goals ..
On 1/14/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
There's been a proposal to add a "then" parameter as well, thus:
<t:comp type='If" test="loggedIn">
<t:parameter name="then">
Welcome to the show, ${userName}!
</t:parameter>
<t:parameter name="else">
Click <a t:type="ActionLink" t:id="login">here</a> to log in.
</t:parameter>
</t:comp>
<snipped>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]