Check out http://svn.apache.org/repos/asf/myfaces/share/trunk/src/java/o rg/apache/myfaces/renderkit/html/HtmlTextRendererBase.java in renderInput(), line starting w/ <code>writer.writeAttribute (HTML.VALUE_ATTR </code>. HtmlTextRendererBase renders both inputText and outputText .
---- Original message ---- >Date: Thu, 13 Oct 2005 11:20:41 -0400 >From: Mike Kienenberger <[EMAIL PROTECTED]> >Subject: Re: overriding a built in Converter >To: MyFaces Discussion <[email protected]> > >I don't see what you're talking about. Nothing in renderInput looks >appropriate. > >Even if something could be changed there, it'd only affect conversion >during rendering for components using HtmlTextRenderer. > >The line that would need to be changed (again, only fixing a subset of >the problem) is > >_SharedRendererUtils.findUIOutputConverter > > if (String.class.equals(valueType)) return null; //No >converter needed for String type > > >On 10/12/05, Dennis Byrne <[EMAIL PROTECTED]> wrote: >> BTW, you can fix this by extending HtmlTextRendererBase, >> overriding renderInput(), and making a one line change. >> >> >> ---- Original message ---- >> >Date: Wed, 12 Oct 2005 13:06:38 -0400 >> >From: Mike Kienenberger <[EMAIL PROTECTED]> >> >Subject: Re: overriding a built in Converter >> >To: MyFaces Discussion <[email protected]> >> > >> >Unfortunately, String converters and Object converters >> aren't allowed >> >in the JSF-RI because of performance concerns, and MyFaces >> had to >> >follow this pattern to pass the TCK. >> > >> >I started some discussion about it on the JSF RI dev list, >> and, as I >> >said above, was told it was disallowed due to performance >> concerns. >> >Your best bet is to send an email to jsr-252- [EMAIL PROTECTED] >> >describing your use case and also ask for this feature. It >> might >> >happen in JSF 2.0. >> > >> >A past thread by me discussed the possibility of allowing >> this when >> >using a MyFaces configuration option and was encouraged by >> Craig >> >McClanahan, but the only committer to comment on it was >> Martin, and >> >while he thought it was a good idea, he didn't want it done >> as a >> >configurable option. Unfortunately, it would have failed >> the TCK, so >> >I didn't pursue it at the time. >> > >> >http://www.nabble.com/Myfaces-disallows-custom-String-% 28and- >> Object%29-converters--t207391.html#a586463 >> > >> >-Mike >> > >> >On 10/11/05, Dennis Byrne <[EMAIL PROTECTED]> wrote: >> >> I would like JSF to trim all Strings during the render >> >> phase. I have configured a converter with converter- for- >> >> class set to java.lang.String, but the controller appears >> to >> >> ignore this. >> >> Dennis Byrne >> >> >> Dennis Byrne >> Dennis Byrne

