Skip to content

Commit

Permalink
implementation of event bus and event observer support
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed Jul 26, 2011
1 parent bd2062e commit ead81ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/webapp/index.html
Expand Up @@ -17,6 +17,7 @@
<script type="text/javascript" src="script/sh/shBrushXml.js"></script>

<script src="xwidgets/resources/xw.js"></script>
<script src="xwidgets/resources/org/xwidgets/core/eventobserver.js"></script>
<script src="xwidgets/resources/org/xwidgets/core/fragment.js"></script>
<script src="xwidgets/resources/org/xwidgets/core/repeat.js"></script>
<script src="xwidgets/resources/org/xwidgets/core/select.js"></script>
Expand Down
5 changes: 4 additions & 1 deletion src/main/webapp/login.xw
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<xw:view xmlns="http://www.w3.org/1999/xhtml" xmlns:xw="http://xwidgets.org/core">

<xw:eventObserver event="org.jboss.seam.identity.loggedIn">
<xw:event type="onFire"><xw:action type="script">xw.closePopup();</xw:action></xw:event>
</xw:eventObserver>

<p>
You may log in by using either a previously registered Seam University account, or alternatively you may
use OpenID to log in using Google, Yahoo or any other OpenID provider.
Expand Down Expand Up @@ -62,6 +66,5 @@
</div>

<br style="clear:both"/>


</xw:view>

0 comments on commit ead81ab

Please sign in to comment.