Skip to content

Instantly share code, notes, and snippets.

View lincolnthree's full-sized avatar

Lincoln Baxter, III lincolnthree

View GitHub Profile
@lincolnthree
lincolnthree / gist:1204112
Created September 8, 2011 18:01
Bootstrap
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><link type="text/css" rel="stylesheet" href="/socialpm-web/javax.faces.resource/bootstrap.css.xhtml" /><link type="text/css" rel="stylesheet" href="/socialpm-web/javax.faces.resource/docs.css.xhtml" /><link type="text/css" rel="stylesheet" href="/socialpm-web/javax.faces.resource/prettify.css.xhtml" />
<title>SocialPM » New Project</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Cache-Control" content="must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Mon, 1 Aug 1999 10:00:00 GMT" /><script type="text/javascript" src="/socialpm-web/javax.faces.resource/prettify.js.xhtml"></script><script type="text/javascript" src="/socialpm-web/javax.faces.resou
package com.example.view;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateful;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import org.jboss.seam.transaction.Transactional;
@lincolnthree
lincolnthree / Bootstrap.java
Created September 23, 2011 17:32
Forge Bootstrap
/*
* JBoss, by Red Hat.
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
/*
* JBoss, by Red Hat.
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
elementData Object[10] (id=88)
[0] ModuleClassLoader (id=34)
[1] ModuleClassLoader (id=91)
[2] null
[3] null
[4] null
[5] null
[6] null
[7] null
[8] null
org.jboss.weld.bootstrap.WeldBootstrap came from ModuleClassLoader for Module "org.jboss.forge:main" from local module loader @162200d5 (roots: /home/lb3/Development/forge/modules,/home/lb3/.forge/plugins)
Exception in thread "Thread-2" java.lang.ClassCastException: org.jboss.weld.bootstrap.WeldBootstrap cannot be cast to org.jboss.weld.bootstrap.api.Bootstrap
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:71)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:84)
at java.lang.Thread.run(Thread.java:662)
@lincolnthree
lincolnthree / gist:1672285
Created January 24, 2012 20:12
JBoss Forge: Productivity, Reliability, and Testability
How many times have you wanted to start a new project in Java EE, but struggled to put all the pieces together?
Has the Maven archetype syntax left you scratching your head? Everyone else is talking about Rails, Grails, and
Roo, and you're left thinking, "I wish it were that easy for me." Well, there's good news: You don't have to
leave Java EE just to find a developer tool that makes getting started easy. JBoss Forge is heating up Java
EE, and is ready to work it into a full-fledged project. Using Forge helps streamline application development,
ease the pain of setting up enterprise testing and integration, and utilises the full power of JBoss AS7 for development, testing, and deployment. Combined with fully-fledged visual integration with Eclipse and JBoss
Developer Studio, there's never been more power at your fingertips. Come watch us build a real application,
test it, extend it, and deploy it to the cloud on in no time flat.
@lincolnthree
lincolnthree / gist:1672297
Created January 24, 2012 20:14
URL-rewriting: Enhance developer productivity, usability & security
Java EE is already the perfect solution for complex business/enterprise systems and provides all the tools
and foundations required to deliver scalable, performant applications for a wide variety of customers and
clients. But how does the end user experience stack up? How easy is it to navigate through your Website?
Is your code full of nasty navigation logic? Are your links clear, transparent, and informative?
Do you find yourself adding '?query=parameters' in order to serve dynamic content from your application?
Can you ensure that you are not leaking information in your URLs, and that your applications are secure
from URL-based attacks? Are your old links making it difficult to migrate or integrate a legacy application
to a new one?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ocp="http://java.sun.com/jsf/composite/ocpcommon"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/WEB-INF/view/templates/project-active.xhtml">
package org.jboss.errai.ioc.client.api;
import com.ocpsoft.socialpm.gwt.client.local.App;
import com.ocpsoft.socialpm.gwt.client.local.AppActivityMapper;
import com.ocpsoft.socialpm.gwt.client.local.AppPlaceHistoryMapper;
import com.ocpsoft.socialpm.gwt.client.local.ClientFactory;
import com.ocpsoft.socialpm.gwt.client.local.ClientFactoryImpl;
import com.ocpsoft.socialpm.gwt.client.local.EventsFactory;
import com.ocpsoft.socialpm.gwt.client.local.ServiceFactory;
import com.ocpsoft.socialpm.gwt.client.local.view.HomeView;