Java Doc for HtmlRendererUtils.java in  » J2EE » myfaces-core-1.2.0 » org » apache » myfaces » shared_impl » renderkit » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » myfaces core 1.2.0 » org.apache.myfaces.shared_impl.renderkit.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils

HtmlRendererUtils
final public class HtmlRendererUtils (Code)

author:
   Manfred Geiler (latest modification by $Author: matzew $)
version:
   $Revision: 555720 $ $Date: 2007-07-12 21:03:38 +0200 (Do, 12 Jul 2007) $

Inner Class :public static class LinkParameter
Inner Class :public static class ScriptContext

Field Summary
final public static  StringALLOW_CDATA_SECTION_ON
    
final public static  StringCLEAR_HIDDEN_FIELD_FN_NAME
    
public static  StringDEFAULT_CHAR_ENCODING
    
final public static  StringHIDDEN_COMMANDLINK_FIELD_NAME
    
final public static  StringHIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD
    
final public static  StringHIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD
    
final public static  StringNON_SUBMITTED_VALUE_WARNING
    
final public static  StringSUBMIT_FORM_FN_NAME
    


Method Summary
public static  voidallowCdataSection(FacesContext fc, boolean cdataSectionAllowed)
    
public static  voidappendAutoScrollAssignment(StringBuffer onClickValue, String formName)
     Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute.
public static  voidappendClearHiddenCommandFormParamsFunctionCall(StringBuffer buf, String formName)
    
public static  voiddecodeUIInput(FacesContext facesContext, UIComponent component)
     Utility to set the submitted value of the provided component from the data in the current request object.

Param component is required to be an EditableValueHolder.

public static  voiddecodeUISelectBoolean(FacesContext facesContext, UIComponent component)
    
public static  voiddecodeUISelectMany(FacesContext facesContext, UIComponent component)
    
public static  voiddecodeUISelectOne(FacesContext facesContext, UIComponent component)
    
public static  ConverterfindUIOutputConverterFailSafe(FacesContext facesContext, UIComponent uiComponent)
    
public static  ConverterfindUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent)
    
public static  StringgetClearHiddenCommandFormParamsFunctionName(String formName)
    
public static  StringgetClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName)
    
public static  StringgetDisplayValueOnlyStyle(UIComponent component)
    
public static  StringgetDisplayValueOnlyStyleClass(UIComponent component)
    
public static  StringgetHiddenCommandLinkFieldName(FormInfo formInfo)
     Get the name of the request parameter that holds the id of the link-type component that caused the form to be submitted.

Within each page there may be multiple "link" type components that cause page submission.

public static  StringgetHiddenCommandLinkFieldNameMyfacesOld(FormInfo formInfo)
    
public static  StringgetImageLocation(UIComponent component)
    
public static  StringgetJavascriptLocation(UIComponent component)
    
public static  StringgetStyleLocation(UIComponent component)
    
public static  SetgetSubmittedOrSelectedValuesAsSet(boolean selectMany, UIComponent uiComponent, FacesContext facesContext, Converter converter)
    
public static  String[]getSupportedContentTypes()
    
public static  booleanisAllowedCdataSection(FacesContext fc)
    
public static  booleanisDisabled(UIComponent component)
    
public static  booleanisDisabledOrReadOnly(UIComponent component)
    
public static  booleanisDisplayValueOnly(UIComponent component)
    
public static  booleanisReadOnly(UIComponent component)
    
public static  booleanisXHTMLContentType(String contentType)
    
public static  voidrenderAutoScrollFunction(FacesContext facesContext, ResponseWriter writer)
     Renders the autoscroll javascript function.
public static  voidrenderAutoScrollHiddenInput(FacesContext facesContext, ResponseWriter writer)
     Renders the hidden form input that is necessary for the autoscroll feature.
public static  voidrenderClearHiddenCommandFormParamsFunction(ResponseWriter writer, String formName, Set dummyFormParams, String formTarget)
     Render the javascript function that is called on a click on a commandLink to clear the hidden inputs.
public static  voidrenderDisplayValueOnly(FacesContext facesContext, UIInput input)
    
public static  voidrenderDisplayValueOnlyAttributes(UIComponent uiComponent, ResponseWriter writer)
    
public static  voidrenderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent)
    
public static  voidrenderFormSubmitScript(FacesContext facesContext)
    
public static  booleanrenderHTMLAttribute(ResponseWriter writer, String componentProperty, String attrName, Object value)
    
public static  booleanrenderHTMLAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName)
    
public static  booleanrenderHTMLAttributeWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String attrName, Object value, boolean startElementWritten)
    
public static  booleanrenderHTMLAttributes(ResponseWriter writer, UIComponent component, String[] attributes)
    
public static  booleanrenderHTMLAttributesWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes)
    
public static  voidrenderHiddenCommandFormParams(ResponseWriter writer, Set dummyFormParams)
    
public static  voidrenderHiddenInputField(ResponseWriter writer, Object name, Object value)
    
public static  voidrenderLabel(ResponseWriter writer, UIComponent component, String forClientId, String labelValue, boolean disabled)
    
public static  voidrenderListbox(FacesContext facesContext, UISelectOne selectOne, boolean disabled, int size)
    
public static  voidrenderListbox(FacesContext facesContext, UISelectMany selectMany, boolean disabled, int size)
    
public static  voidrenderMenu(FacesContext facesContext, UISelectOne selectOne, boolean disabled)
    
public static  voidrenderMenu(FacesContext facesContext, UISelectMany selectMany, boolean disabled)
    
public static  booleanrenderOptionalEndElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes)
    
public static  voidrenderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet, List selectItemList)
     Renders the select options for a UIComponent that is rendered as an HTML select element.
public static  voidrenderTableCaption(FacesContext context, ResponseWriter writer, UIComponent component)
    
public static  StringselectContentType(String contentTypeListString)
    
public static  voidwriteIdAndNameIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext)
    
public static  voidwriteIdIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext)
    
public static  voidwritePrettyIndent(FacesContext facesContext)
    
public static  voidwritePrettyLineSeparator(FacesContext facesContext)
    

Field Detail
ALLOW_CDATA_SECTION_ON
final public static String ALLOW_CDATA_SECTION_ON(Code)



CLEAR_HIDDEN_FIELD_FN_NAME
final public static String CLEAR_HIDDEN_FIELD_FN_NAME(Code)



DEFAULT_CHAR_ENCODING
public static String DEFAULT_CHAR_ENCODING(Code)



HIDDEN_COMMANDLINK_FIELD_NAME
final public static String HIDDEN_COMMANDLINK_FIELD_NAME(Code)



HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD
final public static String HIDDEN_COMMANDLINK_FIELD_NAME_MYFACES_OLD(Code)



HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD
final public static String HIDDEN_COMMANDLINK_FIELD_NAME_TRINIDAD(Code)



NON_SUBMITTED_VALUE_WARNING
final public static String NON_SUBMITTED_VALUE_WARNING(Code)



SUBMIT_FORM_FN_NAME
final public static String SUBMIT_FORM_FN_NAME(Code)





Method Detail
allowCdataSection
public static void allowCdataSection(FacesContext fc, boolean cdataSectionAllowed)(Code)



appendAutoScrollAssignment
public static void appendAutoScrollAssignment(StringBuffer onClickValue, String formName)(Code)
Adds the hidden form input value assignment that is necessary for the autoscroll feature to an html link or button onclick attribute.



appendClearHiddenCommandFormParamsFunctionCall
public static void appendClearHiddenCommandFormParamsFunctionCall(StringBuffer buf, String formName)(Code)



decodeUIInput
public static void decodeUIInput(FacesContext facesContext, UIComponent component)(Code)
Utility to set the submitted value of the provided component from the data in the current request object.

Param component is required to be an EditableValueHolder. On return from this method, the component's submittedValue property will be set if the submitted form contained that component.




decodeUISelectBoolean
public static void decodeUISelectBoolean(FacesContext facesContext, UIComponent component)(Code)
X-CHECKED: tlddoc h:selectBooleanCheckbox
Parameters:
  facesContext -
Parameters:
  component -



decodeUISelectMany
public static void decodeUISelectMany(FacesContext facesContext, UIComponent component)(Code)
X-CHECKED: tlddoc h:selectManyListbox
Parameters:
  facesContext -
Parameters:
  component -



decodeUISelectOne
public static void decodeUISelectOne(FacesContext facesContext, UIComponent component)(Code)
X-CHECKED: tlddoc h:selectManyListbox
Parameters:
  facesContext -
Parameters:
  component -



findUIOutputConverterFailSafe
public static Converter findUIOutputConverterFailSafe(FacesContext facesContext, UIComponent uiComponent)(Code)



findUISelectManyConverterFailsafe
public static Converter findUISelectManyConverterFailsafe(FacesContext facesContext, UIComponent uiComponent)(Code)



getClearHiddenCommandFormParamsFunctionName
public static String getClearHiddenCommandFormParamsFunctionName(String formName)(Code)
Prefixes the given String with "clear_" and removes special characters
Parameters:
  formName - String



getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy
public static String getClearHiddenCommandFormParamsFunctionNameMyfacesLegacy(String formName)(Code)



getDisplayValueOnlyStyle
public static String getDisplayValueOnlyStyle(UIComponent component)(Code)



getDisplayValueOnlyStyleClass
public static String getDisplayValueOnlyStyleClass(UIComponent component)(Code)



getHiddenCommandLinkFieldName
public static String getHiddenCommandLinkFieldName(FormInfo formInfo)(Code)
Get the name of the request parameter that holds the id of the link-type component that caused the form to be submitted.

Within each page there may be multiple "link" type components that cause page submission. On the server it is necessary to know which of these actually caused the submit, in order to invoke the correct listeners. Such components therefore store their id into the "hidden command link field" in their associated form before submitting it.

The field is always a direct child of each form, and has the same name in each form. The id of the form component is therefore both necessary and sufficient to determine the full name of the field.




getHiddenCommandLinkFieldNameMyfacesOld
public static String getHiddenCommandLinkFieldNameMyfacesOld(FormInfo formInfo)(Code)



getImageLocation
public static String getImageLocation(UIComponent component)(Code)



getJavascriptLocation
public static String getJavascriptLocation(UIComponent component)(Code)



getStyleLocation
public static String getStyleLocation(UIComponent component)(Code)



getSubmittedOrSelectedValuesAsSet
public static Set getSubmittedOrSelectedValuesAsSet(boolean selectMany, UIComponent uiComponent, FacesContext facesContext, Converter converter)(Code)



getSupportedContentTypes
public static String[] getSupportedContentTypes()(Code)



isAllowedCdataSection
public static boolean isAllowedCdataSection(FacesContext fc)(Code)



isDisabled
public static boolean isDisabled(UIComponent component)(Code)



isDisabledOrReadOnly
public static boolean isDisabledOrReadOnly(UIComponent component)(Code)



isDisplayValueOnly
public static boolean isDisplayValueOnly(UIComponent component)(Code)



isReadOnly
public static boolean isReadOnly(UIComponent component)(Code)



isXHTMLContentType
public static boolean isXHTMLContentType(String contentType)(Code)



renderAutoScrollFunction
public static void renderAutoScrollFunction(FacesContext facesContext, ResponseWriter writer) throws IOException(Code)
Renders the autoscroll javascript function.



renderAutoScrollHiddenInput
public static void renderAutoScrollHiddenInput(FacesContext facesContext, ResponseWriter writer) throws IOException(Code)
Renders the hidden form input that is necessary for the autoscroll feature.



renderClearHiddenCommandFormParamsFunction
public static void renderClearHiddenCommandFormParamsFunction(ResponseWriter writer, String formName, Set dummyFormParams, String formTarget) throws IOException(Code)
Render the javascript function that is called on a click on a commandLink to clear the hidden inputs. This is necessary because on a browser back, each hidden input still has it's old value (browser cache!) and therefore a new submit would cause the according action once more!
Parameters:
  writer -
Parameters:
  formName -
Parameters:
  dummyFormParams -
Parameters:
  formTarget -
throws:
  IOException -



renderDisplayValueOnly
public static void renderDisplayValueOnly(FacesContext facesContext, UIInput input) throws IOException(Code)



renderDisplayValueOnlyAttributes
public static void renderDisplayValueOnlyAttributes(UIComponent uiComponent, ResponseWriter writer) throws IOException(Code)



renderDisplayValueOnlyForSelects
public static void renderDisplayValueOnlyForSelects(FacesContext facesContext, UIComponent uiComponent) throws IOException(Code)



renderFormSubmitScript
public static void renderFormSubmitScript(FacesContext facesContext) throws IOException(Code)



renderHTMLAttribute
public static boolean renderHTMLAttribute(ResponseWriter writer, String componentProperty, String attrName, Object value) throws IOException(Code)
true, if the attribute was written
throws:
  java.io.IOException -



renderHTMLAttribute
public static boolean renderHTMLAttribute(ResponseWriter writer, UIComponent component, String componentProperty, String htmlAttrName) throws IOException(Code)
true, if the attribute was written
throws:
  java.io.IOException -



renderHTMLAttributeWithOptionalStartElement
public static boolean renderHTMLAttributeWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String attrName, Object value, boolean startElementWritten) throws IOException(Code)



renderHTMLAttributes
public static boolean renderHTMLAttributes(ResponseWriter writer, UIComponent component, String[] attributes) throws IOException(Code)
true, if an attribute was written
throws:
  java.io.IOException -



renderHTMLAttributesWithOptionalStartElement
public static boolean renderHTMLAttributesWithOptionalStartElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes) throws IOException(Code)



renderHiddenCommandFormParams
public static void renderHiddenCommandFormParams(ResponseWriter writer, Set dummyFormParams) throws IOException(Code)



renderHiddenInputField
public static void renderHiddenInputField(ResponseWriter writer, Object name, Object value) throws IOException(Code)



renderLabel
public static void renderLabel(ResponseWriter writer, UIComponent component, String forClientId, String labelValue, boolean disabled) throws IOException(Code)
Renders a label HTML element



renderListbox
public static void renderListbox(FacesContext facesContext, UISelectOne selectOne, boolean disabled, int size) throws IOException(Code)



renderListbox
public static void renderListbox(FacesContext facesContext, UISelectMany selectMany, boolean disabled, int size) throws IOException(Code)



renderMenu
public static void renderMenu(FacesContext facesContext, UISelectOne selectOne, boolean disabled) throws IOException(Code)



renderMenu
public static void renderMenu(FacesContext facesContext, UISelectMany selectMany, boolean disabled) throws IOException(Code)



renderOptionalEndElement
public static boolean renderOptionalEndElement(ResponseWriter writer, UIComponent component, String elementName, String[] attributes) throws IOException(Code)



renderSelectOptions
public static void renderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet, List selectItemList) throws IOException(Code)
Renders the select options for a UIComponent that is rendered as an HTML select element.
Parameters:
  context - the current FacesContext.
Parameters:
  component - the UIComponent whose options need to berendered.
Parameters:
  converter - component's converter
Parameters:
  lookupSet - the Set to use to look up selected options
Parameters:
  selectItemList - the List of SelectItem s to berendered as HTML option elements.
throws:
  IOException -



renderTableCaption
public static void renderTableCaption(FacesContext context, ResponseWriter writer, UIComponent component) throws IOException(Code)



selectContentType
public static String selectContentType(String contentTypeListString)(Code)



writeIdAndNameIfNecessary
public static void writeIdAndNameIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext) throws IOException(Code)



writeIdIfNecessary
public static void writeIdIfNecessary(ResponseWriter writer, UIComponent component, FacesContext facesContext) throws IOException(Code)



writePrettyIndent
public static void writePrettyIndent(FacesContext facesContext) throws IOException(Code)



writePrettyLineSeparator
public static void writePrettyLineSeparator(FacesContext facesContext) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.