warning: Creating default object from empty value in /home/websites/www/ on line 34.
jimlowrey's picture

Conversations with Beans

There are a few things I've been trying to get straight about Beans and Conversations with JBoss Seam. To that end I worked out these examples.

1)Stateless bean with number counter

package org.jlowrey.examples.sessionbeans;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.ScopeType;
@Name("Stateless")//this put's this object in "el" scope in the xhtml page.
public class Stateless {
    private int count = 0;
    public int getCount()
	    return count;

Syndicate content