JBoss Rich Faces SVN: r13577 - trunk/test-applications/realworld2/web/src/main/webapp/includes/image.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 11:41:11 -0400 (Tue, 14 Apr 2009)
New Revision: 13577
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageAdditionalInfo.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageInfo.xhtml
Log:
Fix RF-6786
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageAdditionalInfo.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageInfo.xhtml
===================================================================
(Binary files differ)
15 years, 2 months
JBoss Rich Faces SVN: r13576 - trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 11:41:04 -0400 (Tue, 14 Apr 2009)
New Revision: 13576
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java
Log:
Fix RF-6786
Modified: trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java 2009-04-14 15:04:14 UTC (rev 13575)
+++ trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java 2009-04-14 15:41:04 UTC (rev 13576)
@@ -172,6 +172,7 @@
public void addComment(Comment comment) throws RealworldException {
try{
comment.getImage().addComment(comment);
+ em.persist(comment);
em.flush();
}
catch(Exception e){
15 years, 2 months
JBoss Rich Faces SVN: r13575 - trunk/docs/faq.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-04-14 11:04:14 -0400 (Tue, 14 Apr 2009)
New Revision: 13575
Modified:
trunk/docs/faq/pom.xml
Log:
https://jira.jboss.org/jira/browse/RF-6695 RF docs pom files contain duplicated information, duplicated partens are removed.
https://jira.jboss.org/jira/browse/RF-6780 PDF version building problem is fixex.
Modified: trunk/docs/faq/pom.xml
===================================================================
--- trunk/docs/faq/pom.xml 2009-04-14 14:55:18 UTC (rev 13574)
+++ trunk/docs/faq/pom.xml 2009-04-14 15:04:14 UTC (rev 13575)
@@ -11,7 +11,7 @@
<version>3.3.1-SNAPSHOT</version>
<name>FAQ</name>
<description>Frequently asked questions</description>
- <repositories>
+ <!--repositories>
<repository>
<releases>
<enabled>true</enabled>
@@ -29,7 +29,7 @@
<id>eclipse</id>
<url>http://repo1.maven.org/eclipse/</url>
</repository>
- </repositories>
+ </repositories-->
<pluginRepositories>
<pluginRepository>
<releases>
@@ -186,6 +186,11 @@
<version>${project.version}</version>
<type>jar</type>
</dependency>
+ <dependency>
+ <groupId>org.apache.xmlgraphics</groupId>
+ <artifactId>fop</artifactId>
+ <version>0.95</version>
+ </dependency>
</dependencies>
<configuration>
<sourceDirectory>
15 years, 2 months
JBoss Rich Faces SVN: r13574 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-14 10:55:18 -0400 (Tue, 14 Apr 2009)
New Revision: 13574
Modified:
trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
https://jira.jboss.org/jira/browse/RF-6754 - the Details of Usage for rich:progressBar is updated as the component is deprecated;
Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2009-04-14 14:50:14 UTC (rev 13573)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2009-04-14 14:55:18 UTC (rev 13574)
@@ -82,10 +82,7 @@
<para>
In order to define the mode you need to use <emphasis><property>"mode"</property></emphasis> attribute.
</para>
-
-
-
-
+
<para>
One of the key attributes of the component is <emphasis><property>"interval"</property></emphasis> which defines the frequency of status polling and rerenders the component when the value is updated.
</para>
@@ -126,10 +123,6 @@
</para>
-
-
-
-
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -147,24 +140,6 @@
</mediaobject>
</figure>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<!--para>
The <emphasis><property> "label"</property></emphasis> attribute is responsible for displaying informational
@@ -224,54 +199,6 @@
</itemizedlist>
-
- <!--para>
- The <emphasis><property> "progressVar"</property></emphasis> attribute serves to provide an option for a
- value substitution on the page. It defines a variable that contains the
- data taken from
- <emphasis><property>"value"</property></emphasis> attribute.
- The sole purpose of the
- <emphasis><property> "progressVar"</property></emphasis>
- attribute is to provide a way to use the data placed into the
- <emphasis><property>"value"</property></emphasis> attribute.
- Please study carefully the following code example:
- </para-->
-
- <para>
- The <emphasis><property>"progressVar"</property></emphasis> attribute (deprecated) defines request scoped variable that could be used
- for substitution purpose. This variable contains the data taken from <emphasis><property>"value"</property></emphasis> attribute.
- Please, study carefully the following example.
- </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:progressBar value="#{bean.incValue1}" enabled="#{bean.enabled1}" id="progrs1" progressVar="progress">
- <h:outputText value="{progress}%"/>
-</rich:progressBar>
-...]]> </programlisting>
-
-
- <!--para>
- In the shown example <emphasis><property> "progressVar"</property></emphasis> attribute
- gets the "progress" value which contains data taken from
- <emphasis><property>"value"</property></emphasis>
- attribute of a
- <emphasis role="bold"><property><rich:progressBar></property> </emphasis>
- and transfers the received data to the "value" attribute of <property><h:outputText></property>, to make the data appear on the page.
- </para-->
-
- <para>
- In the shown example <emphasis><property> "progressVar"</property></emphasis> attribute
- defines a variable "progress" with the value taken from <emphasis><property>"value"</property></emphasis>
- attribute of the <emphasis role="bold"><property><rich:progressBar></property></emphasis> component.
- The "progress" variable performs substitution passing the current progress value to the
- <emphasis><property>"value"</property></emphasis> attribute of the
- <emphasis role="bold"><property><h:outputText></property></emphasis>.
- This is how the current value of a progress appears on
- the label of <emphasis role="bold"><property><rich:progressBar></property></emphasis>.
- </para>
-
<!--Macrosubs-->
<para>
@@ -310,6 +237,7 @@
</mediaobject>
</figure>
<!--END of Macrosubs-->
+
<!-- Parameters-->
<!--para>
The <emphasis><property>"parameters"</property></emphasis>
@@ -317,13 +245,8 @@
All you need is to define a value of your own parameter
(e.g parameters="param:'#{bean.incValue1}'")
and you can use it to pass the data.
- </para-->
-
-
+ </para-->
-
-
-
<para>
The <emphasis><property>"parameters"</property></emphasis>
is also a special attribute which defines parameters that can be to get additional data from server (e.g. additional info about process status).
@@ -341,7 +264,7 @@
<h:outputText value="download speed {param} KB/s"/>
</rich:progressBar>
...]]> </programlisting>
- <para>This is the result</para>
+ <para>This is the result:</para>
<figure>
<title>Usage of parameters</title>
<mediaobject>
@@ -355,10 +278,43 @@
<!-- END Parameters-->
-
+ <para>
+ The <emphasis><property>"progressVar"</property></emphasis> attribute (deprecated) defines request scoped variable that could be used
+ for substitution purpose. This variable contains the data taken from <emphasis><property>"value"</property></emphasis> attribute.
+ Please, study carefully the following example.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:progressBar value="#{bean.incValue1}" enabled="#{bean.enabled1}" id="progrs1" progressVar="progress">
+ <h:outputText value="{progress}%"/>
+</rich:progressBar>
+...]]> </programlisting>
-
+ <para>In the shown example <emphasis><property> "progressVar"</property></emphasis> attribute
+ defines a variable "progress" with the value taken from <emphasis><property>"value"</property></emphasis>
+ attribute of the <emphasis role="bold"><property><rich:progressBar></property></emphasis> component.
+ The "progress" variable performs substitution passing the current progress value to the
+ <emphasis><property>"value"</property></emphasis> attribute of the
+ <emphasis role="bold"><property><h:outputText></property></emphasis>.
+ This is how the current value of a progress appears on
+ the label of <emphasis role="bold"><property><rich:progressBar></property></emphasis>.</para>
+
+ <para>As the
+ <emphasis><property> "progressVar"</property></emphasis> attribute is deprecated, it's better to use
+ the predefined macrosubstitution parameter <code>{value}</code> instead. See how you can rewrite the above example with the help of <code>{value}</code>.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:progressBar value="#{bean.incValue1}" enabled="#{bean.enabled1}" id="progrs1">
+ <h:outputText value="{value}%"/>
+</rich:progressBar>
+...]]> </programlisting>
+
<para>
The component can also employ <emphasis><property> "initial"</property></emphasis> and <emphasis><property> "complete"</property></emphasis> facets to display the states of the process:
<emphasis><property>"initial"</property></emphasis> facet is displayed when the progress value is less or equal to <emphasis><property> "minValue"</property></emphasis>, and the <emphasis><property>"complete"</property></emphasis> facet is shown when the value is greater or equal to <emphasis><property> "maxValue"</property></emphasis>. Please see an example below.
15 years, 2 months
JBoss Rich Faces SVN: r13573 - Reports/3.3.1 and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2009-04-14 10:50:14 -0400 (Tue, 14 Apr 2009)
New Revision: 13573
Modified:
trunk/test-applications/qa/Test Reports/3.3.1/RFTestReport3.3.1.BETA4.xls
Log:
Modified: trunk/test-applications/qa/Test Reports/3.3.1/RFTestReport3.3.1.BETA4.xls
===================================================================
(Binary files differ)
15 years, 2 months
JBoss Rich Faces SVN: r13572 - trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 10:43:32 -0400 (Tue, 14 Apr 2009)
New Revision: 13572
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
Log:
Fix RF-6783
Modified: trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
===================================================================
--- trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-04-14 14:29:35 UTC (rev 13571)
+++ trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-04-14 14:43:32 UTC (rev 13572)
@@ -131,7 +131,8 @@
public String goToRegister(){
identity.unAuthenticate();
- Contexts.getSessionContext().set("user", null);
+ Contexts.getSessionContext().set("user", new User());
+ setLoginFailed(false);
return Constants.REGISTER_OUTCOME;
}
15 years, 2 months
JBoss Rich Faces SVN: r13571 - trunk/test-applications/realworld2/web/src/main/webapp/includes/shelf.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 10:29:35 -0400 (Tue, 14 Apr 2009)
New Revision: 13571
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml
Log:
Fix RF-6778
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml 2009-04-14 14:28:01 UTC (rev 13570)
+++ trunk/test-applications/realworld2/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml 2009-04-14 14:29:35 UTC (rev 13571)
@@ -37,7 +37,17 @@
</td>
</tr>
<tr>
+ <td valign="top" nowrap="true" style="padding-top : 8px">
+ <h:outputText value="#{messages['album.shared']}" />
+ </td>
<td valign="top">
+ <h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
+ id="shared" value="#{shelf.shared}"/>
+ <rich:message for="shared" />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
</td>
15 years, 2 months
JBoss Rich Faces SVN: r13570 - in trunk/test-applications/realworld2/web/src/main: webapp/includes/image and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 10:28:01 -0400 (Tue, 14 Apr 2009)
New Revision: 13570
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java
trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageScroller.xhtml
Log:
Fix RF-6779
Modified: trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java
===================================================================
--- trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java 2009-04-14 14:27:39 UTC (rev 13569)
+++ trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java 2009-04-14 14:28:01 UTC (rev 13570)
@@ -239,6 +239,11 @@
pushEvent(Constants.ADD_ERROR_EVENT, error);
}
+ public Integer getPage(){
+ Integer index = model.getSelectedAlbum().getIndex(model.getSelectedImage());
+ return index/5 + 1;
+ }
+
public boolean isUserImage(Image image){
if(image == null || image.getAlbum() == null || image.getAlbum().getOwner() == null){
return false;
Modified: trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageScroller.xhtml
===================================================================
--- trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageScroller.xhtml 2009-04-14 14:27:39 UTC (rev 13569)
+++ trunk/test-applications/realworld2/web/src/main/webapp/includes/image/imageScroller.xhtml 2009-04-14 14:28:01 UTC (rev 13570)
@@ -34,7 +34,7 @@
</a4j:outputPanel>
</a4j:repeat>
- <rich:datascroller styleClass="image-scroller" lastPageMode="full"
+ <rich:datascroller page="#{controller.getPage()}" styleClass="image-scroller" lastPageMode="full"
for="repeat" reRender="imagesTable" boundaryControls="hide"
stepControls="hide">
<f:facet name="pages">
15 years, 2 months
JBoss Rich Faces SVN: r13569 - trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 10:27:39 -0400 (Tue, 14 Apr 2009)
New Revision: 13569
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
Log:
Fix RF-6782
Modified: trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
===================================================================
--- trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-04-14 14:27:34 UTC (rev 13568)
+++ trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-04-14 14:27:39 UTC (rev 13569)
@@ -84,6 +84,7 @@
throw new RuntimeException(e);
}
}
+
public String login(){
if(identity.hasRole(Constants.ADMIN_ROLE)){
return null;
@@ -110,7 +111,7 @@
@End
public String register(User user){
if(checkPassword(user) || checkUserExist(user)){
- return null;
+ return "";
}
user.setPasswordHash(hash(user.getPassword()));
user.setPreDefined(false);
@@ -118,7 +119,7 @@
userAction.register(user);
}
catch(Exception e){
- return null;
+ return "";
}
return Constants.INDEX_OUTCOME;
}
@@ -130,6 +131,7 @@
public String goToRegister(){
identity.unAuthenticate();
+ Contexts.getSessionContext().set("user", null);
return Constants.REGISTER_OUTCOME;
}
15 years, 2 months
JBoss Rich Faces SVN: r13568 - in trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld: service and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2009-04-14 10:27:34 -0400 (Tue, 14 Apr 2009)
New Revision: 13568
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java
Log:
Fix RF-6782
Modified: trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-04-14 14:12:42 UTC (rev 13567)
+++ trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-04-14 14:27:34 UTC (rev 13568)
@@ -116,6 +116,9 @@
private String login;
@Transient
+ @NotNull
+ @NotEmpty
+ @Length(min=3)
private String password;
@Transient
Modified: trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java 2009-04-14 14:12:42 UTC (rev 13567)
+++ trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java 2009-04-14 14:27:34 UTC (rev 13568)
@@ -98,8 +98,8 @@
public static final String USER_VARIABLE = "user";
//ID's
- public static final String REGISTER_LOGIN_NAME_ID = "register:loginName";
- public static final String REGISTER_CONFIRM_PASSWORD_ID = "register:confirmPassword";
+ public static final String REGISTER_LOGIN_NAME_ID = "mainform:loginName";
+ public static final String REGISTER_CONFIRM_PASSWORD_ID = "mainform:confirmPassword";
public static final String SHELF_ID = "shelf";
//Roles
15 years, 2 months