More than likely it's because you are mixing pure html with JSF tags. JSF 1.1 and HTML don't play real nice together and when the component tree is built you can't guarantee that the JSF components will render in the appropriate place.
One common solution is to wrap non html code in f:verbatim tags though I don't much care for that. This is a nice taglib that you can use for all your non-jsf HTML components. I use this and it has worked quite well. Just a bit more typing. ;)
Joined: Jun 05, 2006
Dear Hank, Thanks for your reply so quickly~~ I soloved the problem, and htmlib is very easy to use~~~