Package jsf.entity

Source Code of jsf.entity.TagController

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jsf.entity;

import entity.Tag;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.faces.context.FacesContext;
import jpa.controllers.TagJpaController;
import jsf.util.JsfUtil;

/**
*
* @author atap
*/
public class TagController {
   
    private Tag tag = null;
    private TagJpaController jpaController = null;
    private TagConverter converter = null;
   
    public TagController() {
        FacesContext context = FacesContext.getCurrentInstance();
        jpaController = (TagJpaController) context.getApplication().getELResolver().getValue(context.getELContext(), null, "tagJpa");
        converter = new TagConverter();
    }
   
    public Tag getTag() {
        if(tag == null) {
            tag = (Tag)JsfUtil.getObjectFromRequestParameter("jsfcrud.currentTag", converter, null);
        }
        if(tag == null) {
            tag = new Tag();
        }
        return tag;
    }
   
    //getSynonyms
   
    //UpdateScore
   
}
TOP

Related Classes of jsf.entity.TagController

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.