Hi Gerhard,

thanks, you are right! I added a package and it works now.
I currently try to reproduce the warnings, that i mentioned in the first
mail, within a clean project but somehow i can't...

If remove the following page in my real project:
@Page public class Error extends DefaultErrorView implements Pages { }
the warnings dissapears.
Do you have any idea why this could produce this warnings?

Thanks and best regards,
Thomas

2011/10/30 Gerhard Petracek <gerhard.petra...@gmail.com>

> hi thomas,
>
> #1 the example contains a beans.xml (see src\main\webapp\WEB-INF\beans.xml)
> #2 your example doesn't work because you don't have a package. move your
> classes to a package of your choice and it will work.
> #3 you saw the warning because the jsf impl. gets the outcome and can't
> handle it -> the warning was correct
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2011/10/30 Thomas Andraschko <zoi...@googlemail.com>
>
> > Hi Gerhard,
> >
> > your example works without problems after adding a beans.xml.
> > But i really do not understand why my small example does not work:
> > http://www.megaupload.com/?d=BOW95VP9
> > In the index.xhtml there are examples with p- and h:commandButton but
> none
> > of them works.
> > I'd be grateful if you could take a look on it for few minutes!
> >
> > Thanks!
> >
> > 2011/10/30 Gerhard Petracek <gerhard.petra...@gmail.com>
> >
> > > hi thomas,
> > >
> > > please have a look at [1].
> > >
> > > regards,
> > > gerhard
> > >
> > > [1]
> > >
> > >
> >
> http://people.apache.org/~gpetracek/myfaces/codi/demos/view-config-navigation-demo.zip
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> > >
> > > 2011/10/30 Thomas Andraschko <zoi...@googlemail.com>
> > >
> > > > Hi Gerhard,
> > > >
> > > > thanks for your answer.
> > > > I tried to reproduce the warning at home and it does not occur. I
> will
> > > try
> > > > this next week @ work.
> > > > But the redirect with p:commandButton does also not work. Following
> > > warning
> > > > occurs:
> > > >
> > > > No navigation case match for viewId /pages/index.xhtml,  action
> > > > #{loginController.login()} and outcome class Pages$Secure$Index.
> > > >
> > > > If i use a String as return value for the login method with
> > > > "/pages/secure/index.xhtml?faces-redirect=true", it works without
> > > problem.
> > > >
> > > > Thanks and best regards,
> > > > Thomas
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 2011/10/28 Gerhard Petracek <gerhard.petra...@gmail.com>
> > > >
> > > > > hi thomas,
> > > > >
> > > > > all of our examples and applications work without such a warning ->
> > > > please
> > > > > provide an example which illustrates the issue.
> > > > >
> > > > > regards,
> > > > > gerhard
> > > > >
> > > > > http://www.irian.at
> > > > >
> > > > > Your JSF powerhouse -
> > > > > JSF Consulting, Development and
> > > > > Courses in English and German
> > > > >
> > > > > Professional Support for Apache MyFaces
> > > > >
> > > > >
> > > > >
> > > > > 2011/10/28 Thomas Andraschko <zoi...@googlemail.com>
> > > > >
> > > > > > Are there also any limitations which ajax and redirects or could
> > the
> > > > > > warning
> > > > > > break this functionality?
> > > > > > I tried a simple redirect with ajax and the action attribute of
> > > > > > p:commandButton but this does not work if i use the page class as
> > > > return
> > > > > > value.
> > > > > > The page class is also annotated with: @Page(navigation =
> > > > > > NavigationMode.REDIRECT). Navigation Rules for example works
> > without
> > > > > > problems :)
> > > > > >
> > > > > > 2011/10/28 Thomas Andraschko <zoi...@googlemail.com>
> > > > > >
> > > > > > > Hi Mark!
> > > > > > >
> > > > > > > I using CODI 1.0.1 with OWB 1.1.2.
> > > > > > >
> > > > > > > It's almost a clean project!
> > > > > > > I just added a ViewConfig (like [1]) and these warnings
> occured.
> > > > > Without
> > > > > > > this ViewConfig, no warnings occured :)
> > > > > > >
> > > > > > > Thanks and best regards,
> > > > > > > Thomas
> > > > > > >
> > > > > > > [1]
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/source/browse/community/src/main/java/org/apache/extras/myfaces/codi/examples/community/view/config/Pages.java
> > > > > > >
> > > > > > >
> > > > > > > 2011/10/28 Mark Struberg <strub...@yahoo.de>
> > > > > > >
> > > > > > >> hi Thomas!
> > > > > > >>
> > > > > > >> Which CODI version are you using and which server environment
> > (OWB
> > > > or
> > > > > > >> Weld)?
> > > > > > >> Is there any example project to reproduce this issue?
> > > > > > >>
> > > > > > >>
> > > > > > >> LieGrue,
> > > > > > >> strub
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> ----- Original Message -----
> > > > > > >> > From: Thomas Andraschko <zoi...@googlemail.com>
> > > > > > >> > To: MyFaces Discussion <users@myfaces.apache.org>
> > > > > > >> > Cc:
> > > > > > >> > Sent: Friday, October 28, 2011 2:05 PM
> > > > > > >> > Subject: Warning with CODI and MyFaces
> > > > > > >> >
> > > > > > >> > Hi,
> > > > > > >> >
> > > > > > >> > i get following warning from OWB:
> > > > > > >> > WARNUNG: No suitable constructor found for injection target
> > > class
> > > > :
> > > > > > >> [class
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > >
> > org.apache.myfaces.shared.context.SwitchAjaxExceptionHandlerWrapperImpl].
> > > > > > >> > produce() method does not work!
> > > > > > >> > 28.10.2011 14:00:42
> > > > > > >> >
> > > > org.apache.webbeans.component.creation.AnnotatedTypeBeanCreatorImpl
> > > > > > >> > defineConstructor
> > > > > > >> > WARNUNG: No suitable constructor found for injection target
> > > class
> > > > :
> > > > > > >> [class
> > > > > > >> >
> > org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl].
> > > > > > >> produce()
> > > > > > >> > method does not work!
> > > > > > >> >
> > > > > > >> > How can i solve this? This warnings will be logged on each
> > > request
> > > > > and
> > > > > > >> will
> > > > > > >> > blow up my logs :)
> > > > > > >> >
> > > > > > >> > Best regards
> > > > > > >> > Thomas
> > > > > > >> >
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to