Okay I opened up a a report. Currently I am trying to do the change by myself but it seems that I have not enought experience with jsf-tag-development. If I understood you right, I have to extend the ConvertDateTimeTag-Class and add a encodeBegin-method wherein the values are resolved over value binding. My Problem is that the ConvertDateTimeTag is normally not rendered so I can't override the encodeBegin-method. Sorry for all that questions but because of this problem we are currently stucked.
Mike Kienenberger wrote: > > Yep. Just open a JIRA issue and provide them, using unified diff > format for changes to existing files. (You can drop the new files in > as is although having them in the diff format will make it slightly > easier to apply the patch). > > On 6/5/07, Daniel Herb <[EMAIL PROTECTED]> wrote: >> >> >> Mike Kienenberger wrote: >> > >> > Converters that evaluate at rendertime would be an excellent addition >> > to Tomahawk. I don't currently see any Tomahawk equivalents of the >> > existing converters. >> > >> Do you mean the existing converters? If so, that would be really nice. >> I had a likewise problem in the same project and had to do a workaround >> for >> it. >> I am wondering why nobody else had a problem like that. >> >> Thank you for your help. >> >> >> Mike Kienenberger wrote: >> > >> > Hmm. Not much to see here. >> > >> > However, it looks like the converter type is being set at component >> > tree build time rather than render type. >> > >> > So there is no data table row active at this point, and thus no >> variable. >> > >> > Looking at ConvertDateTimeTagBase, I see that the value binding is >> > evaluated at converter creation time rather than converter-use time. >> > >> > Same for timezone, pattern and everything else. >> > >> > I'd say that's a bad design since we evaluate value bindings during >> > rendering for everything else. >> > >> > Unfortunately, this design is part of the JSF spec. >> > >> > http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/ >> > >> > If it were me, I'd write my own converter. All you need to do is to >> > change the converter to take value bindings instead of evaluated value >> > binding results, and change the getters to return the evaluated value >> > bindings. In fact, you can simply extend the existing converter to >> > add some set*ValueBinding() methods, and then, if the value binding >> > exists, evaluate it instead of using the constant object. >> > >> > For the end user of the final tag, there shouldn't be any difference >> > -- the difference would only show up at the java code level. >> > >> > Converters that evaluate at rendertime would be an excellent addition >> > to Tomahawk. I don't currently see any Tomahawk equivalents of the >> > existing converters. >> > >> > On 6/5/07, Daniel Herb <[EMAIL PROTECTED]> wrote: >> >> >> >> ConvertDateTimeTagBase.setConverterType(FacesContext, >> >> DateTimeConverter, >> >> String) line: 206 >> >> ConvertDateTimeTag(ConvertDateTimeTagBase).createConverter() >> >> line: 89 >> >> ConvertDateTimeTag(ConverterTag).doStartTag() line: 66 >> >> columnsTest.jsp line: 12 >> >> columnsTest.jsp line: not available >> >> columnsTest.jsp line: not available >> >> columnsTest.jsp line: not available >> >> columnsTest.jsp line: not available >> >> columnsTest.jsp line: not available >> >> columnsTest.jsp line: not available >> >> testpage_jsp(HttpJspBase).service(HttpServletRequest, >> >> HttpServletResponse) >> >> line: 98 >> >> testpage_jsp(HttpServlet).service(ServletRequest, >> >> ServletResponse) line: >> >> 803 >> >> JspServletWrapper.service(HttpServletRequest, >> >> HttpServletResponse, boolean) >> >> line: 328 >> > >> > [...] >> > >> >> ServletExternalContextImpl.dispatch(String) line: 419 >> >> JspTilesViewHandlerImpl.dispatch(ExternalContext, UIViewRoot, >> >> String) line: >> >> 236 >> >> JspTilesViewHandlerImpl.renderView(FacesContext, UIViewRoot) >> >> line: 222 >> >> RenderResponseExecutor.execute(FacesContext) line: 41 >> >> LifecycleImpl.render(FacesContext) line: 132 >> >> FacesServlet.service(ServletRequest, ServletResponse) line: >> 140 >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Possible-bug-in-the-columns-tag-with-the-convertDateTime-tag-tf3845423.html#a10972746 >> Sent from the My Faces - Dev mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Possible-bug-in-the-columns-tag-with-the-convertDateTime-tag-tf3845423.html#a10984918 Sent from the My Faces - Dev mailing list archive at Nabble.com.
