You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tobias Marx <su...@gmx.de> on 2008/03/06 12:41:52 UTC
Random Stale Link exceptions (without back button usage)
I keep on getting random stale link exceptions in a Tapestry 4.1 application.
I am not using the browser's back button, however. The error is not reproducable and just "happens" to appear every 20th or 30th time a form is submitted.
The error message:
"Rewind of form Home/$Form expected only 0 form elements, but an additional id was requested by component Home/$TextField."
The generated HTML looks like that:
<form method="post" action="/Home,$Form.sdirect" id="Form">
<div style="display:none;" id="Formhidden"><input type="hidden" name="formids" value="tkeywords,p1,p2,s1" />
<input type="hidden" name="submitmode" value="" />
<input type="hidden" name="submitname" value="" />
</div>
<div class="abstand-suche-text">Suchbegriff:
<input type="text" name="tkeywords" value="" id="tkeywords" class="eingabefeld" />
<div class="strich-suche"></div>
</div>
<div class="abstand-suche-text">Wählen sie ggf. eine Kategorie:
<select name="p1" id="p1" class="eingabefeld">
<option value="24">Laurel & Hardy</option>
</select>
<div class="strich-suche"></div>
</div>
<div class="abstand-suche-text">Verwertungsmöglichkeiten:
<select name="p2" id="p2" class="eingabefeld">
<option value="0">-</option>
<option value="10">Web</option>
<option value="11">Mob</option>
<option value="12">Gr</option>
<option value="13">Ad</option>
<option value="14">mob</option>
</select>
<div class="strich-suche"></div>
</div>
<div class="abstand-suche-text">
<input type="submit" name="s1" id="s1" value="Suchen" class="button1" />
</div>
</form>
The Java code looks like that:
// both client and non-client persistence does have the same effect
@Persist("client")
public abstract Category getSelectedCategory();
@Persist("client")
public abstract License getSelectedLicense();
@Persist("client")
public abstract String getKeywords();
The Template looks like that:
<form jwcid="@Form" id="f1">
<div class="abstand-suche-text"><span key="search.contextSearch" />:
<input class="eingabefeld" jwcid="@TextField" value="ognl:keywords" id="tkeywords"/>
<div class="strich-suche"></div>
</div>
<div class="abstand-suche-text"><span key="search.chooseCategory" />:
<span jwcid="@PropertySelection" model="ognl:categoryModel" value="ognl:selectedCategory" class="eingabefeld" id="p1"/>
<div class="strich-suche"></div>
</div>
<div class="abstand-suche-text"><span key="search.opportunities" />:
<span jwcid="@PropertySelection" model="ognl:licenseModel" value="ognl:selectedLicense" class="eingabefeld" id="p2"/>
<div class="strich-suche"></div>
</div>
<div class="abstand-suche-text">
<input type="submit" class="button1" value="message:search" jwcid="@Submit" action="listener:doSearch" id="s1"/>
</div>
</form>
Any ideas?
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org