JBoss Rich Faces SVN: r13874 - trunk/docs/realworld_app_guide/en/src/main/docbook/includes.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-04-25 11:57:12 -0400 (Sat, 25 Apr 2009)
New Revision: 13874
Added:
trunk/docs/realworld_app_guide/en/src/main/docbook/includes/uploadImages.xml
Log:
https://jira.jboss.org/jira/browse/RF-5768 - Photo Album review
Added: trunk/docs/realworld_app_guide/en/src/main/docbook/includes/uploadImages.xml
===================================================================
--- trunk/docs/realworld_app_guide/en/src/main/docbook/includes/uploadImages.xml (rev 0)
+++ trunk/docs/realworld_app_guide/en/src/main/docbook/includes/uploadImages.xml 2009-04-25 15:57:12 UTC (rev 13874)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <title>Upload images</title>
+ <para>
+ In the previous chapter we have discussed how to create Navigation Panels
+ that represent "Shelves - Albums" hierarchy.
+ Now it is time to upload images.
+ </para>
+ <para>
+ The implementation of <emphasis role="bold"><property><rich:fileUpload></property></emphasis>
+ in the Photo Album application uses the embedded Flash module
+ that adds extra functionality to the component:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>Multiple files choosing;</para>
+ </listitem>
+ <listitem>
+ <para>Definition of permitted file types in the "Open File" dialog window;</para>
+ </listitem>
+ <listitem>
+ <para>A number of additional client side object properties.</para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The "/includes/fileUpload/fileUploader.xhtml" page
+ is responsible for the photos uploading functionality:
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:fileUpload
+ allowFlash="true" maxFilesQuantity="100" autoclear="true"
+ fileUploadListener="#{fileUploadManager.listener}" id="fileUpload"
+ disabled="#{model.selectedAlbum == null}"
+ immediateUpload="false" acceptedTypes="jpg,jpeg">
+ <a4j:support event="onuploadcomplete" reRender="filesPanel, treeform" actionListener="#{fileWrapper.setComplete(true)}"/>
+ <a4j:support event="onfileuploadcomplete" />
+</rich:fileUpload>
+...]]></programlisting>
+ <para>
+ The <emphasis><property>"allowFlash"</property></emphasis> attribute set to "true"
+ enables the Flash module.
+ </para>
+ <para>
+ The <emphasis><property>"acceptedTypes"</property></emphasis> attribute
+ specifies "jpg", "jpeg" as the permitted file types you can upload.
+ </para>
+ <para>
+ The <emphasis><property>"fileUploadListener"</property></emphasis> attribute
+ represents the action listener method <code>listener()</code> of the <code>fileUploadManager</code>
+ class that is notified after file is uploaded.
+ This method makes the main job on the upload:
+ </para>
+<programlisting role="JAVA"><![CDATA[...
+ public void listener(UploadEvent event) throws Exception {
+ UploadItem item = event.getUploadItem();
+ Image image = constructImage(item);
+ try {
+ extractMetadata(item, image);
+ } catch (Exception e1) {
+ addError(item, image, Constants.FILE_PROCESSING_ERROR);
+ return;
+ }
+ image.setAlbum(model.getSelectedAlbum());
+ if(image.getAlbum() == null){
+ addError(item, image, Constants.NO_ALBUM_TO_DOWNLOAD_ERROR);
+ return;
+ }
+ try{
+ if(imageAction.isImageWithThisPathExist(image)){
+ image.setPath(generateNewPath(image.getPath()));
+ }
+ imageAction.addImage(image);
+ }catch(Exception e){
+ addError(item, image, Constants.IMAGE_SAVING_ERROR);
+ return;
+ }
+ if(!fileManager.addImage(image.getFullPath(), item.getFile().getPath())){
+ addError(item, image, Constants.FILE_SAVE_ERROR);
+ return;
+ }
+ fileWrapper.getFiles().add(image);
+ Events.instance().raiseEvent(Constants.IMAGE_ADDED_EVENT, image);
+ item.getFile().delete();
+ }
+...]]></programlisting>
+ <para>
+ The <code>listener()</code> method is called at server side after every file uploaded
+ and saves files in a temporary folder or in RAM.
+ In the Photo Album application the uploaded files are stored in the temporary folder
+ because the value of the <code>createTempFile</code> parameter is set to <code>true</code>.
+ See the code from the <code>web.xml</code> descriptor:
+ </para>
+
+<programlisting role="XML"><![CDATA[...
+<filter>
+ <filter-name>Seam Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ <init-param>
+ <param-name>createTempFiles</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ ...
+</filter>
+...]]></programlisting>
+ <para>
+ After the image is stored in the temporary folder
+ the <code>listener()</code> method creates an <code>Image</code> object
+ and extracts all image metadata such as Camera name, Image size, etc.
+ It saves six different sizes of the photo in order to create thumbnails
+ and perform images scaling.
+ After that the photo is added into the database
+ the temporary file is removed.
+ </para>
+</section>
Property changes on: trunk/docs/realworld_app_guide/en/src/main/docbook/includes/uploadImages.xml
___________________________________________________________________
Name: svn:executable
+ *
15 years, 8 months
JBoss Rich Faces SVN: r13873 - in trunk/docs/realworld_app_guide/en/src/main/docbook: includes and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-04-25 11:56:51 -0400 (Sat, 25 Apr 2009)
New Revision: 13873
Modified:
trunk/docs/realworld_app_guide/en/src/main/docbook/includes/hiw.xml
trunk/docs/realworld_app_guide/en/src/main/docbook/master.xml
Log:
https://jira.jboss.org/jira/browse/RF-5768 - Photo Album review
Modified: trunk/docs/realworld_app_guide/en/src/main/docbook/includes/hiw.xml
===================================================================
--- trunk/docs/realworld_app_guide/en/src/main/docbook/includes/hiw.xml 2009-04-25 15:08:12 UTC (rev 13872)
+++ trunk/docs/realworld_app_guide/en/src/main/docbook/includes/hiw.xml 2009-04-25 15:56:51 UTC (rev 13873)
@@ -1,90 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section>
- <title>Upload images</title>
- <para>The implementation of <emphasis role="bold"><property><rich:fileUpload></property></emphasis> in the Photo Album Demo uses the embedded Flash module that adds extra functionality to the component.
- Here are the additional features that the Flash module provides:
- </para>
- <itemizedlist>
- <listitem><para>Multiple files choosing;</para></listitem>
- <listitem><para>Specification of permitted file types in the "Open File" dialog window;</para></listitem>
- <listitem><para>A number of additional entry object properties.</para></listitem>
- </itemizedlist>
-
- <para>
- The photos uploading functionality is based on the <code>/includes/fileUpload/fileUploader.xhtml page</code>. Let's have a look at this page to find out how the uploader is implemented:
- </para>
-
- <programlisting role="XML"><![CDATA[<rich:fileUpload style="margin : 0px 0px 20px 0px; width : 504px; height : 200px; background : #f1f1f1; border : 1px solid #A1A1A1"
- id="fileUpload"
- allowFlash="true"
- immediateUpload="false"
- acceptedTypes="jpg,jpeg"
- maxFilesQuantity="100"
- autoclear="true"
- fileUploadListener="#{fileUploadManager.listener}" >
- <a4j:support event="onuploadcomplete" reRender="filesPanel, tree" />
- <a4j:support event="onfileuploadcomplete" />
- </rich:fileUpload>]]></programlisting>
-
- <para>
- The "<emphasis><property>FileUploadListener</property></emphasis>" attribute is binded with <code>fileUploadManager.listener</code> method which makes the main job on the upload.
- Below is the <code>fileUploadManager.listener</code> method:
- </para>
- <programlisting role="JAVA"><![CDATA[public void listener(UploadEvent event) throws Exception {
- UploadItem item = event.getUploadItem();
- Image image = constructImage(item);
- try {
- extractMetadata(item, image);
- } catch (Exception e1) {
- addError(item, image, Constants.FILE_PROCESSING_ERROR);
- return;
- }
- image.setAlbum(model.getSelectedAlbum());
- if(image.getAlbum() == null){
- addError(item, image, Constants.NO_ALBUM_TO_DOWNLOAD_ERROR);
- return;
- }
- try{
- if(imageAction.isImageWithThisPathExist(image)){
- image.setPath(generateNewPath(image.getPath()));
- }
- imageAction.addImage(image);
- }catch(Exception e){
- addError(item, image, Constants.IMAGE_SAVING_ERROR);
- return;
- }
- if(!fileManager.addImage(image.getFullPath(), item.getFile().getPath())){
- addError(item, image, Constants.FILE_SAVE_ERROR);
- return;
- }
- fileWrapper.getFiles().add(image);
- Events.instance().raiseEvent(Constants.IMAGE_ADDED_EVENT, image);
- item.getFile().delete();
-}]]></programlisting>
-
-<para>
- When a photo is added into the uploader, the first thing it does is saving this photo in the file system.
- The uploaded files are stored in the temporary folder in the computer file system.
- For this purpose the value of the <code>createTempFile</code> parameter in <code>Ajax4jsf Filter</code> section should be set to <code>true</code>.
- Below in the <code>Web.xml</code> file Ajax filter section:
-</para>
- <programlisting role="XML"><![CDATA[...
-<init-param>
- <param-name>createTempFiles</param-name>
- <param-value>true</param-value>
-</init-param>
-...]]></programlisting>
-
- <para>
- Then the uploader creates an <code>Image</code> object and extracts all image metadata such as Camera name, Image size etc.
- Then it sets an album and generates a new path to it.
- The system should save six different sizes of the photo.
- After the photo was added into the database the system removes a temporary file created for storage.
- </para>
-
-
- </section>
<section>
<title>Slide show</title>
Modified: trunk/docs/realworld_app_guide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/realworld_app_guide/en/src/main/docbook/master.xml 2009-04-25 15:08:12 UTC (rev 13872)
+++ trunk/docs/realworld_app_guide/en/src/main/docbook/master.xml 2009-04-25 15:56:51 UTC (rev 13873)
@@ -9,6 +9,7 @@
<!ENTITY usedComponents SYSTEM "includes/usedComponents.xml">
<!ENTITY navigationPanel SYSTEM "includes/navigationPanel.xml">
+ <!ENTITY uploadImages SYSTEM "includes/uploadImages.xml">
<!ENTITY hiw SYSTEM "includes/hiw.xml">
]>
@@ -63,6 +64,7 @@
<?forseChanks?>
&usedComponents;
&navigationPanel;
+ &uploadImages;
&hiw;
</chapter>
15 years, 8 months
JBoss Rich Faces SVN: r13872 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/demo/tab and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-04-25 11:08:12 -0400 (Sat, 25 Apr 2009)
New Revision: 13872
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tab/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tab/TabsBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/examples/tabRemove.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml
Log:
tabs removing sample added
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tab/TabsBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tab/TabsBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/tab/TabsBean.java 2009-04-25 15:08:12 UTC (rev 13872)
@@ -0,0 +1,43 @@
+package org.richfaces.demo.tab;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+public class TabsBean {
+
+ private boolean[] tabRendered = { true, true, true };
+ private boolean tabsRendered = true;
+
+
+ public boolean[] getTabRendered() {
+ return tabRendered;
+ }
+
+ public void setTabRendered(boolean[] tabRendered) {
+ this.tabRendered = tabRendered;
+ }
+
+ public boolean isTabsRendered() {
+ return tabsRendered;
+ }
+
+ public void setTabsRendered(boolean tabsRendered) {
+ this.tabsRendered = tabsRendered;
+ }
+
+ public void deleteTab(ActionEvent event) {
+ int tabIndex = Integer.parseInt(FacesContext.getCurrentInstance()
+ .getExternalContext().getRequestParameterMap().get("tab"));
+ tabRendered[tabIndex] = false;
+ for (int i = 0; i < tabRendered.length; i++) {
+ tabsRendered = tabsRendered||tabRendered[i];
+ }
+ }
+
+ public void resetTabs() {
+ for (int i = 0; i < tabRendered.length; i++) {
+ tabRendered[i]=true;
+ }
+ }
+
+}
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2009-04-25 15:03:59 UTC (rev 13871)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2009-04-25 15:08:12 UTC (rev 13872)
@@ -3,7 +3,7 @@
panel= richOutputs, Panel, /images/ico_panel.gif, /images/cn_panel.gif, panel.html, jbossrichfaces/freezone/docs/tlddoc/rich/panel.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIPanel.html, /richfaces/panel.jsf
separator= richOutputs, Separator, /images/ico_separator.gif, /images/cn_separator.gif, separator.html, jbossrichfaces/freezone/docs/tlddoc/rich/separator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UISeparator.html, /richfaces/separator.jsf
spacer= richOutputs, Spacer, /images/ico_spacer.gif, /images/cn_spacer.gif, spacer.html, jbossrichfaces/freezone/docs/tlddoc/rich/spacer.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UISpacer.html, /richfaces/spacer.jsf
-tabPanel= richOutputs, Tab Panel, /images/ico_tabpanel.gif, /images/cn_tabpanel.gif, tabPanel.html, jbossrichfaces/freezone/docs/tlddoc/rich/tabPanel.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UITabPanel.html, /richfaces/tabPanel.jsf
+tabPanel= richOutputs, Tab Panel, /images/ico_tabpanel.gif, /images/cn_tabpanel.gif, tabPanel.html, jbossrichfaces/freezone/docs/tlddoc/rich/tabPanel.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UITabPanel.html, /richfaces/tabPanel.jsf, new
inputNumberSlider= richInputs, Input Number Slider, /images/ico_DataFilterSlider.gif, /images/cn_slider.gif, inputNumberSlider.html, jbossrichfaces/freezone/docs/tlddoc/rich/inputNumberSlider.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInputNumberSlider.html, /richfaces/inputNumberSlider.jsf
inputNumberSpinner= richInputs, Input Number Spinner, /images/ico_spinner.gif, /images/cn_spinner.gif, inputNumberSpinner.html, jbossrichfaces/freezone/docs/tlddoc/rich/inputNumberSpinner.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInputNumberSpinner.html, /richfaces/inputNumberSpinner.jsf
dataFilterSlider= richDataIterators, Data Filter Slider, /images/ico_DataFilterSlider.gif, /images/cn_DataFilterSlider.gif, dataFilterSlider.html, jbossrichfaces/freezone/docs/tlddoc/rich/dataFilterSlider.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIDataFltrSlider.html, /richfaces/dataFilterSlider.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-04-25 15:03:59 UTC (rev 13871)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2009-04-25 15:08:12 UTC (rev 13872)
@@ -29,6 +29,11 @@
</managed-property>
</managed-bean>
<managed-bean>
+ <managed-bean-name>tabsBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.tab.TabsBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>loginbean</managed-bean-name>
<managed-bean-class>org.richfaces.demo.stateApi.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/examples/tabRemove.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/examples/tabRemove.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/examples/tabRemove.xhtml 2009-04-25 15:08:12 UTC (rev 13872)
@@ -0,0 +1,73 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <h:form id="form">
+ <a4j:outputPanel id="tabsWrapper" layout="block">
+ <rich:tabPanel rendered="#{tabsBean.tabsRendered}" id="tabPanel" switchType="ajax">
+ <rich:tab rendered="#{tabsBean.tabRendered[0]}">
+ <f:facet name="label">
+ <h:panelGroup>
+ <h:outputText value="Ajax with RichFaces" />
+ <h:graphicImage value="/images/modal/close.png" id="hidelink1" styleClass="hidelink" onclick="deleteTab('1');Event.stop(event);"/>
+ </h:panelGroup>
+ </f:facet>
+ <p>
+ The framework is implemented using a component library.
+ The library set Ajax functionality into existing pages, so
+ there is no need to write any JavaScript code or to replace
+ existing components with new Ajax one. Ajax4jsf enables page-wide
+ Ajax support instead of the traditional component-wide support and
+ it gives the opportunity to define the event on the page. An event
+ invokes an Ajax request and areas of the page which are synchronized
+ with the JSF Component Tree after changing the data on the server
+ by Ajax request in accordance with events fired on the client.
+ </p>
+ </rich:tab>
+ <rich:tab rendered="#{tabsBean.tabRendered[1]}">
+ <f:facet name="label">
+ <h:panelGroup>
+ <h:outputText value="RichFaces CDK" />
+ <h:graphicImage value="/images/modal/close.png" id="hidelink2" styleClass="hidelink" onclick="deleteTab('2');Event.stop(event);"/>
+ </h:panelGroup>
+ </f:facet>
+ <p>
+ Component Development Kit (CDK) is a design-time extension for
+ Ajax4jsf. The CDK includes a code-generation facility and a
+ templating facility using a JSP-like syntax. These capabilities
+ help to avoid a routine process of a component creation. The
+ component factory works like a well-oiled machine allowing the
+ creation of first-class rich components with built-in Ajax
+ functionality even more easily than the creation of simpler
+ components by means of the traditional coding approach.
+ </p>
+ </rich:tab>
+ <rich:tab rendered="#{tabsBean.tabRendered[2]}">
+ <f:facet name="label">
+ <h:panelGroup>
+ <h:outputText value="RichFaces Skinability" />
+ <h:graphicImage value="/images/modal/close.png" id="hidelink3" styleClass="hidelink" onclick="deleteTab('3');Event.stop(event);"/>
+ </h:panelGroup>
+ </f:facet>
+ <p>
+ Ajax4jsf provides a skinnability feature that allows easily define
+ and manage different color schemes and other parameters of the UI
+ with the help of named skin parameters. Hence it is possible to
+ access the skin parameters from JSP code and the Java code (e.g. to
+ adjust generated on-the-fly images based on the text parts of the
+ UI). Note: skinnability is not an equivalent of traditional CSS,
+ but a complement.
+ </p>
+ </rich:tab>
+ </rich:tabPanel>
+ </a4j:outputPanel>
+ <a4j:jsFunction id="deleteFunc" reRender="tabsWrapper" name="deleteTab">
+ <a4j:actionparam name="tab" actionListener="#{tabsBean.deleteTab}"/>
+ </a4j:jsFunction>
+ <a4j:commandButton action="#{tabsBean.resetTabs}" value="Reset Tabs" reRender="tabsWrapper"/>
+ </h:form>
+ <a4j:log popup="false"/>
+ <rich:messages></rich:messages>
+</ui:composition>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel/tabRemove.xhtml 2009-04-25 15:08:12 UTC (rev 13872)
@@ -0,0 +1,22 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <p>
+ description
+ </p>
+
+ <div class="sample-container">
+ <ui:include src="/richfaces/tabPanel/examples/tabRemove.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/tabPanel/examples/tabRemove.xhtml"/>
+ </ui:include>
+ </div>
+ </ui:define>
+
+ </ui:composition>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml 2009-04-25 15:03:59 UTC (rev 13871)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml 2009-04-25 15:08:12 UTC (rev 13872)
@@ -16,6 +16,9 @@
<rich:tab name="look" label="Look Customization">
<ui:include src="/richfaces/tabPanel/look-customization.xhtml" />
</rich:tab>
+ <rich:tab name="delete" label="Tabs Deletion">
+ <ui:include src="/richfaces/tabPanel/tabRemove.xhtml" />
+ </rich:tab>
<rich:tab name="info" label="Tag Information">
<rich:insert
src="/WEB-INF/#{componentNavigator.currentComponent.tagInfoLocation}"
15 years, 8 months
JBoss Rich Faces SVN: r13871 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-04-25 11:03:59 -0400 (Sat, 25 Apr 2009)
New Revision: 13871
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-6846
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-04-25 15:01:01 UTC (rev 13870)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-04-25 15:03:59 UTC (rev 13871)
@@ -777,8 +777,8 @@
clear: function(entry) {
if (this.disabled) return;
if (entry) {
- this.remove(entry);
if (entry.state == FileUploadEntry.UPLOAD_SUCCESS) {
+ this.remove(entry);
if(this.events.onclear) {
this.element.fire("rich:onclear", {entry : entry});
}
@@ -1183,7 +1183,7 @@
var params = {allowscriptaccess:true, menu: "false", wmode: "transparent", salign: "TL", scale: "noscale"};
var attributes = {style:"position:absolute; top:0px; left:0px;"};
- swfobject.embedSWF(this.options.flashComponentUrl, oid, "100%", "100%", "9.0.28", false, flashvars, params, attributes);
+ swfobject.embedSWF((window.location.protocol+"//"+ window.location.host+this.options.flashComponentUrl), oid, "100%", "100%", "9.0.28", false, flashvars, params, attributes);
this.currentInput.parentNode.innerHTML = '<input type="text" style="cursor: pointer; right: 0px; top: 0px; font-size: 10em; position: absolute; padding: 0px" class="rich-fileupload-hidden" id="'+this.id+':file" name="'+this.id+':file"></input>'
this.currentInput = $(this.id + ":file");
@@ -1277,6 +1277,7 @@
},
_flashGetActionUrl: function (url, entry) {
+ url = window.location.protocol+"//"+ window.location.host+url;
var getParams = "_richfaces_upload_uid="+ encodeURI(entry.uid) + "&" + this.id + "=" + this.id + "&_richfaces_upload_file_indicator=true&_richfaces_size="+entry.size+"&_richfaces_send_http_error=true";
if (/\?/.test(url)) {
var i = url.indexOf("?");
15 years, 8 months
JBoss Rich Faces SVN: r13870 - in trunk/examples/photoalbum: source and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-04-25 11:01:01 -0400 (Sat, 25 Apr 2009)
New Revision: 13870
Added:
trunk/examples/photoalbum/readme.txt
trunk/examples/photoalbum/source/readme.txt
Log:
add readme.txt
Added: trunk/examples/photoalbum/readme.txt
===================================================================
Added: trunk/examples/photoalbum/source/readme.txt
===================================================================
15 years, 8 months
JBoss Rich Faces SVN: r13869 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2009-04-25 10:51:25 -0400 (Sat, 25 Apr 2009)
New Revision: 13869
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
https://jira.jboss.org/jira/browse/RF-5724 - info about "disableDefaultMenu" attribute was added to Dev.Guide
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2009-04-25 14:47:35 UTC (rev 13868)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2009-04-25 14:51:25 UTC (rev 13869)
@@ -84,7 +84,12 @@
</emphasis>in the same way as for <emphasis role="bold">
<property><rich:dropDownMenu></property>
</emphasis>. </para>
-
+ <para>
+ By default, the <emphasis role="bold"><property><rich:contextMenu></property></emphasis> completely disables
+ right mouse click on a page in the context menu zone only.
+ But if you want to disable browser's context menu completely you should set the
+ <emphasis><property>"disableDefaultMenu"</property></emphasis> attribute value to "true".
+ </para>
<para>If <emphasis><property>"attached"</property></emphasis> value is "true" (default value),
component is attached to the parent component or to the component, which
<emphasis><property>"id"</property></emphasis> is specified in the
15 years, 8 months
JBoss Rich Faces SVN: r13868 - in trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum: testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-04-25 10:47:35 -0400 (Sat, 25 Apr 2009)
New Revision: 13868
Modified:
trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java
Log:
RF-6909
Modified: trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
===================================================================
--- trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-04-25 14:42:40 UTC (rev 13867)
+++ trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-04-25 14:47:35 UTC (rev 13868)
@@ -31,14 +31,20 @@
//int SHELF_COUNT = 2;
}
- public static interface LoginPage {
- String LOGIN_FORM_ID = "loginPanelForm";
- String usernameId = LOGIN_FORM_ID + ":username";
- String passwordId = LOGIN_FORM_ID + ":password";
+ public static interface LoginPanel {
+ String FORM_ID = "loginPanelForm";
+ String usernameId = FORM_ID + ":username";
+ String passwordId = FORM_ID + ":password";
String loginButtonPath= "//*[@class='login-table-col']//*[@type='image']";
}
+ public static interface ConfirmationPanel {
+ String FORM_ID = "confirmForm";
+ String OK_PATH = "//*[@id='" + FORM_ID + ":firstButton']//input";
+ String CANCEL_PATH = "//*[@id='" + FORM_ID + ":secondButton']//input";
+ }
+
public static interface LogInOutArea {
String LOGIN_LINK_ID = "loginPanelShowlink";
String LOGOUT_LINK_PATH = "//*[@id='logInOutMenu']//div/a";
@@ -46,33 +52,37 @@
}
public static interface ToolBarArea {
- String TOOLBAR_PATH = "//*[@class='dr-toolbar-int rich-toolbar-item main-menu-toolbar-content']";
- String VIEW_SHELFS_PATH = TOOLBAR_PATH + "/div[2]";
- String VIEW_ALBUMS_PATH = TOOLBAR_PATH + "/div[3]";
- String VIEW_IMAGES_PATH = TOOLBAR_PATH + "/div[4]";
- String ADD_IMAGE_LINK_PATH = TOOLBAR_PATH + "/*[@id='menuform:add_icons_div_id']/a[3]";
+ String PATH = "//*[@class='dr-toolbar-int rich-toolbar-item main-menu-toolbar-content']";
+ String VIEW_SHELFS_PATH = PATH + "/div[2]";
+ String VIEW_ALBUMS_PATH = PATH + "/div[3]";
+ String VIEW_IMAGES_PATH = PATH + "/div[4]";
+ String ADD_IMAGE_LINK_PATH = PATH + "/*[@id='menuform:add_icons_div_id']/a[3]";
}
public static interface ShelfArea {
String HEADER_PATH = "//*[@class='shelf-header-table']";
- String SHELF_NAME_PATH = HEADER_PATH + "//h1";
- String ALBUM_PATH = "//*[@class='preview_box_album_120']";
- String ALBUM_LINK_PATH = ALBUM_PATH + "//a";
- String ALBUM_NAME_PATH = ALBUM_PATH + "/*[@class='album_name']";
+ String HEADER_NAME_PATH_SUFIX = "//h1";
+ String HEADER_NAME_PATH = HEADER_PATH + HEADER_NAME_PATH_SUFIX;
+ String DELETE_BUTTON_PATH = "//*[@class='shelf-header-table-col2']/a[2]";
}
public static interface AlbumArea {
String HEADER_PATH = "//*[@class='album-header-table']";
- String ALBUM_NAME_PATH = HEADER_PATH + "//h1";
- String IMAGE_PATH = "//*[@class='preview_box_photo_120']";
- String IMAGE_LINK_PATH = IMAGE_PATH + "//a";
- String IMAGE_NAME_PATH = IMAGE_PATH + "/*[@class='photo_name']";
+ String HEADER_NAME_PATH = HEADER_PATH + "//h1";
+ String PREVIEW_PATH = "//*[@class='preview_box_album_120']";
+ String PREVIEW_LINK_PATH_SUFFIX = "//a";
+ String PREVIEW_NAME_PATH_SUFFIX = "/*[@class='album_name']";
+ String DELETE_BUTTON_PATH = "//*[@class='album-header-table-col2']/a[2]";
//String IMAGES_CONTAINER = "//span[@id='mainform:userAlbumImages']";
}
public static interface ImageArea {
String HEADER_PATH = "//*[@class='image-header-table']";
- String IMAGE_NAME_PATH = HEADER_PATH + "//h1";
+ String HEADER_NAME_PATH = HEADER_PATH + "//h1";
+ String PREVIEW_PATH = "//*[@class='preview_box_photo_120']";
+ String PREVIEW_LINK_PATH_SUFFIX = "//a";
+ String PREVIEW_NAME_PATH_SUFFIX = "/*[@class='photo_name']";
+ String DELETE_BUTTON_PATH = "//*[@class='mainImage-table-col3']/div[2]/input";
}
public static interface UserProfileArea {
@@ -97,18 +107,18 @@
Assert.fail("Test failed caused by: " + e);
}
- Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPage.usernameId), "Input for username in not visible");
- Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPage.passwordId), "Input for password in not visible");
+ Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPanel.usernameId), "Input for username in not visible");
+ Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPanel.passwordId), "Input for password in not visible");
- String type = selenium.getAttribute("//*[@id='"+HtmlConstants.LoginPage.passwordId+"']/@type");
+ String type = selenium.getAttribute("//*[@id='"+HtmlConstants.LoginPanel.passwordId+"']/@type");
if (!"password".equals(type)) {
Assert.fail("Password input should be of 'password' type");
}
- selenium.type(HtmlConstants.LoginPage.usernameId, UserInfoConstants.LOGIN_NAME);
- selenium.type(HtmlConstants.LoginPage.passwordId, UserInfoConstants.LOGIN_PASSWORD);
+ selenium.type(HtmlConstants.LoginPanel.usernameId, UserInfoConstants.LOGIN_NAME);
+ selenium.type(HtmlConstants.LoginPanel.passwordId, UserInfoConstants.LOGIN_PASSWORD);
- selenium.click(HtmlConstants.LoginPage.loginButtonPath);
+ selenium.click(HtmlConstants.LoginPanel.loginButtonPath);
waitForAjaxCompletion(selenium);
if (!isLogined(selenium, UserInfoConstants.LOGIN_NAME)) {
@@ -139,18 +149,60 @@
public static void testShelfArea(Selenium selenium, String shelfName) {
Assert.assertTrue(selenium.isVisible(HtmlConstants.ShelfArea.HEADER_PATH));
if (shelfName != null) {
- String text = selenium.getText(RealWorldHelper.HtmlConstants.ShelfArea.SHELF_NAME_PATH);
- Assert.assertTrue(text.contains(shelfName), "Incorrect data was opened after click by album");
+ String text = selenium.getText(RealWorldHelper.HtmlConstants.ShelfArea.HEADER_NAME_PATH);
+ Assert.assertTrue(text.contains(shelfName), "Incorrect data was opened on shelf area.");
}
}
- public static void openAlbumFromShelfArea(Selenium selenium) {
- String albumName = selenium.getText(RealWorldHelper.HtmlConstants.ShelfArea.ALBUM_NAME_PATH);
-
- selenium.click(RealWorldHelper.HtmlConstants.ShelfArea.ALBUM_LINK_PATH);
+ public static boolean isShelfPresentOnPage(Selenium selenium, String shelfName) {
+ testShelfArea(selenium);
+ boolean presented = false;
+ if (shelfName != null) {
+ int xpathCount = selenium.getXpathCount(HtmlConstants.ShelfArea.HEADER_PATH).intValue();
+ for (int i = 1; i <= xpathCount && !presented; i++) {
+ presented = selenium.getText(HtmlConstants.ShelfArea.HEADER_PATH
+ + "[" + i + "]" + HtmlConstants.ShelfArea.HEADER_NAME_PATH_SUFIX)
+ .contains(shelfName);
+
+ }
+ } else {
+ Assert.fail("ShelfName shouldn't be null.");
+ }
+ return presented;
+ }
+
+ public static void deleteCurrentShelf(Selenium selenium) {
+ selenium.click(HtmlConstants.ShelfArea.DELETE_BUTTON_PATH);
waitForAjaxCompletion(selenium);
+ confirm(selenium);
+ testShelfArea(selenium);
+ }
+
+ public static void openAlbumFromPreview(Selenium selenium) {
+ openAlbumFromPreview(selenium, null);
+ }
+
+ public static void openAlbumFromPreview(Selenium selenium, String albumName) {
+ if (albumName == null) {
+ albumName = selenium.getText(HtmlConstants.AlbumArea.PREVIEW_PATH + HtmlConstants.AlbumArea.PREVIEW_NAME_PATH_SUFFIX);
+ }
+ boolean presented = false;
+ int xpathCount = selenium.getXpathCount(HtmlConstants.AlbumArea.PREVIEW_PATH).intValue();
+ for (int i = 1; i <= xpathCount && !presented; i++) {
+ presented = selenium.getText(HtmlConstants.AlbumArea.PREVIEW_PATH
+ + "[" + i + "]" + HtmlConstants.AlbumArea.PREVIEW_NAME_PATH_SUFFIX)
+ .contains(albumName);
+ if (presented) {
+ selenium.click(HtmlConstants.AlbumArea.PREVIEW_PATH + "[" + i + "]" + HtmlConstants.AlbumArea.PREVIEW_LINK_PATH_SUFFIX);
+ waitForAjaxCompletion(selenium);
+ testAlbumArea(selenium, albumName);
+ }
+
+ }
+ if (!presented) {
+ Assert.fail("Album with name '" + albumName + "' doesn't exist on this page.");
+ }
- testAlbumArea(selenium, albumName);
}
public static void testAlbumArea(Selenium selenium) {
@@ -160,17 +212,60 @@
public static void testAlbumArea(Selenium selenium, String albumName) {
Assert.assertTrue(selenium.isVisible(HtmlConstants.AlbumArea.HEADER_PATH));
if (albumName != null) {
- String text = selenium.getText(RealWorldHelper.HtmlConstants.AlbumArea.ALBUM_NAME_PATH);
- Assert.assertTrue(text.contains(albumName), "Incorrect data was opened after click by album");
+ String text = selenium.getText(RealWorldHelper.HtmlConstants.AlbumArea.HEADER_NAME_PATH);
+ Assert.assertTrue(text.contains(albumName), "Incorrect data was opened on album area.");
}
}
- public static void openImageFromAlbumArea(Selenium selenium) {
- String imageName = selenium.getText(RealWorldHelper.HtmlConstants.AlbumArea.IMAGE_NAME_PATH);
- selenium.click(RealWorldHelper.HtmlConstants.AlbumArea.IMAGE_LINK_PATH);
+ public static boolean isAlbumPresentOnPage(Selenium selenium, String albumName) {
+ testAlbumArea(selenium);
+ boolean presented = false;
+ if (albumName != null) {
+ int xpathCount = selenium.getXpathCount(HtmlConstants.AlbumArea.PREVIEW_PATH).intValue();
+ for (int i = 1; i <= xpathCount && !presented; i++) {
+ presented = selenium.getText(HtmlConstants.AlbumArea.PREVIEW_PATH
+ + "[" + i + "]" + HtmlConstants.AlbumArea.PREVIEW_NAME_PATH_SUFFIX)
+ .contains(albumName);
+
+ }
+ } else {
+ Assert.fail("AlbumName shouldn't be null.");
+ }
+ return presented;
+ }
+
+ public static void deleteCurrentAlbum(Selenium selenium) {
+ selenium.click(HtmlConstants.AlbumArea.DELETE_BUTTON_PATH);
waitForAjaxCompletion(selenium);
- testImageArea(selenium, imageName);
+ confirm(selenium);
+ testAlbumArea(selenium);
}
+
+ public static void openImageFromPreview(Selenium selenium) {
+ openImageFromPreview(selenium, null);
+ }
+
+ public static void openImageFromPreview(Selenium selenium, String imageName) {
+ if (imageName == null) {
+ imageName = selenium.getText(HtmlConstants.ImageArea.PREVIEW_PATH + HtmlConstants.ImageArea.PREVIEW_NAME_PATH_SUFFIX);
+ }
+ boolean presented = false;
+ int xpathCount = selenium.getXpathCount(HtmlConstants.ImageArea.PREVIEW_PATH).intValue();
+ for (int i = 1; i <= xpathCount && !presented; i++) {
+ presented = selenium.getText(HtmlConstants.ImageArea.PREVIEW_PATH
+ + "[" + i + "]" + HtmlConstants.ImageArea.PREVIEW_NAME_PATH_SUFFIX)
+ .contains(imageName);
+ if (presented) {
+ selenium.click(HtmlConstants.ImageArea.PREVIEW_PATH + "[" + i + "]" + HtmlConstants.ImageArea.PREVIEW_LINK_PATH_SUFFIX);
+ waitForAjaxCompletion(selenium);
+ testImageArea(selenium, imageName);
+ }
+
+ }
+ if (!presented) {
+ Assert.fail("Image with name '" + imageName + "' doesn't exist on this page.");
+ }
+ }
public static void testImageArea(Selenium selenium) {
testImageArea(selenium, null);
@@ -179,11 +274,35 @@
public static void testImageArea(Selenium selenium, String imageName) {
Assert.assertTrue(selenium.isVisible(HtmlConstants.ImageArea.HEADER_PATH));
if (imageName != null) {
- String text = selenium.getText(RealWorldHelper.HtmlConstants.ImageArea.IMAGE_NAME_PATH);
- Assert.assertTrue(text.contains(imageName), "Incorrect data was opened after click by image");
+ String text = selenium.getText(RealWorldHelper.HtmlConstants.ImageArea.HEADER_NAME_PATH);
+ Assert.assertTrue(text.contains(imageName), "Incorrect data was opened on image area.");
}
}
+ public static boolean isImagePresentOnPage(Selenium selenium, String imageName) {
+ testImageArea(selenium);
+ boolean presented = false;
+ if (imageName != null) {
+ int xpathCount = selenium.getXpathCount(HtmlConstants.ImageArea.PREVIEW_PATH).intValue();
+ for (int i = 1; i <= xpathCount && !presented; i++) {
+ presented = selenium.getText(HtmlConstants.ImageArea.PREVIEW_PATH
+ + "[" + i + "]" + HtmlConstants.ImageArea.PREVIEW_NAME_PATH_SUFFIX)
+ .contains(imageName);
+
+ }
+ } else {
+ Assert.fail("ImageName shouldn't be null.");
+ }
+ return presented;
+ }
+
+ public static void deleteCurrentImage(Selenium selenium) {
+ selenium.click(HtmlConstants.ImageArea.DELETE_BUTTON_PATH);
+ waitForAjaxCompletion(selenium);
+ confirm(selenium);
+ testAlbumArea(selenium);
+ }
+
public static void waitForAjaxCompletion(Selenium selenium) {
waitForAjaxCompletion(selenium, TIMEOUT);
}
@@ -191,6 +310,11 @@
selenium.waitForCondition(WINDOW_JS_RESOLVER + "document.getElementById('" + STATUS_START_ID + "').style.display == 'none'", String.valueOf(miliseconds));
}
+ public static void confirm(Selenium selenium) {
+ selenium.click(HtmlConstants.ConfirmationPanel.OK_PATH);
+ waitForAjaxCompletion(selenium);
+ }
+
public static boolean isLogined(Selenium selenium) {
return isLogined(selenium, null);
}
Modified: trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java
===================================================================
--- trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java 2009-04-25 14:42:40 UTC (rev 13867)
+++ trunk/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java 2009-04-25 14:47:35 UTC (rev 13868)
@@ -3,6 +3,8 @@
*/
package org.richfaces.photoalbum.testng;
+import junit.framework.Assert;
+
import org.richfaces.photoalbum.RealWorldHelper;
import org.richfaces.photoalbum.SeleniumTestBase;
import org.richfaces.photoalbum.RealWorldHelper.HtmlConstants;
@@ -17,16 +19,16 @@
@Test
public void testOpenAlbumAndImageWithoutAuthentication() {
renderPage();
- RealWorldHelper.openAlbumFromShelfArea(selenium);
- RealWorldHelper.openImageFromAlbumArea(selenium);
+ RealWorldHelper.openAlbumFromPreview(selenium);
+ RealWorldHelper.openImageFromPreview(selenium);
}
@Test
public void testOpenAlbumAndImageWithAuthentication() {
renderPage();
RealWorldHelper.login(selenium);
- RealWorldHelper.openAlbumFromShelfArea(selenium);
- RealWorldHelper.openImageFromAlbumArea(selenium);
+ RealWorldHelper.openAlbumFromPreview(selenium);
+ RealWorldHelper.openImageFromPreview(selenium);
}
@Test
@@ -65,4 +67,46 @@
waitForAjaxCompletion();
RealWorldHelper.testImageArea(selenium);
}
+
+ @Test
+ public void testDeleteImage() {
+ renderPage();
+ RealWorldHelper.login(selenium);
+ selenium.click(HtmlConstants.ToolBarArea.VIEW_IMAGES_PATH);
+ waitForAjaxCompletion();
+ String imageName = selenium.getText(HtmlConstants.ImageArea.PREVIEW_PATH + HtmlConstants.ImageArea.PREVIEW_NAME_PATH_SUFFIX);
+ RealWorldHelper.openImageFromPreview(selenium);
+ RealWorldHelper.deleteCurrentImage(selenium);
+ selenium.click(HtmlConstants.ToolBarArea.VIEW_IMAGES_PATH);
+ waitForAjaxCompletion();
+ Assert.assertFalse(RealWorldHelper.isImagePresentOnPage(selenium, imageName));
+ }
+
+ @Test
+ public void testDeleteAlbum() {
+ renderPage();
+ RealWorldHelper.login(selenium);
+ selenium.click(HtmlConstants.ToolBarArea.VIEW_ALBUMS_PATH);
+ waitForAjaxCompletion();
+ String albumName = selenium.getText(HtmlConstants.AlbumArea.PREVIEW_PATH + HtmlConstants.AlbumArea.PREVIEW_NAME_PATH_SUFFIX);
+ RealWorldHelper.openAlbumFromPreview(selenium);
+ RealWorldHelper.deleteCurrentAlbum(selenium);
+ selenium.click(HtmlConstants.ToolBarArea.VIEW_ALBUMS_PATH);
+ waitForAjaxCompletion();
+ Assert.assertFalse(RealWorldHelper.isAlbumPresentOnPage(selenium, albumName));
+ }
+
+ //TODO @Test
+ public void testDeleteShelf() {
+ renderPage();
+ RealWorldHelper.login(selenium);
+ selenium.click(HtmlConstants.ToolBarArea.VIEW_ALBUMS_PATH);
+ waitForAjaxCompletion();
+ String albumName = selenium.getText(HtmlConstants.AlbumArea.PREVIEW_PATH + HtmlConstants.AlbumArea.PREVIEW_NAME_PATH_SUFFIX);
+ RealWorldHelper.openAlbumFromPreview(selenium);
+ RealWorldHelper.deleteCurrentAlbum(selenium);
+ selenium.click(HtmlConstants.ToolBarArea.VIEW_ALBUMS_PATH);
+ waitForAjaxCompletion();
+ Assert.assertFalse(RealWorldHelper.isAlbumPresentOnPage(selenium, albumName));
+ }
}
15 years, 8 months
JBoss Rich Faces SVN: r13867 - trunk/examples/photoalbum/source.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-04-25 10:42:40 -0400 (Sat, 25 Apr 2009)
New Revision: 13867
Added:
trunk/examples/photoalbum/source/pom.xml
Log:
copy pom file for structure http://www.jboss.org/community/docs/DOC-13498
Copied: trunk/examples/photoalbum/source/pom.xml (from rev 13866, trunk/examples/photoalbum/pom.xml)
===================================================================
--- trunk/examples/photoalbum/source/pom.xml (rev 0)
+++ trunk/examples/photoalbum/source/pom.xml 2009-04-25 14:42:40 UTC (rev 13867)
@@ -0,0 +1,93 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>photoalbum</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>sample application</name>
+ <parent>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>root</artifactId>
+ <version>2.1.1.GA</version>
+ </parent>
+
+ <properties>
+ <projectName>photoalbum</projectName>
+ <richfacesVersion>3.3.1-SNAPSHOT</richfacesVersion>
+ <seamVersion>2.1.1.GA</seamVersion>
+ <faceletsVersion>1.1.15.B1</faceletsVersion>
+ <jbosshome>${project.basedir}/target/installs/jboss-4.2.3.GA/jboss-4.2.3.GA</jbosshome>
+ <jbosscontext>default</jbosscontext>
+ <jboss.installer.url>file:E:\apps\jboss\jboss-4.2.3.GA.zip</jboss.installer.url>
+ </properties>
+ <repositories>
+ <repository>
+ <id>repository.jboss.com</id>
+ <name>Jboss Repository for Maven</name>
+ <url>http://repository.jboss.com/maven2/</url>
+ </repository>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>Jboss Repository for Maven</name>
+ <url>http://repository.jboss.org/maven2/</url>
+ </repository>
+ </repositories>
+ <modules>
+ <module>ear</module>
+ <module>ejb</module>
+ <module>web</module>
+ <!--module>tests</module-->
+ </modules>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <configuration>
+ <ejbVersion>3.0</ejbVersion>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.5</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <projectNameTemplate>[artifactId]-[version]</projectNameTemplate>
+ <wtpmanifest>true</wtpmanifest>
+ <wtpapplicationxml>true</wtpapplicationxml>
+ <wtpversion>2.0</wtpversion>
+ <classpathContainers>
+ <classpathContainer>org.eclipse.jdt.launching.JDK_CONTAINER</classpathContainer>
+ </classpathContainers>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+
+ <profiles>
+ <profile>
+ <id>hudson</id>
+ <properties>
+ <jboss.installer.url>http://internap.dl.sourceforge.net/sourceforge/jboss/jboss-4.2.3.GA.zip</jboss.installer.url>
+ </properties>
+ </profile>
+ </profiles>
+
+</project>
\ No newline at end of file
15 years, 8 months
JBoss Rich Faces SVN: r13866 - trunk/examples/photoalbum/source.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-04-25 10:41:48 -0400 (Sat, 25 Apr 2009)
New Revision: 13866
Added:
trunk/examples/photoalbum/source/ear/
trunk/examples/photoalbum/source/ejb/
trunk/examples/photoalbum/source/web/
Log:
copy ear, ejb, web modules to source folder
Copied: trunk/examples/photoalbum/source/ear (from rev 13865, trunk/examples/photoalbum/ear)
Copied: trunk/examples/photoalbum/source/ejb (from rev 13865, trunk/examples/photoalbum/ejb)
Copied: trunk/examples/photoalbum/source/web (from rev 13865, trunk/examples/photoalbum/web)
15 years, 8 months