Re: Character conversions?
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <OF44386C6D.18DBEEDD-ONC12570FA.00443895-C12570FA.0046B8B5@commaro.com> |
Hello Lars,
Jahia context:textField tag performs the conversion (using
JahiaTools.text2html(...) method) when the display attribute of the tag is
set to 'true' (default value).
The problem is, that Jahia performs such conversions also somewhere else
(e.g. I have seen such a conversion in load() method of the
JahiaSmallTextField).
Could you try the following (based on the example of Lorenzo):
<content:textField name="genericWordTitle" id="myTitleField"
display="false" />
<c:out value="${myTitleField.rawValue}"/>
Let me know, please, if it works
Kind regards.
Sergiy
Lorenzo Patocchi <[email protected]>
18.01.2006 11:21
Please respond to
<[email protected]>
To
[email protected]
cc
Subject
Re: Character conversions?
Can you try out this ?
<content:textField name="genericWordTitle" id="titlefield"
valueId="title" display="false" />
<bean:define id="title" name="title" />
<bean:define id="titlefield" name="titlefield" property="value"/>
<%=title%>
<%=titlefield%>
just to bypass any writing tag and check if content:textField is using
some HTML conversion when display=true
[email protected] wrote:
Thank You very much for trying to help.
I am using or trying jahia , struts and jstl taglibs.
<content:textField name="genericWordTitle" id="titlefield"
valueId="title" />
<bean:write name="titlefield" property="value" filter="false"/>
<bean:write name="title" filter="false"/>
<c:out value="${title}"/>
<c:out value="${titlefield.value}" />
if the field has the value Åland the result will be
Åland // Jahia tag
Åland // struts getting value property
Åland // struts using the string
&Aring;land // jstl using the string and filtering the &
&Aring;land // jstl using the string and filtering the &
So with filtering (jstl) even the output will look bad.
Ok. I have to make a filter and replace the encoded characters, sort, do
all other logic then convert the strings back again before I show them.
Regards
/Lars
--
Lorenzo Patocchi
Dipl. Ing. STS/ETS/HTL
[email protected] - www.cryms.com
Tel: +41 91 60 55266
Cel: +41 79 375 0891
Fax: +41 91 223 9797
Cryms sagl
Via Cantonale 34a
6928 Manno - Lugano
Switzerland