本文整理汇总了Java中javax.faces.component.html.HtmlForm类的典型用法代码示例。如果您正苦于以下问题:Java HtmlForm类的具体用法?Java HtmlForm怎么用?Java HtmlForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HtmlForm类属于javax.faces.component.html包,在下文中一共展示了HtmlForm类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findClientIdOfSurroundingFormClientId
import javax.faces.component.html.HtmlForm; //导入依赖的package包/类
private String findClientIdOfSurroundingFormClientId(final UIComponent component) {
if (component instanceof HtmlForm) {
return component.getClientId();
}
if (component.getParent() == null) {
return null;
}
return findClientIdOfSurroundingFormClientId(component.getParent());
}
示例2: findEnclosingFormOf
import javax.faces.component.html.HtmlForm; //导入依赖的package包/类
/**
* Find enclosing form of the component.
*
* @param comp the component to find the enclsing form of
*
* @return the form component (null if form parent not found)
*/
public UIForm findEnclosingFormOf(UIComponent comp) {
while (comp != null && !(comp instanceof HtmlForm)) {
comp = comp.getParent();
}
if(comp instanceof UIForm) {
return (UIForm) comp;
}
return null;
}
示例3: getDefaultFormRenderer
import javax.faces.component.html.HtmlForm; //导入依赖的package包/类
private Renderer getDefaultFormRenderer(FacesContext context) {
return context.getRenderKit().getRenderer(HtmlForm.COMPONENT_FAMILY, "javax.faces.Form");
}
示例4: JsfFormRenderer
import javax.faces.component.html.HtmlForm; //导入依赖的package包/类
public JsfFormRenderer(JsfFormModel model) {
super(HtmlForm.COMPONENT_TYPE, model);
component.setEnctype(model.getEntype());
}