/** * TestCube is an enterprise Test management tool. * Copyright (C) 2011 JatakaSource Ltd. * * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * TestCube is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with TestCube. If not, see <http://www.gnu.org/licenses/>. */ package org.jatakasource.testcube.jsf.bean; import javax.faces.bean.ManagedBean; import javax.faces.bean.ManagedProperty; import javax.faces.bean.RequestScoped; import org.jatakasource.testcube.jsf.JSFBean; import com.ocpsoft.pretty.faces.annotation.URLMapping; @ManagedBean @RequestScoped @URLMapping(id = "htmleditor", pattern = "/htmleditor", viewId = "/jsf/protected/htmleditor.xhtml") public class HtmlEditorBean extends JSFBean { private static final long serialVersionUID = -9220320444608919702L; private static final int DEFAULT_WIDTH = 500; private static final int DEFAULT_HEIGHT = 500; @ManagedProperty(value = "#{param.width}") private int width = DEFAULT_WIDTH; @ManagedProperty(value="#{param.height}") private int height = DEFAULT_HEIGHT; public String getTitle() { return "Html-Editor"; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; } public int getHeight() { return height; } public void setHeight(int height) { this.height = height; } }