Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.richfaces.renderkit.html;
  
  import java.util.Map;
  import  javax.faces.application.ResourceDependencies;
  import  javax.faces.application.ResourceDependency;
  import  javax.faces.component.UIComponent;
  import  javax.faces.context.FacesContext;
 import  javax.faces.context.ResponseWriter;
 import static org.richfaces.renderkit.NotifyRendererUtils.addStackIdOption;
 import static org.richfaces.renderkit.RenderKitUtils.*;
 
 
 @ResourceDependencies({@ResourceDependency(name="notifyMessage.reslib",library="org.richfaces",target=""),@ResourceDependency(name="notify.ecss",library="org.richfaces",target="")})
 	
 private static final Attributes PASS_THROUGH_ATTRIBUTES5 = attributes()
 	     .generic("dir","dir")
 	     
 
 	     .generic("lang","lang")
 	     
 
 	     .generic("onclick","onclick","click")
 	     
 
 	     .generic("ondblclick","ondblclick","dblclick")
 	     
 
 	     .generic("onkeydown","onkeydown","keydown")
 	     
 
 	     .generic("onkeypress","onkeypress","keypress")
 	     
 
 	     .generic("onkeyup","onkeyup","keyup")
 	     
 
 	     .generic("onmousedown","onmousedown","mousedown")
 	     
 
 	     .generic("onmousemove","onmousemove","mousemove")
 	     
 
 	     .generic("onmouseout","onmouseout","mouseout")
 	     
 
 	     .generic("onmouseover","onmouseover","mouseover")
 	     
 
 	     .generic("onmouseup","onmouseup","mouseup")
 	     
 
 	     .generic("role","role")
 	     
 
 	     .generic("style","style")
 	     
 
 	     .generic("title","title")
 	     
 ;
 	
 private static final Attributes ATTRIBUTES_FOR_SCRIPT_HASH6 = attributes()
 	     .generic("sticky","sticky")
 	     .defaultValue(false)
 
 	     .generic("stayTime","stayTime")
 	     
 
 	     .generic("delay","delay")
 	     
 
 	     .generic("styleClass","styleClass")
 	     
 
 	     .generic("appearAnimation","appearAnimation")
 	     
 
 	     .generic("hideAnimation","hideAnimation")
 	     
 
 	     .generic("animationSpeed","animationSpeed")
 	     
 
 	     .generic("showHistory","showHistory")
 	     
 
 	     .generic("nonblocking","nonblocking")
 	     .defaultValue(false)
 
 	     .generic("showShadow","showShadow")
 	     .defaultValue(false)
 
	     .generic("showCloseButton","showCloseButton")
	     .defaultValue(true)
	     .generic("nonblockingOpacity","nonblockingOpacity")
	     
	     .generic("onclick","onclick","click")
	     
	     .generic("ondblclick","ondblclick","dblclick")
	     
	     .generic("onkeydown","onkeydown","keydown")
	     
	     .generic("onkeypress","onkeypress","keypress")
	     
	     .generic("onkeyup","onkeyup","keyup")
	     
	     .generic("onmousedown","onmousedown","mousedown")
	     
	     .generic("onmousemove","onmousemove","mousemove")
	     
	     .generic("onmouseout","onmouseout","mouseout")
	     
	     .generic("onmouseover","onmouseover","mouseover")
	     
	     .generic("onmouseup","onmouseup","mouseup")
	     
public void doEncodeEnd(ResponseWriter responseWriter, FacesContext facesContext, UIComponent component
	 {
		String clientId = component.getClientId(facesContext);
responseWriter.startElement("span"component); 
  responseWriter.writeAttribute("class","rf-ntf-msg",null);
   {
      String value = clientId;
      if(null != value &&
         value.length()>0
      ) {
        responseWriter.writeAttribute("id",value,null);
      }
      
   }
renderPassThroughAttributes(facesContextcomponent
Map<StringObjectoptions = new LinkedHashMap<StringObject>(); 
addToScriptHash(optionsfacesContextcomponentnull);
addStackIdOption(optionsfacesContextcomponent);
encodeScript(facesContext,componentoptions);
encodeNotification(facesContextcomponentoptions);
responseWriter.endElement("span"); 
	}
New to GrepCode? Check out our FAQ X