Wednesday, January 06, 2010

Moved...

Hi All,
I have moved to www.cemreceren.com a long time ago :)

See you there :)

Friday, November 16, 2007

maven 2.0.7 filtering

I upgraded maven 2.0.4 to 2.0.7 and the i couldn't compile the existing projects because of filtering problem - filtering files couldn't be read, the source of problem was maven-assembly-plugin. I think such kind of incongruities generally may occur. The simplest solution of such problems is simply renaming the maven folder ...\.m2\repository\org\apache\ and installing the project again for full download of all maven and maven plugins :)

The details of the problem and the solution is below:

http://jira.codehaus.org/browse/MASSEMBLY-178

Wednesday, November 14, 2007

Tomcat - VerifyError Fix- java.lang.VerifyError: (class: org/apache/jasper/runtime/PageContextImpl

Using Tomcat 5.5.17 after starting application, jsp pages couldn't be rendered and the following error is taken with an empty page. To fix the problem simply check the commons-el.jar versions and also remove geronimo-spec-jsp.jar from WEB-INF\lib directory if this jar is not already excluded:

java.lang.VerifyError: (class: org/apache/jasper/runtime/PageContextImpl, method: getExpressionEvaluator signature: ()Ljavax/servlet/jsp/el/ExpressionEvaluator;) Wrong return type in function
at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:99)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:61)
at org.apache.jsp.pages.P60.Common.StandardPageParentTemplate_jsp._jspService(StandardPageParentTemplate_jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Sunday, October 28, 2007

your signature...

Saturday, October 27, 2007

iyimser?






Biz

Herkes kendi salıncağını seçiyor
Hepimiz çocuklar gibi sallanıyoruz
Ama ipleri çeken bir başkası
En sert itiş henüz yolda
Siyaset, ekonomi, din, aşk,
Savaş ve barış karşı karşıya
Aşk ve nefret karşı karşıya
Burada ve oradayız, hayattayız.
İnsanız.

Buthayna Ali



10. Uluslarası İstanbul Bienali'nin Modern Sanat Müzesi'ndeki ayağından kalanlar...

Wednesday, October 24, 2007

Adsız Kent


Sonsuza dek yatan sanma ölüdür,
Tuhaf çağlarda ölüm de ölür.



Korku Öyküleri Antolojisi - Karanlıkta 33 Yazar kitabında en beğendiğim öykülerden biri Adsız Kent, ve yazarı H.P. Lovecraft'in diğer kitapları ve öykülerini okumak için sabırsızlanıyorum :)

Friday, August 24, 2007

Creating Dynamic JSF Components

Creating Dynamic Components at JSF is really easy but because of performance problems and the large number of components to generate i choose different way at project. A simple sample:

Use datagrid/datatable object to add your components:

<h:panelgrid id="grid1" styleclass="panelGrid" columns="2">< /h:panelgrid>
<hx:commandexbutton id="newComponentBtn" action="#{pc_DynaComponentView.addNewComponent}" styleclass="commandExButton" type="submit" value="New Component"></hx:commandexbutton>

Sample JSF:

<h:form id="form1" styleclass="form">
<h:panelgrid id="grid1" styleclass="panelGrid" columns="2"></h:panelgrid>
<hx:commandexbutton id="newComponentBtn" action="#{pc_PageView.addNewComponent}" styleclass="commandExButton" type="submit" value="New Component"></hx:commandexbutton>
</h:form>

Sample Code at Backing Bean:

public void addNewComponent() {
   // create sample components
   HtmlSelectOneListbox listbox = new HtmlSelectOneListbox();
   HtmlInputText text1 = new HtmlInputText();
   text1.setValue("TEST");
   List valueList = new ArrayList();
   SelectItem selectItem = new SelectItem("TEST1", "TEST1");
   valueList.add(selectItem);
   selectItem = new SelectItem("TEST2", "TEST2");
   valueList.add(selectItem);
   UISelectItems items = new UISelectItems();
   items.setValue(valueList);
   listbox.getChildren().add(items);
   grid1 = getGrid1();
   // Add components
   grid1.getChildren().add(listbox);
   grid1.getChildren().add(text1);

}