Skip to content

Instantly share code, notes, and snippets.

View Guvenir's full-sized avatar
😊
Focusing

Ömer Güvenir Guvenir

😊
Focusing
View GitHub Profile
@Guvenir
Guvenir / server.R
Created September 22, 2015 21:05
file upload
library(shiny)
shinyServer(function(input, output) {
data <- reactive({
file1 <- input$file
if(is.null(file1)){return()}
read.table(file = file1$datapath, sep = input$sep , header = input$header , stringsAsFactors = input$factors)
})
output$fieldf <- renderTable({
if(is.null(data())){return()}
input$file
@Guvenir
Guvenir / ui.R
Created September 22, 2015 21:02
file upload
library(shiny)
shinyUI(fluidPage(theme="yeti.css",
navbarPage("App Title", class("navbar navbar-inverse"),
tabPanel("Plot"),
tabPanel("Summary"),
tabPanel("Table"),
inverse = TRUE,
collapsible = TRUE,
fluid = TRUE,
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class secondBean {
@ManagedProperty("#{firstBean}")
import com.pojos.User;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class firstBean {
private User user = new User();
public class User {
private String name;
private String surname;
public String getName() {
return name;
}
public void setName(String name) {
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<h:form>
@Guvenir
Guvenir / jsf.xhtml
Created July 5, 2015 09:32
h:outputStylesheet ve h:graphicImage kullanımı
<h:outputStylesheet library="awesome" name="/css/font-awesome.css"/>
<h:graphicImage library="images" name="resim.png" width="100"/>
@Guvenir
Guvenir / menubar.xhtml
Created July 5, 2015 09:30
Jsf ui:composition kullanımı
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
<title>Facelet Title</title>
</h:head>
@Guvenir
Guvenir / anasayfam.xhtml
Created July 5, 2015 09:29
JSF ui:include kullanımı
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<h:form>
@Guvenir
Guvenir / welcome_en.properties
Created April 29, 2015 08:14
internationalization
mesaj=Hello World!
buton=Login