This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert('hi'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.notasfiscais.websocket; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.websocket.OnClose; | |
import javax.websocket.OnMessage; | |
import javax.websocket.OnOpen; | |
import javax.websocket.Session; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> | |
<property name="hibernateProperties"> | |
<props> | |
<prop key="hibernate.connection.url">jdbc:mysql://localhost/fj27</prop> | |
<prop key="hibernate.connection.driver_class">com.mysql.jdbc.Driver</prop> | |
<prop key="hibernate.connection.username">root</prop> | |
<prop key="hibernate.connection.password"></prop> | |
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> | |
<prop key="hibernate.show_sql">true</prop> | |
<prop key="hibernate.format_sql">true</prop> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.fj91.banco.modelo; | |
import java.math.BigDecimal; | |
public interface Builder{ | |
Builder comLimite(BigDecimal limite); | |
Builder comTitular(Cliente titular); | |
Conta cria(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.financas.util; | |
import java.util.Iterator; | |
import javax.enterprise.context.spi.CreationalContext; | |
import javax.enterprise.inject.spi.Bean; | |
import javax.enterprise.inject.spi.BeanManager; | |
import javax.naming.InitialContext; | |
import javax.naming.NamingException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.livraria.rest; | |
import java.net.URI; | |
import javax.ws.rs.client.Client; | |
import javax.ws.rs.client.ClientBuilder; | |
import javax.ws.rs.client.WebTarget; | |
import javax.ws.rs.core.MediaType; | |
import org.apache.oltu.oauth2.client.OAuthClient; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.caelum.notasfiscais.exception; | |
import java.util.Iterator; | |
import java.util.Map; | |
import javax.faces.FacesException; | |
import javax.faces.application.NavigationHandler; | |
import javax.faces.application.ViewExpiredException; | |
import javax.faces.context.ExceptionHandler; | |
import javax.faces.context.ExceptionHandlerWrapper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
public class CustomAuthenticationProvider implements AuthenticationProvider{ | |
@Autowired | |
private UsuarioDAO usuarioDAO; | |
@Override | |
public boolean supports(Class<? extends Object> authentication) { | |
return (UsernamePasswordAuthenticationToken.class.isAssignableFrom(authentication)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://javaspecialist.wordpress.com/2010/05/30/performance-tuning-of-seam-jsf-richfaces-for-webapps/ | |
http://blog.eisele.net/2009/10/jsf-facelets-myfaces-and-richfaces.html | |
http://blog.oio.de/2013/05/06/jsf-performance-tuning/ | |
http://tandraschko.blogspot.com.br/2012/08/increase-your-jsf-application.html | |
NewerOlder