Share

ePlatform

Tracker: Bugs

5 parameterkeys not expanded in errorpageref - ID: 1704192
Last Update: Comment added ( slootj )

The errorpageref (see
https://sourceforge.net/tracker/?func=detail&atid=790225&aid=1689824&group_
id=154049) doesn't expand the parameterskeys in the errormessage.

Example:

<errorPageRef id="error_pageref">
...
<errorcode>msg_minimale_leeftijd</errorcode>
<parameterkeys>minleeftijd</parameterkeys>
<staticpageref>
<page>error</page>
</staticpageref>
</errorPageRef>

Results in the error:
Er geldt een leeftijdsminimum van minleeftijd jaar.

The "minleeftijd" should have been expanded.

Probable source of problem (analysis by kees_vandenhoek): the
doErrorPageRef method in com.logicacmg.eplatform.form.Form [line 427]:

error = new ValidationError(getErrorPageRef().getErrorCode(),
getErrorPageRef().getParameterKeys().split(",", -1));


bcoret ( bcoret ) - 2007-04-20 09:21

5

Closed

Fixed

Johan

core

v2.4.0.0

Public


Comments ( 2 )




Date: 2007-04-25 13:39
Sender: slootjProject Admin


In stead of the values the keys was set.


Date: 2007-04-25 13:19
Sender: slootjProject Admin


Your message is not right. It should be:
<message id="msg_minimale_leeftijd">
<text>Er geldt een leeftijdsminimum van {0} jaar.</text>
</message>



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2007-04-25 13:39 slootj
resolution_id None 2007-04-25 13:39 slootj
artifact_group_id None 2007-04-25 13:39 slootj
close_date - 2007-04-25 13:39 slootj
assigned_to nobody 2007-04-20 09:28 bcoret