当前位置: 首页 > 知识库问答 >
问题:

一点教程

冯文彬
2023-03-14

我想按计划更改活动的颜色。在谷歌搜索之后,我发现这些链接:primefaces调度程序事件颜色在将primefaces Jar 3.3替换为4.0并更改primefaces调度程序事件的颜色后不起作用。但他们都不为我工作。

这是HTML页面:

<!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://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
	<h:head>
    	<f:facet name="first">
        	<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>SARSOURA | Appoint a Meeting</title>
		</f:facet>
        <link rel="shortcut icon" type="image/x-icon" href="#{resource['icons/hki2.gif']}"/>
        <style>
			body 
			{
    			background: #e6e6e6;
    		}
    	</style>
    	<style type="text/css">
		    .value 
		    {
		        width: 900px;
		    }
		</style>
	</h:head>
	<body>
		<h:form>
			<center>
		    	<p:growl id="messages" showDetail="true" />
		 		<h:panelGrid columnClasses="value">
		        	<p:schedule id="schedule" value="#{scheduleView.eventModel}" widgetVar="myschedule" timeZone="GMT+2">
		 				<p:ajax event="dateSelect" listener="#{scheduleView.onDateSelect}" update="eventDetails" oncomplete="PF('eventDialog').show();" />
		            	<p:ajax event="eventSelect" listener="#{scheduleView.onEventSelect}" update="eventDetails" oncomplete="PF('eventDialog').show();" />
		            	<p:ajax event="eventMove" listener="#{scheduleView.onEventMove}" update="messages" />
		            	<p:ajax event="eventResize" listener="#{scheduleView.onEventResize}" update="messages" />
		 			</p:schedule>
		    	</h:panelGrid>
		 
			    <p:dialog widgetVar="eventDialog" header="Event Details" showEffect="clip" hideEffect="clip">
			        <h:panelGrid id="eventDetails" columns="2">
			            <p:outputLabel for="title" value="Titles:" />
			            <p:inputText id="title" value="#{scheduleView.event.title}" required="true" />
			 
			            <p:outputLabel for="from" value="From:" />
			            <p:calendar id="from" value="#{scheduleView.event.startDate}" timeZone="GMT+2" pattern="dd/MM/yyyy HH:mm"/>
			 
			            <p:outputLabel for="to" value="To:" />
			            <p:calendar id="to" value="#{scheduleView.event.endDate}" timeZone="GMT+2" pattern="dd/MM/yyyy HH:mm"/>
			 
			            <p:outputLabel for="allDay" value="All Day:" />
			            <h:selectBooleanCheckbox id="allDay" value="#{scheduleView.event.allDay}" />
			 
			            <p:commandButton type="reset" value="Reset" />
			            <p:commandButton id="addButton" value="Save" actionListener="#{scheduleView.addNewEvent}" oncomplete="PF('myschedule').update();PF('eventDialog').hide();" />
			        </h:panelGrid>
			    </p:dialog> 
			</center>
		</h:form>
	</body>
	<p:graphicImage value="/resources/icons/Footer.png" style="text-align:center"/> 
</html>

这是我在豆子时间表上写的iew.java:

eventModel.addEvent(new DefaultScheduleEvent("Teaching", samiaFridaySA1(), samiaFridaySA2(),"emp1"));

关于文件样式。css,我有:

.emp1 .fc-event-inner {
    background: red;
}

你对解决这个问题有什么想法吗?任何建议都很感激。多谢了。

共有3个答案

窦夜洛
2023-03-14

如果我不和比利·德卡尔合作:

a.PorAsignar {
                background: #CFD8DC !important;
                border-color: black!important;
            } 

DefaultScheduleEvent evento = new DefaultScheduleEvent();
evento.setStyleClass("PorAsignar");
酆出野
2023-03-14

可以在ScheduleView上指定事件的样式。爪哇:

even = new DefaultScheduleEvent(new DefaultScheduleEvent("Teaching", samiaFridaySA1(), samiaFridaySA2(),"emp1");
even.setStyleClass(".emp1");
scheduleModelDisponibilite.addEvent(even);

并将样式放在主html页面上:

.emp1 .fc-event-inner {
    background: red;
}
钱飞翼
2023-03-14

您必须放置而不是插入文件样式。css。试试这个:

<!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://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
	<h:head>
    	<f:facet name="first">
        	<meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>SARSOURA | List of Persons</title>
		</f:facet>
        <link rel="shortcut icon" type="image/x-icon" href="#{resource['icons/hki2.gif']}"/>
        <style>
			body 
			{
    			background: #e6e6e6;
    		}
    		.ui-datatable-odd
	        {
	            background: none repeat scroll 0 0 #ffbbff;
	        }
	        .outputTooltip 
			{
				color: #e6e6e6;
				font-family: Arial;
				font-size: 10px;
				font-weight: bold;
			}
			.outputFullLabel 
			{
				color: #2F3030;
				font-family: Arial;
				font-size: 13px;
				font-weight: bold;
			}
			.outputLabelIfoA
			{
				color: #000000;
				font-family: Arial;
				font-size: 13px;
				font-weight: bold;
			}
			.outputLabelIfoa
			{
				color: #666666;
				font-size: 7px;
			}
			.backButton
			{
				background-color: #ffb3ec;
			}
    	</style>
    	<style type="text/css">
		    .value 
		    {
		        width: 900px;
		    }
		</style>
	</h:head>
	<h:body>
		<h:outputStylesheet name="style.css"/>
		<h:form>
			<center>
		    	<p:growl id="messages" showDetail="true" />
		 		<h:panelGrid columnClasses="value">
		        	<p:schedule id="schedule" value="#{scheduleView.eventModel}" widgetVar="myschedule" timeZone="GMT+2">
		 				<p:ajax event="dateSelect" listener="#{scheduleView.onDateSelect}" update="eventDetails" oncomplete="PF('eventDialog').show();" />
		            	<p:ajax event="eventSelect" listener="#{scheduleView.onEventSelect}" update="eventDetails" oncomplete="PF('eventDialog').show();" />
		            	<p:ajax event="eventMove" listener="#{scheduleView.onEventMove}" update="messages" />
		            	<p:ajax event="eventResize" listener="#{scheduleView.onEventResize}" update="messages" />
		 			</p:schedule>
		    	</h:panelGrid>
		 
			    <p:dialog widgetVar="eventDialog" header="Event Details" showEffect="clip" hideEffect="clip">
			        <h:panelGrid id="eventDetails" columns="2">
			            <p:outputLabel for="title" value="Titles:" />
			            <p:inputText id="title" value="#{scheduleView.event.title}" required="true" />
			 
			            <p:outputLabel for="from" value="From:" />
			            <p:calendar id="from" value="#{scheduleView.event.startDate}" timeZone="GMT+2" pattern="dd/MM/yyyy HH:mm"/>
			 
			            <p:outputLabel for="to" value="To:" />
			            <p:calendar id="to" value="#{scheduleView.event.endDate}" timeZone="GMT+2" pattern="dd/MM/yyyy HH:mm"/>
			 
			            <p:outputLabel for="allDay" value="All Day:" />
			            <h:selectBooleanCheckbox id="allDay" value="#{scheduleView.event.allDay}" />
			 
			            <p:commandButton type="reset" value="Reset" />
			            <p:commandButton id="addButton" value="Save" actionListener="#{scheduleView.addNewEvent}" oncomplete="PF('myschedule').update();PF('eventDialog').hide();" />
			        </h:panelGrid>
			    </p:dialog> 
			</center>
		</h:form>
	</h:body>
	<p:graphicImage value="/resources/icons/Footer.png" style="text-align:center"/> 
</html>
 类似资料:
  • 上下文JavaIntelliJ中的Spring MVC和HiberNate。由于某种原因,在Spring MVC配置文件中,“事务管理器”未被识别为有效引用。请参见下面的红色文本: 关于如何解决这个问题有什么建议吗? 以下是完整的配置文件:

  • 在jsp中,如果调用,则会出现以下异常: http 404错误--找不到sampleServlet。我在web.xml文件中设置了sampleServlet,URL模式也设置为/sampleServlet。 为什么我要得到404(找不到servlet.)?

  • 我想按计划更改活动的颜色。在谷歌搜索之后,我发现这些链接:primefaces调度程序事件颜色在将primefaces Jar 3.3替换为4.0并更改primefaces调度程序事件的颜色后不起作用。但他们都不为我工作。 这是HTML页面: 这是我在豆子时间表上写的iew.java: 关于文件样式。css,我有: 你对解决这个问题有什么想法吗?任何建议都很感激。多谢了。

  • 对不起,我的学院没有把整个代码整理出来

  • 站点帮助包括帮助内容和帮助类型。 一、先添加帮助类型 帮助类型包括添加帮助类型操作和帮助类型列表。 帮助列表的显示项包括类型名称、排序和单个帮助类型的删除操作。 添加帮助类型所设置的信息包括帮助类型名称和排序。 二、添加帮助内容 帮助内容包括批量删除操作、添加帮助内容操作和帮助列表。 帮助列表的显示项包括标题、分类、排序、单个帮助的修改、删除和预览操作。点击预览之后,会在浏览器的新标签页打开前台该

  • 本文向大家介绍MyBatis一对一映射初识教程,包括了MyBatis一对一映射初识教程的使用技巧和注意事项,需要的朋友参考一下 MyBatis是一个支持普通SQL查询,存储过程和高级映射的优秀持久层框架。MyBatis消除了几乎所有的JDBC代码和参数的手工设置以及对结果集的检索封装。MyBatis可以使用简单的XML或注解用于配置和原始映射,将接口和Java的POJO(Plain Old Jav