You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Amir Kamran <ak...@etilizepak.com> on 2007/03/29 13:30:17 UTC
Converting From tapestry 4.0 to 4.1. Stale Link Errors
In my application there are some complex forms generated by loops and
conditions.
Every thing is working fine using tapestry 4.0 ... but after switching to
4.1 on form submit Stale Link Error occurs.
What needs to be done for switching to 4.1 ?
thnx
--
View this message in context: http://www.nabble.com/Converting-From-tapestry-4.0-to-4.1.-Stale-Link-Errors-tf3485803.html#a9731379
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Converting From tapestry 4.0 to 4.1. Stale Link Errors
Posted by Bryan Lewis <br...@maine.rr.com>.
Just in case it helps....
We had a surprise StaleLinkException in our 4.0.1 apps recently, after
creating a complex component with multiple loops and conditions. The
reason was that we were still using the old Foreach component for our
loops; it hadn't given us any trouble before. Switching from Foreach to
For fixed it.
Andrea Chiumenti wrote:
> plz. give a sample code of your .page and .html
>
> On 3/29/07, Amir Kamran <ak...@etilizepak.com> wrote:
>>
>>
>> In my application there are some complex forms generated by loops and
>> conditions.
>> Every thing is working fine using tapestry 4.0 ... but after
>> switching to
>> 4.1 on form submit Stale Link Error occurs.
>>
>> What needs to be done for switching to 4.1 ?
>>
>> thnx
>> --
>> View this message in context:
>> http://www.nabble.com/Converting-From-tapestry-4.0-to-4.1.-Stale-Link-Errors-tf3485803.html#a9731379
>>
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Converting From tapestry 4.0 to 4.1. Stale Link Errors
Posted by Amir Kamran <ak...@etilizepak.com>.
this is sample code
<tr jwcid="@For" element="tr"
source="ognl:productForEdit.productHeaderForSpec" value="ognl:header"
index="ognl:headerIndex" converter="ognl:headerConverter">
<td>
<fieldset>
<legend>
</legend>
<div style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px;
PADDING-TOP: 6px">
<table border="0" width="90%">
<tbody>
<tr align="left">
<td>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr>
<td class="button">
<!-- span jwcid="@FieldLabel"
field="component:number">Error</span-->
*
<input tabindex="0" type="text" class="smallInput"
element="input" jwcid="@Any" size="1" id="ognl:'rpt' + attributeIndex + '_'
+ headerIndex" />
<input tabindex="0" type="button" class="smallButton"
jwcid="@Any" value="Add" onclick="ognl:'javascipt:addRepeatableSet(' +
headerIndex + ', ' + attributeIndex + ',\'rpt' + attributeIndex + '_' +
headerIndex + '\');'"/>
<!-- input type="submit" jwcid="@Submit" value="Delete"
listener="listener:removeRepeatableSets"/-->
</td>
</tr>
<tr jwcid="@For"
source="ognl:attribute.productParametersSets.values()"
value="ognl:parametersSet" index="ognl:parametersSetIndex"
converter="ognl:parametersSetConverter" element="tr">
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<input type="hidden" jwcid="@Hidden"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).exceptionCodeId" id="ognl:'id_' +
parameterCount + '_e'" />
<td>
<select tabindex="0" jwcid="autocomplete@PropertySelection"
model="ognl:autocompleteBoxModel"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).value"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
id="ognl:'id_' + parameterCount"
onchange="ognl:'javascript:document.getElementById(\'id_' + parameterCount +
'_e\').value = \'l0\';'" />
<input class="bigButton" value="a" type="button" tabindex="1"
jwcid="@Any" onclick="ognl:'javascript:addNewCodedValue(\'' + headerIndex +
'\',\'' + attributeIndex + '\', \'' + parametricDefIndex + '\', \'' +
parametersSetIndex + '\', \'' + 'id_' + parameterCount + '\', true);'" />
<select tabindex="0" jwcid="manufacturer@PropertySelection"
model="ognl:manufacturerModel" value="ognl:productForEdit.manufacturerId"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
disabled="true" />
<select tabindex="0" jwcid="coded@PropertySelection"
model="ognl:codedValueModel"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).value"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
id="ognl:'id_' + parameterCount"
onchange="ognl:'javascript:document.getElementById(\'id_' + parameterCount +
'_e\').value = \'l0\';'" />
<input class="bigButton" value="a" type="button" tabindex="1"
jwcid="@Any" onclick="ognl:'javascript:addNewCodedValue(\'' + headerIndex +
'\',\'' + attributeIndex + '\', \'' + parametricDefIndex + '\', \'' +
parametersSetIndex + '\', \'' + 'id_' + parameterCount + '\', false);'" />
<input tabindex="0" class="normalText" type="text"
jwcid="text@TextField" onFocus="this.select();"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).value" size="10"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
id="ognl:'id_' + parameterCount"
onchange="ognl:'javascript:document.getElementById(\'id_' + parameterCount +
'_e\').value = \'l0\';'" />
<input tabindex="0" class="normalText" type="text"
jwcid="number@TextField" onFocus="this.select();"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).value" size="10"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
id="ognl:'id_' + parameterCount"
onchange="ognl:'javascript:document.getElementById(\'id_' + parameterCount +
'_e\').value = \'l0\';'" />
<input tabindex="0" class="normalText" type="text"
jwcid="float@TextField" onFocus="this.select();"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).value" size="10"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
id="ognl:'id_' + parameterCount"
onchange="ognl:'javascript:document.getElementById(\'id_' + parameterCount +
'_e\').value = \'l0\';'" />
<textarea tabindex="0" class="normalText"
jwcid="paragraph@TextArea" onFocus="this.select();"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).value" rows="3" cols="40"
displayName="ognl:parametricDefinition.parameterNameOrConstant"
id="ognl:'id_' + parameterCount" />
</td>
0">
<td>
<select tabindex="1" jwcid="unitValue@PropertySelection"
model="ognl:codedValueModel"
value="ognl:attribute.getParameterValue(parametersSetIndex,
parametricDefinition.parameterId).unitvalue"
displayName="ognl:parametricDefinition.parameterNameOrConstant" />
</td>
<td>
<input class="bigButton" value="e" type="button"
tabindex="1" jwcid="@Any" onclick="ognl:'javascript:addExceptionCode(\'id_'
+ parameterCount + '\');'" />
</td>
<td> </td>
0">
<td><input tabindex="0" jwcid="@Any" element="input"
type="button" class="smallButton" value="Delete"
onclick="ognl:'javascript:deleteRepeatableSet(' + headerIndex + ', ' +
attributeIndex + ', ' + parametersSetIndex + ');'"/></td>
</tr>
</table>
</td>
</tr>
<!-- span jwcid="@InvokeListener"
listener="listener:updateParametersSet"/ -->
</table>
</td>
</tr>
</tbody>
</table>
</div>
</fieldset>
</td>
</tr>
<page-specification>
<description>add a description</description>
<asset name="stylesheet" path="/includes/style.css"/>
<property name="currentFieldTracking"/>
<component id="errors" type="For">
<binding name="source" value="beans.delegate.fieldTracking"/>
<binding name="value" value="currentFieldTracking"/>
</component>
<component id="error" type="Delegator">
<binding name="delegate" value="currentFieldTracking.errorRenderer"/>
</component>
<component id="isInError" type="If">
<binding name="condition" value="currentFieldTracking.inError"/>
<binding name="element" value="literal:li"/>
</component>
<component id="addUpdateProductForm" type="Form">
<binding name="delegate" value="beans.delegate"/>
<binding name="listener" value="listener:doSubmit"/>
</component>
</page-specification>
Andrea Chiumenti wrote:
>
> plz. give a sample code of your .page and .html
>
> On 3/29/07, Amir Kamran <ak...@etilizepak.com> wrote:
>>
>>
>> In my application there are some complex forms generated by loops and
>> conditions.
>> Every thing is working fine using tapestry 4.0 ... but after switching to
>> 4.1 on form submit Stale Link Error occurs.
>>
>> What needs to be done for switching to 4.1 ?
>>
>> thnx
>> --
>> View this message in context:
>> http://www.nabble.com/Converting-From-tapestry-4.0-to-4.1.-Stale-Link-Errors-tf3485803.html#a9731379
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Converting-From-tapestry-4.0-to-4.1.-Stale-Link-Errors-tf3485803.html#a9732515
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Converting From tapestry 4.0 to 4.1. Stale Link Errors
Posted by Andrea Chiumenti <ki...@gmail.com>.
plz. give a sample code of your .page and .html
On 3/29/07, Amir Kamran <ak...@etilizepak.com> wrote:
>
>
> In my application there are some complex forms generated by loops and
> conditions.
> Every thing is working fine using tapestry 4.0 ... but after switching to
> 4.1 on form submit Stale Link Error occurs.
>
> What needs to be done for switching to 4.1 ?
>
> thnx
> --
> View this message in context:
> http://www.nabble.com/Converting-From-tapestry-4.0-to-4.1.-Stale-Link-Errors-tf3485803.html#a9731379
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>