Announcement Announcement Module
Collapse
No announcement yet.
SpringJs 2.0.8 - Dojo queryExpr: "*${0}*" not function Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpringJs 2.0.8 - Dojo queryExpr: "*${0}*" not function

    Hi ,

    Dojo's queryExpr: "*${0}*" seem to be not function in org.springframework.js-2.0.8.RELEASE.jar.

    header,
    Code:
    <head>
      <link type="text/css" rel="stylesheet" href="<c:url value="/resources/dijit/themes/tundra/tundra.css" />" />
      <script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />"></script>
      <script type="text/javascript" src="<c:url value="/resources/spring/Spring.js" />"></script>
      <script type="text/javascript" src="<c:url value="/resources/spring/Spring-Dojo.js" />"></script>
    </head>
    inputbox,
    Code:
    ...
    <form:input path="txns[0].account" />				
      <script type="text/javascript">
        dojo.require("dojo.data.ItemFileReadStore");
    	var stateStore = new dojo.data.ItemFileReadStore({ url: "<c:url value='/js/accounts.json' />"});
            Spring.addDecoration(new Spring.ElementDecoration({
              elementId : "txns0.account",
              widgetType : "dijit.form.ComboBox",
              widgetAttrs : {
    		store: stateStore,
    		searchAttr: "desc",
    		queryExpr: "*${0}*",
    		style: "width: 300px;",
                    highlightMatch: "all",
    		autoComplete: "false",
    		hasDownArrow: "false",
    		value: "-"
    	}}));
    </script>
    ...
    json,
    Code:
    {
       identifier:"id",
       label:"desc",
       items:[
    	 { desc:"1000 - Capital", id:1},
    	 { desc:"3000 - Bank MBB", id:2},
    	 { desc:"7000 - Expenses", id:3}
       ]
    }
    l can display the "desc" list , but it alway choose the first one

    ps. this function did work in the link below ( item : "No arrow, data store which searches and highlights matches anywhere in the string"),
    http://download.dojotoolkit.org/rele...ilteringSelect

    moon
    Last edited by yfmoan; Sep 21st, 2009, 10:20 PM.
Working...
X