<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Yiğit Darçın&#039;s Blog</title>
	<atom:link href="http://yigitdarcin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yigitdarcin.wordpress.com</link>
	<description>a blog about J2EE mainly JSF and PrimeFaces.</description>
	<lastBuildDate>Fri, 27 Jan 2012 07:57:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yigitdarcin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yiğit Darçın&#039;s Blog</title>
		<link>http://yigitdarcin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yigitdarcin.wordpress.com/osd.xml" title="Yiğit Darçın&#039;s Blog" />
	<atom:link rel='hub' href='http://yigitdarcin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Dealing with ViewExpiredException on Regular and Ajax Requests</title>
		<link>http://yigitdarcin.wordpress.com/2011/10/06/dealing-with-viewexpiredexception-on-regular-and-ajax-requests/</link>
		<comments>http://yigitdarcin.wordpress.com/2011/10/06/dealing-with-viewexpiredexception-on-regular-and-ajax-requests/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 22:14:15 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=296</guid>
		<description><![CDATA[This is a note to myself mainly ( this is based on Oleg&#8217;s post btw, I just tried to simplified a little from here To deal with ViewExpiredException with regular and ajax requests, do the following: in faces-config.xml, have the following: in security.xml for Spring, we add a entry-point-ref as follows: where authenticationProcessingFilterEntryPoint is : [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=296&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a note to myself mainly ( this is based on Oleg&#8217;s post btw, I just tried to simplified a little from <a href="http://ovaraksin.blogspot.com/2010/10/global-handling-of-all-unchecked.html" title="here" target="_blank">here</a></p>
<p>To deal with ViewExpiredException with regular and ajax requests, do the following:</p>
<p>in faces-config.xml, have the following:</p>
<p><pre class="brush: xml;">

    &lt;factory&gt;
        &lt;exception-handler-factory&gt;
            com.prime.DefaultExceptionHandlerFactory
        &lt;/exception-handler-factory&gt;
    &lt;/factory&gt;
	
      &lt;lifecycle&gt;
	 &lt;phase-listener&gt;
            com.prime.SecurityPhaseListener
        &lt;/phase-listener&gt;
	&lt;/lifecycle&gt;
</pre></p>
<p>in security.xml for Spring, we add a entry-point-ref as follows:</p>
<p><pre class="brush: xml;">
&lt;http auto-config=&quot;false&quot; access-denied-page=&quot;/accessDenied.xhtml&quot;
		entry-point-ref=&quot;authenticationProcessingFilterEntryPoint&quot;&gt;
</pre></p>
<p>where authenticationProcessingFilterEntryPoint is :</p>
<p><pre class="brush: xml;">
&lt;beans:bean id=&quot;authenticationProcessingFilterEntryPoint&quot;
		class=&quot;com.prime.AuthenticationProcessingFilterEntryPoint&quot;&gt;
		&lt;beans:property name=&quot;loginFormUrl&quot; value=&quot;/login.xhtml&quot; /&gt;
		&lt;beans:property name=&quot;useForward&quot; value=&quot;true&quot; /&gt;
	&lt;/beans:bean&gt;
</pre></p>
<p>ok, now our java codes;</p>
<p>the SecurityPhaseListener is defined as:</p>
<p><pre class="brush: java;">
package com.prime;

import java.io.IOException;

import javax.faces.FacesException;
import javax.faces.FactoryFinder;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;
import javax.faces.render.RenderKit;
import javax.faces.render.RenderKitFactory;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.primefaces.context.DefaultRequestContext;

public class SecurityPhaseListener implements PhaseListener {

	private static final long serialVersionUID = -101374487855763803L;

	public void afterPhase(PhaseEvent event) {
	}

	public void beforePhase(PhaseEvent event) {
		FacesContext fc = event.getFacesContext();
		String loginPage = (String) fc.getExternalContext().getRequestMap().get(AuthenticationProcessingFilterEntryPoint.ATTRIBUTE_LOGIN_PAGE);
		if (StringUtils.isNotBlank(loginPage)) {
			doRedirect(fc, loginPage);
		}
	}

	public PhaseId getPhaseId() {
		return PhaseId.RESTORE_VIEW;
	}

	public void doRedirect(FacesContext fc, String redirectPage) throws FacesException {
		ExternalContext ec = fc.getExternalContext();

		try {
			if (ec.isResponseCommitted()) {
				return;
			}

			ec.redirect(ec.getRequestContextPath() + (redirectPage != null ? redirectPage : &quot;&quot;));

		} catch (IOException e) {
			throw new FacesException(e);
		}
	}
}

</pre></p>
<p>our AuthenticationProcessingFilterEntryPoint code is as follows:</p>
<p><pre class="brush: java;">
package com.prime;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint;

/**
 * Extended Spring AuthenticationProcessingFilterEntryPoint for playing together with JSF Ajax redirects.
 */
public class AuthenticationProcessingFilterEntryPoint extends LoginUrlAuthenticationEntryPoint
{
    public static final String ATTRIBUTE_LOGIN_PAGE = &quot;com.myproject.login.page&quot;;


      @Override
    public void afterPropertiesSet() throws Exception {
        super.afterPropertiesSet();
    }
    
    @Override
    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {

    	if(request.getParameter(&quot;javax.faces.partial.ajax&quot;) != null )
    		request.setAttribute(ATTRIBUTE_LOGIN_PAGE, getLoginFormUrl());
        super.commence(request, response, authException);
    }
}

</pre></p>
<p>ok finally, the DefaultExceptionHandlerFactory classes which are as follows:</p>
<p><pre class="brush: java;">
package com.prime;

import java.util.Iterator;

import javax.faces.FacesException;
import javax.faces.application.ViewExpiredException;
import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerWrapper;
import javax.faces.context.FacesContext;
import javax.faces.event.ExceptionQueuedEvent;
import javax.faces.event.ExceptionQueuedEventContext;
import javax.servlet.http.HttpSession;

public class DefaultExceptionHandler extends ExceptionHandlerWrapper {

    private ExceptionHandler wrapped;

    public DefaultExceptionHandler(ExceptionHandler wrapped) {
        this.wrapped = wrapped;
    }

    @Override
    public ExceptionHandler getWrapped() {
        return this.wrapped;
    }

    @Override
    public void handle() throws FacesException {

        FacesContext facesContext = FacesContext.getCurrentInstance();
        Iterator&lt;ExceptionQueuedEvent&gt; eventIterator = getUnhandledExceptionQueuedEvents().iterator();

        ViewExpiredException viewExpiredException = getViewExpiredException(getUnhandledExceptionQueuedEvents());
        if (viewExpiredException != null) {
            String redirectUrl = invalidateSessionAndGetErrorPage(facesContext, viewExpiredException);
            redirectToTheErrorPage(facesContext, redirectUrl);
        } else if (eventIterator.hasNext()) {

            String redirectUrl = &quot;/error.html&quot;;

            redirectToTheErrorPage(facesContext, redirectUrl);
        }
    }


    private String invalidateSessionAndGetErrorPage(FacesContext facesContext, ViewExpiredException throwable) {

        HttpSession session = (HttpSession) facesContext.getExternalContext().getSession(false);
        if (session != null) {
            session.invalidate();
        }

        return &quot;/dashboard.xhtml&quot;;
    }

    private void redirectToTheErrorPage(FacesContext facesContext, String redirectUrl) {
        SecurityPhaseListener spl = new SecurityPhaseListener();
        spl.doRedirect(facesContext, redirectUrl);

    }

    private ViewExpiredException getViewExpiredException(Iterable&lt;ExceptionQueuedEvent&gt; unhandledExceptionQueuedEvents) {
        for (ExceptionQueuedEvent event : unhandledExceptionQueuedEvents) {
            ExceptionQueuedEventContext queuedEventContext = event.getContext();
            if (queuedEventContext.getException() instanceof ViewExpiredException) {
                return (ViewExpiredException) queuedEventContext.getException();
            }
        }
        return null;
    }

}

</pre><br />
and our DefaultExceptionHandlerFactory is</p>
<p><pre class="brush: java;">
package com.prime;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class DefaultExceptionHandlerFactory extends ExceptionHandlerFactory {
	private ExceptionHandlerFactory parent;

	public DefaultExceptionHandlerFactory(ExceptionHandlerFactory parent) {
		this.parent = parent;
	}

	@Override
	public ExceptionHandler getExceptionHandler() {
		ExceptionHandler eh = parent.getExceptionHandler();
		eh = new DefaultExceptionHandler(eh);

		return eh;
	}
}
</pre></p>
<p>the codes in DefaultExceptionHandlerFactory can be changed to customize. </p>
<p>just a note myself.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/296/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=296&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2011/10/06/dealing-with-viewexpiredexception-on-regular-and-ajax-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>Better ajax operations and callbacks in JSF with PrimeFaces</title>
		<link>http://yigitdarcin.wordpress.com/2011/05/18/better-ajax-operations-and-callbacks-in-jsf-with-primefaces/</link>
		<comments>http://yigitdarcin.wordpress.com/2011/05/18/better-ajax-operations-and-callbacks-in-jsf-with-primefaces/#comments</comments>
		<pubDate>Wed, 18 May 2011 10:23:19 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[PrimeFaces]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=258</guid>
		<description><![CDATA[One of the nicest feature of PrimeFaces is you can add some parameters to your ajax calls ( callbacks ) and can decide on what to update while executing your actions on your managed beans. Think of following common scenario, we want to create a new user object with a dialog and show it in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=258&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the nicest feature of PrimeFaces is you can add some parameters to your ajax calls ( callbacks ) and can decide on what to update while executing your actions on your managed beans.</p>
<p>Think of following common scenario, we want to create a new user object with a dialog and show it in a datatable when user clicks on save button and do all these stuff with Ajax. Let&#8217;s think you as a developer want to do this using a p:dialog as follows:</p>
<p><pre class="brush: xml;">
&lt;p:dialog  widgetVar=&quot;userFormDialog&quot; &gt;

   &lt;p:outputPanel id=&quot;editDialog&quot;&gt;
      &lt;h:panelGrid&gt;
         &lt;h:outputLabel for=&quot;userName&quot; value=&quot;Username&quot; /&gt;
         &lt;p:inputText id=&quot;userName&quot;  
                        value=&quot;#{userManagementBean.user.username}&quot; /&gt;
					
         &lt;h:outputLabel for=&quot;password&quot; value=&quot;Password&quot;/&gt;
         &lt;p:inputText autocomplete=&quot;false&quot; id=&quot;password&quot;
                       value=&quot;#{userManagementBean.user.password}&quot;/&gt;
									
      &lt;/h:panelGrid&gt;
   &lt;/p:outputPanel&gt;

   &lt;p:commandButton value=&quot;Save!&quot; 
                       actionListener=&quot;#{userManagementBean.save}&quot;
                       process=&quot;editDialog&quot; update=&quot;userTable messages&quot; 
                       oncomplete=&quot;userFormDialog.hide();&quot;/&gt;
&lt;/p:dialog&gt;
                  
&lt;p:messages id=&quot;messages&quot;/&gt;

&lt;p:outputPanel id=&quot;userTable&quot;&gt;
      &lt;p:dataTable value=&quot;#{userManagementBean.all}&quot; var=&quot;user&quot; &gt;
	&lt;p:column&gt;
          &lt;f:facet name=&quot;header&quot;&gt;Username&lt;/f:facet&gt;
          #{user.username}
	&lt;/p:column&gt;
     &lt;/p:datatable&gt;
&lt;/p:outputPanel&gt;

</pre><br />
so what this code does it, when user clicks on save, the dialog should be closed, a message should be shown for successful creating and the p:datatable which shows all the users should be updated.</p>
<p>what happens if user just clicks save button w/o entering any data? what happens if the userName that the user entered is already in the database and saving the new one fails? what happens if there is a pb somewhere? When something unusual occurs, the dialog should stay opened and a message should be shown to the user right? This is the situation where PrimeFaces useful  <strong>RequestContext API</strong> becomes handy.</p>
<p><b>RequestContext API</b> enables developers to do 2 simple things. <em>1st</em> you can tell what you want to update in the xhtml based on conditions in actions that you define in your Managed Beans.To update a component from serverside, you can just write:<br />
<pre class="brush: xml;">
RequestContext.getCurrentInstance().
              addPartialUpdateTarget(&quot;my_component_id&quot;);
</pre><br />
 so when the Ajax request is finished, the component with the id &#8216;my_component_id&#8217; will be also updated.  <em>2nd</em> you can send parameters to your xhtml so that you can use these values in your javascript code. To pass an object you can use the following code :<br />
<pre class="brush: xml;">
RequestContext.getCurrentInstance().addCallbackParam(&quot;user&quot;, user);
</pre><br />
 as you can pass objects here, you can access them in your javascript methods in the client side.</p>
<p>So let&#8217;s define the requirement more precisely and try to implement it. We want to open a dialog when we want to create a new user for the system, the username and password are required fields and when user does not enter any data to these fields and click save, the dialog should stay visible and messages shown inside the dialog. Also for performance wise, if there is a validation pb, we should not update the datatable but update messages only. if the save is successful, then messages and datatable component should be updated and user should be notified by a message and alert.  So our xhtml code will be something like this :<br />
<pre class="brush: xml;">
&lt;p:dialog  widgetVar=&quot;userFormDialog&quot; &gt;

   &lt;p:outputPanel id=&quot;editDialog&quot;&gt;
      &lt;h:panelGrid&gt;
         &lt;h:outputLabel for=&quot;userName&quot; value=&quot;Username&quot; /&gt;
         &lt;p:inputText id=&quot;userName&quot; value=&quot;#{userManagementBean.user.username}&quot;  
                               required=&quot;true&quot;/&gt;
          &lt;p:message for=&quot;userName&quot;/&gt;
					
         &lt;h:outputLabel for=&quot;password&quot; value=&quot;Password&quot;/&gt;
         &lt;p:inputText autocomplete=&quot;false&quot; id=&quot;password&quot; value=&quot;#{userManagementBean.user.password}&quot;/&gt;
         &lt;p:message for=&quot;password&quot;/&gt;
							
      &lt;/h:panelGrid&gt;
   &lt;/p:outputPanel&gt;

   &lt;p:commandButton value=&quot;Save!&quot; actionListener=&quot;#{userManagementBean.save}&quot; process=&quot;editDialog&quot;
				oncomplete=&quot;handleSaveRequest(xhr, status, args)&quot;/&gt;
&lt;/p:dialog&gt;

&lt;h:outputScript target=&quot;head&quot;&gt;
      function handleSaveRequest(xhr, status, args) {  
           if( args.notValid || args.validationFailed )  
              return;
           userFormDialog.hide();  
           alert('User with username ' +args.user.username+ ' is saved successfully');
   }  
&lt;/h:outputScript&gt;
                  
&lt;p:messages id=&quot;messages&quot;/&gt;

&lt;p:outputPanel id=&quot;userTable&quot;&gt;
	&lt;p:dataTable value=&quot;#{userManagementBean.all}&quot; var=&quot;user&quot; &gt;
		&lt;p:column&gt;
		 &lt;f:facet name=&quot;header&quot;&gt;#{lbl['username']}&lt;/f:facet&gt;
					#{user.username}
		&lt;/p:column&gt;
	&lt;/p:datatable&gt;
&lt;/p:outputPanel&gt;

</pre></p>
<p>as you can see here at line 18, we defined a new js method to handle the response from the server. In this method ( starting at line 22 ) we check whether there is a validation error (  args.validationFailed is default set to true by PrimeFaces API ) or we had an error and send a parameter ( args.valid is set to true on server side with backing bean ). We also notified the user with an alert box and tell the user that a new user object is saved successfully by writing the username in the message. <b>RequestContext API</b> allows you to pass objects to js side with serializing them as JSON.</p>
<p>our backing bean will be like this :<br />
<pre class="brush: java;">
@ViewScoped
@ManagedBean
public class UserManagementBean{
	private User user = new User();
	private List&lt;User&gt; users;

	public void save() {
		try{
			// some service to save user
 			// userService.save(user);
			addMessage( &quot;User is Saved!&quot;);
			RequestContext.getCurrentInstance().
					addCallbackParam(&quot;user&quot;, user);
 			RequestContext.getCurrentInstance().
					addPartialUpdateTarget(&quot;userTable&quot;);
		}catch (SomeException e) {
			RequestContext.getCurrentInstance().
					addCallbackParam(&quot;notValid&quot;, true);
			addErrorMessage(&quot;Problem Occured!&quot;);
		}
		RequestContext.getCurrentInstance().
					addPartialUpdateTarget(&quot;messages&quot;);
	}

	public List&lt;User&gt; getAll() {
		return users;
	}

        // getter setter
}
</pre></p>
<p>As you can see that <b>RequestContext API</b> enables developers to decide on what to update and send parameter in Ajax request easily. You can do easier testing with RequestContext API as you can test whether the parameters and partial update request are done when there is an exception occurs or save operation is successful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=258&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2011/05/18/better-ajax-operations-and-callbacks-in-jsf-with-primefaces/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>Starting a new project with Agile v1</title>
		<link>http://yigitdarcin.wordpress.com/2011/04/29/starting-a-new-project-with-agile-v1/</link>
		<comments>http://yigitdarcin.wordpress.com/2011/04/29/starting-a-new-project-with-agile-v1/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 20:55:27 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[PrimeFaces]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=253</guid>
		<description><![CDATA[Hi, we just started working on a new project with a client which is re-implementing the client&#8217;s current e-commerce page with Java which is currently written on asp. We will be using Agile Methodologies to implement the project with the help of . In our first meeting with the client, we first tried to get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=253&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>we just started working on a new project with a client which is re-implementing the client&#8217;s current e-commerce page with Java which is currently written on asp. We will be using Agile Methodologies to implement the project with the help of <a href="http://friendfeed.com/cenkcivici" title="Cenk" target="_blank"></a>. In our first meeting with the client, we first tried to get the user stories from the clientand tried to identify the roles. What we tried to do is, creating user stories and doing some estimations on them. This way we tried to estimate how long the project may take to implement and informed the client about this estimation.</p>
<p>What we will do next is meet with client again, prioritize the stories and do a release and iteration plan to start the project and start with iteration 0.</p>
<p>We will be using PrimeFaces 3.0 &#8211; JSF 2.0 &#8211; Spring 3.0 &#8211; Hibernate 3.6 and will be doing it Agile as time will be a important aspect side of the project.</p>
<p> I will be posting images/status of the project next days hopefully.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=253&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2011/04/29/starting-a-new-project-with-agile-v1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>PrimeFaces vs other *Faces Google Trends</title>
		<link>http://yigitdarcin.wordpress.com/2011/04/03/primefaces-vs-other-faces-google-trends/</link>
		<comments>http://yigitdarcin.wordpress.com/2011/04/03/primefaces-vs-other-faces-google-trends/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 19:50:50 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=249</guid>
		<description><![CDATA[PrimeFaces is getting more attention day by day as can be seen from the google trends : http://www.google.com/trends?q=primefaces%2Crichfaces%2Cicefaces%2Copenfaces&#38;ctab=0&#38;geo=all&#38;date=ytd&#38;sort=0 in the end of 2011, I think PrimeFaces will be in lead&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=249&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PrimeFaces is getting more attention day by day as can be seen from the google trends :</p>
<p><a href="http://www.google.com/trends?q=primefaces%2Crichfaces%2Cicefaces%2Copenfaces&amp;ctab=0&amp;geo=all&amp;date=ytd&amp;sort=0" target="_blank">http://www.google.com/trends?q=primefaces%2Crichfaces%2Cicefaces%2Copenfaces&amp;ctab=0&amp;geo=all&amp;date=ytd&amp;sort=0</a></p>
<p>in the end of 2011, I think PrimeFaces will be in lead&#8230; </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=249&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2011/04/03/primefaces-vs-other-faces-google-trends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>selecting row(s) via javascript in p:datatable</title>
		<link>http://yigitdarcin.wordpress.com/2010/08/02/selecting-rows-via-javascript-in-pdatatable/</link>
		<comments>http://yigitdarcin.wordpress.com/2010/08/02/selecting-rows-via-javascript-in-pdatatable/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 19:55:28 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=231</guid>
		<description><![CDATA[Hi, with PrimeFaces things can be so easy that you cannot even imagine. Lastly a requirement came to me to select a row ( or rows ) with javascript for the p:datatable. The thing I did was like this: with the help of , I removed the previous selections and added the new selection. As [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=231&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>with PrimeFaces things can be so easy that you cannot even imagine. Lastly a requirement came to me to select a row ( or rows ) with javascript for the p:datatable. The thing I did was like this:</p>
<p><pre class="brush: xml;">&lt;p:dataTable rowIndexVar=&quot;rowIndex&quot;  widgetVar=&quot;datatableVar&quot;
selectionMode=&quot;single&quot;
selection=&quot;#{someBean.someData}&quot;&gt;

&lt;p:column&gt;
&lt;f:facet name=&quot;header&quot;&gt;
&lt;h:outputText value=&quot;Select&quot;/&gt;
&lt;/f:facet&gt;
&lt;h:graphicImage value=&quot;/images/selectImage.gif&quot;  onclick=&quot;datatableVar.unselectAllRows();datatableVar.selectRow(#{rowIndex})&quot;/&gt;
&lt;/p:column&gt;

...

&lt;/p:datatable&gt;</pre></p>
<p>with the help of <pre class="brush: xml;">onclick=&quot;datatableVar.unselectAllRows();datatableVar.selectRow(#{rowIndex})&quot;</pre>, I removed the previous selections and added the new selection. As you see it is very easy to do stuff with PrimeFaces. By the way as the datatable will be re-written in the new version, this may not work in the future but currently it works nicely&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=231&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2010/08/02/selecting-rows-via-javascript-in-pdatatable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>client side datatable pagination in jsf</title>
		<link>http://yigitdarcin.wordpress.com/2010/07/23/client-side-datatable-pagination-in-jsf/</link>
		<comments>http://yigitdarcin.wordpress.com/2010/07/23/client-side-datatable-pagination-in-jsf/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 18:17:55 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[PrimeFaces]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=227</guid>
		<description><![CDATA[Hi, if  you want to add simple client side pagination to a datatable in JSF, it is very simple to do so. suppose you have this regular h:datatable in your page: just use jQuery and use this plugin: http://neoalchemy.org/tablePagination.html include the plugins and jQuery&#8217;s js in your page and just add this to your page: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=227&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>if  you want to add simple client side pagination to a datatable in JSF, it is very simple to do so.</p>
<p>suppose you have this regular h:datatable in your page:<br />
<pre class="brush: xml;">
&lt;h:dataTable id=&quot;datatable&quot; var=&quot;item&quot; value=&quot;#{someBean.all}&quot;&gt;

&lt;h:column&gt;
&lt;f:facet name=&quot;header&quot;&gt;
&lt;h:outputText value=&quot;my header&quot;/&gt;
&lt;/f:facet&gt;
&lt;h:outputText value=&quot;#{item.someField}&quot; escape=&quot;true&quot;/&gt;
&lt;/h:column&gt;

&lt;/h:datatable&gt;
</pre><br />
just use jQuery and use this plugin: http://neoalchemy.org/tablePagination.html</p>
<p>include the plugins and jQuery&#8217;s js in your page and just add this to your page:<br />
<pre class="brush: xml;">
jQuery(document).ready(function() {
jQuery('#datatable').tablePagination();
});
</pre><br />
and that is all. It works for 1.2 and 2.0.</p>
<p>btw this thing is useful if you are not using PrimeFaces. PrimeFaces ease your custom needs very quickly. this solution is for a situation where you cannot use PrimeFaces some how.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=227&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2010/07/23/client-side-datatable-pagination-in-jsf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>Tracing JSF</title>
		<link>http://yigitdarcin.wordpress.com/2010/06/23/tracing-jsf/</link>
		<comments>http://yigitdarcin.wordpress.com/2010/06/23/tracing-jsf/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 19:39:04 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=224</guid>
		<description><![CDATA[Hi, to trace JSF, my favorite tool is FacesTrace. You can find a demo here : http://www.primefaces.org:8080/prime-showcase/facestrace/createBook.jsf especially for starters it shows the lifecycle, parameters etc. you can also use ui:debug. it can be handy in production mode with pressing ctrl+shift+d ( can be changed of course ) which shows score variable and component tree.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=224&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>to trace JSF, my favorite tool is FacesTrace. You can find a demo here :</p>
<p>http://www.primefaces.org:8080/prime-showcase/facestrace/createBook.jsf</p>
<p>especially for starters it shows the lifecycle, parameters etc.</p>
<p>you can also use ui:debug. it can be handy in production mode with pressing ctrl+shift+d ( can be changed of course ) which shows score variable and component tree.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=224&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2010/06/23/tracing-jsf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>Object doesn&#8217;t support this property or method datatable</title>
		<link>http://yigitdarcin.wordpress.com/2010/06/23/object-doesnt-support-this-property-or-method-datatable/</link>
		<comments>http://yigitdarcin.wordpress.com/2010/06/23/object-doesnt-support-this-property-or-method-datatable/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 17:52:26 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[PrimeFaces]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=221</guid>
		<description><![CDATA[Hi, if you have &#8220;Object doesn&#8217;t support this property or method&#8221; error when using primefaces datatable in Internet Explorer, it is quite likely that you assign the same name for id and widgetVar for the datatable like: &#60;p:dataTable id=&#8221;documents&#8221; widgetVar=&#8221;documents&#8221; so if you change one them like widgetVar to &#8220;documentsVar&#8221; it will be fixed. Firefox [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=221&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>if you have &#8220;Object doesn&#8217;t support this property or method&#8221; error when using primefaces datatable in Internet Explorer, it is quite likely that you assign the same name for id and widgetVar for the datatable like:</p>
<p>&lt;p:dataTable id=&#8221;documents&#8221; widgetVar=&#8221;documents&#8221;</p>
<p>so if you change one them like widgetVar to &#8220;documentsVar&#8221; it will be fixed.</p>
<p>Firefox does not have this problem btw.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=221&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2010/06/23/object-doesnt-support-this-property-or-method-datatable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>JSF2.0 passing actions to Composite Components</title>
		<link>http://yigitdarcin.wordpress.com/2010/06/03/jsf2-0-passing-actions-to-composite-components/</link>
		<comments>http://yigitdarcin.wordpress.com/2010/06/03/jsf2-0-passing-actions-to-composite-components/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 21:06:13 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=212</guid>
		<description><![CDATA[Hi, with JSF 2.0, it is very easy to pass actions to composite components. For example if your composite component is like this: then you can use this composite component as : as you see, you can pass parameters to the buttons also. The java side will be as follows btw: easy, huh ?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=212&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>with JSF 2.0, it is very easy to pass actions to composite components. For example if your composite component is like this:</p>
<p><pre class="brush: xml;">&lt;composite:interface&gt;
&lt;composite:attribute name=&quot;action&quot; required=&quot;true&quot; method-signature=&quot;void action(java.lang.String)&quot;/&gt;
&lt;/composite:interface&gt;

&lt;composite:implementation&gt;
&lt;p:commandButton action=&quot;#{cc.attrs.action}&quot; value=&quot;test me button&quot;/&gt;
&lt;/composite:implementation&gt;</pre></p>
<p>then you can use this composite component as :</p>
<p><pre class="brush: xml;">&lt;custom:testComponent action=&quot;#{somePage.testMe('test String')}&quot;/&gt;</pre></p>
<p>as you see, you can pass parameters to the buttons also.</p>
<p>The java side will be as follows btw:</p>
<p><pre class="brush: java;">public void testMe(String parameterString){&lt;/pre&gt;
System.out.println(parameterString);
 }</pre></p>
<p>easy, huh ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=212&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2010/06/03/jsf2-0-passing-actions-to-composite-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging with jetty with maven</title>
		<link>http://yigitdarcin.wordpress.com/2010/05/31/debugging-with-jetty-with-maven/</link>
		<comments>http://yigitdarcin.wordpress.com/2010/05/31/debugging-with-jetty-with-maven/#comments</comments>
		<pubDate>Mon, 31 May 2010 07:45:16 +0000</pubDate>
		<dc:creator>yigitdarcin</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://yigitdarcin.wordpress.com/?p=210</guid>
		<description><![CDATA[If you want to run the jetty in debug mode, you can just write: mvn jetty:run -X I wonder if it helps but, that is enough to run jetty in debug mode.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=210&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to run the jetty in debug mode, you can just write:</p>
<p>mvn jetty:run -X</p>
<p>I wonder if it helps but, that is enough to run jetty in debug mode.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yigitdarcin.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yigitdarcin.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yigitdarcin.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yigitdarcin.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yigitdarcin.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yigitdarcin.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yigitdarcin.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yigitdarcin.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yigitdarcin.wordpress.com&amp;blog=9948798&amp;post=210&amp;subd=yigitdarcin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yigitdarcin.wordpress.com/2010/05/31/debugging-with-jetty-with-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e5b0e2622bdbb08ac6be142258bebda0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yigitdarcin</media:title>
		</media:content>
	</item>
	</channel>
</rss>
