Pages

Thursday, May 27, 2010

Facelet tip

A quick facelet tip. If you needed an extra attribute on a component you can add and access it easily with facelets. Here I needed to add an node attribute on boolean check box, which is part of rich faces tree.
<h:selectBooleanCheckbox id="tree_cbx" value="#{tree.getNode(item).selected}"
node="#{tree.getNode(item)}">
<a4j:support ajaxSingle="true" event="onchange"
reRender="tree_yetki">
<a4j:ajaxListener
type="tr.com.innova.ortak.tree.node.YetkiNodeListener"/>
</a4j:support>
</h:selectBooleanCheckbox>
You can access the attribute easily once you have the component. Here is my ajaxListener;
public class YetkiNodeListener implements AjaxListener {

@Override
public void processAjax(AjaxEvent event) {
UIComponent holder = (UIComponent) ((UIComponent) event.getSource())
.getParent();
holder.getValueExpression("node").getValue(FacesContext.getCurrentInstance().getELContext());
...
}

Wednesday, May 19, 2010

Status

  • I should have started using Maven earlier. If you want to manage an inhouse repository check out the Artifactory. Ill make better use of it on my next project.
  • Hudson: More capable than CC, easily configurable UI, pluggable, integrates with svn, maven, ant... And don't forget to revert before update.
  • HTML5 Canvas looks cool. 3D Games + Drawing tools + ?. If you haven't already check this out ; http://mrdoob.com/lab/javascript/harmony , he also has 3d engine based on JS. I'll try this out may be do a project.
  • There is the Devoxx @ 15 Nov., Call for papers deadline is 6 Jun.
  • Dynamic reporting with jasper reports. This guy has a clever and basic idea of how to do it. Implemented a similar thing. Plus I added annotations to format and display the data.
  • Single Sign-On/Out with CAS.
  • Our project is still approaching the deadline. A bit tired.