JBoss Rich Faces SVN: r13944 - trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-30 08:07:41 -0400 (Thu, 30 Apr 2009)
New Revision: 13944
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml
Log:
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml 2009-04-30 12:07:16 UTC (rev 13943)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/WEB-INF/faces-config.xml 2009-04-30 12:07:41 UTC (rev 13944)
@@ -142,6 +142,16 @@
<managed-bean-class>org.docs.authentification.Authentification</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.docs.tree.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>treeBean</managed-bean-name>
+ <managed-bean-class>org.docs.tree.TreeBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
<locale-config>
14 years, 5 months
JBoss Rich Faces SVN: r13942 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-30 08:06:14 -0400 (Thu, 30 Apr 2009)
New Revision: 13942
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/contextMenu.xhtml
Log:
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/contextMenu.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/contextMenu.xhtml (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/contextMenu.xhtml 2009-04-30 12:06:14 UTC (rev 13942)
@@ -0,0 +1,49 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml">
+
+
+ <ui:define name="body">
+ <script type="text/javascript">
+ function enlarge(){
+ document.getElementById('pic').width=document.getElementById('pic').width*1.1;
+ document.getElementById('pic').height=document.getElementById('pic').height*1.1;
+ }
+
+ function decrease(){
+ document.getElementById('pic').width=document.getElementById('pic').width*0.9;
+ document.getElementById('pic').height=document.getElementById('pic').height*0.9;
+ }
+ </script>
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:contextMenu</f:facet>
+
+ <rich:contextMenu event="oncontextmenu" attachTo="pic1" submitMode="none" ongroupactivate="alert('hey')">
+ <rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"/>
+ <rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"/>
+ </rich:contextMenu>
+
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture">
+ <h:graphicImage value="/img/contextMenuImages/pic1.png" id="pic"/>
+ </h:panelGroup>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture1">
+ <h:graphicImage value="/img/contextMenuImages/pic2.png" id="pic1"/>
+ </h:panelGroup>
+ </h:panelGrid>
+
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
14 years, 5 months
JBoss Rich Faces SVN: r13941 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-30 08:05:40 -0400 (Thu, 30 Apr 2009)
New Revision: 13941
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/inplaceInput.xhtml
Log:
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/inplaceInput.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/inplaceInput.xhtml (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/inplaceInput.xhtml 2009-04-30 12:05:40 UTC (rev 13941)
@@ -0,0 +1,33 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml">
+
+ <ui:define name="body">
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:inplaceInput</f:facet>
+
+ <rich:panel style="width:220px;">
+ <f:facet name="header">
+ <h:outputText value="Person Info"></h:outputText>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="Name: "/>
+ <rich:inplaceInput defaultLabel="click to enter your name"/>
+ <h:outputText value="Email:"/>
+ <rich:inplaceInput defaultLabel="click to enter your email"/>
+ </h:panelGrid>
+ </rich:panel>
+
+ </rich:panel>
+
+ </ui:define>
+</ui:composition>
\ No newline at end of file
14 years, 5 months
JBoss Rich Faces SVN: r13940 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-30 08:03:57 -0400 (Thu, 30 Apr 2009)
New Revision: 13940
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/pickList.xhtml
Log:
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/pickList.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/pickList.xhtml (rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/pickList.xhtml 2009-04-30 12:03:57 UTC (rev 13940)
@@ -0,0 +1,41 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml">
+
+<ui:define name="body">
+ <style>
+ .rich-picklist-target-cell{
+ background: grey;
+ font-size: 16px;
+ }
+ </style>
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+ <rich:panel>
+ <f:facet name="header">rich:pickList</f:facet>
+
+ <h:form>
+ <rich:pickList>
+ <f:selectItem itemLabel="Bentley" itemValue="1"/>
+ <f:selectItem itemLabel="Ford" itemValue="2"/>
+ <f:selectItem itemLabel="Chevrolet" itemValue="3"/>
+ <f:selectItem itemLabel="Lincoln" itemValue="4"/>
+ <f:selectItem itemLabel="Mazda" itemValue="5"/>
+ <f:selectItem itemLabel="BMV" itemValue="6"/>
+ <f:selectItem itemLabel="Volkwagen" itemValue="7"/>
+ <f:selectItem itemLabel="Audi" itemValue="8"/>
+ <f:selectItem itemLabel="Mercedes" itemValue="9"/>
+ <f:selectItem itemLabel="Toyota" itemValue="10"/>
+ </rich:pickList>
+ </h:form>
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
14 years, 5 months
JBoss Rich Faces SVN: r13939 - trunk/test-applications/richfaces-docs/web/src/main/webapp/img.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-30 08:03:01 -0400 (Thu, 30 Apr 2009)
New Revision: 13939
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/img/close.png
Log:
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/img/close.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/richfaces-docs/web/src/main/webapp/img/close.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
14 years, 5 months
JBoss Rich Faces SVN: r13938 - in trunk/test-applications/richfaces-docs/web/src/main/webapp/img: contextMenuImages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-30 08:02:28 -0400 (Thu, 30 Apr 2009)
New Revision: 13938
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/
trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/pic1.png
trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/pic2.png
Log:
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/pic1.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/pic1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/pic2.png
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/richfaces-docs/web/src/main/webapp/img/contextMenuImages/pic2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
14 years, 5 months
JBoss Rich Faces SVN: r13937 - in trunk/examples/photoalbum/source/web/src/main: java/org/richfaces/photoalbum/util and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-30 07:32:18 -0400 (Thu, 30 Apr 2009)
New Revision: 13937
Added:
trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/util/HashUtils.java
Modified:
trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java
trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/UserManager.java
trunk/examples/photoalbum/source/web/src/main/webapp/WEB-INF/components.xml
trunk/examples/photoalbum/source/web/src/main/webapp/includes/image/imageEditInfo.xhtml
trunk/examples/photoalbum/source/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
Log:
Modified: trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java
===================================================================
--- trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java 2009-04-30 10:47:31 UTC (rev 13936)
+++ trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/Authenticator.java 2009-04-30 11:32:18 UTC (rev 13937)
@@ -43,6 +43,7 @@
import org.richfaces.photoalbum.domain.User;
import org.richfaces.photoalbum.service.Constants;
import org.richfaces.photoalbum.service.IUserAction;
+import org.richfaces.photoalbum.util.HashUtils;
@Name("authenticator")
@Scope(ScopeType.CONVERSATION)
@@ -61,30 +62,7 @@
@In IUserAction userAction;
private boolean loginFailed = false;
-
- private String digestAlgorithm;
- private String charset;
-
- public void setDigestAlgorithm(String algorithm) {
- this.digestAlgorithm = algorithm;
- }
-
- public void setCharset(String charset) {
- this.charset = charset;
- }
-
- public String hash(String plainTextPassword) {
- try {
- MessageDigest digest = MessageDigest.getInstance(digestAlgorithm);
- digest.update(plainTextPassword.getBytes(charset));
- byte[] rawHash = digest.digest();
- return new String(Hex.encodeHex(rawHash));
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
-
public void login(){
if(identity.hasRole(Constants.ADMIN_ROLE)){
return;
@@ -111,7 +89,7 @@
if(checkPassword(user) || checkUserExist(user)){
return;
}
- user.setPasswordHash(hash(user.getPassword()));
+ user.setPasswordHash(HashUtils.hash(user.getPassword()));
user.setPreDefined(false);
File avatarData = (File)Contexts.getConversationContext().get(Constants.AVATAR_DATA_COMPONENT);
if(avatarData != null){
@@ -172,7 +150,7 @@
return true;
}
try {
- User user = userAction.login(credentials.getUsername(), hash(credentials.getPassword()));
+ User user = userAction.login(credentials.getUsername(), HashUtils.hash(credentials.getPassword()));
if (user != null) {
identity.addRole(Constants.ADMIN_ROLE);
Events.instance().raiseEvent(Constants.AUTHENTICATED_EVENT, user);
Modified: trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/UserManager.java
===================================================================
--- trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/UserManager.java 2009-04-30 10:47:31 UTC (rev 13936)
+++ trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/manager/UserManager.java 2009-04-30 11:32:18 UTC (rev 13937)
@@ -34,6 +34,7 @@
import org.richfaces.photoalbum.domain.User;
import org.richfaces.photoalbum.service.Constants;
import org.richfaces.photoalbum.service.IUserAction;
+import org.richfaces.photoalbum.util.HashUtils;
@Name("userManager")
@Scope(ScopeType.EVENT)
@@ -60,8 +61,9 @@
avatarData.delete();
avatarData = null;
user.setHasAvatar(true);
+ }try{
user.setPreDefined(false);
- }try{
+ user.setPasswordHash(HashUtils.hash(user.getPassword()));
user = userAction.updateUser();
}catch(Exception e){
Events.instance().raiseEvent(Constants.ADD_ERROR_EVENT, Constants.UPDATE_USER_ERROR);
Added: trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/util/HashUtils.java
===================================================================
--- trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/util/HashUtils.java (rev 0)
+++ trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/util/HashUtils.java 2009-04-30 11:32:18 UTC (rev 13937)
@@ -0,0 +1,22 @@
+package org.richfaces.photoalbum.util;
+
+import java.security.MessageDigest;
+
+import org.jboss.seam.util.Hex;
+
+public class HashUtils {
+ private static String digestAlgorithm = "SHA-1";
+
+ private static String charset = "UTF-8";
+
+ public static String hash(String plainTextPassword) {
+ try {
+ MessageDigest digest = MessageDigest.getInstance(digestAlgorithm);
+ digest.update(plainTextPassword.getBytes(charset));
+ byte[] rawHash = digest.digest();
+ return new String(Hex.encodeHex(rawHash));
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+}
Property changes on: trunk/examples/photoalbum/source/web/src/main/java/org/richfaces/photoalbum/util/HashUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/examples/photoalbum/source/web/src/main/webapp/WEB-INF/components.xml
===================================================================
--- trunk/examples/photoalbum/source/web/src/main/webapp/WEB-INF/components.xml 2009-04-30 10:47:31 UTC (rev 13936)
+++ trunk/examples/photoalbum/source/web/src/main/webapp/WEB-INF/components.xml 2009-04-30 11:32:18 UTC (rev 13937)
@@ -30,7 +30,6 @@
persistence-unit-jndi-name="java:/photoalbumEntityManager"/>
<transaction:ejb-transaction/>
<security:identity authenticate-method="#{authenticator.authenticate}"/>
- <component name="authenticator" digestAlgorithm="SHA-1" charset="UTF-8"/>
<component name="org.jboss.seam.ui.entityConverter">
<property name="entityManager">#{em}</property>
</component>
Modified: trunk/examples/photoalbum/source/web/src/main/webapp/includes/image/imageEditInfo.xhtml
===================================================================
(Binary files differ)
Modified: trunk/examples/photoalbum/source/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
===================================================================
(Binary files differ)
14 years, 5 months
JBoss Rich Faces SVN: r13936 - trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-04-30 06:47:31 -0400 (Thu, 30 Apr 2009)
New Revision: 13936
Modified:
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java
Log:
https://jira.jboss.org/jira/browse/RF-6949
Modified: trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java
===================================================================
--- trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java 2009-04-30 09:57:22 UTC (rev 13935)
+++ trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/AbstractMenuRenderer.java 2009-04-30 10:47:31 UTC (rev 13936)
@@ -176,8 +176,6 @@
writer.writeAttribute(HTML.class_ATTRIBUTE, "rich-menu-list-strut", null);
writer.startElement(HTML.DIV_ELEM, layer);
writer.writeAttribute(HTML.class_ATTRIBUTE, "rich-menu-list-strut", null);
- writer.writeAttribute(HTML.width_ATTRIBUTE, "1", null);
- writer.writeAttribute(HTML.height_ATTRIBUTE, "1", null);
writer.writeAttribute(HTML.style_ATTRIBUTE, width!=null && width.length() > 0 ? "width: " + HtmlUtil.qualifySize(width) : "", null);
writer.write(" ");
writer.endElement(HTML.DIV_ELEM);
14 years, 5 months
JBoss Rich Faces SVN: r13935 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: tabPanel and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-04-30 05:57:22 -0400 (Thu, 30 Apr 2009)
New Revision: 13935
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/customScroller.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml
Log:
datascroller description corrected
tab panel removal sample description added
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/customScroller.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/customScroller.xhtml 2009-04-30 09:50:59 UTC (rev 13934)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/customScroller.xhtml 2009-04-30 09:57:22 UTC (rev 13935)
@@ -26,6 +26,18 @@
</ui:include>
</div>
</fieldset>
+ <p>
+ Next new JS API functions introduced which was used to build this sample:
+ </p>
+ <ul>
+ <li>switchToPage(pageToGoValue)</li>
+ <li>next()</li>
+ <li>previous()</li>
+ <li>first()</li>
+ <li>last()</li>
+ <li>fastForward()</li>
+ <li>fastRewind()</li>
+ </ul>
</ui:define>
</ui:composition>
</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml 2009-04-30 09:50:59 UTC (rev 13934)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml 2009-04-30 09:57:22 UTC (rev 13935)
@@ -7,7 +7,8 @@
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
<p>
- description
+ This simple sample added according to numerous Forum requests and shows
+ how to implement <b>tabs deletion</b> from <b>tabPanel</b> component.
</p>
<div class="sample-container">
14 years, 5 months