Revision history [back]

click to hide/show revision 1
initial version

answered 2014-06-10 20:51:43 +0800

terrytornado gravatar image terrytornado flag of Germany

http://www.oxitec.de/

Get it not to work. What's the hack do i false?

taglib:

  <!-- Retrieve an I18N string with a default value and replace parameters -->
    <function>
        <name>lDefParam</name>
        <function-class>org.zkoss.util.resource.Labels</function-class>
        <function-signature>
            java.lang.String getLabel(java.lang.String, java.lang.String, java.lang.Object[])
        </function-signature>
        <description>Retrieve a label with a default and replace parameters.</description>
</function>

zul:

<label value="${ox:lDefParam('ox_Message_Info_NewUserRegistration','defaultText', {'test1','test2'} )}"></label>

Caused by: org.zkoss.zel.impl.parser.ParseException: Encountered " <illegal_character> "{ "" at line 1, column 69. Was expecting one of: <integer_literal> ... <floating_point_literal> ... <string_literal> ... "true" ... "false" ... "null" ... "(" ... "!" ... "not" ... "empty" ... "-" ... <identifier> ...

    at org.zkoss.zel.impl.parser.ELParser.generateParseException(ELParser.java:2215)

any idea are welcome Stephan

Get it not to work. What's the hack do i false?

taglib:

  <!-- Retrieve an I18N string with a default value and replace parameters -->
    <function>
        <name>lDefParam</name>
        <function-class>org.zkoss.util.resource.Labels</function-class>
        <function-signature>
            java.lang.String getLabel(java.lang.String, java.lang.String, java.lang.Object[])
        </function-signature>
        <description>Retrieve a label with a default and replace parameters.</description>
</function>

zul:

<label value="${ox:lDefParam('ox_Message_Info_NewUserRegistration','defaultText', {'test1','test2'} )}"></label>

Caused by: org.zkoss.zel.impl.parser.ParseException: Encountered " <illegal_character> <ILLEGAL_CHARACTER> "{ "" at line 1, column 69. Was expecting one of: <integer_literal> ... <floating_point_literal> ... <string_literal> <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <STRING_LITERAL> ... "true" ... "false" ... "null" ... "(" ... "!" ... "not" ... "empty" ... "-" ... <identifier> ...

<IDENTIFIER> ...

        at org.zkoss.zel.impl.parser.ELParser.generateParseException(ELParser.java:2215)

any idea are welcome Stephan

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More