随笔-311  评论-598  文章-0  trackbacks-0

最近搭配Richfaces用Ajax动态生成控件的HtmlMessage的时候,会报错,而且有点摸不着头脑。

后来看了下,问题原因在于没有给HtmlMessage控件设置ID,设置一下ID就可以了。

这里有个问题,为什么JSF没有给HtmlMessage控件动态生成ID呢?我怀疑是一个bug,为什么。。
因为如果我单纯的生成一个HtmlMessage实例,不设置任何属性,并动态的添加到页面中,没有任何错,但如果我设置了For属性,如果不设置HtmlMessage控件的ID,就会出错,大家试试就知道了。。很奇怪的一个问题。



---------------------------------------------------------
专注移动开发

Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2008-12-19 11:41 TiGERTiAN 阅读(2873) 评论(38)  编辑  收藏 所属分类: JavaJSF

评论:
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-02-19 17:07 | oil painting
谢谢  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-02-19 17:07 | painting
学习了  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-04-07 15:04 | oil painting
好 不错   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-06-07 10:31 | oil painting wholesale
good  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-07-19 00:01 | oil painting
不错哦  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-08-27 23:40 | <a href="http://www.wallartforless.com&quo
Sounds right.  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2009-08-27 23:41 | Cheap Wall Art and Decor
Not bad  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-01-06 20:58 | JessicamG
People think that it is essential to know about this topic. <a href=" http://www.gogetessays.com">Buy essays</a> at the essay writing service about this topic, because that’s really important article.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-01-13 21:09 | oil painting
终于找到了  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-02-24 16:44 | China Painting Wholesale
继续努力  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-02-24 16:46 | China LED Lights Factory
学习了  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-07-24 18:17 | business loans
Don't have enough cash to buy a house? Worry no more, just because this is available to take the mortgage loans to resolve such kind of problems. So get a college loan to buy everything you need.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-08-05 02:07 | resume writer

Thank you, it's very brilliant story about this post it might be very kind for students.
Recently i needed buy resume. To my awesome surprise, resume was deserving the price I paid for it.  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-08-10 13:17 | custom research paper
People are frequently asking about the good past time. I reply, why do not you pronounce the fine now days? I’ve have a lot of free time with term paper help, and can do anything what I want!   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-08-14 15:55 | custom thesis
People should make a selection 'tween buy dissertation service and thesis service to buy thesis report about this post.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-08-19 22:53 | course work writing
No matter how complicated is your coursework, just because you have to manage with it. Nonetheless, you can just order courseworks and take a rest.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-09-21 12:13 | free essays
I heard from college students, they were not be able to grapple with biographies essay paper. Nevertheless, is it hard to employ the great custom papers writing corporation to buy research paper at.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-09-27 17:28 | essay buy
Mostly, college students do not like the good essay composing, however they still have to present their essays writing technique! Hence, the narrative essay writing service will be a perfect helper for essays writing.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-10-14 17:51 | custom term papers
This kind of information is very limited on internet. Nice to find the post related to my searching criteria. Your updated and informative post will be appreciated by blog loving people.
  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-10-16 05:54 | custom writing service
Thanks for good info, very useful!  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-10-21 02:32 | essay writing services
Are willing to find someone who can confirm that expert essay writing service is trustworthy. So, I will state that you can rely on such type of firms.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2010-11-21 21:04 | custom essay papers
It is really clever option to purchase the argument essay writing about this good topic to know more fantastic article just about contacts.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2011-03-04 18:39 | security camera system
Its looking nice sharing..   回复  更多评论
  
# payday loan Alberta 2012-05-11 00:39 | payday loan Alberta
bfnueto http://paydayloansjjj.ca/ payday loan Alberta  回复  更多评论
  
# Cash Advance 2012-05-18 07:37 | Cash Advance
nwkqdg http://paydayloansef.ca/ Cash Advance  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2012-09-25 12:44 | premium essay writing service
On this site only some students will find superior thing referring to this good post. Thanks to you the good features of contacts used to be patent. We think that after it was not really hard to receaive well performed essay writing example from essay writing service.   回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2013-01-28 15:34 | oil painting
学习了!!!  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2013-03-29 00:24 | professional resume service
Go to Exclusive-resume company exclusiveresume.com if you are in need of professional resume writing service. After cooperating with this reliable writing centre, you will be aware of which service to choose for buying resume and where to look over samples of resume writing. Catch the moment, buy resume of excellent quality from professional resume writers.  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2013-03-29 00:24 | Resumes Expert company
Professional resume writers review will give you a hint where to buy resume paper in case you don’t have time to write a resume, simply visit Resumes expert company, view cover letter samples and our certified resume writers will happily provide you professional resume writing service. Buying resume with us is pretty easy, buy resumes now and stay confident about your future employment.  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2014-01-03 21:44 | http://www.optionsbinaireseu.com/
Thanks for everything!  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2014-03-08 20:10 | <a href="http://www.topoptioneu.com/"
Awesome website
  回复  更多评论
  
# re: JSF中动态生成HtmlMessage控件出错的解决办法 2014-03-08 20:11 | Topoption
# ankara escort 2014-12-03 20:12 | esc@hotmail.com
very nice very good  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: