Author: amarkhel
Date: 2009-03-24 14:47:27 -0400 (Tue, 24 Mar 2009)
New Revision: 13160
Removed:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/Functions.java
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/realWorld-taglib.xml
trunk/test-applications/realworld2/web/src/main/webapp/includes/index/tree.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/misc/modalPanels.xhtml
Log:
Add help modal panel
Deleted:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/Functions.java
===================================================================
---
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/Functions.java 2009-03-24
18:45:52 UTC (rev 13159)
+++
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/util/Functions.java 2009-03-24
18:47:27 UTC (rev 13160)
@@ -1,37 +0,0 @@
-/**
- *
- */
-package org.richfaces.realworld.util;
-
-/**
- * @author Nick Belaevski
- *
- */
-public class Functions {
-
- private Functions() {
- }
-
- public static String rectangle(int width, int height, int maxSize) {
- long newWidth;
- long newHeight;
-
- if (width > height) {
- newWidth = maxSize;
- newHeight = Math.round((((double)height) / width) * maxSize);
- } else {
- newHeight = maxSize;
- newWidth = Math.round((((double)width) / height) * maxSize);
- }
-
- if (newHeight <= 0) {
- newHeight = 1;
- }
-
- if (newWidth <= 0) {
- newWidth = 1;
- }
-
- return "width: " + newWidth + "px; height: " + newHeight +
"px;";
- }
-}
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/realWorld-taglib.xml
===================================================================
---
trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/realWorld-taglib.xml 2009-03-24
18:45:52 UTC (rev 13159)
+++
trunk/test-applications/realworld2/web/src/main/webapp/WEB-INF/tags/realWorld-taglib.xml 2009-03-24
18:47:27 UTC (rev 13160)
@@ -13,6 +13,10 @@
<source>templates/shelf.xhtml</source>
</tag>
<tag>
+ <tag-name>help</tag-name>
+ <source>templates/help.xhtml</source>
+ </tag>
+ <tag>
<tag-name>confirm</tag-name>
<source>templates/confirmation.xhtml</source>
</tag>
@@ -23,9 +27,4 @@
<renderer-type>org.ajax4jsf.components.RealworldAjaxCommandButtonRenderer</renderer-type>
</component>
</tag>
- <function>
- <function-name>rectangle</function-name>
- <function-class>org.richfaces.realworld.util.Functions</function-class>
- <function-signature>java.lang.String rectangle(int, int,
int)</function-signature>
- </function>
</facelet-taglib>
\ No newline at end of file
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/index/tree.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/misc/modalPanels.xhtml
===================================================================
(Binary files differ)
Show replies by date