Hi Angelo,

Profile.java:
----------------
public enum Profile {
    T, S;
}

Pagina.properties:
------------------------
T=Teacher
S=Studend

Pagina.java:
-----------------
public class Pagina {
    @Persist
    private Profile _profile;
    public Profile getProfile() { return _profile;  }
    public void setProfile(Profile profile) { this._profile= profile; }

    public void onSubmit() {
        String profile = this.getProfile().toString();  // Getting selected
option.
        System.out.println(profile);
    }
}

Pagina.html:
------------------
<select t:type="Select" t:id="profile" value="profile" />



Marcus

Reply via email to