<div>¤³¤ì¤Ï¤â¤¦ÐÞÕý¤·¤Þ¤·¤¿¤«¡£¤·¤«¤·</div>
<div><br> </div>
<div><span class="q">ServletFacesContextImpl context = (ServletFacesContextImpl) FacesContext<br> .getCurrentInstance();<br></span> Field f;<br> try {<br> if (context != null) {<br>
f = context.getClass ().<font color="#ff0000"><strong>getDeclaredField</strong></font>("messages");<br> if (f != null) {<br> f.setAccessible(true);<br>
<strong><font color="#ff0000">List messages = (List) f.get(context);<br> if (messages != null) {<br> messages.clear();<br> }<br></font></strong> }
<br> }<br> } catch (SecurityException e) { <br> e.printStackTrace();<br> } catch (NoSuchFieldException e) {<br> e.printStackTrace();<br> } catch (IllegalArgumentException e) {
<br> e.printStackTrace();<br> } catch (IllegalAccessException e) { <br> e.printStackTrace();<br> }<br> }</div>
<div> </div>
<div><strong><font color="#ff0000">java.lang.IllegalStateException</font></strong><br> at org.seasar.teeda.core.context.servlet.ServletFacesContextImpl.getMessages(ServletFacesContextImpl.java:106)<br> at javax.faces.internal.FacesMessageUtil.hasMessagesByClientId
(FacesMessageUtil.java:337)<br> at org.seasar.teeda.extension.render.html.THtmlInputTextRenderer.colorErrorComponent(THtmlInputTextRenderer.java:63)<br> at org.seasar.teeda.extension.render.html.THtmlInputTextRenderer.renderStyleClass
(THtmlInputTextRenderer.java:53)<br> at org.seasar.teeda.core.render.html.HtmlInputTextRenderer.encodeHtmlInputTextEnd(HtmlInputTextRenderer.java:76)<br> at org.seasar.teeda.core.render.html.HtmlInputTextRenderer.encodeEnd
(HtmlInputTextRenderer.java:57)<br> at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:348)<br> at org.seasar.teeda.core.util.RendererUtil.renderChild(RendererUtil.java:327)<br> at org.seasar.teeda.core.util.RendererUtil.renderChildren
(RendererUtil.java:337)<br> at org.seasar.teeda.core.util.RendererUtil.renderChild(RendererUtil.java:325)<br> </div>
<p>¤É¤³¤¬égß`¤¤¤Þ¤¹¤«£¿</p>
<div><br> </div>
<div><span class="gmail_quote">2007/12/7, Toshihiro Nakamura <<a href="mailto:nakamura.toshihiro@isid.co.jp">nakamura.toshihiro@isid.co.jp</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Öдå(taedium)¤Ç¤¹¡£<br><br>> ¤·¤«¤·¡¢context.getClass().getField("messages") java.lang.NoSuchFieldException
:<br>> messages<br><br>¤¹¤ß¤Þ¤»¤ó¡£<br><br>context.getClass().getField("messages")<br><br>¤Ç¤Ï¤Ê¤¯<br><br>context.getClass().getDeclaredField("messages")<br><br>¤È¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤Ç¤¹¤Í¡£<br>--<br>Nakamura Toshihiro <<a href="mailto:nakamura.toshihiro@isid.co.jp">
nakamura.toshihiro@isid.co.jp</a>><br><br>_______________________________________________<br>Seasar-user mailing list<br><a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br><a href="https://ml.seasar.org/mailman/listinfo/seasar-user">
https://ml.seasar.org/mailman/listinfo/seasar-user</a><br></blockquote></div><br>