Guest User

Untitled

a guest
Mar 17th, 2011
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.78 KB | None | 0 0
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"><head><link type="text/css" rel="stylesheet" href="/tweetstream/rfRes/skinning.ecss.jsf?db=eAHL6rC8BQAEkAIG" /><link type="text/css" rel="stylesheet" href="/tweetstream/javax.faces.resource/css/screen.css.jsf" /><link type="text/css" rel="stylesheet" href="/tweetstream/rfRes/msg.ecss.jsf?db=eAHL6rC8BQAEkAIG&amp;ln=org.richfaces" /><script type="text/javascript" src="/tweetstream/javax.faces.resource/jquery.js.jsf"></script><script type="text/javascript" src="/tweetstream/javax.faces.resource/richfaces.js.jsf"></script><script type="text/javascript" src="/tweetstream/javax.faces.resource/richfaces-event.js.jsf"></script><script type="text/javascript" src="/tweetstream/javax.faces.resource/richfaces-base-component.js.jsf"></script><script type="text/javascript" src="/tweetstream/javax.faces.resource/message.js.jsf?ln=org.richfaces"></script><script type="text/javascript" src="/tweetstream/javax.faces.resource/jsf.js.jsf?ln=javax.faces"></script><script type="text/javascript" src="/tweetstream/javax.faces.resource/richfaces-queue.js.jsf"></script>
  4.       <title>Java EE 6 Starter Application</title>
  5.       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>
  6.       <div id="container">
  7.          <div id="content">
  8.             <div id="sidebar">
  9.                <h3>Find out more</h3>
  10.                <p>
  11.                   Explore JavaServer Faces.
  12.                </p>
  13.                <ul>
  14.                   <li><a href="http://www.javaserverfaces.org">JSF community site</a></li>
  15.                </ul>
  16.                <p>
  17.                   Learn more about Java EE 6 and the extensions provided by Weld and Seam.
  18.                </p>
  19.                <ul>
  20.                   <li><a href="http://seamframework.org/Weld/JSR299AndWeldOverview">Overview</a></li>
  21.                   <li><a href="http://seamframework.org">Project site</a></li>
  22.                   <li><a href="http://seamframework.org/Documentation/SeamDocumentation#H-WeldReferenceDocumentation">Documentation</a></li>
  23.                   <li><a href="http://seamframework.org/Community/Forums">User forums</a></li>
  24.                   <li><a href="http://seamframework.org/Community/MailingLists">Mailing lists</a></li>
  25.                   <li><a href="https://jira.jboss.org/jira/browse/WELD">Issue tracker</a></li>
  26.                </ul>
  27.                <p>
  28.                   If you have an add-on, please <a href="http://seamframework.org/Community/Forums">let us know</a> and
  29.                   consider <a href="http://seamframework.org/Community/Contribute">contributing</a> it back to the
  30.                   community!
  31.                </p>
  32.             </div>
  33.       <h1>Hello World!</h1>
  34.       <p>Your CDI bean <code>HelloWorld</code> says <span style="color: blue;">Hello World!</span> using the Unified EL.</p>
  35. <form id="bv" name="bv" method="post" action="/tweetstream/home.jsf" enctype="application/x-www-form-urlencoded">
  36. <input type="hidden" name="bv" value="bv" />
  37.  
  38.          <h2>Bean Validation examples</h2>
  39.          <p>Enforces annotation-based constraints defined on the model class.</p>
  40.          <table>
  41.             <tr>
  42.                <th style="text-align: right;"><label for="bv:letters">
  43. Letters:</label>
  44.                </th>
  45.                <td><input id="bv:letters" type="text" name="bv:letters" onchange="bv_3Aletters_3Av(event,&quot;bv:letters&quot;,this)" /><span class="rf-msg " id="bv:j_idt13"></span>
  46.                </td>
  47.             </tr>
  48.             <tr>
  49.                <th style="text-align: right;"><label for="bv:numbers">
  50. Numbers:</label>
  51.                </th>
  52.                <td><input id="bv:numbers" type="text" name="bv:numbers" onchange="bv_3Anumbers_3Av(event,&quot;bv:numbers&quot;,this)" /><span class="rf-msg " id="bv:j_idt17"></span>
  53.                </td>
  54.             </tr>
  55.             <tr>
  56.                <th style="text-align: right;"><label for="bv:email">
  57. Email:</label>
  58.                </th>
  59.                <td><input id="bv:email" type="text" name="bv:email" onchange="bv_3Aemail_3Av(event,&quot;bv:email&quot;,this)" /><span class="rf-msg " id="bv:j_idt21"></span>
  60.                </td>
  61.             </tr>
  62.          </table>
  63.          <p><input id="bv:check" name="bv:check" onclick="RichFaces.ajax(&quot;bv:check&quot;,event,{&quot;incId&quot;:&quot;1&quot;} );return false;" value="Check values" type="submit" />
  64.          </p><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-8582390760343089820:5841874506933422581" autocomplete="off" />
  65. </form>
  66.       <h2>Widgets</h2><table>
  67. <thead>
  68. <tr>
  69. <th scope="col">Id</th>
  70. <th scope="col">Part Number</th>
  71. <th scope="col">Name</th>
  72. <th scope="col">Description</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr>
  77. <td>
  78.             1
  79.          </td>
  80. <td>
  81.             AAA001
  82.          </td>
  83. <td>
  84.             Portable Hole
  85.          </td>
  86. <td>
  87.             A hole for when you need to disappear fast.
  88.          </td>
  89. </tr>
  90. </tbody>
  91. </table>
  92.  
  93.          </div>
  94.          <div id="footer"><img src="/tweetstream/resources/gfx/weld.png" alt="Weld logo" />
  95.             <p>
  96.                This project was generated from a Maven archetype maintained by the Weld team.<br />
  97.                Weld is the reference implementation of CDI, released under the Apache License, Version 2.0.<br />
  98.             </p>
  99.          </div>
  100.       </div><script type="text/javascript" src="/tweetstream/javax.faces.resource/richfaces-csv.js.jsf?ln=org.richfaces"></script><script type="text/javascript">
  101. //<![CDATA[
  102. function bv_3Aletters_3Av(event,id,e,da){var p={da:da,v:[{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"may not be null","severity":0,"summary":"may not be null"} },{f:RichFaces.csv.validatePattern,p:{"flags":[] ,"regexp":"^[A\u002DZa\u002Dz\u002D\u005D+$*"} ,m:{"detail":"must contain only letters","severity":0,"summary":"must contain only letters"} }]};
  103. RichFaces.csv.validate(event,id,e,p);
  104. }
  105. function bv_3Anumbers_3Av(event,id,e,da){var p={da:da,v:[{f:RichFaces.csv.validateSize,p:{"min":1} ,m:{"detail":"size must be between 1 and 2147483647","severity":0,"summary":"size must be between 1 and 2147483647"} },{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"may not be null","severity":0,"summary":"may not be null"} },{f:RichFaces.csv.validatePattern,p:{"flags":[] ,"regexp":"^[0\u002D9\u002D\u005D+$"} ,m:{"detail":"must contain only numbers","severity":0,"summary":"must contain only numbers"} },{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"may not be null","severity":0,"summary":"may not be null"} },{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"may not be empty","severity":0,"summary":"may not be empty"} }],a:function(event,id){RichFaces.ajax(this,event,{"parameters":{"javax.faces.behavior.event":"valueChange"} ,"sourceId":id} )}};
  106. RichFaces.csv.validate(event,id,e,p);
  107. }
  108. function bv_3Aemail_3Av(event,id,e,da){var p={da:da,v:[{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"may not be null","severity":0,"summary":"may not be null"} },{f:RichFaces.csv.validatePattern,p:{"flags":[] ,"regexp":"^[\\w\\\u002D\u005D([\\.\\w\u005D)+[\\w\u005D+@([\\w\\\u002D\u005D+\\.)+[a\u002DzA\u002DZ\u005D{2,4}$"} ,m:{"detail":"Bad email","severity":0,"summary":"Bad email"} }]};
  109. RichFaces.csv.validate(event,id,e,p);
  110. }
  111. $(document).ready(function() {
  112. new RichFaces.ui.Message("bv:j_idt13",{"forComponentId":"bv:letters","showSummary":false,"showDetail":true} )
  113. new RichFaces.ui.Message("bv:j_idt17",{"forComponentId":"bv:numbers","showSummary":false,"showDetail":true} )
  114. new RichFaces.ui.Message("bv:j_idt21",{"forComponentId":"bv:email","showSummary":false,"showDetail":true} )
  115. });
  116.  
  117. //]]>
  118. </script></body>
  119. </html>
Advertisement
Add Comment
Please, Sign In to add comment