| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version |
| 2.0 (the "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 Unless required by |
| applicable law or agreed to in writing, software distributed under the |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
| CONDITIONS OF ANY KIND, either express or implied. See the License for |
| the specific language governing permissions and limitations under the |
| License. |
| --> |
| <html xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:f="http://java.sun.com/jsf/core" |
| xmlns:h="http://java.sun.com/jsf/html" |
| xmlns:ui="http://java.sun.com/jsf/facelets"> |
| |
| <head> |
| <title>OpenWebBeans :: Examples :: JMS Sample :: Receiver</title> |
| </head> |
| |
| <body> |
| |
| <div id="container"> |
| <div id="content"> |
| <h:messages globalOnly="false" showSummary="true" infoStyle="font-weight:bold;"></h:messages> |
| |
| <h:form id="form"> |
| |
| <div style="border:1px solid black;margin: 25px 75px;"> |
| |
| <h2 style="color:red;font-weight:bold;font-size:14px">Register Listener</h2> |
| |
| <h:panelGrid columns="2" cellpadding="5"> |
| <h:commandButton action="#{receiver.startReceive}" value="Register JMSListener" disabled="#{receiver.receive}"/> |
| <h:commandButton action="#{receiver.refresh}" value="Refresh Recieved Message List"/> |
| </h:panelGrid> |
| |
| </div> |
| |
| <div style="border:1px solid black;margin: 25px 75px;"> |
| |
| <h2 style="color:red;font-weight:bold;font-size:14px">Last Message Content</h2> |
| |
| <h:outputText value="JMS Last Message : " style="color:red;font-weight:bold;font-size:14px;"></h:outputText> |
| <h:outputText value="#{receiver.message}"/> |
| </div> |
| |
| <div style="border:1px solid black;margin: 25px 75px;"> |
| |
| <h2 style="color:red;font-weight:bold;font-size:14px">JMS Received Message List</h2> |
| |
| <h:dataTable value="#{receiver.messages}" var="data"> |
| |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="Message Content" /> |
| </f:facet> |
| |
| <h:outputText value="#{data}" /> |
| |
| </h:column> |
| |
| </h:dataTable> |
| |
| </div> |
| |
| |
| </h:form> |
| </div> |
| |
| </div> |
| </body> |
| </html> |