小编Hun*_*ner的帖子

如何为XMLGregorianCalendar创建JSF转换器

我使用JSF和RichFaces为我的SOAP Web服务创建了一个客户端.以下是我的观点:

<h:form>
    <h:panelGrid id="panel" width="80%" columns="2" columnClasses="col1,col2">
        <rich:panel>
            <h:outputLabel value="Application Name  " />
            <h:selectOneMenu value="#{userComplaintBean.appName}">
                <f:selectItem itemValue="1" itemLabel="Select" />
                <f:selectItem itemValue="App1" itemLabel="App1" />
                <f:selectItem itemValue="App2" itemLabel="App2" />
                <f:selectItem itemValue="App3" itemLabel="App3" />
                <f:selectItem itemValue="App4" itemLabel="App4" />
                <f:selectItem itemValue="App5" itemLabel="App5" />
            </h:selectOneMenu>
            <br />
            <h:outputLabel value="Complaint Description " />
            <h:inputTextarea value="#{userComplaintBean.complaintDesc}" />
            <br />
            <h:outputLabel value="Date Expected  "/>
            <rich:calendar datePattern="yyyy/MM/dd" />
            <br/>
            <h:commandButton value="submit" action="#{userComplaintBean.save()}" />
        </rich:panel>
    </h:panelGrid>
</h:form>
Run Code Online (Sandbox Code Playgroud)

下面是我的托管bean:

@ManagedBean(name = "userComplaintBean")
@RequestScoped
public class UserComplaintBean {
    UserComplaintVO userComplaintVO;
    UserComplaintWS …
Run Code Online (Sandbox Code Playgroud)

jsf soap richfaces jsf-2

3
推荐指数
1
解决办法
1374
查看次数

标签 统计

jsf ×1

jsf-2 ×1

richfaces ×1

soap ×1