FAQ Database Discussion Community


Validation on selectOneMenu to display message in a SPAN

jsf,message
I have a drop down box in a JSF 1.2 web application: <h:selectOneMenu value=“#{value}" required="true" requiredMessage="Please select a value."> <f:selectItem itemValue="#{null}" itemLabel=“Please Select" /> <f:selectItem itemValue=“1" itemLabel=“£1" /> <f:selectItem itemValue=“2" itemLabel=“£2" /> <f:selectItem itemValue=“3" itemLabel=“£3" /> <f:selectItem itemValue=“4" itemLabel=“£4" /> <f:selectItem itemValue=“5" itemLabel=“£5" /> </h:selectOneMenu>...

html no error message displayed [closed]

php,html,message
Good evening everybody, We are beginners and unskilled in php html ... this is the page which will allow us to display the books available to borrow them. For now we are at the stage display books. No error message is displayed, but the list of books is not displayed...

xmpp messages are lost when client connection lost suddently

xmpp,message,ejabberd,xmppframework
I am using ejabberd server and ios xmppframework. there are two clients, A and B. When A and B are online, A can send message to B successfully. If B is offline, B can receive the message when B is online again. But when B is suddenly/unexpectedly lost connection, such...

Cluster PHP messages array

php,arrays,multidimensional-array,message
I have the following situation, I am receiving messages in an array like this: $ar[0]['message'] = "TEST MESSAGE 1"; $ar[0]['code'] = 566666; $ar[1]['message'] = "TEST MESSAGE 1"; $ar[1]['code'] = 255555; $ar[2]['message'] = "TEST MESSAGE 1"; $ar[2]['code'] = 256323; As you can see, the code's are different, but the messages are...

Android Messaging app - Client - Server Communication

android,client,message,server,whatsapp
I want to write a private messaging app similar to Whats App. Smartphones with Android OS shall be the clients and communicating with one server. Now my question is how could that work out? I guess the best way would be via a Restful webservice as port forwarding is absolutely...

How to receive sms messages on raspberry pi

text,sms,raspberry-pi,message,twilio
I recently set up a Twilio account and got a registered Twilio phone number. Is there a way that I can get those messages on my raspberry pi? My intent is to display those messages on a LED screen.

Erlang drop messages

erlang,message
I have a proxy that prevents the server from getting overloaded with requests. Clients sends their requests to the proxy and the proxy determine wether or not to pass the requests to the server. NrOfReq is the current number of requests that the server is handling. MaxReq is the maximum...

Sharepoint - Custom error messages

sharepoint,message
I'm a beginner sharepoint developer for a work project. Specifications ask for custom error message. When I create a list with a number field the error message is "Only numbers can go here". <Field Name="Libelle" ID="{487dfca6-af3c-4939-94b1-2e5ae5aefb44}" DisplayName="Libelle" Type="Number" EnforceUniqueValues="TRUE" Indexed="TRUE" Required="TRUE" /> Can I change this?...

Event in Maya Api to capture currentTime / frame change

c++,events,callback,message,maya
I am currently developing a Maya plugin. How can I set-up a callback that gets fired each time the frame number / current time is changed in the scene ? I had a look at the MSceneMessage Class, but it doesn't seem to contain what I am looking for....

Launch default SMS app without a message

android,android-intent,text,sms,message
I am wanting my app to, on a button click, launch the user's default texting app. The intention is not to have the user send a message, but to view their current text conversations, therefore I don't want it to launch the SMS app's "New Message" activity but instead the...

Get message of tags using JGit

eclipse,tags,message,jgit
I need for each commit, to get the name and message of the associated tag. I managed to get the tag name associated with my commit . But I can't get the message. I tried like this: String nameTag = ""; List<Ref> call = new Git(git.getRepository()).tagList().call(); // get all tags...

JMS Message Persistence in Wildfly 8.0 server

java,jboss7.x,message,wildfly,persistent-storage
How can i achieve message Persistence in the case of JMS in Wildfly server or Jboss 7.1.1 final? Can i persist the messsgaes in database using any Wildfly provided services? Any help would be appreciated, I am working on JBoss 5 to Wildlfy Migration where i have this requirement....

Manually added faces message doesn't appear in tab of accordion panel

jsf,message
I'm adding a faces message in an action method as below: FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_WARN, "Mail invalide", "Vérifier le mail"); FacesContext.getCurrentInstance().addMessage("connection:mail", message); I'm expecting it to show up at the below position in the tree: <h:body> <p:layout fullPage="true"> <p:layoutUnit position="center" > <p:accordionPanel multiple="true" activeIndex="0"> <p:tab title="Se connecter" > <h:form...

Use case for Akka PoisonPill

akka,message,fault-tolerance
According to the Akka docs for PoisonPill: You can also send an actor the akka.actor.PoisonPill message, which will stop the actor when the message is processed. PoisonPill is enqueued as ordinary messages and will be handled after messages that were already queued in the mailbox. Although the usefulness/utility of such...

Redirect all Skype Messages from one profile to another

redirect,chat,message,profile,skype
As the title says, is there a way to redirect all skype messages I receive from one profile to another ? The Skype support states that you can activate SMS messages which will get redirected but I just want simple chat messages to be redirected from one profile to another...

Rails Signalling Server

ruby-on-rails,signals,server,message,webrtc
I am creating an app with Ruby on Rails (4.2). I want to add a WebRTC functionality to it so that two users can choose to videochat with each other. I'd appreciate if you can help with: What are some of the options to create a signalling server with Rails...

Echo a message after an if statement and display it near the dropdown list

php,echo,message
I have an if statement to check that the first year from the Start Year drop down list that i have is smaller than the year in the End Year drop down list. For this reason I want whenever the Start Year is bigger than the End Year to display...

Chrome ServiceWorker postMessage

google-chrome,message,postmessage,service-worker
I try to postMessage between a WebApp and the corresponding ServiceWorker. The serviceWoker is successfully registered and working so far. Unfortunately I noticed some strange behavior: 1. The navigator.serviceWorker.controller is always null. 2. At the serviceWorker side I implemented postMessage this way: self.addEventListener('message', function (evt) { console.log('postMessage received', evt);...

FluentValidation - How to customize the validation message in runtime

c#,validation,message,fluentvalidation
In this entity: public class Foo { public Guid Id { get; set; } public string Type { get; set; } public string Name { get; set; } } How can I customize the validation message in runtime using another property of entity or any other string obtained from the...

How to set my application as default to receive SMS

android,sms,message,hangout
i'm developing an application to send and receive SMS. I want to add the option to set my application as default like Hangout of Google: Do you have an ideas? Thanks a lot....

CakePHP 2.x Sending user messages to element('menu')

cakephp,menu,message
I would like to know the best way to send data to an element which appear everytime the page is loaded. For instance, once a user is logged in, I have to recover some informations about him. The User.id, User.name, etc. are recovered using the SessionHelper as follow : <?php...

Secret message encrypt/decrypt ÅÄÖ

vb.net,encryption,message
I need to add this encryptdecrypt code ÄÖÅ characters, but i don't know how? Here's my code: Public Function EncryptDecryptString(ByVal inputString As String, Optional ByVal decrypt As Boolean = False) As String Dim sourceChars As String = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" Dim resultChars As String = "36N8lkXruq94jMZInPpshR xHc2mTQb7eYai5vGWDzFdoC0wKSBt1EOgVALJfUy" Dim result As String...

Java, default exception messages

java,exception,message,default
Given the following: public abstract class Test { public static void main(String[] args) { int[] testArray = {6, 3, 2}; System.out.println(testArray[3]); } } when I run the program I get: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at Test1.main(Test1.java:5) In this case the JVM displays the index that is out of...

PHP message based on a certain time on different days

php,timezone,message
I'm trying to make an messages appear on my website when we are open and when the phones are "closed" but I can't seem to get it working. This is what I have so far (This is my inspiration http://codewalkers.com/c/a/Date-Time-Code/Display-message-according-to-hour-of-day/) <?php //Change message of the day $open = 'We are...

Yii2 - How to add custom error messages on input fields

validation,label,message,yii2,rules
In my database I named 'password' as 'password_hash' so automatically I'd get 'password_hash' in my error message, even tho I changed the label to 'Current password'. Example: What I want is: ...

How to track sent messages (SMS) in android?

android,sms,broadcastreceiver,message,android-broadcast
I am developing an Android application which has one of it's features as to detect any messages (SMS) sent by an app to any number. For this I want to keep track of sent messages. I want to check the message as and when it is sent. I know there...

send and receive sms therough web application

android,web,sms,message
i need to know is it possible or is there any way to submit a Html form through SMS from an application on android device without internet connection and receive it through SMS and store it on database with my application ? i know i should have access to local...