[
https://issues.apache.org/jira/browse/TRINIDAD-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias Weßendorf resolved TRINIDAD-1837.
------------------------------------------
Assignee: Matthias Weßendorf
Fix Version/s: 1.2.15-core
Resolution: Fixed
committed to trunk; I may bring the fix over to the 1.2.14 release TAG...
> PPR request doesn't update textarea
> -----------------------------------
>
> Key: TRINIDAD-1837
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1837
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.10-core, 1.2.11-core, 1.2.12-core, 1.2.13-core ,
> 1.2.14-core
> Environment: WinXP, IE 8, Firefox 3.6, Tomcat 5.5
> Reporter: Volker Malzahn
> Assignee: Matthias Weßendorf
> Fix For: 1.2.15-core
>
>
> If you want to update a textarea, i.e. a tr:inputText component with rows and
> columns set, in the response of a PPR request that doesn't function.
> Reason: the JavaScript file Page.js has an error in function
> TrPage._getFirstElementWithId:
> in line 503 the function calls itself recursivly, but it doesn't check if
> that call returns null or not:
> return TrPage._getFirstElementWithId(childNode);
> If the first childNode doesn't contain the searched element the result will
> be null because the other children aren't checked.
> Changing that line to
> var recCallResult = TrPage._getFirstElementWithId(childNode);
> if (recCallResult != null) {
> return recCallResult;
> }
> solves the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.