background preloader

Onsite

Facebook Twitter

ShowCase. Public class ScheduleController implements Serializable { private ScheduleModel eventModel; private ScheduleEvent event = new DefaultScheduleEvent(); public ScheduleController() { eventModel = new DefaultScheduleModel(); eventModel.addEvent(new DefaultScheduleEvent("Champions League Match", previousDay8Pm(), previousDay11Pm())); eventModel.addEvent(new DefaultScheduleEvent("Birthday Party", today1Pm(), today6Pm())); eventModel.addEvent(new DefaultScheduleEvent("Breakfast at Tiffanys", nextDay9Am(), nextDay11Am())); eventModel.addEvent(new DefaultScheduleEvent("Plant the new garden stuff", theDayAfter3Pm(), fourDaysLater3pm())); public Date getRandomDate(Date base) { Calendar date = Calendar.getInstance(); date.setTime(base); date.add(Calendar.DATE, ((int) (Math.random()*30)) + 1); return date.getTime(); public Date getInitialDate() { Calendar calendar = Calendar.getInstance(); calendar.set(calendar.get(Calendar.YEAR), Calendar.FEBRUARY, calendar.get(Calendar.DATE), 0, 0, 0); return calendar.getTime();

» JSF- J2EE Tutorials, J2EE Interview Questions,JSF Tutorials, Struts Tutorials,Hibernate Tutorials, JSP Tutorials, EJB Tutorials, JMS Tutorials, SOA Tutorials, Java Tutorials, J2EE Study Materials,J2EE PDF Guides,Ajax Tutorials , J2EEBrain.com. Learn the basics of JSF Learn the life cycle of JSF This means that the URL of every request must contain the /faces/ pattern, as specified in the url-pattern element under the servlet-mapping element. Understand the JSF Structure Learn how to use JSF backing bean and where backing beans can be used for a JSF application. Understand how Binding is done in JSF. This tutorial provides a step by step guide to develop a JSF case study.

More topics on JSF Get the latest JSF interview questions and answers J2EE Interview Questions Here you will find a whole lot of Java/J2EE interview questions . Learning EJB 3.0 EJB 3.0 - Basics Learn basics of EJB 3.0 Creating Entity Beans... Learn Hibernate step by step Hibernate Basics Understand the basics of Hibernate. J2EE PDF Downloads JSP, Servlets and MVC Struts study guides SOA Study guides J2EE and... This page on Spring tutorial provides the basics of Spring.Spring is an open source framework... JavaServer Faces (JSF) Tutorial Net. On Javascript and JSF. I am pretty pleased with myself - I got my Google Maps application to work, almost on the first try after adding the required code.

Of course, I was using Firefox for testing, and forgot to try it out in Internet Explorer. So I walked into a colleague's office and said "Have a look at THIS! " and fired up IE to show off my application. Uhhh... well, part of it worked. Let me show you a little of the code that makes this work. The first script is Google's library. Let me draw your attention to the third script. Finally, I have a function, "addFacilitiesToMap" which does just that - puts the icons for the locations in my search results on the map. Technology Blog » Introducing Dynamic favicons in JSF applications. Being in New Orleans for a festive conference like ODTUG brings me in a mood to write about something colorful – even if not very useful.

And perhaps every now and again you may find it useful after all. You probably know of favicons – if not the word itself. Websites can define a favicon – a small icon that will display on the tab and/or the location bar of your browser (if the browser supports it, which not all browsers do). The favicon is a 16×16 icon that is typically referenced from a link element in the web page. In this article, I will demonstrate how easy it is to add dynamic – programmatically set – favicons. This allows you to have the favicon depend on dynamic conditions, such as the data currently displayed on the page or even the time of day.

Here we see a simple example of a Departments overview page for which the favicon has been set to a cute little home icon: This functionality is implemented in very simple way. Java sound playing in jsf page. Matt Raible's discussions on Java and Web Development. Dynamically add button,textbox,input,radio elements in html form using JavaScript. JSF HTML Tags Reference (Exadel) This is a handy reference guide for the standard HTML tag library that is built into JSF. For these tags you need to use the following uri attribute for the JSP taglib directive at the top of the file: The table that follows shows you examples of HTML output and browser-rendered output for example uses of the tag library. Also, you can skip ahead to some instructions for downloading this reference as a Web application.

Categories of JSF HTML Tags UIForm | UICommand | UIGraphic | UIInput | UIOutput | UIMessage and UIMessages | UISelectBoolean | UISelectMany | UISelectOne | UIPanel | UIColumn and UIData | UISelectItems | UISelectItem JSF HTML Tag Reference Running This Reference As an Application If you would like to run this reference as a Web application, download and deploy jsftags-guide.jar . Once you have downloaded the Jar file, only a few steps are required. Jar -xvf jsftags-guide.jar Then add this context to Tomcat server: Error: Requested resource not available for Servlet - JSP. JSF 2.0 Tutorial. JSF Tutorial 1 - Giriş | Fatih Çelik. Nedir? JSF (JavaServer Faces) JEE uygulamalarının web arayüzünü inşa etmek için oluşturulan, Javanın standart web frameworküdür.JEE uygulamalarında web arayüzleri oluşturmak için Java servlet, java server pages(JSP) , Struts, Apache Wicket gibi çok sayıda framework bulunur(Tabi web uygulamalarında çığır açan java appletlerini de unutmamak lazım).

JSF de bunlardan bir tanesidir. JSF Mimarisi JSF ,JSP ve Servlet’ların üzerine kurulmuştur.Bu var olan teknolojilerle MVC yaklaşımını birleştirir. JSF Mimarisi JSF MVC mimarisini de destekler.Hatta JSF’nin ortaya çıkmasındaki en büyük etkende JSP’nin MVC’yi kendi içerisinde destekleme konusundaki sıkıntılarıdır.MVC(Model-View-Controller) basitçe iş ve sunum mantığının birbirinden ayrılması olarak düşünülebilir.MVC hakkında daha fazla bilgi için buraya bakabilirsiniz. MVC yapısı Sonraki resimde de JSF nin MVC’yi nasıl uyguladığı görülmektedir. JSF'nin MVC'yi uygulaması Neden JSF? Create text box by clicking button and submittong text in text box using submit. Milind create text box by clicking button and submittong text in text box using submit2 Answer(s) 3 years and 6 months ago Posted in : JSP-Servlet Hi, I created a button when i click on button new textbox is created. and i want to do that when i enter the text input in text box and when i will click submit button the text should be submitted(it shows the value in text box in SOP). i also want the text box should generate in front of NEW button and after it submits it should show before the NEW line.

Please help me out..... this is the code. <html><head><script>function generatenew(){var d=document.getElementById("div");d.innerHTML+="<p><input type='text' name='food'>";}</script></head><body><form name='abc' method="post" action=""><div id="div"></div><b><font color="red"> <font size="4">NEW</font></font></b><input type="button" value="new" onclick="generatenew()"> </form></body></html> View Answers October 18, 2010 at 4:39 PM Hi Friend, Thanks February 22, 2011 at 2:23 PM Advertisements.

JSF Tutorial 2 - Eclipse + Tomcat + JSF Kurulumu | Fatih Çelik. Bir önceki makalemiz JSF’a giriş niteliğinde bir makaleydi.Bu makalede ise JSF için kullanabileceğimiz ide ve sunucuları kısaca tanıttıktan sonra geliştirme ortamımızın kurulumunu gerçekleştireceğiz. Java dünyasındaki araç bolluğu kendisini ide’ler konusunda da göstermektedir.Netbeans, JDeveloper, Intellij Idea ve tabikide Eclipse.Eclipse’in fazlasıyla gelişmiş plugin desteği sayesinde çok sayıda gelişmiş Eclipse türevi(Ibm Rad, MyEclipse, JBoss Tools…) bulunmaktadır.

Not : Verdiğim ide ve sunucu örneklerinden Ibm Rad, MyEclipse ve Ibm Websphere paralı uygulamalardır.Diğerlerini internetten indirip bedava kullanabilirsiniz. Ide’ler ve sunucular hakkında bu kısa girişten sonra asıl konumuza, geliştirme ortamının kurulumuna geçebiliriz.Eclipse Galileo, Apache Tomcat 6.0.20, JSF’nin 1.2(Sun Reference Implementation-Sun RI) sürümü kurulacaktır. Kuruluma Giriş: JSTL 1.2 : sayfasından jstl-1.2.jar dosyasını bilgisayarımıza indiriyoruz. JSP Tutorial. Design with the JSF architecture. Design patterns help users to abstract details at a higher level and better understand architecture. If you are familiar with Gang of Four design patterns and the JavaServer Faces (JSF)framework in general, this article will help you gain insight about the design patterns used in JSF framework, and how they work in-depth.

This article explores design patterns used in the JSF framework. Design patterns discussed in detail are Singleton, Model-View-Controller, Factory Method, State, Composite, Decorator, Strategy, Template Method, and Observer. Design patterns and JavaServer Faces (JSF) technology First, a brief introduction about patterns and the JSF framework. Patterns. The use patterns is a ubiquitous way to abstract a problem and its solutions.

Back to top Deep dive into JSF patterns Now let's explore a variety of design patterns in the JSF architecture. Singleton pattern A Web application using JSF requires only one instance of the Application and LifeCycle classes. Factory Method pattern. Basic Thread Operations in Java | Thread Naming. A casual investigation of the Thread class reveals an assortment of interesting methods for performing basic thread operations. This article by Java expert Jeff Friesen explores several of Thread's methods. This article is excerpted from Java 2 By Example, Second Edition (Que, 2001), by Jeff Friesen. A casual investigation of the Thread class reveals an assortment of interesting methods for performing basic thread operations.

Some of those methods are deprecated (and should not be used). However, other methods are quite useful and can simplify working with threads. All threads have names. The setName() method takes a String argument that identifies a thread. Listing 1: ThreadDemo3.java. ThreadDemo3's main() method creates a MyThread object, and initializes that object by passing My Thread to MyThread's constructor.

Four of Thread's constructors support initializing Thread objects with names. MyThread (String name) { super (name); } Socket Programming Using Java by Karthik Veeramani. If you find this tutorial good enough, please vote for me (use the Your Vote! Section at the end of this page) So you want to start doing some network programming with Java... You've come to the right place. I'll introduce you to the interesting world of Java sockets. By the end of this tutorial, you should be able to understand what sockets are and how to build simple Java applications using sockets.

Whats a socket? Don't tell me you've never chatted on those instant messengers like yahoo, msn and aol. Every computer on a network has an IP address. Now, you know that many programs can run on the same computer, don't you? An IP address = uniquely identifies a computer on the network. Adding the above equations, An IP address + A port number = _______ In other words, A _____ = uniquely identifies a program on the network If you guessed it right, thanks, my effort didn't go waste.

To summarize, a socket is a combination of an IP address and a port. How to program Enough of theory talk. Ready? Untitled. JavaServer Faces (JSF Faces) is a standardized specification for building User Interfaces (UI) for server-side applications. Before JavaServer Faces, developers who built web applications often relied on building HTML user interface components with servlets or JavaServer Pages (JSP pages). JavaServer Faces (JSF) is a user interface (UI) framework for Java web applications. It is designed to significantly ease the burden of writing and maintaining applications that run on a Java application server and render their UIs back to a target client.

JSF provides ease-of-use in the following ways: Makes it easy to construct a UI from a set of reusable UI components Simplifies migration of application data to and from the UI Helps manage UI state across server requests Provides a simple model for wiring client-generated events to server-side application code Allows custom UI components to be easily built and re-used New Features in JSF 2 Ajax JSF 2 provides now a native support for Ajax.

Untitled. Last Updated on Tuesday, 30 October 2012 16:17 JSF Annotations introduction Two of the most notable changes in JSF 2.0 are the introduction of annotations and the new convention used for navigation. These new features essentially make the faces-config.xml file optional. With JSF 2.0, you can use annotations in managed beans, registering listeners, resource rendering, etc. Now, any annotated POJO can be used as a . Navigation in the new release has been completely redefined to make it simpler. In this tutorial, we detail the new annotations and navigation features in JSF 2.0 with some code samples and configuration files using Maven An effort is underway to unify these bean/scope annotations across specifications (eg. Mojarra and MyFaces already provide implementations of these optional annotations.

Component annotations As part of the effort to prune down XML configuration bloat, JSF 2 also includes annotations targeted at authors of custom components (and associated objects). @ManagedBean.