/java/test/com/google/gxp/compiler/functests/bundle/CallerGxp.gxp

http://gxp.googlecode.com/ · text · 60 lines · 47 code · 13 blank · 0 comment · 0 complexity · ecaf077f7dc0abf8756f35cc4e590a50 MD5 · raw file

  1. <!DOCTYPE gxp:template SYSTEM "http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent">
  2. <!--
  3. Copyright (C) 2008 Google Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <gxp:template name='com.google.gxp.compiler.functests.bundle.CallerGxp'
  15. xmlns='http://www.w3.org/1999/xhtml'
  16. xmlns:call='http://google.com/2001/gxp/call'
  17. xmlns:gxp='http://google.com/2001/gxp'
  18. xmlns:f='http://google.com/2001/gxp/call/com/google/gxp/compiler/functests/bundle'
  19. xmlns:expr='http://google.com/2001/gxp/expressions'>
  20. <gxp:param name='id' type='int' />
  21. <f:CalleeGxp expr:id='id' class="theclass">
  22. body
  23. </f:CalleeGxp>
  24. <call:CalleeGxp expr:id='id+1' expr:class='"theclass"'>
  25. body
  26. </call:CalleeGxp>
  27. <call:CalleeGxp expr:id='id+2'>
  28. <gxp:attr name='onclick'>
  29. alert(<gxp:eval expr='"foo"'/>);
  30. foo();
  31. </gxp:attr>
  32. body
  33. </call:CalleeGxp>
  34. <f:BooleanCalleeGxp selected="selected">
  35. body
  36. </f:BooleanCalleeGxp>
  37. <f:BooleanCalleeGxp expr:selected='true'>
  38. body
  39. </f:BooleanCalleeGxp>
  40. <f:BooleanCalleeGxp expr:selected='false'>
  41. body
  42. </f:BooleanCalleeGxp>
  43. <f:CallCalleeAGxp expr:id='id' class="theclass" onclick="foo()">
  44. body
  45. </f:CallCalleeAGxp>
  46. <call:CalleeWithRequiredAttrGxp src="fluffy.gif" alt="fluffy the cat" />
  47. </gxp:template>