001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 package org.apache.myfaces.tobago.taglib.component; 021 022 import org.apache.myfaces.tobago.apt.annotation.BodyContent; 023 import org.apache.myfaces.tobago.apt.annotation.Tag; 024 import org.apache.myfaces.tobago.apt.annotation.TagAttribute; 025 import org.apache.myfaces.tobago.apt.annotation.UIComponentTag; 026 import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute; 027 import org.apache.myfaces.tobago.taglib.decl.HasFor; 028 import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered; 029 030 /* 031 * Date: 02.04.2006 032 * Time: 15:55:21 033 */ 034 035 /** 036 * Renders error/validation message. 037 * 038 * @deprecated Please use MessagesTag tc:messages with maxNumber="1" 039 */ 040 @Deprecated 041 @Tag(name = "message", bodyContent = BodyContent.EMPTY) 042 @UIComponentTag( 043 uiComponent = "javax.faces.component.UIMessage", 044 rendererType = "Message", isComponentAlreadyDefined = true) 045 public interface MessageTagDeclaration extends TobagoTagDeclaration, HasIdBindingAndRendered, HasFor { 046 047 /** 048 * Flag indicating whether the detail should be included 049 */ 050 @TagAttribute 051 @UIComponentTagAttribute(type = "java.lang.Boolean", defaultValue = "false") 052 void setShowDetail(String showDetail); 053 054 /** 055 * Flag indicating whether the summary should be included 056 */ 057 @TagAttribute 058 @UIComponentTagAttribute(type = "java.lang.Boolean", defaultValue = "true") 059 void setShowSummary(String showSummary); 060 }