xhtml:
<h:inputText value="#{myBean.inputValue}" validator="#{myBean.validateInput}" />
JSF tag h:panelGroup
can be only:
layout="span"
) orlayout="block"
)There are situations in which you would being able to choose another kind of HTML tag (i.e. to avoid inserting a span/div inside an ul/ol element or to comply with some CSS constraint that result from the usage of CSS/HTML frameworks as Bootstrap).
The following composite component simulates h:panelGroup
behavior adding the possibility to set a custom tag.
/** | |
* Socket factory with keep alive setting. | |
* For using with com.sun.jndi.ldap.LdapCtxFactory add it in the env Hastable: | |
* env.put("java.naming.ldap.factory.socket", "yourpackage.KeepAliveSocketFactory"); | |
*/ | |
public class KeepAliveSocketFactory extends SocketFactory { | |
@Override | |
public Socket createSocket() throws IOException { | |
Socket socket = new Socket(); |
/**
* Some credits to http://stackoverflow.com/a/18363307/771431
*/
public class MyBasicAuthFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
#!/bin/bash | |
# | |
# glassfish: Startup script for Glassfish Application Server. | |
# | |
# chkconfig: 3 80 05 | |
# description: Startup script for domain1 of Glassfish Application Server. | |
ASADMIN="/home/glassfish/glassfish4/glassfish/bin/asadmin" | |
USER="glassfish" |
I wanted to switch from PHP 5.4 to PHP 5.6 without remove the older version from the machine.
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php56
yum update
yum install php56 php56-php
In /etc/httpd/conf.modules.d you now should have 2 different files for configuring PHP: 10-php56-php.conf 10-php.conf Rename the oldest and restart the server.
In src/main/webapp/WEB-INF/web.xml
add:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<!-- ... -->
<resource-env-ref>
<resource-env-ref-name>BeanManager</resource-env-ref-name>
On the custom ROM I'm using (James Rom D500) there is something broken with DHCP setup, so, even if the USB tethering is active from phone settings, the computer will never receive a valid IP address.
These steps worked for me for setting up a static IP address:
Laptop configuration (from GUI)