Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: h:messages issue in jsp. extra spce not dispalying

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default h:messages issue in jsp. extra spce not dispalying

    Hi

    i am facing the issue while displaying error msg in IE8 browser. the extra space is not displaying in browser

    in properties file
    -----------
    message-key = data is required. please select one

    here i have extra space in between (" required. please")

    in jsp
    -------------------
    <h:messages showDetail="true" layout="table" showSummary="false"
    style="font-weight: bold; color: red;" />
    <m:div style="width:98%;align:center">

    Plese help me. i want to display that extra space also


  2. #2
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to divide <h:message> data in 2 parts

    Hi

    as per the requirement, i need to display error message from properties file to h:messages tag.

    ex: when user does not select any option then i need to display the below error message

    data required. please select values.

    in .properties file
    -----------
    key= data required. please select values.(i need to display extra space also "required. please")

    in.jsp
    -----
    i am using encoding is: iso-8859-1(while displaying error message the extra space not getting displayed)
    i need to display the extra space also

    h:messages showDetail="true" layout="table" showSummary="false"
    style="font-weight: bold; color: brown;" />
    <m:div style="width:98%;align:center">
    <m:section>
    <m:pod title="#{msg['label.a.b']}"
    styleClass="otherbg">

    <m:table width="100%">
    <m:tr>
    <m:td>
    <m:table>
    <m:tr>
    <m:td>

    <hutputLabel value="#{msg['label.a.dcn']}" id="dcnTxt"
    for="inputDCN" />
    <m:br></m:br>
    <h:inputText id="inputDCN" size="10" maxlength="17" styleClass="inputText"
    value="#{BeanVO.dcnTcn}"></h:inputText>
    </m:td>


    Please help me to display extra space also.
    is there any way to divide the message in 2 parts and display in browser with extra space in between them.

    Thanks in advance

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to display white space in h:messages tag

    Hi

    I want to display extra while space in the below code. i am using jsf tags inside jsp
    ex: this <extra spaces> message is good.

    i have used white space: pre in h:messages tag attribute but it did not worked out

    h:messages showDetail="true" layout="table" showSummary="false"
    style="font-weight: bold; color: red;" white space: pre />
    <m:div style="width:98%;align:center">

    please help me to display extra space also

Similar Threads

  1. Replies: 3
    Last Post: November 30th, 2013, 05:52 PM
  2. issue with jsp code
    By zulu1900 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 20th, 2013, 02:08 PM
  3. Getting rid of Extra Dialog Boxes
    By ZBixby in forum Java Theory & Questions
    Replies: 7
    Last Post: March 16th, 2013, 01:53 PM
  4. Prints an extra character for this game.
    By TCDave in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 16th, 2012, 06:35 PM
  5. [SOLVED] Netbeans JSP issue
    By ek_swaim in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: June 12th, 2012, 09:48 PM