TestRootView.java 789 Bytes
package org.legrog.web.xyz;

import javax.inject.Named;
import java.io.Serializable;

@Named
@javax.enterprise.context.RequestScoped
//@URLMapping(id = "testroot", pattern = "/testRoot/#{bar : testRootView.bar}", viewId = "xyz/TestRoot.jsf")
public class TestRootView implements Serializable {

    String foo = "my first String";

    String bar ="";

//
//    public void init() {
//        if (number == null) {
//            foo = "my second String";
//        } else {
//            foo = "my string #"+number;
//        }
//
//    }

    public String getFoo() {
        return foo;
    }

    public void setFoo(String foo) {
        this.foo = foo;
    }

    public String getBar() {
        return bar;
    }

    public void setBar(String bar) {
        this.bar = bar;
    }
}