object Msg extends DispatchSnippet
This class is a built in snippet that allows rendering only notices (Errors, Warnings, Notices) that are associated with the id provided. This snippet also renders effects configured for the given id. Typically this will be used near by form fields to indicate that a certain field failed the validation. For example:
<input type="text" value="" name="132746123548765"/><lift:msg id="user_msg"/>
Additionally, you may specify additional CSS classes to be applied to each type of notice using the followin attributes:
- errorClass
- warningClass
- noticeClass
<input type="text" value="" name="132746123548765"/><lift:msg id="user_msg"
errorClass="error_class"
warningClass="warning_class"
noticeClass="notice_class"/>
Notices for specific ids are set via the S.error(String,String) or S.error(String,NodeSeq) methods. Global (non-id) notices are rendered via the Msgs snippet.
- See also
net.liftweb.builtin.snippet.Msgs
net.liftweb.http.S#error(String,String)
net.liftweb.http.S#error(String,NodeSeq)
net.liftweb.http.LiftRules#noticesEffects
- Alphabetic
- By Inheritance
- Msg
- DispatchSnippet
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dispatch: DispatchIt
- Definition Classes
- Msg → DispatchSnippet
- def effects(id: String): NodeSeq
This method produces and appends a script element to lift's page script to render effects on a element with the given id.
This method produces and appends a script element to lift's page script to render effects on a element with the given id.
- See also
net.liftweb.builtin.snippet.Msgs#effects[T](Box[NoticeType.Value],String,T,Box[JsCmd => T])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def render(styles: NodeSeq): NodeSeq
This method performs extraction of the CSS class attributes as well as rendering of any messages for the given id.
- def renderIdMsgs(id: String): NodeSeq
This method renders the <span/> for a given id's notices, along with any effects configured for the id.
This method renders the <span/> for a given id's notices, along with any effects configured for the id.
- See also
net.liftweb.http.S#error(String,String)
net.liftweb.http.S#error(String,NodeSeq)
net.liftweb.http.LiftRules#noticesEffects
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()