Ajax support for rich:calendar

May 27th, 2010 Karthikeyan C No comments

For Ajax support when the date is selected using rich:calendar, we can add the following


<a:support event="onchanged" ajaxSingle="true" reRender="scheduleenddatetime">
 <a:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/>
 </a:support>

Please note that the event is onchanged instead of onchange

  • Share/Bookmark
Categories: Development Tags:

Installing Canon Printer Driver in Ubuntu 10.04

May 25th, 2010 Karthikeyan C No comments

I bought a Canon LBP2900B printer yesterday and successfully installed it in Ubuntu (10.4).  I had 64 bit Ubuntu installed and hence downloaded the file http://codebin.cotescu.com/canon/lbp_driver/CanonCAPTdriver.tar.gz and executed the command sudo ./canonLBP_install.sh LBP2900 (LBP2900 is same as LBP2900B) after navigating to the directory where i extracted the tar file.

Further details can be found at http://radu.cotescu.com/2010/03/20/how-to-install-canon-lbp-printers-in-ubuntu/

  • Share/Bookmark

Custom Styling rich:inputNumberSlider of RichFaces

May 19th, 2010 Karthikeyan C No comments

The default look and feel of arrows of rich:inputNumberSlider in RichFaces is not very great (May be they did it intentionally for the users to customize it).

The following CSS styles have to be overridden.

rich-inslider-inc-horizontal, rich-inslider-inc-horizontal-selected

rich-inslider-dec-horizontal, rich-inslider-dec-horizontal-selected

rich-inslider-handler, rich-inslider-handler-selected

As an example, I have provided my styles below.


.rich-inslider-inc-horizontal,.rich-inslider-inc-horizontal-selected {
 background-image:url("/img/rightarrow.png");
}

.rich-inslider-dec-horizontal,.rich-inslider-dec-horizontal-selected{
 background-image:url("/img/leftarrow.png");
}

.rich-inslider-handler,.rich-inslider-handler-selected{
 background-image:url("/img/sliderpos.png");
 width:16px;
 height:16px;
}
  • Share/Bookmark
Categories: Development Tags: