Page 1 of 1

About Question enthuware.jwpv6.2.723 :

Posted: Fri May 03, 2013 2:29 am
by sebastien
Hello,

I don't understand ... <h1>${refdata:topic(1)}</h1> is not a valid syntax to call a tag function ?
so the answer should be This code is syntactically incorrect.

or change <h1>${refdata:topic(1)}</h1> by <h1><refdata:topic(1)></h1>

correct me if I'm wrong

Sébastien

Re: About Question enthuware.jwpv6.2.723 :

Posted: Fri May 03, 2013 6:42 am
by admin
I am not sure what you mean. It is a valid syntax.
-Paul.

Re: About Question enthuware.jwpv6.2.723 :

Posted: Tue May 28, 2013 9:45 am
by ArsenyKo
sebastien wrote:Hello,

I don't understand ... <h1>${refdata:topic(1)}</h1> is not a valid syntax to call a tag function ?
so the answer should be This code is syntactically incorrect.

or change <h1>${refdata:topic(1)}</h1> by <h1><refdata:topic(1)></h1>

correct me if I'm wrong

Sébastien
Functions are related to EL and are being invoked via EL syntax. <refdata:topic(1)> is not valid XML, even with <refdata:topic(1)/>. It seems you mixed up invocation of a tag, but a tag required to be augmented by its' arguments instead of parenthesis.