<p:tabView event="mouseover">

UI Components for JSF
Post Reply
padjester
Posts: 27
Joined: 19 May 2010, 17:04

28 Jul 2010, 16:45

Hi there

Thank you to everyone, for all the help so far. :)

I am trying to implement a tabView component. Everything is fine but now I decided to add a mouseover event. My problem is when I enter the following code " <p:tabView event="mouseover"> ", I receive this error " The attribute event is not defined in the components interface".

How do I go about fixing this error?

Thank you
Kind regards

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Jul 2010, 17:57

Strange as online example works fine;

http://www.primefaces.org:8080/prime-sh ... wHover.jsf

Can you double check with this?

padjester
Posts: 27
Joined: 19 May 2010, 17:04

30 Jul 2010, 08:21

Hi there

Thank you for your fast reply. I have tried it again and still receive the error. I am using Netbeans6.8, JSF2, Primefaces2.0.0RC, Glassfish V3.
Could it be that I am missing a library? My libraries are as follow;

JSF 2.0
JSTL 1.1
EclipseLink-Glassfish-V3
Spring WEB MVC 2.5
Spring Framework 2.5
Java EE Web 6 API Library
Primefaces 2.0.0RC
Toplink Essentials


My code for the client(.xhtml) is as follow;

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="./OHTemplate.xhtml">

<ui:define name="top" >
<br></br>
<br></br>
<br></br>
<br></br>

<p:menubar autoSubmenuDisplay="true"> /* This mouseover works fine */

<p:submenu label="O'Hanna's Group Home">
<p:menuitem label="O'Hanna's Group Home" url="OHannasGroupHome.xhtml">
</p:menuitem>
</p:submenu>

<p:submenu label="Explore Venues">
<p:submenu label="O'Hanna's Inn Gauteng">
<p:menuitem label="Venue Profile" url="GautengVenueProfile.xhtml"></p:menuitem>
<p:menuitem label="Digital Tour" url="GautengTour.xhtml"></p:menuitem>
</p:submenu>

<p:submenu label="O'Hanna's Hotel and Conference Cape Town" >
<p:menuitem label="Venue Profile" url="CapeTownVenueProfile.xhtml"></p:menuitem>
<p:menuitem label="Digital Tour" url="CapeTownTour.xhtml"></p:menuitem>
</p:submenu>

<p:submenu label="O'Hanna's Hotel and Wellness Centre Ireland" >
<p:menuitem label="Venue Profile" url="IrelandVenueProfile.xhtml"></p:menuitem>
<p:menuitem label="Digital Tour" url="IrelandTour.xhtml"></p:menuitem>
</p:submenu>
</p:submenu>

<p:submenu label="Specials">
<p:menuitem label="Midweek Specials at O'Hanna's Inn Gauteng" url="MidweekSpecialsGauteng.xhtml"></p:menuitem>
<p:menuitem label="Group Specials at O'Hanna's Hotel and Conference Cape Town" url="GroupSpecialCapeTown.xhtml"></p:menuitem>
<p:menuitem label="Wellness Break at O'Hanna's Hotel and Wellness Centre Ireland" url="WellnessBreakIreland.xhtml"></p:menuitem>
<p:menuitem label="Early Booking Saver at any O'Hanna's Hotel" url="EarlyBookingSaver.xhtml"></p:menuitem>
</p:submenu>

<p:submenu label="The Green Club">
<p:menuitem label="Why Go Green" url="WhyGoGreen.xhtml"></p:menuitem>
<p:menuitem label="Earning and Using Points" url="HowToEarnAndUsePoints.xhtml"></p:menuitem>

<p:menuitem label="Sign Up" url="SecureUser/RegisterGreenClub.xhtml"></p:menuitem>

<p:submenu label="My Green Account">
<p:menuitem label="View My Green Account" url="SecureUser/MyGreenAccount.xhtml"></p:menuitem>
<p:menuitem label="Update Account" url="SecureUser/UpdateAccount.xhtml"></p:menuitem>
<p:menuitem label="Request New Password" url="SecureUser/RequestPassword.xhtml"></p:menuitem>
<p:menuitem label="Booking History" url="SecureUser/BookingHistory.xhtml"></p:menuitem>
</p:submenu>
<p:menuitem label="Green Club Rules" url="GreenClubRules.xhtml"></p:menuitem>
</p:submenu>


<p:submenu label="Travel Resources">
<p:submenu label="Local Guide">
<p:menuitem label="Attractions" url="Attractions.xhtml"></p:menuitem>
<p:menuitem label="Sporting Locations" url="SportingLocations.xhtml"></p:menuitem>
<p:menuitem label="Tour Operators" url="TourOperators.xhtml"></p:menuitem>
</p:submenu>
</p:submenu>
<p:submenu label="Reservations">
<p:submenu label="Manage My Reservations">
<p:menuitem label="View My Reservation" url="SecureUser/ViewMyReservation.xhtml"></p:menuitem>
<p:menuitem label="Edit a Reservation" url="SecureUser/EditMyReservation.xhtml"></p:menuitem>
<p:menuitem label="Cancel a Reservation" url="SecureUser/CancelMyReservation.xhtml"></p:menuitem>
</p:submenu>
</p:submenu>


<p:submenu label="About O'Hanna's">
<p:menuitem label="Vision and Mission" url="VisionAndMission.xhtml"></p:menuitem>
<p:menuitem label="Privacy Policy" url="PrivacyPolicy.xhtml"></p:menuitem>
<p:menuitem label="Terms and Conditions" url="TermsAndConditions.xhtml"></p:menuitem>
<p:menuitem label="Customer Feedback" url="CustomerFeedback.xhtml"></p:menuitem>
<p:menuitem label="Careers" url="Careers.xhtml"></p:menuitem>
<p:menuitem label="Contact Us" url="ContactUs.xhtml"></p:menuitem>
</p:submenu>

<p:submenu label="Rates">
<p:menuitem label="Rate Structure" url="Rates.xhtml"></p:menuitem>
</p:submenu>

<p:submenu label="Help">
<p:menuitem label="Website" url="WebsiteHelp.xhtml"></p:menuitem>
<p:menuitem label="Green Club" url="GreenClubHelp.xhtml"></p:menuitem>
<p:menuitem label="Technical" url="TechnicalIssues.xhtml"></p:menuitem>
</p:submenu>

</p:menubar>
</ui:define>

<ui:define name="left">
</ui:define>

<ui:define name="right">

<p:tabView event="mouseover"> /* Here is the problem line */

<p:tab title="New Reservation">
<h:outputStylesheet name="./css/CSSPrimefaces.css"/>
<h:panelGrid columns="1" cellpadding="10">

<label>Please select a Venue</label><select name="Venue">
<option>O'Hanna's Inn Gauteng</option>
<option>Normal Reservation</option>
<option>Midweek Specials</option>
<option>Early Booking Saver</option>
<option>O'Hanna's Hotel and Conference Cape Town</option>
<option>Normal Reservation</option>
<option>Executive Deal</option>
<option>Early Booking Saver</option>
<option>O'Hanna's Hotel and Wellness Centre Ireland</option>
<option>Normal Reservation</option>
<option>Wellness Break</option>
<option>Early Booking Saver</option>
</select>

<h:outputLabel>Check-in:<p:calendar title="Check-in date" value="#{calendarBean.date2}" /></h:outputLabel>
<h:outputLabel>Check-out:<p:calendar title="Check-out date" value="#{calendarBean.date2}" /></h:outputLabel>

<h:outputLabel>Number of Guests</h:outputLabel><select name="Number of Guests">
<option>1</option>
<option>2</option>
</select>

<h:outputLabel>Number of Rooms</h:outputLabel><select name="Number of Rooms">
<option>1</option>
<option>2</option>
</select>

<input type="submit" value="CheckAvailability" name="Check Availability" />

<p:graphicText value="*** Central Reservations 0800 123 6547 ***" fontName="vijaya" fontStyle="plain" fontSize="14" />

</h:panelGrid>
<h:outputLabel value="Lowest Internet Rates Guaranteed!" />
</p:tab>

<p:tab title="Existing Reservations">
<h:panelGrid columns="1" cellpadding="10">

<h:outputLabel value="Please select an option below to edit or cancel a reservation. Click the proceed button to go to the next step."/>

<h:outputLabel>Reservation number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="ReservationNumber" value="" size="8" /></h:outputLabel>
<h:outputLabel>Guest E-Mail Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="Guest E-Mail Address" value="" size="8" /></h:outputLabel>


<h:outputLabel value="Edit a reservation" for="EditExistingReservation">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="EditExistingReservation" value="" tabindex="1"/></h:outputLabel>
<h:outputLabel value="View a reservation" for="ViewExistingReservation">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="ViewExistingReservation" value="" tabindex="2"/></h:outputLabel>
<h:outputLabel value="Cancel a reservation" for="CancelExistingReservation">&nbsp;&nbsp;<input type="radio" name="CancelExistingReservation" value="" tabindex="3"/></h:outputLabel>

<input type="submit" value="Proceed" name="Proceed" tabindex="4" />
</h:panelGrid>
</p:tab>

</p:tabView>
</ui:define>

<ui:define name="center">
<p:imageSwitch effect="FadeIn" widgetVar="fadein" slideshowAuto="true">
<p:graphicImage value="resources/images/CTHotelIS.jpg" />
<p:graphicImage value="resources/images/GPJHBHotelIS.jpg" />
<p:graphicImage value="resources/images/IREHotelIS.jpg" />
</p:imageSwitch>
</ui:define>

<ui:define name="bottom">
</ui:define>

</ui:composition>

Please can you have a look at my code, if you do not mind

Kind regards
Padjester

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Jul 2010, 10:01

You are using 2.0.0.RC, you need to use 2.1 for this feature.

marlkonim
Posts: 1
Joined: 24 Sep 2012, 06:17

24 Sep 2012, 06:26

There are many companies providing the steroids for various uses and purposes. I didn't came across this till now. The online purchasing is better than other sources in the case of Steroids. We should follow some measures before purchasing these Steroids. The Steroids are not recommended unless prescribed by a doctor. Illegal steroids will stunt for growth, shrink our penis, gives us headaches, lead to bouts of anger, and can even start to kill of living tissue. Please produce some more attachments for the more detailed view of the task.




wellness for life

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests