DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17614>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17614

tiles componentClass doesn't handle class Action

           Summary: tiles componentClass doesn't handle class Action
           Product: Struts
           Version: 1.1 RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have the following definition:

<definition name="someAction" path="/jsp/someJsp.jsp"
controllerClass="foo.SomeAction">

SomeAction is declared like this:

public class SomeAction extends Action {
...
}

It seems that ComponentDefinition.createControllerFromClassname(String
classname) can't handle this, though, since the interface Controller is hard-wired:

Class requestedClass = TilesUtil.applicationClass(classname);
     Object instance = requestedClass.newInstance();
     /*
     if( instance instanceof org.apache.struts.action.Action )
       { // wrap strutsinstance
       instance = new ActionController( (Action)instance );
       } // end if
     */
     if(log.isDebugEnabled())
       log.debug( "Controller created : " + instance );
     return (Controller)instance;
}

Leonardo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to