tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Quijano Vincenzi (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Created: (TAPESTRY-628) BeanPropertySelectionModel
Date Sat, 03 Sep 2005 20:03:30 GMT

         Key: TAPESTRY-628
         URL: http://issues.apache.org/jira/browse/TAPESTRY-628
     Project: Tapestry
        Type: Improvement
  Components: Framework  
    Versions: 4.0    
    Reporter: Leonardo Quijano Vincenzi
    Priority: Minor

Sometimes it's useful to bind a list of JavaBeans to a PropertySelect, and have Tapestry display
a property (labelProperty), and use another property as the selected value (valueProperty).
That would allow us to include database lists (probably instantiated using Hibernate or some
other ORM) directly on the page, as model for the SELECT.

 A simple implementation would go like this:

public class BeanPropertySelectionModel<E> implements IPropertySelectionModel { 
   public BeanPropertySelectionModel(List<E> options, String labelProperty, String 
  public String getLabel(int index);
  public E getOption(int index); 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org

View raw message