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

  • SEARCH
  • Home
  • 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 1096947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:21:23+00:00 2026-05-17T00:21:23+00:00

Setup: ICEfaces 1.8.2, Java EE 5, JSF 1.2. I’m using an ice:inputFile tag to

  • 0

Setup: ICEfaces 1.8.2, Java EE 5, JSF 1.2.

I’m using an ice:inputFile tag to allow the user to upload a PDF file, and an ice:messages tag to provide error feedback to the user:

<ice:inputFile fileNamePattern=".+\.pdf" uniqueFolder="false" uploadDirectory="#{FileController.fileUploadDirectory}" uploadDirectoryAbsolute="true" actionListener="#{FileController.uploadActionListener}" submitOnUpload="preAndPostUpload" />
<!-- ... -->
<ice:messages />

If the user tries to upload a file whose name doesn’t end with ‘.pdf’, the ice:messages tag shows the following (cryptic and user-hostile) error:

The file name ‘halp_im_not_a_pdf.rtf’ does not match with the file name pattern ‘.+\.pdf’

How would I replace the message with something better? I’ve tried searching the Web and setting an attribute called ‘converterMessage’ on ice:inputFile, but neither of those worked like they usually do.

Thank you.

  • 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-17T00:21:24+00:00Added an answer on May 17, 2026 at 12:21 am

    See http://www.icefaces.org/JForum/posts/list/9528.page#39677
    You have to create a properties file, and in it define:

    com.icesoft.faces.component.inputfile.INVALID_NAME_PATTERN=The file name \''{0}\'' does not match with the file name pattern \''{1}\''
    

    See the messages.properties in ICEFaces for other error messages you may want to replace.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Icefaces for webapplication development. I wish to read a file from
SETUP: Using Google Apps Script's UI (doGet) with tabPanel option. At the bottom of
Setup I am using custom Forms Authentication - all standard stuff. In the Login
Setup I am using Sparx Systems Enterprise Architect Professional edition 7.5 and MS PowerPoint.
Setup: IIS7 serving ASP classic VB script code which generates a dynamic VSC page/file
Setup: I am using JSPs and jQuery. There is a 'parent' page which holds
Setup: I have a form and a Submit button. Ideally the user should fill
Setup: I'm looking for insight into using a ABPersonViewContoller without getting data from the
Setup Given this user-defined type: struct T { static int x; int y; T()
setup Using Dreamweaver CS 5.5 / Windows 7 I have turned off 'Preview [in

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.