Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

First Cup Problem

843833Jan 20 2010 — edited Jun 28 2011
Hi Guys,

I'm moving to a J2EE team soon so thought I would give myself a bit of a headstart by taking the first cup tutorial. I downloaded the Netbeans 6.8 IDE with Glassfish 3 on my mac, which will use Safari as the browser.

I've followed all the steps and got the final part, But when I deploy I get a blank page in my browser, it seems to understand the title bar as that displays correctly. But all of the content within the form is totally ignored.

Below is a copy of my greeting.xhtml:-

<?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" xml:lang="en" lang="en"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:fc="http://java.sun.com/jsf/composite/components">
<head>
<title>Firstcup Greeting Page</title>
</head>
<body>
<h:form>
<h2>
<h:outputText value="#{bundle.Welcome}"/>
</h2>
<h:outputText value="#{bundle.DukeIs} "/>
<h:outputText value="#{DukesBDay.age} #{bundle.YearsOldToday}"/>
<p/>
<h:outputText value="#{bundle.Instructions}"/>
<p/>
<h:outputText value="#{bundle.YourBD} "/>
<fc:inputDate id="userBirthday" date="#{DukesBDay.yourBD}" />
<h:outputText value=" #{bundle.Pattern}"/>
<p/>
<h:commandButton value="#{bundle.Submit}" action="#{DukesBDay.processBirthday}"/>
<p/>
<h:message for="userBirthday" style="color:red"/>
</h:form>
</body>
</html>

It seems to me that Safari is having trouble with the xhtml I am serving? Any ideas on how to combat this issue or anything I have done incorrectly? Although there are no errors on build, just the xhtml code doesn't display

Thanks in advance,
Mitch
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2011
Added on Jan 20 2010
23 comments
7,032 views