Entries tagged with "java"
Java Threads google notebook
Google continues to provide amazing online services. Recently they launched Google Notebook . This service really useful to make various notes, especially during surfing the web.
It also allows to make your notebooks public, i.e. viewable by everybody. I’ve used this feature to record notes about concurrency and thread usage in Java, that I had made while reading Java Threads, 3rd edition book. Here is link to my notebook . I hope that somebody finds it useful.
Posted by ksh on June 7, 2006 | 0 comments | development, java
Using forceId with facelets
Recently JSF project that I am working on was shifted from JSP to facelets.
It was really easy task, but nevertheless several problems arose during migration. One of them – using forceId with some myfaces components. The problem is that facelets uses JSF component classes as beans, but forceId is not a java property of tomahawk components. Instead it is passed as JSF attribute and this is handled somewhere is JSP tag classes that are not used by facelets. Of course this can be solved by writing custom TagHandler (analogous of JSP Tag class), but it would be too much work – write TagHandler for every myfaces component.
Much easier solution exists – use f:attribute like this:
<t:outputText id="myd" value="#{bean.property}">
<f:attribute name="forceId" value="true"/>
</t:outputText>
Posted by ksh on May 22, 2006 | 2 comments | development, java, jsf