Ticket #883 (new defect)

Opened 3 months ago

Last modified 2 months ago

Parameter tags are not handled in component properties.

Reported by: sergeymorkovkin Owned by: xue
Priority: normal Milestone:
Component: Prado Framework v3 Version: 3.1
Severity: minor Keywords:
Cc:

Description

Documentation states: Parameter tags are used to insert application parameters at the place where they appear in the template.

However, whe using the following construction, parameter tag is not handled:

<com:TImage ImageUrl?="<%$ Website %>/Images/picture.gif" />

This results:

<img src="&lt;%$ Website %&gt;/Images/picture.gif" />

Change History

Changed 3 months ago by sergeymorkovkin

See page 76 of Prado QS:

Parameter tags are used to assign application parameter values to the corresponding component properties.

Changed 2 months ago by knut

Parameter Tags are not evaluated in attribute values. Please use expression tags instead.

I'm a bit unsure if we should allow this.

Anyway, this is working:

<com:TImage ImageUrl="<%=$this->Application->Parameters['Website']%>/Images/picture.gif" />
Note: See TracTickets for help on using tickets.