Questions tagged [message-bundle]

17 questions
31
votes
3 answers

How can I get a message bundle string from inside a managed bean?

I would like to be able to retrieve a string from a message bundle from inside a JSF 2 managed bean. This would be done in situations where the string is used as the summary or details parameter in a FacesMessage or as the message in a thrown…
Jim Tough
  • 13,464
  • 23
  • 66
  • 90
6
votes
1 answer

Override Omnifaces Validation Message with JSF message-bundle?

Is it possible to override the default omnifaces validation messages with a jsf message-bundle? my message-bundle: javax.faces.converter.DateTimeConverter.DATE={2}: ''{0}'' could not be understood as a…
Khinsu
  • 1,439
  • 10
  • 26
4
votes
1 answer

FOSMessageBundle in Symfony2

How do i set, when i create a thread, that the message is read by the creator of the thread? I have this portion of code $composer = $this->get('fos_message.composer'); $message = $composer->newThread() ->setSender($this->getUser()) …
Nico
  • 1,091
  • 1
  • 11
  • 26
3
votes
2 answers

spaces in message bundle keys

I want to be able to have spaces in my message bundle keys because it is easier to convert existing text into keys if you dont have to also convert spaces to underscores. spring message source doesnt seem to like this though. is it…
mkoryak
  • 54,015
  • 59
  • 193
  • 252
2
votes
2 answers

JSF2: bean validation with custom message bundle

I know the issue is discussed in many posts in the forum, however I'm still having problems customizing the messages for the bean validation. Maybe some little things missing in configuration or file location... When the validation call the message,…
Fabio
  • 820
  • 2
  • 12
  • 27
1
vote
1 answer

How I change ValidationMessages.properties with Hibernate Validator?

I am trying modify default ValidationMessages.properties to other. But I not get it. My setup: In Spring.
Dani
  • 3,223
  • 7
  • 32
  • 54
1
vote
0 answers

How to get All messages in FOSMessageBundle of Symfony2 Where participant is xyz?

I am trying to fetch all messages of FOSMessageBundle in symfony2 where participant is xyz , This is giving me only inbox messages . public function getMessagesAction() { $request = Request::createFromGlobals(); $entity =…
user4772709
1
vote
1 answer

FosMessageBundle sendId cannot be null

I implemented fosMessageBundle with my message bundle, but if I want send a new message use fos_message.composer ,I got this error: An exception occurred while executing 'INSERT INTO Message (body, created_at, threadId, sendId) VALUES (?, ?,…
delirehberi
  • 440
  • 3
  • 16
0
votes
1 answer

Grails - Message bundles (i18n) broken for war build only

After upgrading from 2.5.5 to 3.1.1, when I build my application as an executable war (or deploy to tomcat container), messages cannot be resolved from message.properties or any i18n properties…
dre
  • 952
  • 1
  • 9
  • 25
0
votes
2 answers

What's a Thead in FOSMessageBundle

I don't understand what the thread class is in FOSMessageBundle (https://github.com/FriendsOfSymfony/FOSMessageBundle). Could you explain what it represents?
0
votes
0 answers

Why fosmessager "destroys" the entity user of fosuser

I followed the doc to integrate fosmessagerbundle, at the end of step 5 I ran the command php app/console doctrine:schema:update --dump-sql I got this message DROP INDEX UNIQ_957A647992FC23A8 ON fos_user; DROP INDEX UNIQ_957A6479A0D96FBF ON…
tanit
  • 31
  • 2
0
votes
0 answers

Configuring message-bundle with UTF-8 encoded messages

What I'm trying to achieve is UTF-8 encoded JSF validation and converter messages (message-bundle). Also, I would like custom resource bundle for labels, etc (resource-bundle). I managed to create and use custom resource bundle successfully, but I…
user3096746
  • 61
  • 1
  • 10
0
votes
1 answer

JSF : java.util.MissingResourceException: Can't find bundle for base : Only if context root is changed

I have read a lot of threads with the MissingResourceException problem. I'm using Primefaces 5.1.3 In my case I have the error : java.util.MissingResourceException: Can't find bundle for base [...], locale In face-config.xml : …
Sandy
  • 485
  • 1
  • 7
  • 19
0
votes
2 answers

java desktop application localization

I just want to create desktop application which have labels in two language. When I press "EN" button load English language labels otherwise Germany. In web application I have .property file, it is possible to use property file in desktop…
Hayk Harutyunyan
  • 117
  • 1
  • 2
  • 17
0
votes
1 answer

Override my own resource bundle entry

In JSF, it's easy to override Messages from the default resource bundle: javax.faces.component.UIInput.REQUIRED = {0}: Please enter value I would like to use the same mechanism for my own library containing JSF resource bundles, composite…
Ginkgochris
  • 427
  • 4
  • 24
1
2