An exception has occurred.
You may continue by restarting the session.
[ +/- ] Exception:
Unable to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
org.apache.tapestry.BindingException
Unable
to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
binding:
ExpressionBinding[Home/galleryWidget tableSize]
location:
classpath:/org/trails/demo/components/Gallery.html,
line 83 <span jwcid="[EMAIL PROTECTED]">
4 <table width="100%" border=1>
5 <tr>
6 <td width="25%" align="left" NOWRAP>
7 <span jwcid="@Insert" value="Table
Size"/>
8 <select
jwcid="@PropertySelection"
model="ognl:@[EMAIL PROTECTED]"
value="ognl:tableSize"
onchange="tapestry.form.refresh(this.form)"></select>
9 <span jwcid="@Insert" value="Paging
Span"/>
10 <select
jwcid="@PropertySelection"
model="ognl:@[EMAIL PROTECTED]"
value="ognl:pagingSpan"
onchange="tapestry.form.refresh(this.form)"></select>
11 </td>
12 <td align="left" NOWRAP>
13 <a jwcid="@DirectLink"
listener="listener:onBegin" style="fontSize:15px;"> <span
jwcid="@Insert" value="<<"/> </a>
[ +/- ] Exception:
Unable to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
org.apache.hivemind.ApplicationRuntimeException
Unable
to update OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.
component:
[EMAIL PROTECTED]/galleryWidget]
location:
context:/WEB-INF/Home.html, line 94 <div
id="page.title">
5 <span jwcid="@Insert" value="Listings"/>
6 </div>
7 </h1>
8
9 <div jwcid="[EMAIL PROTECTED]:Gallery"
10 collectionType="ognl:@[EMAIL PROTECTED]"
11 component="galleryWidget"
12 collectionContent="collectionContent"
13 autoPagingContent="autoPagingContent"
14 tableSize="1"
[ +/- ] Exception:
Binding with value 1 (StaticBinding[1]) may not be updated.Best
regardsKen in nashuaFrom: [EMAIL PROTECTED]: [EMAIL PROTECTED]: parameter
binding broken in T-4.1.* - PROPERTYSELECTIONDate: Wed, 10 Oct 2007 11:29:20
-0400
Folks,I have been chasing my tail trying to get a simple parameter to work. I
am 2 years tapestry and developed parameters for quite sometime.Can someone
confirm this as bug or present a solution?This is what I
have...Gallery.JAVApublic abstract class Gallery extends BaseComponent{
public static IPropertySelectionModel tableSizeModel = new
StringPropertySelectionModel(new String[] { "1", "2", "3", "4", "5",
"10", "25", "50", "100", "500", "1000", "2500", "5000", "10000", "25000",
"50000" }); @Parameter(required = false, cache = true, defaultValue = "1")
public abstract String getTableSize(); public abstract void
setTableSize(String tableSize);... }Home.html (usage) <div jwcid="[EMAIL
PROTECTED]:Gallery" collectionType="ognl:@[EMAIL PROTECTED]"
component="galleryWidget" tableSize="1" >Depending on
whether I specify @Parameter or @Persist of declare the arrays non-static or
specify the parameter in JWC file or omit them from the Home.html definition...
I receive various exceptions ranging from cannot update this parameter ...to
cannot update static data ...to stack overflow... to bindingexception... to not
being able to even reference the property inside an @If condition <span
jwcid="@If" condition="ognl:(index % tableSize) == 0">Can someone explain how
they wold do this? I tried every combination.Nothing works. Informal parameters
are allowed on the java class declaration as well as within the JWC
file.???Best regardsKen in nashuaGallery.html follows:<span jwcid="$content$">
<span jwcid="[EMAIL PROTECTED]"> <table width="100%" border=1>
<tr> <td width="25%" align="left" NOWRAP>
<span jwcid="@Insert" value="Table Size"/> <select
jwcid="@PropertySelection" model="ognl:@[EMAIL PROTECTED]"
value="ognl:tableSize" onchange="tapestry.form.refresh(this.form)"></select>
<span jwcid="@Insert" value="Paging Span"/>
<select jwcid="@PropertySelection" model="ognl:@[EMAIL PROTECTED]"
value="ognl:pagingSpan" onchange="tapestry.form.refresh(this.form)"></select>
</td> <td align="left" NOWRAP>
<a jwcid="@DirectLink" listener="listener:onBegin" style="fontSize:15px;">
<span jwcid="@Insert" value="<<"/> </a> <a
jwcid="@DirectLink" listener="listener:onPrev"> <span jwcid="@Insert"
value="<"/> </a> <a jwcid="@DirectLink"
listener="listener:onPage" parameters="ognl:1"> <span jwcid="@Insert"
value="ognl:1"/> </a> <a jwcid="@DirectLink"
listener="listener:onPage" parameters="ognl:2"> <span jwcid="@Insert"
value="ognl:2"/> </a> <a jwcid="@DirectLink"
listener="listener:onPage" parameters="ognl:3"> <span jwcid="@Insert"
value="ognl:3"/> </a> <a jwcid="@DirectLink"
listener="listener:onPage" parameters="ognl:4"> <span jwcid="@Insert"
value="ognl:4"/> </a> <a jwcid="@DirectLink"
listener="listener:onPage" parameters="ognl:5"> <span jwcid="@Insert"
value="ognl:5"/> </a> <a jwcid="@DirectLink"
listener="listener:onNext"> <span jwcid="@Insert" value=">"/> </a>
<a jwcid="@DirectLink" listener="listener:onEnd"> <span jwcid="@Insert"
value=">>"/> </a> </td> </tr> </table>
</span> <span jwcid="[EMAIL PROTECTED]"> <table width="100%">
<tr> <span jwcid="[EMAIL PROTECTED]" source="ognl:collection"
value="ognl:currentObject" index="ognl:index"> <span
jwcid="@If" condition="ognl:(index % tableSize) == 0">
<span jwcid="@Insert" value="</tr><tr>" raw="true"/> </span>
<td> <a jwcid="[EMAIL PROTECTED]"
listener="listener:edit" parameters="ognl:currentObject">
<img jwcid="@Image" image="ognl:photoAsset"
alt="ognl:currentObject.demographics.city"
title="ognl:currentObject.demographics.city" width="160"
height="110" /> </a>
</td> </span> </tr> </table> </span>
<form jwcid="[EMAIL PROTECTED]" listener="listener:onFormSubmit">
<div jwcid="@RenderBlock" block="ognl:components.autoPagingContent"/>
<div jwcid="@RenderBlock" block="ognl:components.collectionContent"/>
<div jwcid="@RenderBlock" block="ognl:components.autoPagingContent"/>
</form><!-- <span jwcid="@Script"
script="/org/trails/demo/components/Gallery.script" tableSize="ognl:3"
component="ognl:components.galleryForm" />--></span>Peek-a-boo FREE
Tricks & Treats for You! Get 'em!
_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]