Re: tile config using tileplugin?

2002-06-13 Thread @Basebeans.com

Subject: Re: tile config using tileplugin?
From: Torgeir Veimo [EMAIL PROTECTED]
 ===
Cedric Dumoulin wrote:

   Tiles plugin is not available yet. I have started to implement it, but haven't
 finalize it. It is an error that it appear in the distribution ;-(. Certainly a
 commit done late in the night ...

Ok, I'm allready using it with the added stuff, and it kind-of works and 
kind-of not.

  Before releasing it, I have to decide on a coherent scheme for Tiles factory :
 
* one factory for each subapps or one for all subapps ?

This is probably needed to get the automatic prefix?

* do we automatically prefix definition names with subapps name ?

The idea of the subapp stuff is that the subapp shouldn't need to know 
its own name. I pratice this would be to allways prefix. a forward can 
be context relative, meaning it will not be prefixed, eg. forward 
path=/selection.do name=/selection contextRelative=true/ .

* How do we deal with default subapps ?
* How can we refer to definitions common to all subapps ?

contextRelative=true?

Also, I noticed classes called UntyppedAttribute. Is there a reason for 
this unusual spelling?

-- 
-Torgeir


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




Re: tile config using tileplugin?

2002-06-12 Thread Cedric Dumoulin


  Hello,

  Tiles plugin is not available yet. I have started to implement it, but haven't
finalize it. It is an error that it appear in the distribution ;-(. Certainly a
commit done late in the night ...
 Before releasing it, I have to decide on a coherent scheme for Tiles factory :

   * one factory for each subapps or one for all subapps ?
   * do we automatically prefix definition names with subapps name ?
   * How do we deal with default subapps ?
   * How can we refer to  definitions common to all subapps ?

Struts Newsgroup (@Basebeans.com) wrote:

 Subject: tile config using tileplugin?
 From: Torgeir Veimo [EMAIL PROTECTED]
  ===
 I tried using

 plug-in className=org.apache.struts.tiles.TilesPlugin 
set-property property=definitionsConfig
 value=/WEB-INF/tileDefinitions.xml/
 /plug-in

 in my struct-config.xml instead of in the web.xml file, but it doesn't
 work. I get a

 message Servlet action is currently unavailable
 description The requested service (Servlet action is currently
 unavailable) is not currently available.

 Should it work this way? I would like to do this because I have several
 sub applications, and would like to use one tileDefinitions.xml file for
 each, and I don't know about them all in advance (Hence I cannot put the
 all in web.xml initially).

 --
 -Torgeir

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


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




Re: tile config using tileplugin?

2002-06-11 Thread @Basebeans.com

Subject: Re: tile config using tileplugin?
From: Torgeir Veimo [EMAIL PROTECTED]
 ===
BaTien Duong wrote:
 Cedric:
 Interesting! Do we have a TilesPlugIn now? I though the old tiles uses
 ActionComponentServlet, which extends ActionServlet. So to extend Struts
 without extending ActionServlet, it will probably use ServiceManager.

It is in the tiles distribution on 
http://www.lifl.fr/~dumoulin/tiles/index.html.

I found it in the javadocs, but not in the tiles distributed with struts 
1.1beta1, so I upgraded, and my errors are now different.

I tried using

plug-in className=org.apache.struts.tiles.TilesPlugin 
   set-property property=definitionsConfig
value=/WEB-INF/tileDefinitions.xml/
/plug-in

I just tried putting such a declaration in my main applications 
struts-config.xml file, without anything in web.xml at all, but now I get

javax.servlet.ServletException: Servlet.init() for servlet action threw 
exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)

caused by;

java.lang.AbstractMethodError
at 
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:884)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:420)

Looking at the tiles source, I can see that the init() method uses the 
old struts signature,

public void init(ActionServlet servlet, ApplicationConfig config)

Thus it will not work in my setup.

Any plans on synching this up with struts 1.1beta1?

-- 
-Torgeir


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




Re: tile config using tileplugin?

2002-06-10 Thread BaTien Duong

Cedric:
Interesting! Do we have a TilesPlugIn now? I though the old tiles uses
ActionComponentServlet, which extends ActionServlet. So to extend Struts
without extending ActionServlet, it will probably use ServiceManager.

Cedric, would you explain this point and the direction tiles will be taken.
This is the same question I posted sometime ago, but received no answer.

Thanks

- Original Message -
From: Struts Newsgroup @[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 9:40 AM
Subject: tile config using tileplugin?


 Subject: tile config using tileplugin?
 From: Torgeir Veimo [EMAIL PROTECTED]
  ===
 I tried using

 plug-in className=org.apache.struts.tiles.TilesPlugin 
set-property property=definitionsConfig
 value=/WEB-INF/tileDefinitions.xml/
 /plug-in

 in my struct-config.xml instead of in the web.xml file, but it doesn't
 work. I get a

 message Servlet action is currently unavailable
 description The requested service (Servlet action is currently
 unavailable) is not currently available.

 Should it work this way? I would like to do this because I have several
 sub applications, and would like to use one tileDefinitions.xml file for
 each, and I don't know about them all in advance (Hence I cannot put the
 all in web.xml initially).

 --
 -Torgeir


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



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