I decided to model T-4 examples and it still produces exception private static final String[] tableSizeOptions = new String[] { "1", "2", "3", "4", "5", "10", "25", "50", "100", "500", "1000", "2500", "5000", "10000", "25000", "50000" };
private static final String[] pagingSpanOptions = new String[] { "5", "10", "15", "20", "25" }; public IPropertySelectionModel getTableSizeModel() { if (tableSizeModel == null) tableSizeModel = new StringPropertySelectionModel(tableSizeOptions); return tableSizeModel; } public IPropertySelectionModel getPagingSpanModel() { if (pagingSpanModel == null) pagingSpanModel = new StringPropertySelectionModel(pagingSpanOptions); return pagingSpanModel; } <component id="tableSizeSelect" type="PropertySelection"> <binding name="value" value="tableSize"/> <binding name="model" value="tableSizeModel"/> </component> <component id="pagingSpanSelect" type="PropertySelection"> <binding name="value" value="pagingSpan"/> <binding name="model" value="pagingSpanModel"/> </component> @Persist public abstract String getTableSize(); @Persist public abstract String getPagingSpan(); <select jwcid="tableSizeSelect" onchange="tapestry.form.refresh(this.form)"/> <select jwcid="pagingSpanSelect" onchange="tapestry.form.refresh(this.form)"/> I cannot do arithmetic on this property due to divide by zero. So how do you set the DEFAULT VALUE of a property ? I see no support for doing this. I cannot use parameters because it states the parameter cannot be updated. Please advise... thank You An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to parse OGNL expression '(index % tableSize) == 0': / by zero org.apache.tapestry.BindingException Unable to parse OGNL expression '(index % tableSize) == 0': / by zero binding: ExpressionBinding[Home/galleryWidget (index % tableSize) == 0] location: classpath:/org/trails/demo/components/Gallery.html, line 31 26 27 <span jwcid="[EMAIL PROTECTED]"> 28 <table width="100%"> 29 <tr> 30 <span jwcid="[EMAIL PROTECTED]" source="ognl:collection" value="ognl:currentObject" index="ognl:index"> 31 <span jwcid="@If" condition="ognl:(index % tableSize) == 0"> 32 <span jwcid="@Insert" value="</tr><tr>" raw="true"/> 33 </span> 34 <td> 35 <a jwcid="[EMAIL PROTECTED]" listener="listener:edit" parameters="ognl:currentObject"> 36 <img jwcid="@Image" [ +/- ] Exception: Unable to parse OGNL expression '(index % tableSize) == 0': / by zero _________________________________________________________________ Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct