Form Custom Tags and HTML 5 data-value Attribute

21 views
Skip to first unread message

brandon....@gmail.com

unread,
Mar 14, 2012, 4:23:39 PM3/14/12
to Mach-II for CFML
I am trying to use the HTML 5 data-value attribute with the form
custom tag library but when it renders the form field the data-value
attribute is not rendered. I tried putting the x namespace in front of
it but that renders the attribute data instead of data-value. I image
because of the "-". I even tried tweaking the tag library and adding
data-value to the setStandardAttributes method with no luck. We are
trying to get to alpha with this form today so any help would be huge!
Even if it is just a how-to on tweaking the baseTagBuilder. Thanks in
advance.

Brandon

Peter J. Farrell

unread,
Mar 14, 2012, 5:15:03 PM3/14/12
to mach-ii-for...@googlegroups.com
brandon....@gmail.com said the following on 03/14/2012 03:23 PM:
More than likely it's that the CFML engine doesn't like th "-" in the
attribute name. Which engine are you using?

You could use dataValue and in the setStandardAttributes convert that to
output "data-value".

What are the new HTML attributes exactly? I haven't had time to upgrade
the tag libs yet.

.pjf

--
Peter J. Farrell
OpenBD Steering Committee / Mach-II Lead Developer
pe...@mach-ii.com
p...@maestropublishing.com
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

brandon....@gmail.com

unread,
Mar 14, 2012, 6:05:00 PM3/14/12
to Mach-II for CFML
Thanks Peter I will give that a shot. I am using OpenBD 2 as my
engine. I am not sure of all the new tag attributes. I will talk to
our front end dev and see if I can get a list for you.

On Mar 14, 4:15 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote:
> brandon.culpep...@gmail.com said the following on 03/14/2012 03:23 PM:> I am trying to use the HTML 5 data-value attribute with the form
> p...@maestropublishing.comhttp://blog.maestropublishing.com
> Identi.ca / Twitter: @maestrofjp

brandon....@gmail.com

unread,
Mar 14, 2012, 6:46:51 PM3/14/12
to Mach-II for CFML
By the way, your suggestion of "You could use dataValue and in the
setStandardAttributes convert that to
output "data-value". " worked like a charm.

On Mar 14, 5:05 pm, "brandon.culpep...@gmail.com"
Reply all
Reply to author
Forward
0 new messages