Why double quotes as default?

6 views
Skip to first unread message

serban.balamaci

unread,
Jan 11, 2012, 8:52:39 AM1/11/12
to jqwicket-user
Hi,
Why double quote as default?

/**
* Builds new literal instance with default mode {@link
Mode#DBLQUOTED}.
*
* @param literal
* @return new JQLiteral instance
*/
public static final JQLiteral _(Object literal) {
return _dblquoted(literal);
}

Doesn't this break inline js like onclick=".....".".." ?
This forces me to always use appendRawCharSequence instead of using
chain() for example.

max

unread,
Jan 13, 2012, 3:45:50 AM1/13/12
to jqwick...@googlegroups.com
Hi,

jqwicket generates javascript to the <script>..</script> section of the html-page, where double quotes are not a problem. If you take a look to the original jquery-examples, double quotes usage is a common case.

Inline javascript in combination with jqwicket is rather unusual. But you are right, in such a case you have to use single quoted literals.
Reply all
Reply to author
Forward
0 new messages