--- zip/org/ajax4jsf/framework.pack.js 2009-05-15 15:29:16.000000000 +0200 +++ rpm/org/ajax4jsf/framework.pack.js 1980-01-01 00:00:00.000000000 +0100 @@ -5797,189 +5797,6 @@ return A }} -if(!document.observe){throw"prototype.js is required!" -}if(!A4J||!A4J.AJAX||!A4J.AJAX.AddListener){throw"AJAX script is required!" -}if(!window.Richfaces){window.Richfaces={} -}Object.extend(Richfaces,function(){var D=0; -var B={}; -var G=false; -var J=null; -var F=function(L,N){if(N instanceof Array){for(var M=0; -M-1&&userAgent.indexOf("Chrome/")==-1); -if(!skipNavigator){var resetMedia=function(A){var B=A.getAttribute("media"); -if(mediaName==B){A.removeAttribute("media") -}}; -if(!window._RICH_FACES_SKINNING_ADDED_TO_BODY){var getElementByTagName=function(B,A){var E; -try{E=B.selectNodes('.//*[local-name()="'+A+'"]') -}catch(C){try{E=B.getElementsByTagName(A) -}catch(D){}}return E -}; -var f=function(){if(window.RICH_FACES_EXTENDED_SKINNING_ON){var D=getElementByTagName(document,"link"); -if(D){var A=D.length; -for(var C=0; -C=0||A.indexOf("explorer")>=0){return RichFaces.MSIE -}if(A.indexOf("firefox")>=0||A.indexOf("iceweasel")>=0){return RichFaces.FF -}if(A.indexOf("opera")>=0){return RichFaces.OPERA -}if(A.indexOf("netscape")>=0){return RichFaces.NETSCAPE -}if(A.indexOf("safari")>=0){return RichFaces.SAFARI -}if(A.indexOf("konqueror")>=0){return RichFaces.KONQ -}return"OTHER" -}; -RichFaces.getOperaVersion=function(){var B=navigator.userAgent.toLowerCase(); -var A=B.indexOf("opera"); -if(A==-1){return -}return parseFloat(B.substring(A+6)) -}; -RichFaces.getIEVersion=function(){var C="msie"; -var D=navigator.userAgent.toLowerCase(); -var A=D.indexOf(C); -if(A!=-1){var E=D.indexOf(";",A); -var B; -if(E!=-1){B=D.substring(A+C.length,E) -}else{B=D.substring(A+C.length) -}return parseFloat(B) -}else{return undefined -}} - -if(!String.prototype.parseJSON){String.prototype.parseJSON=function(hook){try{if(!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/("(\\.|[^"\\])*")|('(\\.|[^'\\])*')/g,""))){var j=eval("("+this+")"); -if(typeof hook==="function"){function walk(v){if(v&&typeof v==="object"){for(var i in v){if(v.hasOwnProperty(i)){v[i]=walk(v[i]) -}}}return hook(v) -}return walk(j) -}return j -}}catch(e){}throw new SyntaxError("parseJSON") -} -}EventHandlersWalk=function(v){if(v&&typeof v=="object"){var names=new Array(); -for(var i in v){if(v.hasOwnProperty(i)){if(i.length>2&&i.substring(0,2)=="on"){names.push(i) -}}}for(var i=0; -i":">",'"':""","'":"'","\u00A0":" "},getInnerHTML:function(F){var B=[]; for(var A=0; @@ -6030,32 +5847,317 @@ D.prototype.getContent=function(A){return"" } -DnD.getDnDDefaultParams=function(B){var A=Richfaces.getNSAttribute("defaultdndparams",B); -if(A){var C=A.parseJSON(EventHandlersWalk); -if(C){return C -}}return{} +if(!String.prototype.parseJSON){String.prototype.parseJSON=function(hook){try{if(!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/("(\\.|[^"\\])*")|('(\\.|[^'\\])*')/g,""))){var j=eval("("+this+")"); +if(typeof hook==="function"){function walk(v){if(v&&typeof v==="object"){for(var i in v){if(v.hasOwnProperty(i)){v[i]=walk(v[i]) +}}}return hook(v) +}return walk(j) +}return j +}}catch(e){}throw new SyntaxError("parseJSON") +} +}EventHandlersWalk=function(v){if(v&&typeof v=="object"){var names=new Array(); +for(var i in v){if(v.hasOwnProperty(i)){if(i.length>2&&i.substring(0,2)=="on"){names.push(i) +}}}for(var i=0; +i1){var A=drag.source.getDraggableItems(); -B["count"]=A; -if(!B["label"]){B["label"]=B["count"]+" "+(B["units"]?B["units"]:"items") -}}}} - -DnD.Draggable=function(){}; -DnD.ieReleaseCapture=function(){if(document.releaseCapture){document.releaseCapture() +Richfaces.removePX=function(B){var A=B.indexOf("px"); +if(A==-1){return B +}return B.substr(0,A) +}; +Richfaces.visitTree=function(A,D){var B=A; +if(!B){B=document +}D.call(this,B); +var C=B.firstChild; +while(C){Richfaces.visitTree(C,D); +C=C.nextSibling }}; -DnD.DragEndListener=Class.create(); -DnD.DragEndListener.prototype={initialize:function(A){this.callback=A; +Richfaces.getNSAttribute=function(C,E){if(E.getAttributeNS){var A=E.getAttributeNS("http://richfaces.ajax4jsf.org/rich",C); +if(A){return A +}}var B=E.attributes; +var D="rich:"+C; +var A=B[D]; +if(A){return A.nodeValue +}return null +}; +Richfaces.VARIABLE_NAME_PATTERN=/^\s*[_,A-Z,a-z][\w,_\.]*\s*$/; +Richfaces.getObjectValue=function(D,B){var A=D.split("."); +var C=B[A[0]]; +var E=1; +while(C&&E=0&&A>=0&&J.square=0&&A>=0&&J.square=0&&A>=0&&J.squareQ){B=J.x; +A=J.y +}}}}}}D.style.left=B+"px"; +D.style.top=A+"px" +}; +Richfaces.Position.getOffsetDimensions=function(C){C=$(C); +var G=$(C).getStyle("display"); +if(G!="none"&&G!=null){return{width:C.offsetWidth,height:C.offsetHeight} +}var B=C.style; +var F=B.visibility; +var D=B.position; +var A=B.display; +B.visibility="hidden"; +B.position="absolute"; +B.display="block"; +var H=C.offsetWidth; +var E=C.offsetHeight; +B.display=A; +B.position=D; +B.visibility=F; +return{width:H,height:E} +}; +Richfaces.Position.checkCollision=function(A,B,D){if(A.left>=B.left&&A.top>=B.top&&A.right<=B.right&&A.bottom<=B.bottom){return 0 +}var C={left:(A.left>B.left?A.left:B.left),top:(A.top>B.top?A.top:B.top),right:(A.right-1 +},getAcceptedTypes:function(){return[] +},getTypeMapping:function(){return{} +},getCursorTypeMapping:function(){return{} +},drop:function(B,A){},getIconCodeForType:function(B){var A=this.getTypeMapping(); +if(B&&A){return A[B] +}return null +},getCursorForType:function(B){var A=this.getCursorTypeMapping(); +if(B&&A){return A[B] +}},dragEnter:function(C){var F=window.drag; +F.dropzone=this; +F.source.ondropover(C,F); +var H=F.indicator; +var B=this.accept(F); +if(B){var I=this.getCursorForType(F.type); +if(I){this.acceptMappingCursor=new DnD.Cursor(this.getElement(),I); +this.acceptMappingCursor.showCursor() +}else{if(this.acceptCursor){this.acceptCursor.showCursor() +}}}else{if(this.rejectCursor){this.rejectCursor.showCursor() +}}if(H){var G=this.getIconCodeForType(F.type); +var D=F.source.getDnDDragParams(); +if(D){Object.extend(D,this.getDnDDropParams()) +}else{D=this.getDnDDropParams() +}if(D){if(G){D["marker"]=D[G] +}else{D["marker"]=null +}}var E=B?"accept":"reject"; +DnD.setDefaultDnDParams(D); +if(F.source.getDraggableItems&&F.source.getDraggableItems()>1){H.setContent(E,false,D) +}else{H.setContent(E,true,D) +}if(B){H.accept() +}else{H.reject() +}}var A=this.getDropzoneOptions(); +if(A&&A.ondragenter){A.ondragenter.call(C) +}},dragLeave:function(D){var B=window.drag; +B.dropzone=null; +B.source.ondropout(D,B); +B.source.setIndicator(D); +var A=B.indicator; +if(A){A.leave() +}var C=this.getDropzoneOptions(); +if(C&&C.ondragexit){C.ondragexit(D) +}if(this.acceptCursor){if(this.acceptCursor.visible){this.acceptCursor.hideCursor() +}}if(this.rejectCursor){if(this.rejectCursor.visible){this.rejectCursor.hideCursor() +}}if(this.acceptMappingCursor){if(this.acceptMappingCursor.visible){this.acceptMappingCursor.hideCursor() +}}},dragUp:function(B){this.ondropend(B); +if(this.acceptCursor){if(this.acceptCursor.visible){this.acceptCursor.hideCursor() +}}if(this.rejectCursor){if(this.rejectCursor.visible){this.rejectCursor.hideCursor() +}}if(this.acceptMappingCursor){if(this.acceptMappingCursor.visible){this.acceptMappingCursor.hideCursor() +}}var A=this.getDropzoneOptions(); +if(A&&A.ondropend){A.ondropend() +}},enableDropzoneCursors:function(B,A){if(B){this.acceptCursor=new DnD.Cursor(this.getElement(),B) +}if(A){this.rejectCursor=new DnD.Cursor(this.getElement(),A) +}},ondropend:function(A){},onafterdrag:function(A){},onbeforedrag:function(B,A){},ondragenter:function(A){},ondragexit:function(A){}} + +DnD.Draggable=function(){}; +DnD.ieReleaseCapture=function(){if(document.releaseCapture){document.releaseCapture() +}}; +DnD.DragEndListener=Class.create(); +DnD.DragEndListener.prototype={initialize:function(A){this.callback=A; this.onmoveBound=this.onmove.bindAsEventListener(this); this.onupBound=this.onup.bindAsEventListener(this) },activate:function(A){Event.observe(document,"mousemove",this.onmoveBound); @@ -6258,294 +6360,226 @@ if(C){Element.setStyle(C,{"borderBottom":"1px dashed "+B}) }}} -DnD.Dropzone=function(){}; -DnD.Dropzone.DROP_TARGET_ID="dropTargetId"; -DnD.Dropzone.prototype={getElement:function(){return $(this.id) -},getDropzoneOptions:function(){return null -},getDnDDefaultParams:function(){return DnD.getDnDDefaultParams(this.getElement()) -},getDnDDropParams:function(){return DnD.getDnDDropParams(this.getElement()) -},accept:function(A){return DnD.CLIENT_VALIDATION_OFF||this.getAcceptedTypes().indexOf(A.type)>-1 -},getAcceptedTypes:function(){return[] -},getTypeMapping:function(){return{} -},getCursorTypeMapping:function(){return{} -},drop:function(B,A){},getIconCodeForType:function(B){var A=this.getTypeMapping(); -if(B&&A){return A[B] -}return null -},getCursorForType:function(B){var A=this.getCursorTypeMapping(); -if(B&&A){return A[B] -}},dragEnter:function(C){var F=window.drag; -F.dropzone=this; -F.source.ondropover(C,F); -var H=F.indicator; -var B=this.accept(F); -if(B){var I=this.getCursorForType(F.type); -if(I){this.acceptMappingCursor=new DnD.Cursor(this.getElement(),I); -this.acceptMappingCursor.showCursor() -}else{if(this.acceptCursor){this.acceptCursor.showCursor() -}}}else{if(this.rejectCursor){this.rejectCursor.showCursor() -}}if(H){var G=this.getIconCodeForType(F.type); -var D=F.source.getDnDDragParams(); -if(D){Object.extend(D,this.getDnDDropParams()) -}else{D=this.getDnDDropParams() -}if(D){if(G){D["marker"]=D[G] -}else{D["marker"]=null -}}var E=B?"accept":"reject"; -DnD.setDefaultDnDParams(D); -if(F.source.getDraggableItems&&F.source.getDraggableItems()>1){H.setContent(E,false,D) -}else{H.setContent(E,true,D) -}if(B){H.accept() -}else{H.reject() -}}var A=this.getDropzoneOptions(); -if(A&&A.ondragenter){A.ondragenter.call(C) -}},dragLeave:function(D){var B=window.drag; -B.dropzone=null; -B.source.ondropout(D,B); -B.source.setIndicator(D); -var A=B.indicator; -if(A){A.leave() -}var C=this.getDropzoneOptions(); -if(C&&C.ondragexit){C.ondragexit(D) -}if(this.acceptCursor){if(this.acceptCursor.visible){this.acceptCursor.hideCursor() -}}if(this.rejectCursor){if(this.rejectCursor.visible){this.rejectCursor.hideCursor() -}}if(this.acceptMappingCursor){if(this.acceptMappingCursor.visible){this.acceptMappingCursor.hideCursor() -}}},dragUp:function(B){this.ondropend(B); -if(this.acceptCursor){if(this.acceptCursor.visible){this.acceptCursor.hideCursor() -}}if(this.rejectCursor){if(this.rejectCursor.visible){this.rejectCursor.hideCursor() -}}if(this.acceptMappingCursor){if(this.acceptMappingCursor.visible){this.acceptMappingCursor.hideCursor() -}}var A=this.getDropzoneOptions(); -if(A&&A.ondropend){A.ondropend() -}},enableDropzoneCursors:function(B,A){if(B){this.acceptCursor=new DnD.Cursor(this.getElement(),B) -}if(A){this.rejectCursor=new DnD.Cursor(this.getElement(),A) -}},ondropend:function(A){},onafterdrag:function(A){},onbeforedrag:function(B,A){},ondragenter:function(A){},ondragexit:function(A){}} - -if(!window.Richfaces){window.Richfaces={} -}Richfaces.mergeStyles=function(B,C){var A; -for(A in B){if(typeof B[A]=="object"){this.mergeStyles(B[A],C[A]) -}else{C[A]+=" "+B[A] -}}return C -}; -Richfaces.getComputedStyle=function(D,A){var B=$(D); -if(B.nodeType!=Node.ELEMENT_NODE){return"" -}if(B.currentStyle){return B.currentStyle[A] -}if(document.defaultView&&document.defaultView.getComputedStyle){var C=document.defaultView.getComputedStyle(B,null); -if(C){return C.getPropertyValue(A) -}}return"" -}; -Richfaces.getComputedStyleSize=function(B,A){var C=Richfaces.getComputedStyle(B,A); -if(C){C=C.strip(); -C=C.replace(/px$/,""); -return parseFloat(C) -}return 0 -}; -Richfaces.getWindowSize=function(){var B=0,A=0; -if(typeof (window.innerWidth)=="number"){B=window.innerWidth; -A=window.innerHeight -}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){B=document.documentElement.clientWidth; -A=document.documentElement.clientHeight -}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){B=document.body.clientWidth; -A=document.body.clientHeight -}}}return{"width":B,"height":A} -}; -Richfaces.removePX=function(B){var A=B.indexOf("px"); -if(A==-1){return B -}return B.substr(0,A) -}; -Richfaces.visitTree=function(A,D){var B=A; -if(!B){B=document -}D.call(this,B); -var C=B.firstChild; -while(C){Richfaces.visitTree(C,D); -C=C.nextSibling -}}; -Richfaces.getNSAttribute=function(C,E){if(E.getAttributeNS){var A=E.getAttributeNS("http://richfaces.ajax4jsf.org/rich",C); -if(A){return A -}}var B=E.attributes; -var D="rich:"+C; -var A=B[D]; -if(A){return A.nodeValue -}return null -}; -Richfaces.VARIABLE_NAME_PATTERN=/^\s*[_,A-Z,a-z][\w,_\.]*\s*$/; -Richfaces.getObjectValue=function(D,B){var A=D.split("."); -var C=B[A[0]]; -var E=1; -while(C&&E=0&&A>=0&&J.square=0&&A>=0&&J.square=0&&A>=0&&J.squareQ){B=J.x; -A=J.y -}}}}}}D.style.left=B+"px"; -D.style.top=A+"px" -}; -Richfaces.Position.getOffsetDimensions=function(C){C=$(C); -var G=$(C).getStyle("display"); -if(G!="none"&&G!=null){return{width:C.offsetWidth,height:C.offsetHeight} -}var B=C.style; -var F=B.visibility; -var D=B.position; -var A=B.display; -B.visibility="hidden"; -B.position="absolute"; -B.display="block"; -var H=C.offsetWidth; -var E=C.offsetHeight; -B.display=A; -B.position=D; -B.visibility=F; -return{width:H,height:E} -}; -Richfaces.Position.checkCollision=function(A,B,D){if(A.left>=B.left&&A.top>=B.top&&A.right<=B.right&&A.bottom<=B.bottom){return 0 -}var C={left:(A.left>B.left?A.left:B.left),top:(A.top>B.top?A.top:B.top),right:(A.right1){var A=drag.source.getDraggableItems(); +B["count"]=A; +if(!B["label"]){B["label"]=B["count"]+" "+(B["units"]?B["units"]:"items") +}}}} + +if(!window.RichFaces){window.RichFaces={} +}RichFaces.MSIE=0; +RichFaces.FF=1; +RichFaces.OPERA=2; +RichFaces.NETSCAPE=3; +RichFaces.SAFARI=4; +RichFaces.KONQ=5; +RichFaces.navigatorType=function(){var A=navigator.userAgent.toLowerCase(); +if(A.indexOf("msie")>=0||A.indexOf("explorer")>=0){return RichFaces.MSIE +}if(A.indexOf("firefox")>=0||A.indexOf("iceweasel")>=0){return RichFaces.FF +}if(A.indexOf("opera")>=0){return RichFaces.OPERA +}if(A.indexOf("netscape")>=0){return RichFaces.NETSCAPE +}if(A.indexOf("safari")>=0){return RichFaces.SAFARI +}if(A.indexOf("konqueror")>=0){return RichFaces.KONQ +}return"OTHER" }; -Richfaces.previous=function(A){var B=A; -do{B=B.previousSibling -}while(B&&B.nodeType!=1); -return B +RichFaces.getOperaVersion=function(){var B=navigator.userAgent.toLowerCase(); +var A=B.indexOf("opera"); +if(A==-1){return +}return parseFloat(B.substring(A+6)) }; -Richfaces.removeNode=function(B){if(B){var A=B.parentNode; -if(A){A.removeChild(B) -}}}; -Richfaces.readAttribute=function(C,B){var A=null; -var D=C.getAttributeNode(B); -if(D){A=D.nodeValue -}return A +RichFaces.getIEVersion=function(){var C="msie"; +var D=navigator.userAgent.toLowerCase(); +var A=D.indexOf(C); +if(A!=-1){var E=D.indexOf(";",A); +var B; +if(E!=-1){B=D.substring(A+C.length,E) +}else{B=D.substring(A+C.length) +}return parseFloat(B) +}else{return undefined +}} + +var mediaName="rich-extended-skinning"; +var userAgent=navigator.userAgent; +var skipNavigator=window.opera||(userAgent.indexOf("AppleWebKit/")>-1&&userAgent.indexOf("Chrome/")==-1); +if(!skipNavigator){var resetMedia=function(A){var B=A.getAttribute("media"); +if(mediaName==B){A.removeAttribute("media") +}}; +if(!window._RICH_FACES_SKINNING_ADDED_TO_BODY){var getElementByTagName=function(B,A){var E; +try{E=B.selectNodes('.//*[local-name()="'+A+'"]') +}catch(C){try{E=B.getElementsByTagName(A) +}catch(D){}}return E }; -Richfaces.writeAttribute=function(B,A,D){var C=B.getAttributeNode(A); -if(D!==null){if(C){C.nodeValue=D -}else{C=document.createAttribute(A); -C.nodeValue=D; -B.setAttributeNode(C) -}}else{if(C){B.removeAttributeNode(C) -}}}; -Richfaces.mergeObjects=function(){var D=arguments[0]; -if(D){for(var B=1; -B