• 大小: 276KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-02
  • 语言: Html/CSS
  • 标签: jsf  

资源简介

本存档系jsf登陆界面初级xhtml前端界面以及css模板,含部分未完全ajax部分

资源截图

代码片段和文件信息

package AJAX;

import java.util.Date;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.faces.component.UIComponent;
import javax.faces.validator.ValidatorException;

@ManagedBean
@SessionScoped
public class RegisterManageBean1 {
    private String ID;
    private String username;
    private String name;
    private String password;
    private String cpassword;
    private int gender;
    private String nickname; 
    private Date birthday;
    private int phnumber;
    private String email;

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCpassword() {
        return cpassword;
    }

    public void setCpassword(String cpassword) {
        this.cpassword = cpassword;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getPhnumber() {
        return phnumber;
    }

    public void setPhnumber(int phnumber) {
        this.phnumber = phnumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    

    public void validateUserName(FacesContext fcUIComponent cobject value){
        if(
                ((String)value).contains(“!“)||((String)value).contains(“@“)||
                ((String)value).contains(“#“)||((String)value).contains(“&“)||
                ((String)value).contains(“$“)||((String)value).contains(“%“)||
                ((String)value).contains(“*“))
            throw new ValidatorException(new FacesMessage(“Userame cannot contain special characters“));
          
}
   
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-23 22:27  WebApplication1\
     目录           0  2017-12-23 22:27  WebApplication1\build\
     目录           0  2017-12-23 22:27  WebApplication1\build\empty\
     目录           0  2017-12-23 22:27  WebApplication1\build\generated-sources\
     目录           0  2017-12-23 22:27  WebApplication1\build\generated-sources\ap-source-output\
     目录           0  2017-12-23 22:27  WebApplication1\build\web\
     目录           0  2017-12-23 22:27  WebApplication1\build\web\CSS\
     文件        1437  2017-12-23 01:08  WebApplication1\build\web\CSS\LoginandRegistercss.css
     目录           0  2017-12-23 22:27  WebApplication1\build\web\CSS\image\
     文件       99204  2017-12-22 16:28  WebApplication1\build\web\CSS\image\Loginbackground.jpg
     目录           0  2017-12-23 22:27  WebApplication1\build\web\meta-INF\
     文件          25  2017-12-21 23:23  WebApplication1\build\web\meta-INF\MANIFEST.MF
     目录           0  2017-12-23 22:27  WebApplication1\build\web\WEB-INF\
     目录           0  2017-12-23 22:27  WebApplication1\build\web\WEB-INF\classes\
     文件           0  2017-12-21 23:23  WebApplication1\build\web\WEB-INF\classes\.netbeans_automatic_build
     文件           0  2017-12-21 23:23  WebApplication1\build\web\WEB-INF\classes\.netbeans_update_resources
     目录           0  2017-12-23 22:27  WebApplication1\build\web\WEB-INF\classes\AJAX\
     文件        3235  2017-12-23 22:20  WebApplication1\build\web\WEB-INF\classes\AJAX\RegisterManageBean1.class
     文件         476  2017-12-21 23:23  WebApplication1\build\web\WEB-INF\glassfish-web.xml
     文件        1284  2017-12-23 21:33  WebApplication1\build\web\WEB-INF\web.xml
     目录           0  2017-12-23 22:27  WebApplication1\build\web\contracts\
     文件           0  2017-12-23 22:21  WebApplication1\build\web\gfv3ee6.dpf
     文件         960  2017-12-23 18:53  WebApplication1\build\web\index.xhtml
     文件         900  2017-12-23 01:11  WebApplication1\build\web\managerLogin.xhtml
     文件        2408  2017-12-23 22:20  WebApplication1\build\web\managerRegister.xhtml
     文件        1059  2017-12-23 18:36  WebApplication1\build\web\userLogin.xhtml
     文件        1867  2017-12-23 01:06  WebApplication1\build\web\userRegister.xhtml
     文件        3511  2017-12-21 22:50  WebApplication1\build.xml
     目录           0  2017-12-23 22:27  WebApplication1\dist\
     文件      104851  2017-12-22 16:28  WebApplication1\dist\WebApplication1.war
     目录           0  2017-12-23 22:27  WebApplication1\nbproject\
............此处省略29个文件信息

评论

共有 条评论