You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Curtney Jacobs <c....@comcast.net> on 2005/07/31 08:02:45 UTC

Re: MyFaces And Tiles or SiteMesh?

Yep, I am already doing that.

_CJ
On Sat, 2005-07-30 at 21:09 -0700, Wendy Smoak wrote:
> From: "Curtney Jacobs" <c....@comcast.net>
> > This is my last attempt before giving up on Tiles for my current
> > project. Has anyone successfully used Tiles and MyFaces in a project
> > where action events triggers dynamic loading of tile definitions. For
> > example, command link "A" trigger loading of tile definition "A",
> > command link "B" trigger loading of tile definition "B", etc.
> 
> I haven't. :)  But I was at a conference today where David Geary mentioned 
> that to use Tiles and JSF together, you must make every tile a 'subview'. 
> Are you already doing that?
> 


Re: MyFaces And Tiles or SiteMesh?

Posted by Curtney Jacobs <c....@comcast.net>.
I have no problem with my tile displaying, with or without the subview
tag. The problem is triggering the displaying of specific tiles by
action events. See previous post for further explanations.

Curtney
On Sun, 2005-07-31 at 17:06 +0430, Arash Bijanzadeh wrote:
> 
> 
> On 7/31/05, Curtney Jacobs <c....@comcast.net> wrote:
>         Yep, I am already doing that.
>         
>         _CJ
>         On Sat, 2005-07-30 at 21:09 -0700, Wendy Smoak wrote:
>         > From: "Curtney Jacobs" <c....@comcast.net> 
>         > > This is my last attempt before giving up on Tiles for my
>         current
>         > > project. Has anyone successfully used Tiles and MyFaces in
>         a project
>         > > where action events triggers dynamic loading of tile
>         definitions. For 
>         > > example, command link "A" trigger loading of tile
>         definition "A",
>         > > command link "B" trigger loading of tile definition "B",
>         etc.
>         >
>         > I haven't. :)  But I was at a conference today where David
>         Geary mentioned 
>         > that to use Tiles and JSF together, you must make every tile
>         a 'subview'.
>         > Are you already doing that?
>         >
>         
> 
> And you should not use the subview tag :)
> 
> -- 
> Abandon the search for Truth; settle for a good fantasy.


Re: MyFaces And Tiles or SiteMesh?

Posted by Arash Bijanzadeh <ar...@gmail.com>.
On 7/31/05, Curtney Jacobs <c....@comcast.net> wrote:
> 
> Yep, I am already doing that.
> 
> _CJ
> On Sat, 2005-07-30 at 21:09 -0700, Wendy Smoak wrote:
> > From: "Curtney Jacobs" <c....@comcast.net>
> > > This is my last attempt before giving up on Tiles for my current
> > > project. Has anyone successfully used Tiles and MyFaces in a project
> > > where action events triggers dynamic loading of tile definitions. For
> > > example, command link "A" trigger loading of tile definition "A",
> > > command link "B" trigger loading of tile definition "B", etc.
> >
> > I haven't. :) But I was at a conference today where David Geary 
> mentioned
> > that to use Tiles and JSF together, you must make every tile a 
> 'subview'.
> > Are you already doing that?
> >
> 
> 
And you should not use the subview tag :)

-- 
Abandon the search for Truth; settle for a good fantasy.

Classloading and simpleClassForName

Posted by Ricardo Ramírez <rr...@itesm.mx>.
I am looking at the following method in the ClassUtils.java file:

    public static Class classForName(String type)
        throws ClassNotFoundException
    {
        if (type == null) throw new NullPointerException("type");
        try
        {
            // Try WebApp ClassLoader first
            return Class.forName(type,
                                 false, // do not initialize for faster startup
                                 Thread.currentThread().getContextClassLoader());
        }
        catch (ClassNotFoundException ignore)
        {
            // fallback: Try ClassLoader for ClassUtils (i.e. the myfaces.jar
lib)
            return Class.forName(type,
                                 false, // do not initialize for faster startup
                                 ClassUtils.class.getClassLoader());
        }
    }

I wonder if someone could explain me why it is done that way? (first the
current thread, then the classloader for classutil)

I am using Orion, somehow that doesn't work for me, I can initialize 1 web
application, however if I try to initialize a second one I get:
Class org.apache.myfaces.application.ActionListenerImpl is no javax.faces.event.ActionListener

After some debugging I checked and:

ClassLoader: [webapp1\classes, webapp1\lib\somejar] org.apache.myfaces.application.ActionListenerImpl

ClassLoader: [anotherapp2\classes, anotherpp2\lib\somejar] 
javax.faces.event.ActionListener

They are in different classloaders... that's why the "isAssignableFrom" method
returns false.

I don't know if this is a bug in orion server or in myfaces..... webapp1
and anotherapp2, both exist and are separate web modules, each with the myfaces
jars in the WEB-INF directory, if there is no special reason for loading
first the current thread then the classloader for ClassUtil I'll try chaning
the order.