Skip to content

Instantly share code, notes, and snippets.

View werpu's full-sized avatar
🏠
Working from home

Werner Punz werpu

🏠
Working from home
  • Irian GmbH
  • Linz, Austria
View GitHub Profile
@werpu
werpu / test
Created June 16, 2011 14:59
test
System.out.println("hello world");
System.out.println("hello world");
System.out.println("hello world");
@werpu
werpu / contentPane.js
Created June 16, 2011 15:09
contentpane
(function () {
/**
* a content pane with some extras like being able to fetch extra content
* and a title section which optionally is set
*/
var _RT = myfaces._impl.core._Runtime;
_RT.extendClass("extras.apache.ContentPane", extras.apache.ComponentBase, {
_NODE:myfaces._impl._dom.Node,
_Lang: myfaces._impl._util._Lang,
(function () {
/**
* a pull component which pulls
* a certain area periodically
*/
var _RT = myfaces._impl.core._Runtime;
_RT.extendClass("extras.apache.ToggleButton", extras.apache.ImageButtonLight, {
valueHolder: null,
<ui:component xmlns=""
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ezw="http://java.sun.com/jsf/composite/ezcomp/widgets">
<composite:interface componentType="at.irian.StandardJavascriptComponent">
<composite:attribute name="id" required="true"/>
<composite:attribute name="javascriptVar" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:cust="http://java.sun.com/jsf/composite/components">
<h:head>
<title>MyFaces 2.0 Javascript API Tests Part1</title>
<cust:loadscripts />
<style type="text/css">
@werpu
werpu / gist:1069090
Created July 7, 2011 08:24
Maven SSL in jetty plugin
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>keytool-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<id>clean</id>
<goals>
@werpu
werpu / gist:1069101
Created July 7, 2011 08:36
Myfaces jsf.js config
myfaces.config = myfaces.config || {};
myfaces.config["queuesize"] = 5;
javax.faces.request(this, event, {render:'queuesizeoutput', execute:'queuesizecontrol', op:'queuesize', myfaces:{queuesize: 5}});
<h:inputText id="ajaxinput" onkeyup="jsf.ajax.request(this, event,
{render:'ajaxresult', execute:'ajaxinput', myfaces:{delay: 300}});
return true;"/>
<h:inputText id="ppsControl2" onkeyup="javax.faces.request(this, event,
{render:'ppsoutput', execute:'ppsControl ppsControl2',
myfaces:{pps:true}}); return true;" value="input for full submit"/>