jsf - Multiple error messages for one input field -


I am creating a form using facelets, an input field looks like this:

  & lt; P: Input Text id = "initials" value = "# {dilution.initials}" />  

dilution One unit is bean and two verification barriers are set in the initial area, one size barrier and one regex pattern barrier. My problem is getting an error message for both the bar to display next to the input field & lt; H: message & gt; Use only to display only one message and & lt; H: messages & gt;

Pre> & lt; h: form id = "adfirm"> << l: pane: & lt; p: message autoupdate = "true" showDetail = "TRUE" /> & Lt; p: panelGrid & gt; Fac: Aspect Name = "Header" & gt; & lt; p: Line & gt; & lt; p: Column Colspan = "3" & gt; New Spanding Factor & Lt; / p: column & gt; & lt; / p: line & gt; & lt; / f: aspect & gt; & lt; p: line & gt; & lt; p: column colspan = "1" Gt; & lt; p: = "sampT"> gt; Output Label for Output Label T; / p: Output label & gt; & lt; / p: column & gt; & lt; p: column & gt; & lt; p: selectOneMenu id = "sampT" required = "true" value = "# { Dilution.dilution.sampleType.ID} "> gt: select item item label =" - itemValue = "" />
: SelectOneMenu & gt; & lt; / p: Columns & gt; & Lt; P: column & gt; & Lt; P: message = "sampT" /> for & lt; / P: column & gt; & Lt; / P: Line & gt; & Lt; P: line & gt; & Lt; P: column & gt; & Lt; P: = "initials" for Output Label & gt; Initial & lt; / P: Output Label & gt; & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; P: Input Text id = "initials" value = "# {dilution.initials}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; P: for the message = "initials" /> & Lt; / P: column & gt; & Lt; / P: Line & gt; & Lt; F: aspect names = "footer" & gt; & Lt; P: line & gt; & Lt; P: column colspan = "3" & gt; & Lt; P: command button value = "save" action = "# {dilution.save ()}" update = "adfiform" icon = "UI-icon-check" /> & Lt; / P: column & gt; & Lt; / P: Line & gt; & Lt; / Ch: Aspect & gt; & Lt; / P: panelGrid & gt; & Lt; / P: Panel & gt; & Lt; / H: form & gt;

& lt; H: message & gt; Display only one of the messages

simply & lt; H: messages & gt; Use with the plural "s" instead of h

works the same way, with only a different UI


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -