You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Esser, Jonas" <Jo...@medocino.de> on 2007/12/04 18:43:57 UTC

[orchestra] FacesGoodies and myfaces-orchestra-examples-project

Hi,

 

I tested the "myfaces-orchestra-examples-project" and the "Trinidad
FacesGoodies by Matthias Wessendorf". Both demos don't work correct for
me, look at my test cases:

 

(Tested with Tomcat 6.0.14 and jdk1.6.0_03)

 

Test case I: FacesGoodies 

 

1. Create user "user1"

2. Create user "user2"

3. Edit "user1"

4. Press button "Next"

5. Press button "save"

6. Edit "user2" -> I still edit the user "user1"

 

The user object is stored in a bean named "editor" with the scope
conversation.flash, this conversation should end after pressing save,
but it does not. One solution is to invalidate the conversation
manually, but then the feature of the conversation.flash is not used.

 

Test case II: myfaces-orchestra-examples-project - petstore

 

1. Enable administrator mode

2. Create Customer Group

3. Create Product

4. Go to Edit or Detail Page

 

The result is a detail page without product set, because the url is
wrong: 

 

../mops/ProductDetail.faces?productId=&conversationContext=12

 

the url should be called: 

 

../mops/ProductDetail.faces?productId=2&conversationContext=1

 

In the "myfaces-orchestra-examples-project - A Voting Machine" I've got
the same issue.

 

Many thanks to any advice

 

Jonas Esser

 


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by Matthias Wessendorf <ma...@apache.org>.
for me, it ends after "SAVE".

Let me check details and I'll finally commit my changes.



On Dec 4, 2007 6:47 PM, Matthias Wessendorf <ma...@apache.org> wrote:
> I don't understand the voting machine-demo :-)
>
> For the FAcesGoodies, I have to say, that there are some changes still
> on my box,
> not on the repo.
>
> And. You need Trinidad 1.0.5 (or it 1.0.4) AND Orchestra_Core
> 1.1-SNAPSHOT + the java5-1.0-SNAPSHOT.
>
> -Matthias
>
>
> On Dec 4, 2007 6:43 PM, Esser, Jonas <Jo...@medocino.de> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I tested the "myfaces-orchestra-examples-project" and the "Trinidad
> > FacesGoodies by Matthias Wessendorf". Both demos don't work correct for me,
> > look at my test cases:
> >
> >
> >
> > (Tested with Tomcat 6.0.14 and jdk1.6.0_03)
> >
> >
> >
> > Test case I: FacesGoodies
> >
> >
> >
> > 1. Create user "user1"
> >
> > 2. Create user "user2"
> >
> > 3. Edit "user1"
> >
> > 4. Press button "Next"
> >
> > 5. Press button "save"
> >
> > 6. Edit "user2" -> I still edit the user "user1"
> >
> >
> >
> > The user object is stored in a bean named "editor" with the scope
> > conversation.flash, this conversation should end after pressing save, but it
> > does not. One solution is to invalidate the conversation manually, but then
> > the feature of the conversation.flash is not used.
> >
> >
> >
> > Test case II: myfaces-orchestra-examples-project - petstore
> >
> >
> >
> > 1. Enable administrator mode
> >
> > 2. Create Customer Group
> >
> > 3. Create Product
> >
> > 4. Go to Edit or Detail Page
> >
> >
> >
> > The result is a detail page without product set, because the url is wrong:
> >
> >
> >
> > ../mops/ProductDetail.faces?productId=&conversationContext=12
> >
> >
> >
> > the url should be called:
> >
> >
> >
> > ../mops/ProductDetail.faces?productId=2&conversationContext=1
> >
> >
> >
> > In the "myfaces-orchestra-examples-project - A Voting Machine" I've got the
> > same issue.
> >
> >
> >
> > Many thanks to any advice
> >
> >
> >
> > Jonas Esser
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by Matthias Wessendorf <ma...@apache.org>.
I don't understand the voting machine-demo :-)

For the FAcesGoodies, I have to say, that there are some changes still
on my box,
not on the repo.

And. You need Trinidad 1.0.5 (or it 1.0.4) AND Orchestra_Core
1.1-SNAPSHOT + the java5-1.0-SNAPSHOT.

-Matthias

On Dec 4, 2007 6:43 PM, Esser, Jonas <Jo...@medocino.de> wrote:
>
>
>
>
> Hi,
>
>
>
> I tested the "myfaces-orchestra-examples-project" and the "Trinidad
> FacesGoodies by Matthias Wessendorf". Both demos don't work correct for me,
> look at my test cases:
>
>
>
> (Tested with Tomcat 6.0.14 and jdk1.6.0_03)
>
>
>
> Test case I: FacesGoodies
>
>
>
> 1. Create user "user1"
>
> 2. Create user "user2"
>
> 3. Edit "user1"
>
> 4. Press button "Next"
>
> 5. Press button "save"
>
> 6. Edit "user2" -> I still edit the user "user1"
>
>
>
> The user object is stored in a bean named "editor" with the scope
> conversation.flash, this conversation should end after pressing save, but it
> does not. One solution is to invalidate the conversation manually, but then
> the feature of the conversation.flash is not used.
>
>
>
> Test case II: myfaces-orchestra-examples-project - petstore
>
>
>
> 1. Enable administrator mode
>
> 2. Create Customer Group
>
> 3. Create Product
>
> 4. Go to Edit or Detail Page
>
>
>
> The result is a detail page without product set, because the url is wrong:
>
>
>
> ../mops/ProductDetail.faces?productId=&conversationContext=12
>
>
>
> the url should be called:
>
>
>
> ../mops/ProductDetail.faces?productId=2&conversationContext=1
>
>
>
> In the "myfaces-orchestra-examples-project - A Voting Machine" I've got the
> same issue.
>
>
>
> Many thanks to any advice
>
>
>
> Jonas Esser
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by Matthias Wessendorf <ma...@apache.org>.
facesgoodies had an API usage bug :-)
It is now fixed in its SVN;

-M

On Dec 4, 2007 6:43 PM, Esser, Jonas <Jo...@medocino.de> wrote:
>
>
>
>
> Hi,
>
>
>
> I tested the "myfaces-orchestra-examples-project" and the "Trinidad
> FacesGoodies by Matthias Wessendorf". Both demos don't work correct for me,
> look at my test cases:
>
>
>
> (Tested with Tomcat 6.0.14 and jdk1.6.0_03)
>
>
>
> Test case I: FacesGoodies
>
>
>
> 1. Create user "user1"
>
> 2. Create user "user2"
>
> 3. Edit "user1"
>
> 4. Press button "Next"
>
> 5. Press button "save"
>
> 6. Edit "user2" -> I still edit the user "user1"
>
>
>
> The user object is stored in a bean named "editor" with the scope
> conversation.flash, this conversation should end after pressing save, but it
> does not. One solution is to invalidate the conversation manually, but then
> the feature of the conversation.flash is not used.
>
>
>
> Test case II: myfaces-orchestra-examples-project - petstore
>
>
>
> 1. Enable administrator mode
>
> 2. Create Customer Group
>
> 3. Create Product
>
> 4. Go to Edit or Detail Page
>
>
>
> The result is a detail page without product set, because the url is wrong:
>
>
>
> ../mops/ProductDetail.faces?productId=&conversationContext=12
>
>
>
> the url should be called:
>
>
>
> ../mops/ProductDetail.faces?productId=2&conversationContext=1
>
>
>
> In the "myfaces-orchestra-examples-project - A Voting Machine" I've got the
> same issue.
>
>
>
> Many thanks to any advice
>
>
>
> Jonas Esser
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

AW: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by "Esser, Jonas" <Jo...@medocino.de>.
Thank you, Simon for fixing the bug ORCHESTRA-13, but this takes me to my next problem:

I explain a situation that is not the normal case, but it can happen:

First, a user should not try to edit more than one product in the same conversationContext, because a conversationContext can only include one conversation of the same type. Right?

myfaces-orchestra-examples-project - PetStore:
If a user open a new browser tab or window e.g. by clicking "open link in new tab" he gets two windows with the same conversationContext, then
1. Tab1: press edit "product A"
2. Tab2: press edit "product B"
3. Tab1: save "product A"

Finally the object "product B" gets all the attributes of object "product A". Bad!
What options are there to prevent this?

I have two solutions: 

1. Using the separateConversationContext Tag
2. Using a pageFlowScope to store the objects

What do you think?
 
Regards,

Jonas


-----Ursprüngliche Nachricht-----
Von: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] Im Auftrag von Matthias Wessendorf
Gesendet: Donnerstag, 6. Dezember 2007 08:38
An: MyFaces Discussion
Betreff: Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

http://code.google.com/p/facesgoodies

(do a SVN check-out)

On Dec 6, 2007 8:22 AM, simon <si...@chello.at> wrote:
>
> On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
> > > Test case I: FacesGoodies
>
> Where can I find the "FacesGoodies" code?
>
> > >
> > > Test case II: myfaces-orchestra-examples-project - petstore
> > >
> > >
> > >
> > > 1. Enable administrator mode
> > >
> > > 2. Create Customer Group
> > >
> > > 3. Create Product
> > >
> > > 4. Go to Edit or Detail Page
> > >
> > >
> > >
> > > The result is a detail page without product set, because the url is wrong:
> > >
> > >
> > >
> > > ../mops/ProductDetail.faces?productId=&conversationContext=12
>
> Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
> issue for it.
>
> Regards,
>
> Simon
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org



Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Andreas Niemeyer <an...@gutzmann.com>.
Hi Simon,

I've checked the additional setup with BasicFrameworkAdapterFilter and 
JsfFrameworkAdapterFilter in the web.xml with filter mapping to my 
servlet and/or  with url mapping. Still the same error...

The OrchestraFacesContextFactory I added for a try reading in the 
article. If this is defined, the exception gone away but nothing is 
displayed in the portal. What is needed the change the debug level for 
the Orchestra package?

I'll give up till someone come along with a positive report.

Below the complete deployment log.

Thank you for response.

Regards,
Andreas





10:03:45,391 INFO  [BaseDeployer:611] Updating Faces Goodies Portlet 
from version 1.0.1 to version 1.0.1
   Expanding: /Users/niemeand/liferay/deploy/facesgoodies.war into 
/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/20081013100345393
10:04:03,737 INFO  [BaseDeployer:1244] Modifying Servlet 2.4 
/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/20081013100345393/WEB-INF/web.xml
   Warning: META-INF/MANIFEST.MF modified in the future.
   Warning: WEB-INF/classes/Language.properties modified in the future.
   Warning: WEB-INF/classes/Language_fr.properties modified in the future.
   Warning: WEB-INF/classes/META-INF/persistence.xml modified in the future.
   Warning: WEB-INF/classes/beans.spring.xml modified in the future.
   Warning: WEB-INF/classes/com/company/Address.class modified in the 
future.
   Warning: WEB-INF/classes/com/company/JpaUserDao.class modified in the 
future.
   Warning: WEB-INF/classes/com/company/User.class modified in the future.
   Warning: WEB-INF/classes/com/company/UserDao.class modified in the 
future.
   Warning: WEB-INF/classes/com/company/UserService.class modified in 
the future.
   Warning: WEB-INF/classes/com/company/UserServiceImpl.class modified 
in the future.
   Warning: 
WEB-INF/classes/com/liferay/samplejsffacelets/bean/UserBean.class 
modified in the future.
   Warning: 
WEB-INF/classes/com/liferay/samplejsffacelets/portlet/MyFacesFaceletsPortlet.class 
modified in the future.
   Warning: WEB-INF/classes/jpa.spring.xml modified in the future.
   Warning: WEB-INF/classes/log4j.properties modified in the future.
   Warning: WEB-INF/classes/logging.properties modified in the future.
   Warning: WEB-INF/classes/net/wessendorf/MessageResources.properties 
modified in the future.
   Warning: 
WEB-INF/classes/net/wessendorf/faces/starter/view/controller/AbstractBaseController.class 
modified in the future.
   Warning: 
WEB-INF/classes/net/wessendorf/faces/starter/view/controller/AllController.class 
modified in the future.
   Warning: 
WEB-INF/classes/net/wessendorf/faces/starter/view/controller/CreateController.class 
modified in the future.
   Warning: 
WEB-INF/classes/net/wessendorf/faces/starter/view/controller/Editor.class 
modified in the future.
   Warning: 
WEB-INF/classes/net/wessendorf/faces/starter/view/controller/GoogleMapBean.class 
modified in the future.
   Warning: 
WEB-INF/classes/net/wessendorf/openjpa/OpenJpaLoadTimeWeaver.class 
modified in the future.
   Warning: WEB-INF/classes/orchestra.spring.xml modified in the future.
   Warning: META-INF modified in the future.
   Warning: WEB-INF/classes/com/liferay modified in the future.
   Warning: WEB-INF/classes/com/liferay/samplejsffacelets/portlet 
modified in the future.
   Warning: WEB-INF/classes/net modified in the future.
   Warning: WEB-INF/classes/net/wessendorf modified in the future.
   Warning: WEB-INF/classes/net/wessendorf/faces modified in the future.
   Warning: WEB-INF/classes/net/wessendorf/faces/starter/view modified 
in the future.
   Warning: WEB-INF/classes/net/wessendorf/faces/starter/view/controller 
modified in the future.
   Warning: WEB-INF/classes/net/wessendorf/openjpa modified in the future.
   Copying 36 files to 
/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/webapps/facesgoodies
   Copying 1 file to 
/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/webapps/facesgoodies
   Deleting directory 
/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/20081013100345393
10:04:04,936 INFO  [PortletAutoDeployListener:88] Portlets for 
/Users/niemeand/liferay/deploy/facesgoodies.war copied successfully
13.10.2008 10:04:13 org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/facesgoodies]
10:04:13,957 INFO  [PortletHotDeployListener:314] Unregistering portlets 
for facesgoodies
10:04:14,147 INFO  [PortletHotDeployListener:342] 1 portlets for 
facesgoodies unregistered successfully
10:04:14,148 INFO  [[/facesgoodies]:647] Closing Spring root 
WebApplicationContext
10:04:14,165 INFO  [XmlWebApplicationContext:622] Closing 
org.springframework.web.context.support.XmlWebApplicationContext@72f91c: 
display name [Root WebApplicationContext]; startup date [Mon Oct 13 
09:57:04 GMT 2008]; root of context hierarchy
10:04:14,187 INFO  [DefaultListableBeanFactory:274] Destroying 
singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@bc83c2: 
defining beans 
[transactionManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,entityManagerFactory,dataSource,userDao,userServiceImpl,all,create,editor,googleMapBean,org.apache.myfaces.orchestra.conversation.AccessScopeManager,org.apache.myfaces.orchestra.conversation.AccessScopeManagerConfiguration,org.apache.myfaces.orchestra.annotation.AnnotationInfoManager,org.apache.myfaces.orchestra.annotation.spring.AnnotationsInfoInitializer,org.apache.myfaces.orchestra.viewController.ViewControllerManager,org.springframework.beans.factory.config.CustomScopeConfigurer,persistentContextConversationInterceptor,persistentContextFactory,org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration]; 
root of factory hierarchy
10:04:14,210 INFO  [LocalContainerEntityManagerFactoryBean:339] Closing 
JPA EntityManagerFactory for <kickstart>
10:04:20,752 INFO  [FacesConfigurator:159] Reading standard config 
org/apache/myfaces/resource/standard-faces-config.xml
10:04:20,779 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
10:04:20,784 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/myfaces-orchestra-core-1.2.jar!/META-INF/faces-config.xml
10:04:20,788 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/myfaces-orchestra-core15-1.0.jar!/META-INF/faces-config.xml
10:04:20,793 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/trinidad-impl-1.0.7.jar!/META-INF/faces-config.xml
10:04:21,380 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/util-taglib.jar!/META-INF/faces-config.xml
10:04:21,384 INFO  [FacesConfigurator:540] Reading config 
/WEB-INF/faces-config.xml
10:04:21,393 INFO  [FacesConfigurator:207] MyFaces-package : myfaces-api 
not found.
10:04:21,393 INFO  [FacesConfigurator:207] MyFaces-package : 
myfaces-impl not found.
10:04:21,393 INFO  [FacesConfigurator:207] MyFaces-package : 
tomahawk-sandbox not found.
10:04:21,394 INFO  [FacesConfigurator:207] MyFaces-package : tomahawk 
not found.
10:04:42,256 INFO  [FacesConfigurator:941] Serialization provider : 
class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
10:04:42,267 INFO  [StartupServletContextListener:99] ServletContext 
'/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/' 
initialized.
10:04:42,322 INFO  [[/facesgoodies]:647] Initializing Spring root 
WebApplicationContext
10:04:42,322 INFO  [ContextLoader:174] Root WebApplicationContext: 
initialization started
10:04:42,357 INFO  [XmlWebApplicationContext:290] Refreshing 
org.springframework.web.context.support.XmlWebApplicationContext@6e7f72: 
display name [Root WebApplicationContext]; startup date [Mon Oct 13 
10:04:42 GMT 2008]; root of context hierarchy
10:04:42,439 INFO  [XmlBeanDefinitionReader:293] Loading XML bean 
definitions from ServletContext resource [/WEB-INF/classes/jpa.spring.xml]
10:04:42,568 INFO  [XmlBeanDefinitionReader:293] Loading XML bean 
definitions from ServletContext resource [/WEB-INF/classes/beans.spring.xml]
10:04:42,581 INFO  [XmlBeanDefinitionReader:293] Loading XML bean 
definitions from ServletContext resource 
[/WEB-INF/classes/orchestra.spring.xml]
10:04:42,597 INFO  [XmlBeanDefinitionReader:293] Loading XML bean 
definitions from URL 
[jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/myfaces-orchestra-core-1.2.jar!/META-INF/spring-orchestra-init.xml]
10:04:42,612 INFO  [XmlBeanDefinitionReader:293] Loading XML bean 
definitions from URL 
[jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/myfaces-orchestra-core15-1.0.jar!/META-INF/spring-orchestra-init.xml]
10:04:42,632 INFO  [XmlWebApplicationContext:302] Bean factory for 
application context 
[org.springframework.web.context.support.XmlWebApplicationContext@6e7f72]: 
org.springframework.beans.factory.support.DefaultListableBeanFactory@bf6297
10:04:42,834 INFO  [DriverManagerDataSource:155] Loaded JDBC driver: 
org.postgresql.Driver
12  kickstart  WARN 
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] openjpa.Runtime 
- The configuration property named "openjpa.RuntimeClassOptimization" 
was not recognized and will be ignored, although the name closely 
matches a valid property called "openjpa.RetryClassRegistration".
6  kickstart  WARN 
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] openjpa.Runtime 
- The configuration property named "openjpa.RuntimeClassOptimization" 
was not recognized and will be ignored, although the name closely 
matches a valid property called "openjpa.RetryClassRegistration".
10:04:48,208 INFO  [XmlWebApplicationContext:953] Bean 
'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor' 
is not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
10:04:48,222 INFO  [XmlWebApplicationContext:953] Bean 
'org.springframework.aop.config.internalAutoProxyCreator' is not 
eligible for getting processed by all BeanPostProcessors (for example: 
not eligible for auto-proxying)
10:04:48,232 INFO  [XmlWebApplicationContext:953] Bean 
'org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor' 
is not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
10:04:48,273 INFO  [XmlWebApplicationContext:953] Bean 
'transactionManager' is not eligible for getting processed by all 
BeanPostProcessors (for example: not eligible for auto-proxying)
10:04:48,285 INFO  [XmlWebApplicationContext:953] Bean '(inner bean)' is 
not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
10:04:48,287 INFO  [XmlWebApplicationContext:953] Bean '(inner bean)' is 
not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
10:04:48,288 INFO  [XmlWebApplicationContext:953] Bean 
'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor' 
is not eligible for getting processed by all BeanPostProcessors (for 
example: not eligible for auto-proxying)
10:04:48,304 INFO  [DefaultListableBeanFactory:272] Pre-instantiating 
singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@bf6297: 
defining beans 
[transactionManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,entityManagerFactory,dataSource,userDao,userServiceImpl,all,create,editor,googleMapBean,org.apache.myfaces.orchestra.conversation.AccessScopeManager,org.apache.myfaces.orchestra.conversation.AccessScopeManagerConfiguration,org.apache.myfaces.orchestra.annotation.AnnotationInfoManager,org.apache.myfaces.orchestra.annotation.spring.AnnotationsInfoInitializer,org.apache.myfaces.orchestra.viewController.ViewControllerManager,org.springframework.beans.factory.config.CustomScopeConfigurer,persistentContextConversationInterceptor,persistentContextFactory,org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguration]; 
root of factory hierarchy
10:04:48,452 INFO  [ContextLoader:194] Root WebApplicationContext: 
initialization completed in 6129 ms
10:04:48,458 INFO  [PortletHotDeployListener:202] Registering portlets 
for facesgoodies
10:04:48,754 INFO  [PortletHotDeployListener:209] 1 portlets for 
facesgoodies are ready for registration
10:04:48,769 INFO  [FacesConfigurator:159] Reading standard config 
org/apache/myfaces/resource/standard-faces-config.xml
10:04:48,791 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
10:04:48,796 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/myfaces-orchestra-core-1.2.jar!/META-INF/faces-config.xml
10:04:48,801 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/myfaces-orchestra-core15-1.0.jar!/META-INF/faces-config.xml
10:04:48,807 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/trinidad-impl-1.0.7.jar!/META-INF/faces-config.xml
10:04:49,101 INFO  [FacesConfigurator:379] Reading config 
jar:file:/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/WEB-INF/lib/util-taglib.jar!/META-INF/faces-config.xml
10:04:49,104 INFO  [FacesConfigurator:540] Reading config 
/WEB-INF/faces-config.xml
10:04:49,117 INFO  [FacesConfigurator:207] MyFaces-package : myfaces-api 
not found.
10:04:49,117 INFO  [FacesConfigurator:207] MyFaces-package : 
myfaces-impl not found.
10:04:49,117 INFO  [FacesConfigurator:207] MyFaces-package : 
tomahawk-sandbox not found.
10:04:49,118 INFO  [FacesConfigurator:207] MyFaces-package : tomahawk 
not found.
10:04:49,123 INFO  [RenderKitFactoryImpl:57] RenderKit with renderKitId 
'HTML_BASIC' was replaced.
10:04:49,125 INFO  [RenderKitFactoryImpl:57] RenderKit with renderKitId 
'org.apache.myfaces.trinidadinternal.core' was replaced.
10:04:49,125 INFO  [RenderKitFactoryImpl:57] RenderKit with renderKitId 
'org.apache.myfaces.trinidad.core.desktop' was replaced.
10:04:49,126 INFO  [RenderKitFactoryImpl:57] RenderKit with renderKitId 
'org.apache.myfaces.trinidad.core.pda' was replaced.
10:04:49,127 INFO  [FacesConfigurator:941] Serialization provider : 
class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
10:04:49,131 INFO  [MyFacesGenericPortlet:227] PortletContext 
'/Library/Tomcat/liferay-portal-tomcat-5.5-5.1.2/temp/6-facesgoodies/' 
initialized.
10:04:49,142 INFO  [PortletHotDeployListener:285] 1 portlets for 
facesgoodies registered successfully




Simon Kitching schrieb:
> The error is at AccessScopeManager.java:55, ie clearly the problem is 
> that the thread-local FrameworkAdapter variable has not been set up.
> 
> This can be set in either of two ways:
> * in a servlet filter defined in the web.xml (eg 
> BasicFrameworkAdapterFilter, JsfFrameworkAdapterFilter)
> * in the JSF OrchestraFacesContextFactory, which should get run 
> automatically for JSF requests.
> 
> The orchestra jarfile contains a "faces-config.xml" file that should be 
> automatically loaded by JSF libraries. This file then declares the 
> custom ContextFactory. Therefore it should not be necessary to configure 
> anything explicitly for Orchestra; just putting the jarfile into the 
> classpath should be enough. The filter is not needed in this case.
> 
> The BasicFrameworkAdapterFilter is useful when a webapp has a mixture of 
> JSF and jsp pages. The JsfFrameworkAdapterFilter should not be needed 
> any more (was needed in orchestra 1.0). However it does appear that 
> there are some environments (eg ICEFaces) where the custom factory isn't 
> getting invoked, so it is useful then. Of course it would be better if 
> someone figured out *why* icefaces prevents the orchestra 
> FacesContextFactory from running...
> 
> I know almost nothing about portlets, but have heard that filters are 
> not supported for Portlets. As Orchestra doesn't need filters to handle 
> JSF pages this is ok.
> 
> Why are you explicitly adding OrchestraFacesContextFactory to your 
> faces-config.xml file? Doesn't orchestra work without this?
> 
> Note that I do *not* use portlets. I'm happy to help with orchestra 
> advice as it would be nice for Orchestra to work on portlets, but you'll 
> need to do the majority of the debugging to figure out what is going on.
> 
> Regards,
> Simon
> 
> Andreas Niemeyer schrieb:
>> The NullPointerException is away when a factory item is added to the 
>> faces-config.xml, but nothing is shown in that portlet, maybe the 
>> framework workflow is broken now?!
>>
>> <factory>                     
>> <faces-context-factory>org.apache.myfaces.orchestra.lib.jsf.OrchestraFacesContextFactory</faces-context-factory> 
>>
>> </factory>  
>>
>> I read this article and applied some filter extension, but it only 
>> considered Orchestra without portlets.
>>     http://www.icefaces.org/JForum/posts/list/7638.page
>>
>>
>> Regards,
>> Andreas
>>
>>
>>
>>    
>>
>> Andreas Niemeyer schrieb:
>>> Hi,
>>>
>>> I tried out to get Matthias' Kickstart example working with Liferay 
>>> 5.1.2 without success. (below more lines from stack)
>>>
>>> 18:38:16,430 ERROR [PhaseListenerManager:77] Exception in 
>>> PhaseListener RENDER_RESPONSE(6) beforePhase.
>>> java.lang.NullPointerException
>>>         at 
>>> org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:55) 
>>>
>>>
>>>
>>> With Portlet 2.0 filter customisation should it be possible, could 
>>> someone point me what needs to configured?
>>>
>>>
>>> The base libraries:
>>>
>>> - Trinidad: 1.0.7
>>> - Orchestra: 1.2 / core15: 1.0
>>> - portlet-bridge-api-1.0.0-alpha-2.jar
>>> - MyFaces: 1.1.4 and older Facelets release
>>> There is a broken dependency why NOT using MyFaces 1.2.x and newer 
>>> Trinidad release
>>>
>>>
>>> Best regards,
>>> Andreas
>>>
> 
> 


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Simon Kitching <sk...@apache.org>.
The error is at AccessScopeManager.java:55, ie clearly the problem is 
that the thread-local FrameworkAdapter variable has not been set up.

This can be set in either of two ways:
 * in a servlet filter defined in the web.xml (eg 
BasicFrameworkAdapterFilter, JsfFrameworkAdapterFilter)
 * in the JSF OrchestraFacesContextFactory, which should get run 
automatically for JSF requests.

The orchestra jarfile contains a "faces-config.xml" file that should be 
automatically loaded by JSF libraries. This file then declares the 
custom ContextFactory. Therefore it should not be necessary to configure 
anything explicitly for Orchestra; just putting the jarfile into the 
classpath should be enough. The filter is not needed in this case.

The BasicFrameworkAdapterFilter is useful when a webapp has a mixture of 
JSF and jsp pages. The JsfFrameworkAdapterFilter should not be needed 
any more (was needed in orchestra 1.0). However it does appear that 
there are some environments (eg ICEFaces) where the custom factory isn't 
getting invoked, so it is useful then. Of course it would be better if 
someone figured out *why* icefaces prevents the orchestra 
FacesContextFactory from running...

I know almost nothing about portlets, but have heard that filters are 
not supported for Portlets. As Orchestra doesn't need filters to handle 
JSF pages this is ok.

Why are you explicitly adding OrchestraFacesContextFactory to your 
faces-config.xml file? Doesn't orchestra work without this?

Note that I do *not* use portlets. I'm happy to help with orchestra 
advice as it would be nice for Orchestra to work on portlets, but you'll 
need to do the majority of the debugging to figure out what is going on.

Regards,
Simon

Andreas Niemeyer schrieb:
> The NullPointerException is away when a factory item is added to the 
> faces-config.xml, but nothing is shown in that portlet, maybe the 
> framework workflow is broken now?!
>
> <factory>                     
> <faces-context-factory>org.apache.myfaces.orchestra.lib.jsf.OrchestraFacesContextFactory</faces-context-factory> 
>
> </factory>   
>
>
> I read this article and applied some filter extension, but it only 
> considered Orchestra without portlets.
>     
> http://www.icefaces.org/JForum/posts/list/7638.page
>
>
> Regards,
> Andreas
>
>
>
>     
>
>
> Andreas Niemeyer schrieb:
>> Hi,
>>
>> I tried out to get Matthias' Kickstart example working with Liferay 
>> 5.1.2 without success. (below more lines from stack)
>>
>> 18:38:16,430 ERROR [PhaseListenerManager:77] Exception in 
>> PhaseListener RENDER_RESPONSE(6) beforePhase.
>> java.lang.NullPointerException
>>         at 
>> org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:55) 
>>
>>
>>
>> With Portlet 2.0 filter customisation should it be possible, could 
>> someone point me what needs to configured?
>>
>>
>> The base libraries:
>>
>> - Trinidad: 1.0.7
>> - Orchestra: 1.2 / core15: 1.0
>> - portlet-bridge-api-1.0.0-alpha-2.jar
>> - MyFaces: 1.1.4 and older Facelets release
>> There is a broken dependency why NOT using MyFaces 1.2.x and newer 
>> Trinidad release
>>
>>
>> Best regards,
>> Andreas
>>


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Andreas Niemeyer <an...@gutzmann.com>.
The NullPointerException is away when a factory item is added to the 
faces-config.xml, but nothing is shown in that portlet, maybe the 
framework workflow is broken now?!

<factory>					 
<faces-context-factory>org.apache.myfaces.orchestra.lib.jsf.OrchestraFacesContextFactory</faces-context-factory> 

</factory>	


I read this article and applied some filter extension, but it only 
considered Orchestra without portlets.
	
http://www.icefaces.org/JForum/posts/list/7638.page


Regards,
Andreas



	


Andreas Niemeyer schrieb:
> Hi,
> 
> I tried out to get Matthias' Kickstart example working with Liferay 
> 5.1.2 without success. (below more lines from stack)
> 
> 18:38:16,430 ERROR [PhaseListenerManager:77] Exception in PhaseListener 
> RENDER_RESPONSE(6) beforePhase.
> java.lang.NullPointerException
>         at 
> org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:55) 
> 
> 
> 
> With Portlet 2.0 filter customisation should it be possible, could 
> someone point me what needs to configured?
> 
> 
> The base libraries:
> 
> - Trinidad: 1.0.7
> - Orchestra: 1.2 / core15: 1.0
> - portlet-bridge-api-1.0.0-alpha-2.jar
> - MyFaces: 1.1.4 and older Facelets release
> There is a broken dependency why NOT using MyFaces 1.2.x and newer 
> Trinidad release
> 
> 
> Best regards,
> Andreas
> 
> 
> 
> 

>>>
>>>   
>>
>>
> 
> 


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Andreas Niemeyer <an...@gutzmann.com>.
Hi,

I tried out to get Matthias' Kickstart example working with Liferay 
5.1.2 without success. (below more lines from stack)

18:38:16,430 ERROR [PhaseListenerManager:77] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
java.lang.NullPointerException
         at 
org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:55)


With Portlet 2.0 filter customisation should it be possible, could 
someone point me what needs to configured?


The base libraries:

- Trinidad: 1.0.7
- Orchestra: 1.2 / core15: 1.0
- portlet-bridge-api-1.0.0-alpha-2.jar
- MyFaces: 1.1.4 and older Facelets release
There is a broken dependency why NOT using MyFaces 1.2.x and newer 
Trinidad release


Best regards,
Andreas




web.xml:

#-#-#-#-#-#-#


<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
	
	<display-name>facesgoodies</display-name>
	<context-param>
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		<param-value>.xhtml</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>client</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.application.CONFIG_FILES</param-name>
		<param-value>/WEB-INF/faces-config.xml</param-value>
	</context-param>
	
	
	<context-param>
     	<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
     	<param-value>client</param-value>
   	</context-param>
   	
   	<context-param>
 
<param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
     	<param-value>com.sun.facelets.FaceletPortletViewHandler</param-value>
   	</context-param>

    <context-param>
 
<param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
     	<param-value>true</param-value>
   </context-param>

    <context-param>
     <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
     <param-value>session</param-value>
   </context-param>

    <context-param>
     <param-name>contextConfigLocation</param-name>
     <param-value>
       	/WEB-INF/classes/jpa.spring.xml
		/WEB-INF/classes/beans.spring.xml
		/WEB-INF/classes/orchestra.spring.xml
     </param-value>
   </context-param>

   <context-param>
     <param-name>facelets.LIBRARIES</param-name>
     <param-value>/WEB-INF/mw.taglib.xml</param-value>
   </context-param>

    <filter>
     <filter-name>orchestraFilter</filter-name>
 
<filter-class>org.apache.myfaces.orchestra.conversation.jsf.filter.OrchestraServletFilter</filter-class>
     	<init-param>
         	<param-name>serializeRequests</param-name>
             <param-value>true</param-value>
     	</init-param>
   </filter>

   <filter>
     <filter-name>trinidad</filter-name>
 
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
   </filter>

   <filter-mapping>
     <filter-name>trinidad</filter-name>
     <servlet-name>FacesServlet</servlet-name>
   </filter-mapping>

    <filter-mapping>
     <filter-name>orchestraFilter</filter-name>
     <servlet-name>FacesServlet</servlet-name>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
   </filter-mapping>

    <!-- Spring Framework 2.0 -->

   <listener>
 
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>


  	<listener>
 
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
   	</listener>
   	
   	  <!-- Orchestra listener -->

   	<listener>
	 
<listener-class>org.apache.myfaces.orchestra.conversation.servlet.ConversationManagerSessionListener</listener-class>
   	</listener>
   	


	<listener>
 
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
	</listener>

   <!-- Liferay listener -->

  	<listener>
	 
<listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
	</listener>


	<!-- Servlet definitions -->
	
	<servlet>
		<servlet-name>FacesServlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>0</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>1</servlet-name>
	 
<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
		<init-param>
			<param-name>portlet-class</param-name>
		 
<param-value>com.liferay.samplejsffacelets.portlet.MyFacesFaceletsPortlet</param-value>
		</init-param>
		<load-on-startup>0</load-on-startup>
	</servlet>
	
	<servlet>
     	<servlet-name>resources</servlet-name>
 
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
   	</servlet>
	
	
	<!-- Servlet mappings  -->
	
	<servlet-mapping>
		<servlet-name>FacesServlet</servlet-name>
		<url-pattern>/faces/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>1</servlet-name>
		<url-pattern>/1/*</url-pattern>
	</servlet-mapping>
	
	 <servlet-mapping>
     <servlet-name>resources</servlet-name>
     <url-pattern>/adf/*</url-pattern>
   </servlet-mapping>

	<!-- jsp taglibs -->
	
	<jsp-config>
		<taglib>
			<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
		</taglib>
		<taglib>
			<taglib-uri>http://liferay.com/tld/portlet</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-portlet-ext.tld</taglib-location>
		</taglib>
		<taglib>
			<taglib-uri>http://liferay.com/tld/security</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-security.tld</taglib-location>
		</taglib>
		<taglib>
			<taglib-uri>http://liferay.com/tld/theme</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-theme.tld</taglib-location>
		</taglib>
		<taglib>
			<taglib-uri>http://liferay.com/tld/ui</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-ui.tld</taglib-location>
		</taglib>
		<taglib>
			<taglib-uri>http://liferay.com/tld/util</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-util.tld</taglib-location>
		</taglib>
	</jsp-config>
	
	<!-- security -->
	
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>Page Sources</web-resource-name>
			<url-pattern>*.jsp</url-pattern>
			<url-pattern>*.jspx</url-pattern>
			<url-pattern>*.xhtml</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>nobody</role-name>
		</auth-constraint>
	</security-constraint>
	<security-role>
		<role-name>nobody</role-name>
	</security-role>
</web-app>

#-#-#-#-#-#-#


faces-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer 
Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config xmlns="http://java.sun.com/JSF/Configuration">
	
	<application>	
		<locale-config>
			<default-locale>en</default-locale>
		</locale-config>
		<view-handler>com.sun.facelets.FaceletPortletViewHandler</view-handler>
		<default-render-kit-id>
       		org.apache.myfaces.trinidad.core
     	</default-render-kit-id>
     	<variable-resolver>
       		org.springframework.web.jsf.DelegatingVariableResolver
     	</variable-resolver>
	</application>
	
	<factory>
	 
<faces-context-factory>com.liferay.util.bridges.jsf.myfaces.MyFacesContextFactoryImpl</faces-context-factory>
	</factory>	

	 <navigation-rule>
     <from-view-id>/create.xhtml</from-view-id>
     <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/all.xhtml</to-view-id>
     </navigation-case>
   </navigation-rule>

   <navigation-rule>
     <from-view-id>/all.xhtml</from-view-id>
     <navigation-case>
       <from-outcome>all</from-outcome>
       <to-view-id>/all.xhtml</to-view-id>
     </navigation-case>
   </navigation-rule>

   <navigation-rule>
     <from-view-id>/all.xhtml</from-view-id>
     <navigation-case>
       <from-outcome>dialog:map</from-outcome>
       <to-view-id>/gmap/map.xhtml</to-view-id>
     </navigation-case>
   </navigation-rule>

   <navigation-rule>
     <from-view-id>/all.xhtml</from-view-id>
     <navigation-case>
       <from-outcome>dialog:edit</from-outcome>
       <to-view-id>/edit1.xhtml</to-view-id>
     </navigation-case>
   </navigation-rule>
   <navigation-rule>
     <from-view-id>/edit1.xhtml</from-view-id>
     <navigation-case>
       <from-outcome>next</from-outcome>
       <to-view-id>/edit2.xhtml</to-view-id>
     </navigation-case>
   </navigation-rule>
   <navigation-rule>
     <from-view-id>/edit2.xhtml</from-view-id>
     <navigation-case>
       <from-outcome>back</from-outcome>
       <to-view-id>/edit1.xhtml</to-view-id>
     </navigation-case>
     <navigation-case>
       <from-outcome>save</from-outcome>
       <to-view-id>/all.xhtml</to-view-id>
     </navigation-case>
   </navigation-rule>
	<navigation-rule>
		<from-view-id>*</from-view-id>
		<navigation-case>
			<from-outcome>edit</from-outcome>
			<to-view-id>/edit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>*</from-view-id>
		<navigation-case>
			<from-outcome>help</from-outcome>
			<to-view-id>/help.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>*</from-view-id>
		<navigation-case>
			<from-outcome>back</from-outcome>
			<to-view-id>/view.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>*</from-view-id>
		<navigation-case>
			<from-outcome>submit</from-outcome>
			<to-view-id>/submit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	
	
	
</faces-config>


#-#-#-#-#-#-#


Exeption in logs/catalina.out:

#-#-#-#-#-#-#

18:38:16,430 ERROR [PhaseListenerManager:77] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
java.lang.NullPointerException
         at 
org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:55)
         at 
org.apache.myfaces.orchestra.conversation.jsf.AccessScopePhaseListener.beforePhase(AccessScopePhaseListener.java:91)
         at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73)
         at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:126)
         at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:397)
         at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:377)
         at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:474)
         at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:323)
         at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
         at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
         at 
com.liferay.samplejsffacelets.portlet.MyFacesFaceletsPortlet.render(MyFacesFaceletsPortlet.java:52)
         at 
com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
         at 
com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)



> Let me take a crack..
> 
> Matthias Wessendorf wrote:
>> Hey,
>>
>> On Thu, Oct 9, 2008 at 1:49 PM, Andreas Niemeyer
>> <an...@gutzmann.com> wrote:
>>  
>>> Hi Matthias,
>>>
>>> Is there a chance to get this neat facesgoodies project running within a
>>> portlet environment, especially liferay 5.1.1 or the newest release?
>>>     
>>
>> eh, good question. I don't really know/use portlets besides the hello 
>> world.
>> A goal is, for the facesgoodies project, to provide something that 
>> runs in the
>> jsr301 bridge.
>>   
> With Liferay, the best solution would be IceFaces.  They have a 
> partnership and integrated their Portlet 2.0 with IceFaces well before 
> the JSR-301 bridge for Portlet 2.0 has been able to be release.  No 
> reason the goodies wouldn't work on this, but it will likely be 
> experimental on liferay if you want to take advantage of Portlet 2.0.
>>  
>>> I'm new to all of this, started with myfaces 2 weeks ago and read the 
>>> book
>>> "MyFaces and Facelets" and checked out your example project to 
>>> understand
>>> more, e.g. persistence layer openjpa and Orchestra.
>>>
>>> My next challenge would be to analyize if Orchestra and Porlets work
>>> together and what are the current pitfalls or conditions.
>>>     
>>
>> there were some questions here already on this list (or the dev list)
>> and from what I remember it was working
>>   
> Orchestra claims to work with portlets and I know Martin and Bernd had a 
> demo which used it (although they had to work around a few simple 
> bugs).  Supposedly Simon has the official fixes ready to go and it 
> looking for someone to test them.
>>  
>>> I've checked out an faclets portlet example and got this running.
>>>
>>>
>>> I read some postings and the thread
>>>
>>>        https://issues.apache.org/jira/browse/ORCHESTRA-15
>>>
>>> that are open issues still exist.
>>>     
>>
>> perhaps there are still some issues ? Hrm.. perhaps worth to
>> send a new thread regarding the bug. Why reopened etc.
>>   
> He re-opened it because he didn't have anyone to test it.  I think there 
> is a thread on this now.
>>  
>>> But that in principial there might be some workarounds.
>>>
>>> For a beginner it is heavy stuff to understand all the items.
>>>     
>> +1
>> the goal for the facesgoodies was to decrease the PITA, when
>> choosing this jsf++ stack. The stack is great, but the setup really 
>> really
>> sucks....
>>  
>>> Could you or someone other expert be so kind and summerize all 
>>> requirements
>>>     
>> "only" the portlet is missing for Trinidad+Facelets+Portlet, but I am
>> not really good
>> at portlets (never bothered :-))
>>   
> Not yet.  :)  Right now we're still working on getting the spec for 
> Portlet 1.0 closed out and then, hopefully, 2.0 will be hot on it's 
> tail.  Here are some requirements off the top of my head though.
> 
> Portlet: JSR-168 or JSR-286 compatible container (286 Specific features 
> are experimental)
> JDK: 1.5
> JSF: 1.2
> Trinidad: 1.2.x (likely Trinidad 1.2.10 or 1.2.11 will be fully JSR-301 
> complaint, right now it *mostly* works)
> MyFaces Portlet Bridge: MyFaces Portlet Bridge 1.0-alpha3 (to be 
> released as soon as I generate the artifacts)
> 
> Hope that helps,
>  Scott
>> -Matthias
>>
>>  
>>> needed to be fulfilled to go on? Maybe a meaningful tutorial exists?
>>>
>>>
>>> Thank you and best regards,
>>> Andreas
>>>
>>>
>>>
>>>
>>> Matthias Wessendorf schrieb:
>>>    
>>>> http://code.google.com/p/facesgoodies
>>>>
>>>> (do a SVN check-out)
>>>>
>>>> On Dec 6, 2007 8:22 AM, simon <si...@chello.at> wrote:
>>>>      
>>>>> On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
>>>>>        
>>>>>>> Test case I: FacesGoodies
>>>>>>>             
>>>>> Where can I find the "FacesGoodies" code?
>>>>>
>>>>>        
>>>>>>> Test case II: myfaces-orchestra-examples-project - petstore
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 1. Enable administrator mode
>>>>>>>
>>>>>>> 2. Create Customer Group
>>>>>>>
>>>>>>> 3. Create Product
>>>>>>>
>>>>>>> 4. Go to Edit or Detail Page
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The result is a detail page without product set, because the url is
>>>>>>> wrong:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ../mops/ProductDetail.faces?productId=&conversationContext=12
>>>>>>>             
>>>>> Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
>>>>> issue for it.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Simon
>>>>>
>>>>>
>>>>>         
>>>>
>>>>       
>>>     
>>
>>
>>
>>   
> 
> 


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Scott O'Bryan <da...@gmail.com>.
Let me take a crack..

Matthias Wessendorf wrote:
> Hey,
>
> On Thu, Oct 9, 2008 at 1:49 PM, Andreas Niemeyer
> <an...@gutzmann.com> wrote:
>   
>> Hi Matthias,
>>
>> Is there a chance to get this neat facesgoodies project running within a
>> portlet environment, especially liferay 5.1.1 or the newest release?
>>     
>
> eh, good question. I don't really know/use portlets besides the hello world.
> A goal is, for the facesgoodies project, to provide something that runs in the
> jsr301 bridge.
>   
With Liferay, the best solution would be IceFaces.  They have a 
partnership and integrated their Portlet 2.0 with IceFaces well before 
the JSR-301 bridge for Portlet 2.0 has been able to be release.  No 
reason the goodies wouldn't work on this, but it will likely be 
experimental on liferay if you want to take advantage of Portlet 2.0.
>   
>> I'm new to all of this, started with myfaces 2 weeks ago and read the book
>> "MyFaces and Facelets" and checked out your example project to understand
>> more, e.g. persistence layer openjpa and Orchestra.
>>
>> My next challenge would be to analyize if Orchestra and Porlets work
>> together and what are the current pitfalls or conditions.
>>     
>
> there were some questions here already on this list (or the dev list)
> and from what I remember it was working
>   
Orchestra claims to work with portlets and I know Martin and Bernd had a 
demo which used it (although they had to work around a few simple 
bugs).  Supposedly Simon has the official fixes ready to go and it 
looking for someone to test them.
>   
>> I've checked out an faclets portlet example and got this running.
>>
>>
>> I read some postings and the thread
>>
>>        https://issues.apache.org/jira/browse/ORCHESTRA-15
>>
>> that are open issues still exist.
>>     
>
> perhaps there are still some issues ? Hrm.. perhaps worth to
> send a new thread regarding the bug. Why reopened etc.
>   
He re-opened it because he didn't have anyone to test it.  I think there 
is a thread on this now.
>   
>> But that in principial there might be some workarounds.
>>
>> For a beginner it is heavy stuff to understand all the items.
>>     
> +1
> the goal for the facesgoodies was to decrease the PITA, when
> choosing this jsf++ stack. The stack is great, but the setup really really
> sucks....
>   
>> Could you or someone other expert be so kind and summerize all requirements
>>     
> "only" the portlet is missing for Trinidad+Facelets+Portlet, but I am
> not really good
> at portlets (never bothered :-))
>   
Not yet.  :)  Right now we're still working on getting the spec for 
Portlet 1.0 closed out and then, hopefully, 2.0 will be hot on it's 
tail.  Here are some requirements off the top of my head though.

Portlet: JSR-168 or JSR-286 compatible container (286 Specific features 
are experimental)
JDK: 1.5
JSF: 1.2
Trinidad: 1.2.x (likely Trinidad 1.2.10 or 1.2.11 will be fully JSR-301 
complaint, right now it *mostly* works)
MyFaces Portlet Bridge: MyFaces Portlet Bridge 1.0-alpha3 (to be 
released as soon as I generate the artifacts)

Hope that helps,
  Scott
> -Matthias
>
>   
>> needed to be fulfilled to go on? Maybe a meaningful tutorial exists?
>>
>>
>> Thank you and best regards,
>> Andreas
>>
>>
>>
>>
>> Matthias Wessendorf schrieb:
>>     
>>> http://code.google.com/p/facesgoodies
>>>
>>> (do a SVN check-out)
>>>
>>> On Dec 6, 2007 8:22 AM, simon <si...@chello.at> wrote:
>>>       
>>>> On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
>>>>         
>>>>>> Test case I: FacesGoodies
>>>>>>             
>>>> Where can I find the "FacesGoodies" code?
>>>>
>>>>         
>>>>>> Test case II: myfaces-orchestra-examples-project - petstore
>>>>>>
>>>>>>
>>>>>>
>>>>>> 1. Enable administrator mode
>>>>>>
>>>>>> 2. Create Customer Group
>>>>>>
>>>>>> 3. Create Product
>>>>>>
>>>>>> 4. Go to Edit or Detail Page
>>>>>>
>>>>>>
>>>>>>
>>>>>> The result is a detail page without product set, because the url is
>>>>>> wrong:
>>>>>>
>>>>>>
>>>>>>
>>>>>> ../mops/ProductDetail.faces?productId=&conversationContext=12
>>>>>>             
>>>> Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
>>>> issue for it.
>>>>
>>>> Regards,
>>>>
>>>> Simon
>>>>
>>>>
>>>>         
>>>
>>>       
>>     
>
>
>
>   


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Matthias Wessendorf <ma...@apache.org>.
Hey,

On Thu, Oct 9, 2008 at 1:49 PM, Andreas Niemeyer
<an...@gutzmann.com> wrote:
> Hi Matthias,
>
> Is there a chance to get this neat facesgoodies project running within a
> portlet environment, especially liferay 5.1.1 or the newest release?

eh, good question. I don't really know/use portlets besides the hello world.
A goal is, for the facesgoodies project, to provide something that runs in the
jsr301 bridge.

>
> I'm new to all of this, started with myfaces 2 weeks ago and read the book
> "MyFaces and Facelets" and checked out your example project to understand
> more, e.g. persistence layer openjpa and Orchestra.
>
> My next challenge would be to analyize if Orchestra and Porlets work
> together and what are the current pitfalls or conditions.

there were some questions here already on this list (or the dev list)
and from what I remember it was working

>
> I've checked out an faclets portlet example and got this running.
>
>
> I read some postings and the thread
>
>        https://issues.apache.org/jira/browse/ORCHESTRA-15
>
> that are open issues still exist.

perhaps there are still some issues ? Hrm.. perhaps worth to
send a new thread regarding the bug. Why reopened etc.

>
> But that in principial there might be some workarounds.
>
> For a beginner it is heavy stuff to understand all the items.
+1
the goal for the facesgoodies was to decrease the PITA, when
choosing this jsf++ stack. The stack is great, but the setup really really
sucks....
>
> Could you or someone other expert be so kind and summerize all requirements
"only" the portlet is missing for Trinidad+Facelets+Portlet, but I am
not really good
at portlets (never bothered :-))

-Matthias

> needed to be fulfilled to go on? Maybe a meaningful tutorial exists?
>
>
> Thank you and best regards,
> Andreas
>
>
>
>
> Matthias Wessendorf schrieb:
>>
>> http://code.google.com/p/facesgoodies
>>
>> (do a SVN check-out)
>>
>> On Dec 6, 2007 8:22 AM, simon <si...@chello.at> wrote:
>>>
>>> On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
>>>>>
>>>>> Test case I: FacesGoodies
>>>
>>> Where can I find the "FacesGoodies" code?
>>>
>>>>> Test case II: myfaces-orchestra-examples-project - petstore
>>>>>
>>>>>
>>>>>
>>>>> 1. Enable administrator mode
>>>>>
>>>>> 2. Create Customer Group
>>>>>
>>>>> 3. Create Product
>>>>>
>>>>> 4. Go to Edit or Detail Page
>>>>>
>>>>>
>>>>>
>>>>> The result is a detail page without product set, because the url is
>>>>> wrong:
>>>>>
>>>>>
>>>>>
>>>>> ../mops/ProductDetail.faces?productId=&conversationContext=12
>>>
>>> Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
>>> issue for it.
>>>
>>> Regards,
>>>
>>> Simon
>>>
>>>
>>
>>
>>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project / portal?

Posted by Andreas Niemeyer <an...@gutzmann.com>.
Hi Matthias,

Is there a chance to get this neat facesgoodies project running within a 
portlet environment, especially liferay 5.1.1 or the newest release?

I'm new to all of this, started with myfaces 2 weeks ago and read the 
book "MyFaces and Facelets" and checked out your example project to 
understand more, e.g. persistence layer openjpa and Orchestra.

My next challenge would be to analyize if Orchestra and Porlets work 
together and what are the current pitfalls or conditions.

I've checked out an faclets portlet example and got this running.


I read some postings and the thread

	https://issues.apache.org/jira/browse/ORCHESTRA-15

that are open issues still exist.

But that in principial there might be some workarounds.

For a beginner it is heavy stuff to understand all the items.

Could you or someone other expert be so kind and summerize all 
requirements needed to be fulfilled to go on? Maybe a meaningful 
tutorial exists?


Thank you and best regards,
Andreas




Matthias Wessendorf schrieb:
> http://code.google.com/p/facesgoodies
> 
> (do a SVN check-out)
> 
> On Dec 6, 2007 8:22 AM, simon <si...@chello.at> wrote:
>> On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
>>>> Test case I: FacesGoodies
>> Where can I find the "FacesGoodies" code?
>>
>>>> Test case II: myfaces-orchestra-examples-project - petstore
>>>>
>>>>
>>>>
>>>> 1. Enable administrator mode
>>>>
>>>> 2. Create Customer Group
>>>>
>>>> 3. Create Product
>>>>
>>>> 4. Go to Edit or Detail Page
>>>>
>>>>
>>>>
>>>> The result is a detail page without product set, because the url is wrong:
>>>>
>>>>
>>>>
>>>> ../mops/ProductDetail.faces?productId=&conversationContext=12
>> Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
>> issue for it.
>>
>> Regards,
>>
>> Simon
>>
>>
> 
> 
> 


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by Matthias Wessendorf <ma...@apache.org>.
http://code.google.com/p/facesgoodies

(do a SVN check-out)

On Dec 6, 2007 8:22 AM, simon <si...@chello.at> wrote:
>
> On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
> > > Test case I: FacesGoodies
>
> Where can I find the "FacesGoodies" code?
>
> > >
> > > Test case II: myfaces-orchestra-examples-project - petstore
> > >
> > >
> > >
> > > 1. Enable administrator mode
> > >
> > > 2. Create Customer Group
> > >
> > > 3. Create Product
> > >
> > > 4. Go to Edit or Detail Page
> > >
> > >
> > >
> > > The result is a detail page without product set, because the url is wrong:
> > >
> > >
> > >
> > > ../mops/ProductDetail.faces?productId=&conversationContext=12
>
> Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
> issue for it.
>
> Regards,
>
> Simon
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by simon <si...@chello.at>.
On Tue, 2007-12-04 at 20:30 +0100, Matthias Wessendorf wrote:
> > Test case I: FacesGoodies

Where can I find the "FacesGoodies" code?

> >
> > Test case II: myfaces-orchestra-examples-project - petstore
> >
> >
> >
> > 1. Enable administrator mode
> >
> > 2. Create Customer Group
> >
> > 3. Create Product
> >
> > 4. Go to Edit or Detail Page
> >
> >
> >
> > The result is a detail page without product set, because the url is wrong:
> >
> >
> >
> > ../mops/ProductDetail.faces?productId=&conversationContext=12

Thanks for reporting this Jonas. I've confirmed it, and created a JIRA
issue for it.

Regards,

Simon


Re: [orchestra] FacesGoodies and myfaces-orchestra-examples-project

Posted by Matthias Wessendorf <ma...@apache.org>.
> Test case I: FacesGoodies
>
>
>
> 1. Create user "user1"
>
> 2. Create user "user2"
>
> 3. Edit "user1"
>
> 4. Press button "Next"
>
> 5. Press button "save"
>
> 6. Edit "user2" -> I still edit the user "user1"

yes! that I just noticed as well.
Wasn't the case at the beginning of the month "November".

Can you file a bug!

-Matthias


>
>
>
> The user object is stored in a bean named "editor" with the scope
> conversation.flash, this conversation should end after pressing save, but it
> does not. One solution is to invalidate the conversation manually, but then
> the feature of the conversation.flash is not used.
>
>
>
> Test case II: myfaces-orchestra-examples-project - petstore
>
>
>
> 1. Enable administrator mode
>
> 2. Create Customer Group
>
> 3. Create Product
>
> 4. Go to Edit or Detail Page
>
>
>
> The result is a detail page without product set, because the url is wrong:
>
>
>
> ../mops/ProductDetail.faces?productId=&conversationContext=12
>
>
>
> the url should be called:
>
>
>
> ../mops/ProductDetail.faces?productId=2&conversationContext=1
>
>
>
> In the "myfaces-orchestra-examples-project - A Voting Machine" I've got the
> same issue.
>
>
>
> Many thanks to any advice
>
>
>
> Jonas Esser
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org