object Msgs extends DispatchSnippet
This built in snippet renders messages (Errors, Warnings, Notices) in a div. Typically it is used in templates as a place holder for any messages that are not associated with an ID. Setting the attribute showAll to true will render all messages, with and without an ID. This will lead to duplicate messages if additionally the Msg built in snippet is used to show messages associated with an ID.
E.g. (child nodes are optional)
<lift:Msgs showAll="false"> <lift:error_msg class="errorBox" >Error! The details are:</lift:error_msg> <lift:warning_msg>Whoops, I had a problem:</lift:warning_msg> <lift:warning_class>warningBox</lift:warning_class> <lift:notice_msg>Note:</lift:notice_msg> <lift:notice_class>noticeBox</lift:notice_class> </lift:snippet>
JavaScript fadeout and effects for the three types of notices (Errors, Warnings and Notices) can be configured via LiftRules.noticesAutoFadeOut and LiftRules.noticesEffects. Notices for individual elements based on id can be rendered using the <lift:msg/> tag.
- See also
net.liftweb.http.LiftRules#noticesEffects
net.liftweb.http.LiftRules#noticesAutoFadeOut
net.liftweb.builtin.snippet.Msg
- Alphabetic
- By Inheritance
- Msgs
- DispatchSnippet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- DispatchSnippet
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dispatch: DispatchIt
- Definition Classes
- Msgs → DispatchSnippet
-
def
effects(noticeType: Value): NodeSeq
This method produces and appends a script element to lift's page script to apply effects to the given notice type.
This method produces and appends a script element to lift's page script to apply effects to the given notice type.
- See also
net.liftweb.http.LiftRules.noticesEffects
-
def
effects[T](noticeType: Box[Value], id: String, default: T, wrap: (JsCmd) ⇒ T): T
This method produces appropriate JavaScript to apply effects to the given notice type.
This method produces appropriate JavaScript to apply effects to the given notice type. The caller must provide a default value for cases where effects are not configured, as well as a wrapping function to transform the output.
- See also
net.liftweb.http.LiftRules.noticesEffects
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noticesFadeOut(noticeType: Value): NodeSeq
This method produces and appends a script element to lift's page script to fade out the given notice type.
This method produces and appends a script element to lift's page script to fade out the given notice type.
- See also
net.liftweb.http.LiftRules.noticesAutoFadeOut
-
def
noticesFadeOut[T](noticeType: Value, default: T, wrap: (JsCmd) ⇒ T): T
This method produces appropriate JavaScript to fade out the given notice type.
This method produces appropriate JavaScript to fade out the given notice type. The caller must provide a default value for cases where fadeout is not configured, as well as a wrapping function to transform the output.
- See also
net.liftweb.http.LiftRules.noticesAutoFadeOut
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
render(styles: NodeSeq): NodeSeq
This method performs extraction of custom formatting and then renders the current notices.
This method performs extraction of custom formatting and then renders the current notices.
- See also
#renderNotices()
-
def
renderNotices(): NodeSeq
This method renders the current notices to XHtml based on the current user-specific formatting from the <lift:Msgs> tag.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )