beehive/netui/test/webapps/drt/web/miniTests/overrideMessageBundles/index.jsp

31 lines
1.0 KiB
Plaintext

<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
<%@ taglib prefix="netui-data" uri="http://beehive.apache.org/netui/tags-databinding-1.0"%>
<%@ taglib prefix="netui-template" uri="http://beehive.apache.org/netui/tags-template-1.0"%>
<netui:html>
<head>
<netui:base/>
</head>
<netui:body>
<h3>${pageFlow.URI}</h3>
<p>
This test ensures that you can override a default message bundle (defined using a
<code>@Jpf.MessageBundle</code> annotation with no <code>bundleName</code>) with a
default message bundle in a derived class. If you click on Submit, you should get
the message "Got it!".
</p>
<netui:form action="submit">
foo: <netui:textBox dataSource="actionForm.foo"/><netui:error key="foo"/>
<br/>
<netui:button value="submit"/>
</netui:form>
</netui:body>
</netui:html>