Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <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&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>
- <title>Java EE 6 Starter Application</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>
- <div id="container">
- <div id="content">
- <div id="sidebar">
- <h3>Find out more</h3>
- <p>
- Explore JavaServer Faces.
- </p>
- <ul>
- <li><a href="http://www.javaserverfaces.org">JSF community site</a></li>
- </ul>
- <p>
- Learn more about Java EE 6 and the extensions provided by Weld and Seam.
- </p>
- <ul>
- <li><a href="http://seamframework.org/Weld/JSR299AndWeldOverview">Overview</a></li>
- <li><a href="http://seamframework.org">Project site</a></li>
- <li><a href="http://seamframework.org/Documentation/SeamDocumentation#H-WeldReferenceDocumentation">Documentation</a></li>
- <li><a href="http://seamframework.org/Community/Forums">User forums</a></li>
- <li><a href="http://seamframework.org/Community/MailingLists">Mailing lists</a></li>
- <li><a href="https://jira.jboss.org/jira/browse/WELD">Issue tracker</a></li>
- </ul>
- <p>
- If you have an add-on, please <a href="http://seamframework.org/Community/Forums">let us know</a> and
- consider <a href="http://seamframework.org/Community/Contribute">contributing</a> it back to the
- community!
- </p>
- </div>
- <h1>Hello World!</h1>
- <p>Your CDI bean <code>HelloWorld</code> says <span style="color: blue;">Hello World!</span> using the Unified EL.</p>
- <form id="bv" name="bv" method="post" action="/tweetstream/home.jsf" enctype="application/x-www-form-urlencoded">
- <input type="hidden" name="bv" value="bv" />
- <h2>Bean Validation examples</h2>
- <p>Enforces annotation-based constraints defined on the model class.</p>
- <table>
- <tr>
- <th style="text-align: right;"><label for="bv:letters">
- Letters:</label>
- </th>
- <td><input id="bv:letters" type="text" name="bv:letters" onchange="bv_3Aletters_3Av(event,"bv:letters",this)" /><span class="rf-msg " id="bv:j_idt13"></span>
- </td>
- </tr>
- <tr>
- <th style="text-align: right;"><label for="bv:numbers">
- Numbers:</label>
- </th>
- <td><input id="bv:numbers" type="text" name="bv:numbers" onchange="bv_3Anumbers_3Av(event,"bv:numbers",this)" /><span class="rf-msg " id="bv:j_idt17"></span>
- </td>
- </tr>
- <tr>
- <th style="text-align: right;"><label for="bv:email">
- Email:</label>
- </th>
- <td><input id="bv:email" type="text" name="bv:email" onchange="bv_3Aemail_3Av(event,"bv:email",this)" /><span class="rf-msg " id="bv:j_idt21"></span>
- </td>
- </tr>
- </table>
- <p><input id="bv:check" name="bv:check" onclick="RichFaces.ajax("bv:check",event,{"incId":"1"} );return false;" value="Check values" type="submit" />
- </p><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-8582390760343089820:5841874506933422581" autocomplete="off" />
- </form>
- <h2>Widgets</h2><table>
- <thead>
- <tr>
- <th scope="col">Id</th>
- <th scope="col">Part Number</th>
- <th scope="col">Name</th>
- <th scope="col">Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- 1
- </td>
- <td>
- AAA001
- </td>
- <td>
- Portable Hole
- </td>
- <td>
- A hole for when you need to disappear fast.
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div id="footer"><img src="/tweetstream/resources/gfx/weld.png" alt="Weld logo" />
- <p>
- This project was generated from a Maven archetype maintained by the Weld team.<br />
- Weld is the reference implementation of CDI, released under the Apache License, Version 2.0.<br />
- </p>
- </div>
- </div><script type="text/javascript" src="/tweetstream/javax.faces.resource/richfaces-csv.js.jsf?ln=org.richfaces"></script><script type="text/javascript">
- //<![CDATA[
- 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"} }]};
- RichFaces.csv.validate(event,id,e,p);
- }
- 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} )}};
- RichFaces.csv.validate(event,id,e,p);
- }
- 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"} }]};
- RichFaces.csv.validate(event,id,e,p);
- }
- $(document).ready(function() {
- new RichFaces.ui.Message("bv:j_idt13",{"forComponentId":"bv:letters","showSummary":false,"showDetail":true} )
- new RichFaces.ui.Message("bv:j_idt17",{"forComponentId":"bv:numbers","showSummary":false,"showDetail":true} )
- new RichFaces.ui.Message("bv:j_idt21",{"forComponentId":"bv:email","showSummary":false,"showDetail":true} )
- });
- //]]>
- </script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment