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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > | |
<appender name="stdout" class="org.apache.log4j.ConsoleAppender"> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%-4r %-5p [%t] %c %3x - %m%n"/> | |
</layout> | |
</appender> | |
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
# permet de s'assurer du format en francais lors des soumissions | |
my.format.time = {0,time} | |
my.format.number = {0,number,#0.0##} | |
my.format.percent = {0,number,##0.00'%'} | |
my.format.money = {0,number,\u00A4##0.00} |
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
<xsd:schema attributeFormDefault="unqualified" | |
elementFormDefault="qualified" version="1.0" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:element name="delivery" type="deliveryType" /> | |
<xsd:complexType name="deliveryType"> | |
<xsd:sequence> | |
<xsd:element name="customer" type="CustomerType" minOccurs="0" maxOccurs="unbounded" /> | |
<xsd:element name="order" type="OrderType" minOccurs="0" maxOccurs="unbounded" /> |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<delivery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="other.xsd"> | |
<customer id="K123"> | |
<name>toto</name> | |
</customer> | |
<order> | |
<customerRef>K123</customerRef> | |
</order> |
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
rem on lance la generation des classes java correspondantes au xsd avec le package indique | |
xjc -d src -p com.idref.other other.xsd | |
pause |
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 com.idref.other; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.JAXBElement; | |
import javax.xml.bind.JAXBException; | |
import javax.xml.bind.Unmarshaller; | |
import junit.framework.TestCase; | |
public class TestASupprimer extends TestCase { |
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
var bookStore = angular.module('bookStore', ['bookStore.main', | |
'bookStore.author', | |
'bookStore.badge', | |
'bookStore.book', | |
'bookStore.bookorder', | |
'bookStore.bookorderitem', | |
'bookStore.country', | |
'bookStore.customer', | |
'bookStore.employee', | |
'bookStore.employeegroup', |
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
// Welcome module | |
var bookStoremain = angular.module('bookStore.main', [], function($routeProvider, $locationProvider) { | |
// Declare welcome route | |
$routeProvider.when('/welcome', { | |
templateUrl : 'partials/welcome.html', | |
controller: 'MainCtrl' | |
}); | |
// Declare futur route |
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
// Detect html5 compliance with Modernizr | |
$rootScope.localstorageEnable = Modernizr.localstorage; | |
$rootScope.offlineEnable = Modernizr.applicationcache; | |
$rootScope.logMe("localstorage : " + $rootScope.localstorageEnable); | |
$rootScope.logMe("offline : " + $rootScope.offlineEnable); | |
if (($rootScope.offlineEnable == false) || ($rootScope.localstorageEnable == false)) { | |
toastr.error("Your browser isn't applicationCache compliant !"); | |
} else { | |
// localstorage conf and init |
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
// Force template cache to allow offline for all partials | |
$http.get('gen/partials/footer.html', {cache:$templateCache}); | |
$http.get('gen/partials/header.html', {cache:$templateCache}); | |
$http.get('partials/inprogress.html', {cache:$templateCache}); | |
$http.get('partials/welcome.html', {cache:$templateCache}); | |
$http.get('gen/pages/author/create.html', {cache:$templateCache}); | |
$http.get('gen/pages/author/edit.html', {cache:$templateCache}); | |
$http.get('gen/pages/author/list.html', {cache:$templateCache}); | |