A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
tag attributes shortcut
Joined: Feb 15, 2003
Oct 30, 2003 13:20:00
Is there a way to do some kind of shortcut attribute passing? Let me give you an HTML example:
<TD nowrap>nowrap must be some kind of implicit attribute.</TD>
So if I wanted to pass along a boolean value in this way, is it possible?
<my :-P anel minimizable="true" />
could I do
<my :-P anel minimizable/>
Author and ninkuma
Joined: Jan 10, 2002
Oct 30, 2003 13:27:00
custom tags must follow strict XML rules. That means no "shortcuts".
In fact, in xhtml your td tag would need to be written as <td nowrap="true">. I code this way for completeness even when coding the page as HTML4.
Asking smart questions
Books by Bear
It is sorta covered in the
JavaRanch Style Guide
subject: tag attributes shortcut
headache with validation framework
Linebreak in HTML/CSS within a table
nbsp in .xsl?
When Validation Error I Lose My Bean Value-Struts 2
Cannot retrieve mapping for action /content/AddLinks
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014