tag:blogger.com,1999:blog-5396570633771229267.post40073202027909401..comments2024-03-03T14:43:52.399+01:00Comments on The BalusC Code: Using HTML in JSF messagesBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-5396570633771229267.post-36861818052030223422019-07-24T16:49:23.091+02:002019-07-24T16:49:23.091+02:00My hero!!! Worked like a charm!!!! Thanks a lot!My hero!!! Worked like a charm!!!! Thanks a lot!Ernandes Mourão Júniorhttps://www.blogger.com/profile/05269717786146137246noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-16017262365250425202019-04-03T22:38:41.564+02:002019-04-03T22:38:41.564+02:00Thanks, I worked without problems with the followi...Thanks, I worked without problems with the following JAR:<br />jsf-api-1.2_12.jar<br />jsf_facelets-1.1.15.B1.jar<br />jsf_impl-1.2_12.jar<br /><br />My faces-config:<br /><br /><br /><br /> <br /> com.sun.facelets.FaceletViewHandler<br /> <br /> es<br /> es<br /> <br /> <br /> <br /> cl.gov.subdere.seam.CustomPhaseListener<br /> <br /> <br /> <br /> Rodrigo Lagoshttps://www.blogger.com/profile/17986116870862904734noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-29472149350521085232017-10-23T05:37:23.729+02:002017-10-23T05:37:23.729+02:00Thank you, you save my day on this legacy issue wi...Thank you, you save my day on this legacy issue with JSF, Why people still using JSFAmila Silvahttps://www.blogger.com/profile/13833377939301789919noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-24816962413566529752016-08-27T13:41:20.110+02:002016-08-27T13:41:20.110+02:00Excellent Job. What if I want the message text, ic...Excellent Job. What if I want the message text, icon to appear from right to left. What changes are needed on the code? Thanks a lot.Osama Al-Haj Hassan Bloghttps://www.blogger.com/profile/17905961359023761239noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-73898001316816581222016-01-27T16:09:43.886+01:002016-01-27T16:09:43.886+01:00Hi, I know this is an old article, but I am still ...Hi, I know this is an old article, but I am still using JSF 1.2 (can't upgrade to 2.0 just yet). I followed the instructions to the letter, also removing the annotation, and I get the following server error :<br /><br />Unable to locate tag attribute info for tag attribute escape.<br /><br />Is there something else I need to set up?<br /><br />Thanks in advanceUplifthttps://www.blogger.com/profile/09344505459821351372noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-13238378584667558122015-06-25T10:09:25.305+02:002015-06-25T10:09:25.305+02:00Could somebody tell me how to import com.sun.faces...Could somebody tell me how to import com.sun.faces.renderkit.html_basic.MessagesRenderer? I use Websphere Application Server.Anonymoushttps://www.blogger.com/profile/10604849771813426356noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-29122749066691068332013-02-03T20:22:12.875+01:002013-02-03T20:22:12.875+01:00@Neil: indeed, that depends on the JSF implementat...@Neil: indeed, that depends on the JSF implementation you're currently using. The article also explicitly mentions "the standard JSF implementation", referring to Mojarra (com.sun.faces.*).BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-34745388790986840472013-02-03T16:31:56.659+01:002013-02-03T16:31:56.659+01:00Myfaces 2.1, HtmlMessageRendererBase, calls writer...Myfaces 2.1, HtmlMessageRendererBase, calls writer.writeText(detail, null);<br /><br />so you need to override writeText(text, property)<br /><br />not writeText(text, component, property) <br /><br />Regards,<br /><br />NeilAnonymoushttps://www.blogger.com/profile/02286770925842987914noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-31892914198023396892012-12-10T08:20:04.317+01:002012-12-10T08:20:04.317+01:00This is not working for me! I have added the class...This is not working for me! I have added the class, and changed faces-config.xml to look as follows:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br><br><faces-config<br> xmlns="http://java.sun.com/xml/ns/javaee"<br> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee Bernhardhttps://www.blogger.com/profile/17379737372691610017noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-86485807502264196332011-09-09T22:43:11.525+02:002011-09-09T22:43:11.525+02:00Just what I needed... Thanks man!Just what I needed... Thanks man!cogaritishttps://www.blogger.com/profile/15331054899884802125noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-2252634016911287442011-09-01T00:28:56.277+02:002011-09-01T00:28:56.277+02:00can i do the same for the rich:message? which pack...can i do the same for the rich:message? which package is it??Pablo Baronhttps://www.blogger.com/profile/11929381281470531606noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-11652568264813138632011-08-30T16:54:08.583+02:002011-08-30T16:54:08.583+02:00what problems can cuase this i read mcdowells post...what problems can cuase this i read mcdowells post and i got confused if its a good solution to apply or not, BalusC, can you please explain what might cause in my app if i use this class, cause i tried it for H:message, as u said i replaced it and it works perfectly but i want to know waht can happen..what messages can not be redisplayed???... thxPablo Baronhttps://www.blogger.com/profile/11929381281470531606noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-77467474248897014182011-03-04T10:45:33.901+01:002011-03-04T10:45:33.901+01:00thanks for saving me a lot of time with this neat ...thanks for saving me a lot of time with this neat solution.Majidhttps://www.blogger.com/profile/16290142828840240693noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-43620592830049731392011-02-20T06:00:14.340+01:002011-02-20T06:00:14.340+01:00I tried this, too, but the JSP compiler then fails...I tried this, too, but the JSP compiler then fails saying that the "escape" attribute is not valid for the h:messages tag. I suppose I need to hack the TLD, too? That seems a bit kludgy.Unknownhttps://www.blogger.com/profile/02926187288420863171noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-13677848859628945742010-11-24T07:41:36.810+01:002010-11-24T07:41:36.810+01:00good article tnx...good article tnx...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-24591889697047124802010-09-17T00:59:47.356+02:002010-09-17T00:59:47.356+02:00Right, as long as you don't redisplay user-con...Right, as long as you don't redisplay user-controlled input in messages, this is fine.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-87641965047262403102010-09-17T00:51:22.170+02:002010-09-17T00:51:22.170+02:00Doing this is probably unwise because of HTML/code...Doing this is probably unwise because of HTML/code injection issues - unless you exercise a strong degree of control over your application and its dependencies (including all 3rd party libraries and the JEE platform implementation). You don't know what data will be added to the message queue.<br /><br />If you replaced the h:message (no S) renderer instead, you'd be on safer ground Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-10406291064321341112010-08-23T17:42:16.922+02:002010-08-23T17:42:16.922+02:00Hello!
Can i translate some of your posts into Rus...Hello!<br />Can i translate some of your posts into Russian language? Sure with all needed copyrights. Please email me about this:<br />ahriman@tpu.ruahrimanhttps://www.blogger.com/profile/02249123009159439406noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-57210845660057570002010-07-30T14:58:13.067+02:002010-07-30T14:58:13.067+02:00Indeed. I also stumbled upon this question. Thx fo...Indeed. I also stumbled upon this question. Thx for this solution!Anonymoushttps://www.blogger.com/profile/00908780457284817499noreply@blogger.com