Hi Folks,

I am tearing thru the docs and mail list searching for

"when do properties bind" tapestry

No luck yet.

But I will continue.

I have two scenarios of bindings.

Simple Enum <select> static
Simple Enum <select> dynamic queried out of my database using hibernate

I am setting up a query form/page kinda like NHL.com statistics

My question...

When are these bindings performed? Their initial values are set to something 
other than null.

For my year <select>

Here is my sample setup tml
        <td>
            <select t:type="Select" t:id="yearSelect" t:clientId="yearSelect" 
id="yearSelect"
                t:model="prop:yearSelectModel" t:encoder="prop:yearValueEncoder"
                t:value="prop:year" blankOption="never"
                />        
        </td>


and the java

    @Component(id = "yearSelect", parameters = { "value=year", 
"clientId=yearSelect" })
    private Select yearSelect;
    public ValueEncoder getYearValueEncoder()
    {
        return valueEncoderSource.getValueEncoder(Year.class);
    }
    public SelectModel getYearSelectModel()
    {
        SelectModelFactory selectModelFactory = new 
SelectModelFactoryImpl(adapter, valueEncoderSource);
        years = new 
ArrayList(TynamoUTIL.loadCollection(hibernatePersistenceService, Year.class));
        return selectModelFactory.create(years, "displayableName");
    }
    @Property
    @Persist(PersistenceConstants.FLASH)
    private Year year;    
    private ArrayList years;

    @SetupRender
    public void setupRender() {
        beanType = PlayerStats.class;
        
        collection = playerStats = new ArrayList(
                 TynamoUTIL.loadCollectionByYearAndLeagueAndSeason(
                   hibernatePersistenceService, 
                       year, league, season, PlayerStats.class));   

        grid.reset();
    }


I dont know when my properties will bind.

Any ideas ?

thanks


                                          

Reply via email to