[JBoss JIRA] Created: (RF-7168) realworld/search: Non shared albums are opened from Users search result page
by Inna Shchibrya (JIRA)
realworld/search: Non shared albums are opened from Users search result page
----------------------------------------------------------------------------
Key: RF-7168
URL: https://jira.jboss.org/jira/browse/RF-7168
Project: RichFaces
Issue Type: Bug
Components: examples
Affects Versions: 3.3.1
Environment: All browsers
Reporter: Inna Shchibrya
Assignee: Andrey Markhel
1. Login to the application.
2. Create non shared shelf with albums and images.
3. Open the application in other browser.
4. Enter in search input field name of your user and click Find button.
5. User is present in Users search result with albums and images links.
6. Click on "n albums" link. --> "All shared albums(n) of user ..." page is opened including non shared album.
7. Click on non shared album. --> It's open with images.
8. Repeat the same for "n images" link. --> "All shared images (n) of user ..." page is opened.
Expected result: Only shared albums and images should be present on Users search result page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[JBoss JIRA] Created: (RF-7193) managed-property injection fail type cast on managed beans which extends generics
by Zoltan Kiss (JIRA)
managed-property injection fail type cast on managed beans which extends generics
---------------------------------------------------------------------------------
Key: RF-7193
URL: https://jira.jboss.org/jira/browse/RF-7193
Project: RichFaces
Issue Type: Bug
Components: core
Affects Versions: 3.3.0
Environment: Win XP, Tomcat 6.0, JDK 5, Richfaces 3.3.0 GA
Reporter: Zoltan Kiss
If I have a managed bean which extends a generic bean, than property injection from faces-config.xml doesn't sign error if I inject property with incompatible type.
Eg.:
public class MyGeneric<MYTYPE extends Serializable> {
protected MYTYPE myProp;
public void setMyProp(MYTYPE val) {
this.myProp = val;
}
....
}
public class MyBean extends MyGeneric<Long> {
....
}
<managed-bean>
<managed-bean-name>myBean</managed-bean-name>
<managed-bean-class>MyBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>myProp</property-name>
<value>#{param.myPropVal}</value>
</managed-property>
</managed-bean>
This example will inject the myPropVal request parameter (which is a String) into the myProp property of MyBean class which is a Long, and it won't throw ClassCastException. But later if I check the type of the property value it will be String - and probably it will fail my code somewhere else.
If MyBean doesn't extend from a generic class, but has its own, Long typed property, than I will have the ClassCastException during the injection.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months