File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
I agree. Here's the link:
subject: tag attributes shortcut
headache with validation framework
Cannot retrieve mapping for action /content/AddLinks
When Validation Error I Lose My Bean Value-Struts 2
nbsp in .xsl?
Linebreak in HTML/CSS within a table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013