常用标签
1、colspan="2"横向占两格 rowspan="2"纵向占两格
2、align="center" valign="middle"
3、cellpadding="0" cellspacing="0"
4、<rich:comboBox selectFirstOnUpdate="false"
defaultLabel="Enter some value">
<f:selectItems value="# {capitalsBean.capitalsOptions}" />
</rich:comboBox>
5、空格:
6、获得参数值:
public static String getParameter(String name) {
return (String) FacesContext.getCurrentInstance().getExternalContext()
.getRequestParameterMap().get(name);
}
7、select * from lobo_content where Lm_dm in(select Lm_dm from lobo_catalog where Flm_dm='11')
8、列表
<h:panelGrid columns="2">
<h:outputText value="sfd" />
</h:panelGrid>
9、<h:commandButton value="删除" actionListener="#{userWindow.deleteAction}">
10、输出List内容
for(int i = 0; i<list.size(); i++){
LoboUser s = (LoboUser)list.get(i);
System.out.println(s.getUserName());
}
11、让组件不显示 rendered="false"
12、填充两个控件中间的区域 <rich:spacer width="10" />
13、回车空行(???)<br/>
<embed src="http://gimg.baidu.com/img/houyipic/20070305/34016131301.swf"
height="100" width="700"/>
14、js 小于号 &lt
大于号 >
& &
15、FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext extContext =facesContext.getExternalContext();
HttpSession session =(HttpSession)extContext.getSession(true);
mes.setMesOperator(session.getAttribute("user").toString());