Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7037747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:34:57+00:00 2026-05-28T01:34:57+00:00

I have the following form in a p:outputPanel <h:form id=someForm> <p:panel id=panel header=HEADER> <h:panelGrid

  • 0

I have the following form in a p:outputPanel

<h:form id="someForm">
    <p:panel id="panel" header="HEADER">
        <h:panelGrid columns="5">

            <h:outputLabel value="Name:" for="name" />

            <p:inputText id="name" value="#{userBean.name}" required="true"
                requiredMessage="ASD" label="name" maxlength="15">
                <f:validateLength minimum="10"></f:validateLength>
                <p:ajax event="blur" update="inputValidationMessage" />
            </p:inputText>

            <p:message id="inputValidationMessage" showDetail="true" for="name"
                display="icon" />
            <p:watermark for="name" value="e.g Jill" />

        </h:panelGrid>

        <p:commandButton value="Save" update="panel"
            actionListener="#{userBean.doSomething}">
        </p:commandButton>
    </p:panel>
</h:form>

I expect that when the inputText element loses focus and its content has a length less than 10 characters, the message ASD is displayed right next to it. However, what happens in case validation fails is, only a red cross icon is displayed. The message ASD is missing. Changing showDetail to showSummary doesn’t work neither.

Secondly, the commandButton calls userBean.doSomething:

UserBean#doSomething:

public void doSomething(ActionEvent actionEvent) {
        RequestContext context = RequestContext.getCurrentInstance();
        FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_WARN,
                                          "Summary",
                                          "Detail"));
        FacesContext.getCurrentInstance().addMessage(null, facesMessage);
        context.addCallbackParam("booleanVar", true);
}

The FacesMessage is not being displayed.

I’m using JSF2.0 with Primefaces 3.0 on Weblogic 12.1.

Any help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:34:57+00:00Added an answer on May 28, 2026 at 1:34 am

    You’ve declared the <p:message> as follows:

    <p:message ... display="icon" />
    

    Here’s a cite from the <p:message> documentation in the PrimeFaces User Guide:

    Display Mode

    Message component has three different display modes;

    • text : Only message text is displayed.
    • icon : Only message severity is displayed and message text is visible as a tooltip.
    • both (default) : Both icon and text are displayed.

    So the message severity is displayed as icon and message text is only displayed as tooltip of the icon. You need to remove the display="icon" so that it will show both in view.

    <p:message ... />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following html form: <form method=post action=> <input type=hidden name=userid id=user value=<?php echo
I have the following form: <label>One</label> Product ID:<input type=text name=productid[] value=> Product Quantity: <input
I have the following form code: <input data-color=orange id=vote_color_id_2 name=color type=radio value=2 />Orange <input
If I have the following form: <form> <input name=foo value=bar> <input name=hello value=world> <input
I have the following form: echo $this->Form->input('Person.name'); echo $this->Form->input('Person.phone'); echo $this->Form->input('Person.email'); echo $this->Form->input('Message.0.plainmsg'); echo
I have the following form <form name=myForm id=myForm method=post enctype=multipart/form-data action=script.php> and this jQuery
I have the following form code: # forms.py class SomeForm(forms.Form): hello = forms.CharField(max_length=40) world
i have the following form item { fieldLabel:'Username' ,id:username ,name:'username' ,allowBlank:false ,plugins:[Ext.ux.plugins.RemoteValidator] ,rvOptions: {
I have the following form : <input name=linkColor type=text id=colorpickerField0 > <input name=linkColor type=text
i have the following form <form action=ManageLink method=post> <input name=artistName type=text/> <input name=songName type=text/>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.