JBoss Rich Faces SVN: r20768 - in trunk: examples/richfaces-showcase/src/main/webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-12-23 09:08:01 -0500 (Thu, 23 Dec 2010)
New Revision: 20768
Modified:
trunk/examples/richfaces-showcase/pom.xml
trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml
trunk/ui/misc/ui/src/test/java/org/richfaces/function/RichFunctionTest.java
Log:
Fixed Unit test failure with JSF 2.1.0
Removed validation-api from showcase pom.xml
Removed mime-type mapping for *.ecss files
Modified: trunk/examples/richfaces-showcase/pom.xml
===================================================================
--- trunk/examples/richfaces-showcase/pom.xml 2010-12-23 13:45:36 UTC (rev 20767)
+++ trunk/examples/richfaces-showcase/pom.xml 2010-12-23 14:08:01 UTC (rev 20768)
@@ -36,10 +36,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- </dependency>
- <dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<scope>provided</scope>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml 2010-12-23 13:45:36 UTC (rev 20767)
+++ trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml 2010-12-23 14:08:01 UTC (rev 20768)
@@ -40,10 +40,6 @@
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
- <mime-mapping>
- <extension>ecss</extension>
- <mime-type>text/css</mime-type>
- </mime-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
Modified: trunk/ui/misc/ui/src/test/java/org/richfaces/function/RichFunctionTest.java
===================================================================
--- trunk/ui/misc/ui/src/test/java/org/richfaces/function/RichFunctionTest.java 2010-12-23 13:45:36 UTC (rev 20767)
+++ trunk/ui/misc/ui/src/test/java/org/richfaces/function/RichFunctionTest.java 2010-12-23 14:08:01 UTC (rev 20768)
@@ -112,7 +112,7 @@
@Before
public void setUp() throws Exception {
- environment = MockFacesEnvironment.createEnvironment();
+ environment = MockFacesEnvironment.createNiceEnvironment();
facesContext = environment.getFacesContext();
expect(facesContext.getAttributes()).andStubReturn(new HashMap<Object, Object>());
14 years
JBoss Rich Faces SVN: r20767 - in modules/tests/metamer/trunk/application/src/main: webapp/components/richCalendar and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-23 08:45:36 -0500 (Thu, 23 Dec 2010)
New Revision: 20767
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModel.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModelItem.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/dataModel.xhtml
Log:
* fixed sample for calendar with data model
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModel.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModel.java 2010-12-23 12:58:58 UTC (rev 20766)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModel.java 2010-12-23 13:45:36 UTC (rev 20767)
@@ -79,4 +79,9 @@
return modelItems;
}
+
+ @Override
+ public Object getToolTip(Date date) {
+ return null;
+ }
}
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModelItem.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModelItem.java 2010-12-23 12:58:58 UTC (rev 20766)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/CalendarModelItem.java 2010-12-23 13:45:36 UTC (rev 20767)
@@ -49,4 +49,20 @@
public String getStyleClass() {
return styleClass;
}
+
+ public Object getData() {
+ return null;
+ }
+
+ public boolean hasToolTip() {
+ return false;
+ }
+
+ public Object getToolTip() {
+ return null;
+ }
+
+ public int getDay() {
+ return 0;
+ }
}
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/dataModel.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/dataModel.xhtml 2010-12-23 12:58:58 UTC (rev 20766)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/dataModel.xhtml 2010-12-23 13:45:36 UTC (rev 20767)
@@ -55,13 +55,17 @@
<ui:define name="component">
<div style="padding: 250px">
<rich:calendar id="calendar" boundaryDatesMode="scroll" dataModel="#{calendarModel}" mode="ajax" >
- <a4j:ajax event="change" render="output, requestTime" limitRender="#{true}"/>
+ <a4j:ajax event="change" render="output, phasesPanel" limitRender="#{true}"/>
</rich:calendar>
</div>
<br/><br/>
- output: <h:outputText id="output" value="#{richCalendarBean.attributes['value'].value}"/>
+ output:
+ <h:outputText id="output" value="#{richCalendarBean.attributes['value'].value}">
+ <f:convertDateTime pattern="#{richCalendarBean.attributes['datePattern'].value}"
+ timeZone="#{richCalendarBean.timeZone}"/>
+ </h:outputText>
</ui:define>
14 years
JBoss Rich Faces SVN: r20766 - in modules/tests/metamer/trunk/application/src/main: webapp/components/a4jMediaOutput and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-23 07:58:58 -0500 (Thu, 23 Dec 2010)
New Revision: 20766
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml
Log:
* sample for a4j:mediaOutput fixed
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java 2010-12-23 12:44:56 UTC (rev 20765)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java 2010-12-23 12:58:58 UTC (rev 20766)
@@ -33,7 +33,7 @@
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ViewScoped;
+import javax.faces.bean.RequestScoped;
import javax.imageio.ImageIO;
import org.richfaces.component.UIMediaOutput;
@@ -48,7 +48,7 @@
* @version $Revision$
*/
@ManagedBean(name = "a4jMediaOutputBean")
-@ViewScoped
+@RequestScoped
public class A4JMediaOutputBean implements Serializable {
private static final long serialVersionUID = -1L;
@@ -71,6 +71,7 @@
attributes.remove("element");
attributes.remove("value");
attributes.remove("mimeType");
+ attributes.remove("uriAttribute");
}
/**
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml 2010-12-23 12:44:56 UTC (rev 20765)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml 2010-12-23 12:58:58 UTC (rev 20766)
@@ -87,7 +87,7 @@
target="#{a4jMediaOutputBean.attributes['target'].value}"
title="#{a4jMediaOutputBean.attributes['title'].value}"
type="#{a4jMediaOutputBean.attributes['type'].value}"
- uriAttribute="#{a4jMediaOutputBean.attributes['uriAttribute'].value}"
+ uriAttribute="src"
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
value="#{mediaData}"
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
14 years
JBoss Rich Faces SVN: r20765 - in trunk: ui/input/ui/src/main/resources/META-INF/resources/org.richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-12-23 07:44:56 -0500 (Thu, 23 Dec 2010)
New Revision: 20765
Modified:
trunk/examples/input-demo/src/main/webapp/examples/calendar.xhtml
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar.js
Log:
http://jira.jboss.com/jira/browse/RF-8622
Modified: trunk/examples/input-demo/src/main/webapp/examples/calendar.xhtml
===================================================================
--- trunk/examples/input-demo/src/main/webapp/examples/calendar.xhtml 2010-12-23 12:43:08 UTC (rev 20764)
+++ trunk/examples/input-demo/src/main/webapp/examples/calendar.xhtml 2010-12-23 12:44:56 UTC (rev 20765)
@@ -32,6 +32,11 @@
-->
<h:head>
<title>Richfaces Calendar Demo</title>
+ <script>
+ var myFunction = function(event){
+ ;
+ }
+ </script>
</h:head>
<h:body>
<h:form id="form">
@@ -44,8 +49,8 @@
dataModel="#{calendarDataModel}"
mode="#{calendarBean.mode}"
disabled="false"
- showApplyButton="#{calendarBean.showApply}" cellWidth="24px"
- cellHeight="22px" style="width:200px" minDaysInFirstWeek="3"
+ cellWidth="24px"
+ cellHeight="22px" minDaysInFirstWeek="3"
oncollapse="return onEvent.call(this, event);"
onexpand="return onEvent.call(this, event);"
oncurrentdateselect="return onEvent.call(this, event);"
@@ -60,9 +65,13 @@
ondatemouseover="return onEvent.call(this, event);"
firstWeekDay="4"
horizontalOffset="#{calendarBean.horizontalOffset}"
- verticalOffset="#{calendarBean.verticalOffset}"
+ verticalOffset="#{calendarBean.verticalOffset}" defaultTime="11:22:01"
valueChangeListener="#{calendarBean.doValueChangeListener}"
- currentDataChangeListener="#{calendarBean.doCurrentDataChangeListener}"
+ currentDataChangeListener="#{calendarBean.doCurrentDataChangeListener}"
+ onbeforedateselect="myFunction(event)"
+ style="width:200px;border:10px solid #000000"
+ styleClass="hello"
+ boundaryDatesMode = "scroll"
>
</calendar:calendar>
@@ -93,6 +102,8 @@
<f:selectItem itemLabel="d/M/yy HH:mm" itemValue="d/M/yy HH:mm" />
<f:selectItem itemLabel="dd/M/yy hh:mm a"
itemValue="dd/M/yy hh:mm a" />
+ <f:selectItem itemLabel="dd/M/yy hh:mm:ss"
+ itemValue="dd/M/yy hh:mm:ss" />
<f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
<f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
</h:selectOneMenu>
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar.js 2010-12-23 12:43:08 UTC (rev 20764)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar.js 2010-12-23 12:44:56 UTC (rev 20765)
@@ -308,6 +308,7 @@
// "inactive" or undefined - no action (default)
// "scroll" - change current month
// "select" - change current month and select date
+ // "hidden" - does not render content for boundary dates
//
// todayControlMode - today control onclick action:
// "scroll"
@@ -349,6 +350,7 @@
//
this.options.boundaryDatesMode = this.options.boundaryDatesMode.toLowerCase();
+ this.hideBoundaryDatesContent = this.options.boundaryDatesMode == "hidden";
this.options.todayControlMode = this.options.todayControlMode.toLowerCase();
// time
@@ -1319,7 +1321,7 @@
}
contentElement = (this.customDayListMarkup ? element.firstChild : element);
- contentElement.innerHTML = this.evaluateMarkup(this.options.dayListMarkup, dataobj );
+ contentElement.innerHTML = this.hideBoundaryDatesContent && dataobj._month!=0 ? "" : this.evaluateMarkup(this.options.dayListMarkup, dataobj );
if (weekdaycounter==6) weekdaycounter=0; else weekdaycounter++;
14 years
JBoss Rich Faces SVN: r20764 - trunk/core/impl/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-12-23 07:43:08 -0500 (Thu, 23 Dec 2010)
New Revision: 20764
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
Log:
Base class for ui components was added
Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-12-23 12:22:24 UTC (rev 20763)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-12-23 12:43:08 UTC (rev 20764)
@@ -297,4 +297,36 @@
};
})(params));
+})(jQuery, window.RichFaces || (window.RichFaces={}));
+
+// RichFaces Base class for ui components
+(function($, rf) {
+
+ rf.ui = rf.ui || {};
+
+ // Constructor definition
+ rf.ui.Base = function(componentId, options, defaultOptions) {
+ this.namespace = "."+rf.Event.createNamespace(this.name, componentId);
+ // call constructor of parent class
+ $super.constructor.call(this, componentId);
+ this.options = $.extend(this.options, defaultOptions, options);
+ this.attachToDom();
+ this.__bindEventHandlers();
+ };
+
+ // Extend component class and add protected methods from parent class to our container
+ rf.BaseComponent.extend(rf.ui.Base);
+
+ // define super class link
+ var $super = rf.ui.Base.$super;
+
+ $.extend(rf.ui.Base.prototype, {
+ __bindEventHandlers: function () {
+ },
+ destroy: function () {
+ rf.Event.unbind(this.id, this.namespace);
+ $super.destroy.call(this);
+ }
+ });
+
})(jQuery, window.RichFaces || (window.RichFaces={}));
\ No newline at end of file
14 years
JBoss Rich Faces SVN: r20763 - trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-12-23 07:22:24 -0500 (Thu, 23 Dec 2010)
New Revision: 20763
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModel.java
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModelItem.java
Log:
build corrections
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModel.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModel.java 2010-12-23 11:12:58 UTC (rev 20762)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModel.java 2010-12-23 12:22:24 UTC (rev 20763)
@@ -51,4 +51,10 @@
return modelItems;
}
+
+ @Override
+ public Object getToolTip(Date date) {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModelItem.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModelItem.java 2010-12-23 11:12:58 UTC (rev 20762)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/calendar/model/CalendarModelItem.java 2010-12-23 12:22:24 UTC (rev 20763)
@@ -22,4 +22,28 @@
public String getStyleClass() {
return styleClass;
}
+
+ @Override
+ public Object getData() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean hasToolTip() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public Object getToolTip() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getDay() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
}
14 years
JBoss Rich Faces SVN: r20762 - management/design-4x/message.
by richfaces-svn-commits@lists.jboss.org
Author: Ochikvina
Date: 2010-12-23 06:12:58 -0500 (Thu, 23 Dec 2010)
New Revision: 20762
Added:
management/design-4x/message/messages.html
Modified:
management/design-4x/message/message.html
Log:
Added markup for rich:messages. Updated markup for rich:message.
Modified: management/design-4x/message/message.html
===================================================================
--- management/design-4x/message/message.html 2010-12-23 11:06:56 UTC (rev 20761)
+++ management/design-4x/message/message.html 2010-12-23 11:12:58 UTC (rev 20762)
@@ -5,6 +5,7 @@
<style type="text/css">
body{
font:normal 12px Arial, Verdana, sans-serif;
+ margin:20px;
}
/*--- RF Message styles ---*/
@@ -28,6 +29,10 @@
.rf-msg-err-lbl {
color:#ff0000;
}
+ .rf-msg-sum{ /*Summary*/
+ }
+ .rf-msg-des{ /*Description*/
+ }
/* FATAL specific*/
.rf-msg-ftl{
}
@@ -61,7 +66,10 @@
<span class="rf-msg-mkr rf-msg-err-mkr">
<img src="images/error.png" alt="Message marker"/>
</span>
- <span class="rf-msg-lbl rf-msg-err-lbl">Name: Validation Error: Value is less than allowable minimum of '3'</span>
+ <span class="rf-msg-lbl rf-msg-err-lbl">
+ <span class="rf-msg-sum">Name: Validation Error: Value is less than allowable minimum of '3'.</span>
+ <span class="rf-msg-des">Description</span>
+ </span>
</span>
<h1>FATAL Message</h1>
@@ -70,7 +78,10 @@
<span class="rf-msg-mkr rf-msg-ftl-mkr">
<img src="images/fatal.png" alt="Message marker"/>
</span>
- <span class="rf-msg-lbl rf-msg-ftl-lbl">Fatal error!</span>
+ <span class="rf-msg-lbl rf-msg-ftl-lbl">
+ <span class="rf-msg-sum">Fatal error!</span>
+ <span class="rf-msg-des">Description</span>
+ </span>
</span>
<h1>INFO Message</h1>
@@ -79,7 +90,10 @@
<span class="rf-msg-mkr rf-msg-inf-mkr">
<img src="images/info.png" alt="Message marker"/>
</span>
- <span class="rf-msg-lbl rf-msg-inf-lbl">Information</span>
+ <span class="rf-msg-lbl rf-msg-inf-lbl">
+ <span class="rf-msg-sum">Information!</span>
+ <span class="rf-msg-des">Description</span>
+ </span>
</span>
<h1>WARNING Message</h1>
@@ -88,7 +102,10 @@
<span class="rf-msg-mkr rf-msg-wrn-mkr">
<img src="images/warning.png" alt="Message marker"/>
</span>
- <span class="rf-msg-lbl rf-msg-wrn-lbl">Warning!</span>
+ <span class="rf-msg-lbl rf-msg-wrn-lbl">
+ <span class="rf-msg-sum">Warning!</span>
+ <span class="rf-msg-des">Description</span>
+ </span>
</span>
</body>
</html>
Added: management/design-4x/message/messages.html
===================================================================
--- management/design-4x/message/messages.html (rev 0)
+++ management/design-4x/message/messages.html 2010-12-23 11:12:58 UTC (rev 20762)
@@ -0,0 +1,159 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>Messages</title>
+ <style type="text/css">
+ body{
+ font:normal 12px Arial, Verdana, sans-serif;
+ margin:20px;
+ }
+
+ /*--- RF Message styles ---*/
+ .rf-msgs{
+ font-family:Verdana, sans-serif;
+ font-size:11px;
+ }
+ .rf-msgs ul{
+ list-style:none;
+ margin:8px 0;
+ padding:0;
+ }
+ .rf-msgs li{
+ margin:5px 0;
+ }
+ .rf-msgs table{
+ padding:0 0 8px;
+ }
+ .rf-msgs th{
+ padding:0 0 6px;
+ text-align:left;
+ }
+ .rf-msgs td{
+ padding:2px 0;
+ vertical-align:middle;
+ }
+ .rf-msgs-hdr{
+ font-weight:bold;
+ }
+ .rf-msgs-mkr{
+ }
+ td.rf-msgs-mkr{
+ padding-right:5px;
+ }
+ .rf-msgs-mkr img {
+ vertical-align:middle;
+ }
+ /* ERROR specific */
+ .rf-msgs-err{
+ }
+ .rf-msgs-err-mkr {
+ }
+ .rf-msgs-err-lbl {
+ color:#ff0000;
+ }
+ /* FATAL specific*/
+ .rf-msgs-ftl{
+ }
+ .rf-msgs-ftl-mkr {
+ }
+ .rf-msgs-ftl-lbl {
+ color:#ff0000;
+ }
+ /* INFO specific */
+ .rf-msgs-inf{
+ }
+ .rf-msgs-inf-mkr {
+ }
+ .rf-msgs-inf-lbl {
+ color:#000000;
+ }
+ /* WARNING specific */
+ .rf-msgs-wrn{
+ }
+ .rf-msgs-wrn-mkr {
+ }
+ .rf-msgs-wrn-lbl {
+ color:#000000;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Messages (LIST layout)</h1>
+
+ <div class="rf-msgs">
+ <div class="rf-msgs-hdr">Entered Data Status:</div>
+ <ul>
+ <li class="rf-msgs-err">
+ <span class="rf-msgs-mkr rf-msgs-err-mkr"><img src="images/error.png" alt="Messages Marker"/></span>
+ <span class="rf-msgs-lbl rf-msgs-err-lbl">
+ <span class="rf-msgs-sum">Name: Validation Error: Value is required.</span>
+ <span class="rf-msgs-des">Description.</span>
+ </span>
+ </li>
+ <li class="rf-msgs-ftl">
+ <span class="rf-msgs-mkr rf-msgs-ftl-mkr"><img src="images/fatal.png" alt="Messages Marker"/></span>
+ <span class="rf-msgs-lbl rf-msgs-ftl-lbl">
+ <span class="rf-msgs-sum">Fatal Error!</span>
+ <span class="rf-msgs-des">Description.</span>
+ </span>
+ </li>
+ <li class="rf-msgs-inf">
+ <span class="rf-msgs-mkr rf-msgs-inf-mkr"><img src="images/info.png" alt="Messages Marker"/></span>
+ <span class="rf-msgs-lbl rf-msgs-inf-lbl">
+ <span class="rf-msgs-sum">Information!</span>
+ <span class="rf-msgs-des">Description.</span>
+ </span>
+ </li>
+ <li class="rf-msgs-wrn">
+ <span class="rf-msgs-mkr rf-msgs-wrn-mkr"><img src="images/warning.png" alt="Messages Marker"/></span>
+ <span class="rf-msgs-lbl rf-msgs-wrn-lbl">
+ <span class="rf-msgs-sum">Warning!</span>
+ <span class="rf-msgs-des">Description.</span>
+ </span>
+ </li>
+ </dl>
+ </div>
+
+ <h1>Messages (TABLE layout)</h1>
+
+ <div class="rf-msgs">
+ <table cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th colspan="2">Entered Data Status:</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="rf-msgs-err">
+ <td class="rf-msgs-mkr rf-msgs-err-mkr"><img src="images/error.png" alt="Messages Marker"/></td>
+ <td class="rf-msgs-lbl rf-msgs-err-lbl">
+ <span class="rf-msgs-sum">Name: Validation Error: Value is required.</span>
+ <span class="rf-msgs-des">Description.</span>
+ </td>
+ </tr>
+ <tr class="rf-msgs-ftl">
+ <td class="rf-msgs-mkr rf-msgs-ftl-mkr"><img src="images/fatal.png" alt="Messages Marker"/></td>
+ <td class="rf-msgs-lbl rf-msgs-ftl-lbl">
+ <span class="rf-msgs-sum">Fatal Error!</span>
+ <span class="rf-msgs-des">Description.</span>
+ </td>
+ </tr>
+ <tr class="rf-msgs-inf">
+ <td class="rf-msgs-mkr rf-msgs-inf-mkr"><img src="images/info.png" alt="Messages Marker"/></td>
+ <td class="rf-msgs-lbl rf-msgs-inf-lbl">
+ <span class="rf-msgs-sum">Information!</span>
+ <span class="rf-msgs-des">Description.</span>
+ </td>
+ </tr>
+ <tr class="rf-msgs-wrn">
+ <td class="rf-msgs-mkr rf-msgs-wrn-mkr"><img src="images/warning.png" alt="Messages Marker"/></td>
+ <td class="rf-msgs-lbl rf-msgs-wrn-lbl">
+ <span class="rf-msgs-sum">Warning!</span>
+ <span class="rf-msgs-des">Description.</span>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </body>
+</html>
\ No newline at end of file
14 years
JBoss Rich Faces SVN: r20761 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-12-23 06:06:56 -0500 (Thu, 23 Dec 2010)
New Revision: 20761
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java
Log:
* added issue tracking information
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java 2010-12-23 01:04:48 UTC (rev 20760)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java 2010-12-23 11:06:56 UTC (rev 20761)
@@ -375,6 +375,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-9849")
public void testOnselectitem() {
selenium.type(pjq("input[type=text][id$=onselectitemInput]"), "metamerEvents += \"selectitem \"");
selenium.waitForPageToLoad();
14 years
JBoss Rich Faces SVN: r20760 - branches/RF-9323/cdk/generator/src/main/java/org/richfaces/cdk/apt.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2010-12-22 20:04:48 -0500 (Wed, 22 Dec 2010)
New Revision: 20760
Modified:
branches/RF-9323/cdk/generator/src/main/java/org/richfaces/cdk/apt/AptSourceUtils.java
Log:
CODING IN PROGRESS - issue RF-9323: CDK annotation @RendererSpecificComponent.attributes doesn't work
https://issues.jboss.org/browse/RF-9323
Modified: branches/RF-9323/cdk/generator/src/main/java/org/richfaces/cdk/apt/AptSourceUtils.java
===================================================================
--- branches/RF-9323/cdk/generator/src/main/java/org/richfaces/cdk/apt/AptSourceUtils.java 2010-12-22 23:47:13 UTC (rev 20759)
+++ branches/RF-9323/cdk/generator/src/main/java/org/richfaces/cdk/apt/AptSourceUtils.java 2010-12-23 01:04:48 UTC (rev 20760)
@@ -143,8 +143,6 @@
} else {
}
- } else if (isBooleanGetter(method)) {
-
} else if (isSetter(method)) {
}
@@ -274,19 +272,31 @@
private boolean isGetter(ExecutableElement e) {
String methodName = e.getSimpleName().toString();
- return methodName.startsWith("get") && methodName.length()>3 && Character.isUpperCase(methodName.charAt(3)) && 0 == e.getParameters().size();
+ return (isGetterName(methodName)||isBooleanGetterName(methodName)) && 0 == e.getParameters().size();
}
+
+ private boolean isGetterName(String methodName) {
+ return methodName.startsWith("get") && methodName.length()>3 && Character.isUpperCase(methodName.charAt(3));
+ }
private boolean isBooleanGetter(ExecutableElement e) {
String methodName = e.getSimpleName().toString();
- return methodName.startsWith("is") && methodName.length()>2 && Character.isUpperCase(methodName.charAt(2)) && 0 == e.getParameters().size() && TypeKind.BOOLEAN.equals(e.getReturnType().getKind());
+ return isBooleanGetterName(methodName) && 0 == e.getParameters().size() && TypeKind.BOOLEAN.equals(e.getReturnType().getKind());
}
+
+ private boolean isBooleanGetterName(String methodName) {
+ return methodName.startsWith("is") && methodName.length()>2 && Character.isUpperCase(methodName.charAt(2));
+ }
private boolean isSetter(ExecutableElement e) {
String methodName = e.getSimpleName().toString();
- return methodName.startsWith("set") && methodName.length()>3 && Character.isUpperCase(methodName.charAt(3)) && 1 == e.getParameters().size() && !e.isVarArgs() && TypeKind.VOID.equals(e.getReturnType().getKind());
+ return isSetterName(methodName) && 1 == e.getParameters().size() && !e.isVarArgs() && TypeKind.VOID.equals(e.getReturnType().getKind());
}
+ private boolean isSetterName(String methodName) {
+ return methodName.startsWith("set") && methodName.length()>3 && Character.isUpperCase(methodName.charAt(3));
+ }
+
private ClassName asClassDescription(TypeMirror type) {
return new ClassName(type.toString());
}
14 years