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
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Joined: Jan 06, 2009
Feb 02, 2010 09:52:38
In my jsp I have the following:
<h:messages id="detailError" styleClass="priority" showDetail="true" globalOnly="false" layout="list"/>
var arr = new Array();
arr = document.getElementsByName('form1:detailError');
alert("total # of objects = " + arr.length);
What am I missing?
Joined: Sep 11, 2006
Feb 05, 2010 20:36:05
You probably need to get the *children* of the element. Those will be the elements of the list. What does your firebug (or similar) tell you?
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
arrays and for each
button inside a h;messages
h:messages have been queued
Selecting a particular row in <table> tag used.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013