`
semmy
  • 浏览: 31746 次
  • 性别: Icon_minigender_1
  • 来自: 福建
社区版块
存档分类
最新评论

Element type "len" must be followed by either attribute specifications, ">" or

    博客分类:
  • JSF
阅读更多

昨天在公司时,碰到个莫名其妙的bug,找了好久不知道原因,项目的框架是JSF、seam、利用Facelet做视图模板,spring、hibernate。最后发现在js代码模块中,不能含有有“>”或“<”,比如下面的代码,for循环中有个“<”:

var arr=[1,2,3];

var len=arr.length;

for(var i=0;i<len;++i){

    alert(i);

}

  

这样会被facelet解析成标签的开始,所以会提示“Element type "len" must be followed by either attribute specifications, ">" or "/>"”。

解决方案:

把JS代码中"<"换成"&lt";把">"换成"&gt;"

0
0
分享到:
评论

相关推荐

    Aerotech A3200 Training_V1.1.pdf

    electrical shock, bodily injury, or death the following precautions must be followed. 1. Disconnect electrical power before servicing equipment. 2. Disconnect electrical power before performing any ...

    BUS Hound

    drop.&lt;br&gt;&lt;br&gt;Searching&lt;br&gt;&lt;br&gt;Searching can be performed from the capture window in either the up or down direction by typing the search string in the lower left edit box followed by pressing the up ...

    usb3.0 xhci

    The Extensible Host Controller Interface (xHCI) specification ... Note: In case of conflicts between the xHCI and the USB specifications, the USB specifications take precedence and must be followed

    eda-playground-readthedocs-io-en-latest.zip

    In either the Design or Testbench window pane, type in the following code: module test; initial $display("Hello World!"); endmodule (Note: The code in the right Design pane is compiled first, ...

    ES8316 user Guide.pdf

    The two analogue inputs LlNPUT1/2 RlNPUT1/2 can be selected by a switch, then followed by a differential gain boost with 0dB or +12dB gain. A differential input of either (LlNPUT1 - RlNPUT1) or ...

    2009 达内Unix学习笔记

    &gt; &gt;&gt; 输出重定向 。将一个命令的输出内容写入到一个文件里面。如果该文件存在, 就将该文件的内容覆盖; 如果不存在就先创建该文件, 然后再写入内容。 输出重定向,意思就是说,将原来屏幕输出变为文件输出,...

    swingx包

    and that jUnit.jar is either in that directory as well OR listed on your CLASSPATH.&lt;br&gt;&lt;br&gt;You can build SwingX by going to the command line and typing&lt;br&gt;ant&lt;br&gt;&lt;br&gt;That should be it--this will test...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    On the other hand, you must include the header file for Foo if your class subclasses Foo or has a data member of type Foo. Sometimes it makes sense to have pointer (or better, scoped_ptr) members ...

    四级英语真题

    off.&lt;br&gt;B)The Edwards should cut down on their living expenses.&lt;br&gt;C)It'll be unwise for the Edwards to buy another house.&lt;br&gt;D)It's too expensive for the Edwards to live in their present house.&lt;br&gt;...

    北大ACM题目之3650字符替换

    Certain characters are reserved within URIs, and if a reserved character is part of an identifier then it must be percent-encoded by replacing it with a percent sign followed by two hexadecimal ...

    【原创】【源代码】myshell:操作系统编程-自己用C语言写的Linux下的Shell

    echo &lt;comment&gt; - display &lt;comment&gt; on the display followed by a new line (multiple spaces/tabs may be reduced to a single space) help - display the user manual using the more filter pause - pause ...

    skyhigh.zip

    The device supports the ONFI Read Parameter Page operation, initiated by writing ECh to the Command Register, followed by an address input of 00h. The host may monitor the R/B# pin or wait for the ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    Each command is terminated with an end-of-line terminator which can be either a carriage-return &lt;c/r&gt; or line feed &lt;l/f&gt;. For RS-232 models, the baud rate and terminator character are selected using ...

    SignalR – Real-time Application Development, 2nd (pdf英文原版第二版)

    With SignalR, the applications stay connected and will generate notifications when something happens either from the system or by other users thus giving new opportunities to enter into this new, ...

    Thresholding for Change Detection

    Although it is usually followed by a thresholding operation to isolate regions of change there are few methods available in the literature specific to (and appropriate for) change detection. We ...

    PowerCommands for Visual Studio 2008

    This command is normally followed by a Paste Class command, which renames the class to avoid a compilation error. It can be executed from a single project item or a project item with dependent sub ...

    kgb档案压缩console版+源码

    P in equation (1), that you can find either x from y or y from x. Note also that both computations can be done incrementally. As the leading characters of y are known, the range of possible x narrows,...

    小雨伞环境文件

    # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may ...

    Tajima 绣花机 花型数据编码格式

    All entries in the header seem to be 2 ASCII characters followed by a colon, then it’s value trailed by a carriage return. First is the ‘LA’ entry, which is the design name with no path or ...

Global site tag (gtag.js) - Google Analytics