Re: Nested tab layouts possible?

2003-07-22 Thread Cedric Dumoulin
You can nest tab layout, but you need to modify the tabsLayout.jsp to take into account the several tabs layout. Try and adapt the nestedTabsLayout.jsp located in tiles-documentation.war under layouts. Hope this help, Cedric [EMAIL PROTECTED] wrote: Has anyone been able to get nested

Re: [tiles] ComponentContext returning null

2003-07-04 Thread Cedric Dumoulin
The ComponentContext exist only if you are in a tile. You are in a tile if you insert your jsp or action with one of the tile 'insert' mechanism: tiles:insert .. or a forward to a tile definition. Otherwise, the ComponentContext doesn't exist. Hope this help, Cedric William

Re: [tiles] programatically putting a definition into a layout

2003-06-24 Thread Cedric Dumoulin
Hi, There is an example on how to retrieve the tile context in org.apache.struts.webapp.tiles.test.TestActionTileAction. A tile context is created each time a tile is inserted. The tile context is hold in a ComponentContext object. Hope this help, Cedric William Salvucci wrote:

Re: A tiles controller is called for an unrelated tiles defintion.

2003-06-24 Thread Cedric Dumoulin
The log indicate that your .login definition is called by a way or another. It is hard to say why without knowledge of the workflow of your application. Is your /greeting action called when you hit a page issuing the log ? Cedric Rick Smith wrote: Have you tried to remove the associated

Re: A tiles controller is called for an unrelated tiles defintion.

2003-06-23 Thread Cedric Dumoulin
Rick Smith wrote: Normally, the controller is called only when its definition is inserted. A search of my JSP source code directory confirms that I do not use the tiles:insert tag at all, I'm using tiles:get: all my tiles are defined in my tiles-defs.xml. The tiles:get tag extends the

[Fwd: Using Struts tab layout]

2003-06-23 Thread Cedric Dumoulin
Hi, The Tiles tabsLayout.jsp accept jsp URL and definition names. So, using definition name in the tabList, as you porpose, should work. You can check tabsLayout.jsp code to see how it works. Cedric Original Message Subject:Using Struts tab layout Date: Fri, 20

Re: [tiles] programatically putting a definition into a layout

2003-06-23 Thread Cedric Dumoulin
William Salvucci wrote: with the following tiles-def, I can forward to layout.main and everything is fine: definition name=layout.main path=/layoutMain.jsp put name=header value=header.jsp / put name=app value=layout.app / put name=footer value=footer.jsp / /definition definition

Re: A question on Tiles and Frames

2003-06-20 Thread Cedric Dumoulin
Hi, Each frame of a frameset is filled with a web page. Each one issue an independent http request to the web server. So each page corresponding to a frame should be publicly accessible on the web server, and can't be under WEB-INF. Cedric Jeff Kyser wrote: Hello, I was trying to use a

Re: Multi-channel tiles example

2003-06-20 Thread Cedric Dumoulin
Hi, There is an (old) example of multi-channels in the Tiles distribution from http://www.lifl.fr/~dumoulin/tiles/. Be aware that this example has a lot of bad links, but the links related to multi-channel should still working. You can also find the following a valuable resource:

Re: A tiles controller is called for an unrelated tiles defintion.

2003-06-20 Thread Cedric Dumoulin
Normally, the controller is called only when its definition is inserted. Are you sure that you don't insert the .login definition from the pages you navigate ? What is the jsp for one of this page ? Cedric Rick Smith wrote: I have a Tiles controller that has been simplified to write to

Re: possible to parameterize template path in tiles definition whenusing tile def config file?

2003-06-20 Thread Cedric Dumoulin
The current implementation of Tiles doesn't allow to change dynamically the path/layout of a definition. This is an enhancement request. A workaround is to have a struts action forwarding to different definitions, according to the path you want to use. Another trick is to have a jsp/tiles

Re: A question on Tiles and Frames

2003-06-20 Thread Cedric Dumoulin
The page of a frame should alway be publicly accessible. It is alway possible to access it directly without the other associated frames. So, you can't hide them. Cedric Cedric Jeff Kyser wrote: Hey Cedric, Thanks for the response. I guess I'd figured out I couldn't put them under

Re: Old time jsp:include and tiles

2003-06-13 Thread Cedric Dumoulin
Hi, ajTreece wrote: Afternoon folks... I've got a web site that uses Struts (v1.x) and Tiles exclusively and it works great. The challenge is that I have been asked to include some code from another group that displays a couple of menu drop downs. They want to keep control of this

Re: Tiles - putlist , add and beanName

2003-06-03 Thread Cedric Dumoulin
Hi, The beanName and beanScope attributes are only allowed in a jsp tag tiles:add They are not allowed in a definition declared in the config file. The reason is that there is no beans declared in the config file, so you can't reference one. One can expect that using beanName in the

Re: [tiles] item attribute for the SimpleMenuItem from ApplicationResources?

2003-06-02 Thread Cedric Dumoulin
In the tiles config file, you specify the key of the resource (value=form.label.name), and in your menu layout, insert the resource from its key with the bean:message ... struts tag: replace %=item.getValue()% with bean:message key=%=item.getValue()% / Cedric Mick Knutson wrote: I want

Re: Replacement for Tiles DefinitionsUtil.setActionDefinition(..)

2003-06-02 Thread Cedric Dumoulin
There is no replacement (yet ?) for DefinitionsUtil.setActionDefinition(..). Cedric Martin Denham wrote: Hi, Many of the example actions which come as part of the Tiles package use DefinitionsUtil which has been deprecated. I have copied the example actions in my code but would like to get

Re: Where can i find documentation/examples of Multi-channels intiles??

2003-05-30 Thread Cedric Dumoulin
Hi, There is an old example in the tile distribution from http://www.lifl.fr/~dumoulin/tiles/. This example was based on an old version of the tiles-doc.war, and some links aren't working. But, the example show how you can write a definition factory to serve a multi -channel application.

Re: how to catch exception using tiles ???

2003-05-30 Thread Cedric Dumoulin
, or catch the exception in the action and do a forward accordingly. * Wait for the next release which will provide a better exception handling mechanism. This can take some times :-( Cedric Thomas Oldervoll wrote: Cedric Dumoulin [EMAIL PROTECTED] writes: Actually, the tiles:insert ... tag

Re: Tiles .. Should what level should one Drill down

2003-05-28 Thread Cedric Dumoulin
Nimish Chourey , Tidel Park - Chennai wrote: Hi All , Looking at the examples of Tiles , I could make out that if you see a pattern in your JSP's then they could be easily factored into templates or what you can also called as tiles . For eg . you can divide your page in terms of Menu , Header

Re: tiles:initComponentDefinitions and NullPointerException

2003-05-28 Thread Cedric Dumoulin
tiles:initComponentDefinitions ... to re-initialize the factory? We're working here with a Websphere App. Server and would like to do that without restarting the server/whole application. Thanks, bas marco. Dienstag, 27. Mai 2003 15:51 To: Struts Users Mailing List [EMAIL PROTECTED] cc: From: Cedric Dumoulin [EMAIL

Re: role - tiles definition?

2003-05-28 Thread Cedric Dumoulin
Hi, There is a simple example of usage in tiles-documentation.war under test/testRole. In brief, when you specify a role, the insert is performed only if the user is in requested role. Otherwise the tag is skipped. You can refer to the documentation of insert .. tag

Re: Please help a Tiles problem

2003-04-04 Thread Cedric Dumoulin
The error message says that the definition factory is not found. Have you initialized the tile plugin ? Cedric Vernon wrote: 1. The error message: root cause javax.servlet.ServletException: Can't get definitions factory from context. at

Re: Build the Tiles

2003-04-04 Thread Cedric Dumoulin
Yes you can build the tiles from the sources. You need to compile classes under o.a.s.tiles and o.a.s.taglib.tiles. Another simplest solution is to get the struts.jar, rename it to tiles.jar, open it with winzip or whatever you want, and suppress all the classes not related to tiles. Cedric

Re: Tiles Question:Diff between jsp and XML tiles definations...

2003-04-04 Thread Cedric Dumoulin
There is some differences: * Xml definitions are store in a factory; they can be inserted with insert name=aDefinition; they are declared in a centralized file, they can be declared using inheritance; they can be used in a struts forward ... tag; they need the initialization of

Re: Build the Tiles

2003-04-04 Thread Cedric Dumoulin
(tiles, valdator, struts-html, struts-bean, ...) into differents jars ? a good advantage is not to wait struts versioning for an enhancement on one of these components.(very similar to the commons-XX.jar files) Guillaume -Message d'origine- De: Cedric Dumoulin [SMTP:[EMAIL

Re: Tiles problem

2003-04-04 Thread Cedric Dumoulin
Hi, How do you insert your tiles ? Do you use the tiles:insert name=home.main tag, an action forward name =home.main / or something else ? You should use one of insert or forward. Cedric Stephen Smithstone wrote: Hi all got a problem with a tiles contoller heres the controller code

Re: Tiles Question:Diff between jsp and XML tiles definations...

2003-04-04 Thread Cedric Dumoulin
. Cedric regards, Shirish -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 2:19 PM To: Struts Users Mailing List Subject: Re: Tiles Question:Diff between jsp and XML tiles definations... There is some differences: * Xml definitions

Re: Probelm with Tiles download...

2003-04-03 Thread Cedric Dumoulin
Hi, The download from the cited site should run. The tutorial is in tiles-doc.war. It should run immediately, unless you have a configuration problem (missing jars, bad parser version, ...). The tutorial in this dist is based on a now old struts 1.1 pre beta version. If you want to use

Re: Probelm with Tiles download...

2003-04-03 Thread Cedric Dumoulin
to run the tiles tutorial with struts 1.1. regards, Shirish -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 1:57 PM To: Struts Users Mailing List Subject: Re: Probelm with Tiles download... Hi, The download from the cited site should run

Re: Problem forwarding from a Tile or Template.

2003-04-02 Thread Cedric Dumoulin
Hi, The provided code should work with Tiles if you have set the TilesRequestProcessor. The problem is that the jsp spec forbid the use of forward once the response is committed. But the jsp spec also said that a response is committed when you do an insert(). Tiles, and Templates, use

Re: Using a Tile Definition from within a Servlet ?

2003-04-02 Thread Cedric Dumoulin
Yes, it is possible. There is no simple API to do that, but take a look at the TilesRequestProcessor.processTilesDefinition(...) method to know how it is done by the struts servlet. What you should do is: * retrieve the definition from the factory * create the new tile context from

Re: Problem forwarding from a Tile or Template.

2003-04-02 Thread Cedric Dumoulin
org.apache.struts.tiles.TilesRequestProcessor: java.lang.ClassCastException: org.apache.struts.tiles.TilesUtilImpl Am I going in the right direction? T. -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 09:58 To: Struts Users Mailing List Subject: Re: Problem

Re: tiles:insert tag inserting carriage return before /td on linux box

2003-04-02 Thread Cedric Dumoulin
Hi, The Tiles tags only insert the content of the specified pages. There is no extra insertion. So, your problem should come from one of your pages having this extra character. Check particularly the layout jsp ... Also, try to isolate the exact location in your pages where this extra car

Re: [Tiles] putList() Displaying

2003-03-31 Thread Cedric Dumoulin
Hi, The tiles:insert tag don't check if the attribute is a list because element of the list can be of several kind (def name, URL, Item, custom bean, ...). Doing an insert on a attribute of type list doesn't means that you want to insert each element of the list. Maybe you simply want to

Re: custom tile definitions leads to error

2003-03-31 Thread Cedric Dumoulin
Hi, If you use your own defined Item class, you can disable the xml validation to add your extra properties (set the appropriate option in the TilesPlugin). Also, you can use the bean tag instead of item: bean classname=... set-property property=... value=... / set-property property=

Re: [Tiles] putList() Displaying

2003-03-31 Thread Cedric Dumoulin
the lines of instanceof, if the property is a list-type, then process each member of the list to the page? I thought everyone was getting away from scriptlets -Jacob -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Mon 3/31/2003 3:50 AM To: Struts Users

Re: [Tiles-Definitions] can't find bean in request.

2003-03-29 Thread Cedric Dumoulin
Joel Wickard wrote: Cedric Dumoulin wrote: Hi, The definition from the tiles file are stored in the factory. You should use the following to insert a definition: tiles:insert name=admin / the above method of trying to insert the predefined defs results in the following exception when

Re: REPEAT: Tiles put attribute beanScope not found in DTD -is this right?

2003-03-29 Thread Cedric Dumoulin
Hi Richard, The scope attribute in an insert is used to specify the jsp scope from which a definition should be retrieved. Definition can be stored in a jsp context by the user or with the help of the tiles:definition .. tag. Definitions declared in the tiles config file are NOT stored in

Re: Questions concerning Tiles

2003-03-28 Thread Cedric Dumoulin
Hi Guillaume, It is hard to say, I have never evaluated the cost of creation of a new Date object. You need to evaluate this cost, and compare it against a solution where you cache the object. Maybe the Date implementation already do a kind of caching ! If not, it should be simple to

Re: Tiles - how to handle missing jsp page

2003-03-27 Thread Cedric Dumoulin
Hi, aps olute wrote: Hi, How to handle missing jsp pages so one does not get errors? Not all these elements have ignore attributes, so how to handle them? Some of these are in defs.xml and some are in the regular jsp files. 1. on the putlist listed under item value=... links=.../ 2. on the

Re: [Tiles-Definitions] can't find bean in request.

2003-03-27 Thread Cedric Dumoulin
Hi, The definition from the tiles file are stored in the factory. You should use the following to insert a definition: tiles:insert name=admin / Check the tag syntax :-) Cedric Joel Wickard wrote: Here's the first few lines of the root cause of the exception I'm getting: root cause

Re: Configuring Tiles + Validation + Modules

2003-03-27 Thread Cedric Dumoulin
Niesen, Nathan wrote: I basically have the same questions. I've been searching the user docs and mailing lists trying to get a handle on what modules were intended to do, what modules can and can't do, and how I can use modules to improve my application framework. It appears to me that the

Re: Configuring Tiles + Validation + Modules

2003-03-27 Thread Cedric Dumoulin
Hohlen, John C wrote: I'm looking for some help on how to configure the Tiles and Validation Plug-Ins. A lot of the good books (Struts In Action, Programming Jakarta Struts, etc.) and replies to the mailing list address these topics independently, but not collectively. In addition, I took a

Re: Tiles Controller in definitions

2003-03-27 Thread Cedric Dumoulin
Kevin Cramer wrote: I was playing around with this more and if I include the tile with the controller directly in the JSP with the tiles:insert definition= tag then it works. If I use the tiles:insert name= tag which refers to an attribute which dynamically defines the definition / JSP to use

Re: Tiles Controller in definitions

2003-03-26 Thread Cedric Dumoulin
Hi, If you use a class as controller, you need to implement the Controller interface, which define only one method: public void perform(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext

Re: Tiles Error

2003-03-25 Thread Cedric Dumoulin
It is hard to say what is wrong without more information ;-). Jasper report an error while it try to convert the jsp page ? Check your jsp for a tiles:put .. tag whith a path attribute, or path as attribute value ... Then, check if your tag has the correct syntax. Cedric Alonso,

Re: Tiles - Forward - Images/Color not shown

2003-03-25 Thread Cedric Dumoulin
Hi, First of all, when you have a bad page not showing what you expect, check the page source on the client side. Does the page contains the image tags and so on ? Does the page is well formed ? Is there some syntax errors ? Save the page, reload it from the server until you have a correct

Re: [tiles] tiles:insert not working for relative path

2003-03-24 Thread Cedric Dumoulin
Hi, When you use Tiles, you should better use absolute paths (relative to the application). This is because you never know from where a tiles is inserted, and so you don't know to what the path is relative with. The only change that can explain the behavior change between 1.1b2 and 1.1RC1

Re: [Tiles] Is it possible to get a definition name in a layout.jsp

2003-03-21 Thread Cedric Dumoulin
Hi, It is not possible in the actual version to retrieve the definition name. It is an enhancement request for a next version. The workaround is to add an attribute whose value is the definition name. Cedric Raible, Matt wrote: I have the following definition in my tiles-config.xml:

Re: passing 'title' to a tile in a frame

2003-03-20 Thread Cedric Dumoulin
Hi, One important thing to remember when you use frames is that each frame is a different page and and that each frame will issue a different request to the server. So, it is not be possible to pass attributes from one frame to another using the request context, or tiles ! You have to

[Ann] Meeting in Paris this Saturday

2003-03-20 Thread Cedric Dumoulin
Hi, For those interested to discuss with me about Struts and Tiles, I will be this Saturday 22 march in Paris at the bookstore Le Monde en 'tique' from 16h to 18h (www.lmet.fr). Cedric - To unsubscribe, e-mail: [EMAIL

Re: Tiles

2003-03-19 Thread Cedric Dumoulin
Check the struts archive. There is some answer to this question. You can also check for the thread Sell me on Tiles Cedric Nathan Steiner wrote: I am fairly new to struts, and was just getting comfortable with templates, and now must dig into tiles. With tiles, from what I can gather, you

Re: modules, is it possible to share tiles template?

2003-03-18 Thread Cedric Dumoulin
A possible workaround: link rel=stylesheet type=text/css href=%=request.getContextPath()%/css/onelook_ie.css Cedric Mark Zeltser wrote: Example: Global Tile: link rel=stylesheet type=text/css href=html:rewrite page='/css/onelook_ie.css'/ Regualar reference, html output: link

Re: useAttribute and simple Types

2003-03-18 Thread Cedric Dumoulin
Hi, The useAttribute tag doesn't perform any type conversion. When you specify a classname, the tag will do something like: Classtype varName = (Classtype)request.getAttribute( attributeName ); So, there is no way to specify primitive types. Cedric Alban Soupper wrote: Hi all, Just a

Re: useAttribute and simple Types

2003-03-18 Thread Cedric Dumoulin
Alban Soupper wrote: Thanks, So what it the common use for passing boolean value to tiles: via a String attribute ? Alban. -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: mardi, 18. mars 2003 11:24 To: Struts Users Mailing List Subject: Re: useAttribute and simple

Re: Tile variable in a custom tag

2003-03-17 Thread Cedric Dumoulin
Import the tile attribute in one of the jsp scope: tiles.importAttribute name=OBJECT_NAME / Then, you can use it in your tag as el expression. If you need to use it as java variable, use tiles:useAttribute name=.../ Check the tag syntax to know more ... Cedric Sloan Seaman wrote: Is

Re: Tiles context and forwards

2003-03-14 Thread Cedric Dumoulin
Hi, The better reading is the tiles sources ;-). A tile context is created each time a tile is inserted. A tile can be inserted with insert ..., or by a forward clause in a struts action. When the context is created, it is initialized with the definition attribute if any. The tile context

Re: Is it possible to change the base tile on the fly

2003-03-13 Thread Cedric Dumoulin
a baseLayout and all children on the fly? Is it possible - can I just point to a specific tiles-config.xml after they login? I realize this is possible using stylesheets and some fancy CSS, but I'd like to explore doing this using Tiles. Thanks, Matt -Original Message- From: Cedric

Re: [Tiles] Creating SubTabs (Tabs within Tabs)

2003-03-13 Thread Cedric Dumoulin
Affan Qureshi wrote: Hi, I have implemented the TabLayout as described in the examples and works well. I want to define sub tabs under the main Tabs. So my requirement would be like having putList elements inside putList elements(which is not possible in DTD) so that I can define nested lists.

Re: tiles:definitions extends attribute

2003-03-13 Thread Cedric Dumoulin
The extends attribute refer to a definition in the factory (initialized from the config file). The definitions define directly in a jsp page are not stored in the factory, but in a jsp context, so they can't be found by the extends attribute. This is certainly something to improve, but the

Re: urgent:projecting with tiles

2003-03-12 Thread Cedric Dumoulin
Hi, Tiles allows to build pages dynamically. However, you should not use this functionality all the time ;-). In you r case, you can have a login page, an error page (or more), and other pages. Each page is build by assembling tiles, and by using a common layout, header, footer, ... To

Re: modules, tiles and html:form

2003-03-12 Thread Cedric Dumoulin
Hi, I think that the problem comes from the fact that you put the pages belonging to one module under the WEB-INF umbrella. If you move your broken1.jsp to /StrutsIssues/admin/broken1.jsp, and change the definition tile.broken1 accordingly, all work fine: definition name=tile.broken1

Re: Anyone using tiles with pager tag lib?

2003-03-12 Thread Cedric Dumoulin
*type=org.apache.struts.webapp.tiles.test.NoForward *forward name=successpath=test.action.noforward/ * /action * /pre * @author Cedric Dumoulin * @version $Revision: 1.2 $ $Date: 2002/11/16 04:58:47 $ */ public final class NoForward extends Action

Re: Is it possible to change the base tile on the fly

2003-03-12 Thread Cedric Dumoulin
It is possible to change a definition attribute like the path on the fly, but this will not change all the child definitions has you expect. This is because in the actual implementation all definitions have their own copy of the attributes. There is no lookup to the parent value. Cedric

Re: Nested and Tiles taglibs together

2003-03-12 Thread Cedric Dumoulin
Hi Chris, Chris Butler wrote: So, I've been using struts for a while... even back when Tiles used to be called Components. :-) I'm pretty impressed with how far things have come and how useful the framework is... Anyway, I'm new to using nested tags and am trying to use them in combination with

Re: [Tiles] Design - Overriding putList items

2003-03-10 Thread Cedric Dumoulin
Hi, Affan Qureshi wrote: I have divided the modules(logical) in my application in a Tab layout. I want to show different pages under the same tab at various points in the application. It means the putList items change all the time. If I want to extend and override the values inside the putList

Re: [Tiles] Localization Using Extended Tiles Definitions

2003-03-10 Thread Cedric Dumoulin
Hi, Paul Hodgetts wrote: Should I be able to do the following localization using extended tiles definitions? In tiles-defs.xml: tiles-definitions definition name=.page.base page=/default-layout.jsp put name=header value=/header.jsp/ put name=footer value=/footer.jsp/

Re: how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-10 Thread Cedric Dumoulin
reason, i consider that being a unlucky design for me, because i have to at least vesion my own tiles.jar or do some dirty subclassing your tag. I would appreciate your comment. Greets Jörg -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 06. März 2003

Re: Struts-Tiles causes charset problem!!!

2003-03-07 Thread Cedric Dumoulin
version=1.0 encoding=ISO-8859-1 ? Hope this help, Cedric Eric Chow wrote: Hi Cedric, The returned page has appropriate encoding tag. Eric - Original Message - From: Cedric Dumoulin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 7:05

Re: Tiles and appending request parameters

2003-03-07 Thread Cedric Dumoulin
[EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 4:06 AM To: Struts Users Mailing List Subject: Re: Tiles and appending request parameters Hi, I think that the problem is not related to the Tiles. What

Re: Beginner Tiles Problem

2003-03-06 Thread Cedric Dumoulin
Kuzminski, Nicolas wrote: Besides, any one knows if it's posible to have an url association with tiles definitions, as we have with actions and, for example, /*.do urls? It would be great to have, let's say, /*.def requests You can post an enhancement request in bugzilla ;-)

Re: Basic Tiles question

2003-03-06 Thread Cedric Dumoulin
Hi, A tile attribute is only visible in its tile, not in its parent, not in the sub tiles. You should pass the attribute explicitly from the current tile to the inserted tile, or put the value in the request context: tiles:insert attribute=header tiles:put name=title beanName=title

Re: Tiles problems (Building complex pages)

2003-03-06 Thread Cedric Dumoulin
Fabio Mancinelli wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 4 Mar 2003, Cedric Dumoulin wrote: Hi, It looks like your unlucky using Tiles ;-). Thank you for your answers. I admit that some of my questions were a bit brain-damaged :) Anyway passing a definition

Re: how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-06 Thread Cedric Dumoulin
an exception. This exception is not catched by the jsp mechanism because the output stream has already been flushed ... Cedric -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Dienstag, 04. März 2003 18:35 To: Struts Users Mailing List Subject: Re: how to catch

Re: Struts-Tiles causes charset problem!!!

2003-03-06 Thread Cedric Dumoulin
Check if the returned page (the page source in the browser) has the appropriate encoding tag. The page encoding is usually set in your template.jsp file. Cedric Eric Chow wrote: Hi, I want to display some Chinese in JSP(Customer Tag). If my JSP as following: (showChineseContent.jsp)

Re: Tiles and appending request parameters

2003-03-06 Thread Cedric Dumoulin
Hi, I think that the problem is not related to the Tiles. What you want is to be able to add a request parameter to the current requestResponse. When Tiles include the controller via its url, is simply do an include, and doesn't modify the requestResponse object. So, you still have all the

Re: Urgent, TilesRequestProcessor

2003-03-06 Thread Cedric Dumoulin
Hi, If you use Tiles, and want to extends the RequestProcessor, you need to extend the TilesRequestProcessor. This later extends the RequestProcessor, so you transitively extends it also. The TilesRequestProcessor purpose is to catch the definition names used in urls. If a struts url

Re: Unable to access title attribute in Tiles under layout (1.1-rc1)

2003-03-04 Thread Cedric Dumoulin
Hi, Once again ;-) : The attributes of a tile are only accessible from this tile, not from its sub- tiles or its parent. Attributes of a tile are like parameters of a method: they are only visible in this method. It is why you can't access the title attribute owned by the layout from the

Re: AW: AW: Tiles Body question

2003-03-04 Thread Cedric Dumoulin
) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja va:817) at Again, the page memberDetailShowHead.jsp is put at the beginning of memberDetail.jsp and not where the tiles:insert attribute=bodyHead flush=false/ tag is. Thank you very much Roland -Ursprüngliche Nachricht- Von: Cedric Dumoulin [mailto

Re: Setting tiles attributes from a bean in different scopes

2003-03-04 Thread Cedric Dumoulin
.myAttributeName.myAttribute It should work. In fact Tiles use the BeanUtils library. So, if this library support it, Tiles support it also. Cedric Thanks. -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:35 AM To: Struts Users Mailing List Subject

Re: AW: AW: AW: Tiles Body question

2003-03-04 Thread Cedric Dumoulin
-Ursprüngliche Nachricht- Von: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 4. März 2003 11:33 An: Struts Users Mailing List Betreff: Re: AW: AW: Tiles Body question The configuration you propose should work. All example ship with struts are based on this kind of nesting

Re: Tiles problems (Building complex pages)

2003-03-04 Thread Cedric Dumoulin
Hi, It looks like your unlucky using Tiles ;-). Fabio Mancinelli wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Sorry for this lengthy mail but I am getting crazy! I am working with Struts and Tiles and I am developing a small site to test (and stress this technology) I

Re: how to catch exception using tiles thrown by e.g. org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude

2003-03-04 Thread Cedric Dumoulin
I suppose that your exception is thrown by a tiles:insert ... tag in a jsp. This exception is thrown by the tiles framework, which know nothing about the struts exception mechanism, so it can't be used. The exception is then propagated by the tag handler and reach the jsp page (the tile

Re: i18n in SimpleMenuItem

2003-03-03 Thread Cedric Dumoulin
Hi, The Tiles config files should contain the resource keys (put name=title value=a.key /). You use this keys in the jsp file in conjunction with tags accepting such keys: tiles:importAttribute / bean:write name=a.key /. You can implement your own SmartMenuItem, taking a key as input, and

Re: tiles insert in sub layout

2003-03-03 Thread Cedric Dumoulin
Hi, Have you tried to set flush=true in your insert tags ? Cedric Roland Berger wrote: Hi all tiles:insert does not insert the jsp page where it should. I have the following setup: In my master Layout (classicLayout.jsp) I have the tag: Code snippet start of

Re: [Tiles] Whay can't a controller be assigned in the put tag?

2003-03-03 Thread Cedric Dumoulin
A Tiles controller is associated to the tile being inserted. The controllers are called when a tiles is inserted. They are declared in the insert tag, or in the definition tag which is used by insert. The put tag is used to specify an attribute which is passed to the insert. So, the

Re: Tiles Body question

2003-03-03 Thread Cedric Dumoulin
You can have a body acting as a body template which in turn insert other bodies ... Cedric James Prance wrote: In a classic template, the header, footer and menu could be common across your application. However the body would likely change depending on the business process. Is there a way

Re: Setting tiles attributes from a bean in different scopes

2003-03-03 Thread Cedric Dumoulin
Hi, BaTien Duong wrote: Hello Cedric and the group: Issue: need to retrieve properties of *myBean* in user session scope as values for tiles attributes in request scope. You can't set the scope of a tiles attribute: a tiles attribute is defined with put nested in an insert. A tile attribute

Re: AW: Tiles Body question

2003-03-03 Thread Cedric Dumoulin
. Roland. -Ursprüngliche Nachricht- Von: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 22. Februar 2003 14:13 An: Struts Users Mailing List Betreff: Re: Tiles Body question You can have a body acting as a body template which in turn insert other bodies ... Cedric James

Re: TILES - Network Traffic...

2003-03-03 Thread Cedric Dumoulin
Hi, Tiles doesn't use any javascript. It is a framework to build pages by assembling small pieces (tiles) on the server side. However, you can use your own javascript in tiles ... There was a discussion Sell me on tiles in the mailing list. Check the mailing list archive:

Re: Tiles: dynamically adding definitions

2003-02-28 Thread Cedric Dumoulin
look forward to seeing the document. Is this a feature which may be added to Tiles at a future date? Or is this too specialized? Thanks again, - John On Thursday, February 27, 2003, at 10:46 AM, Cedric Dumoulin wrote: Hi, The answer is yes, but it need some coding. The default definition

Re: [Tiles] Q: Are paths always servlet relative (instead of modulerelative)?

2003-02-27 Thread Cedric Dumoulin
Hi, James Young wrote: When using Tiles with multiple modules (with moduleAware=true), consider the following JSP fragment: tiles:insert page=/myTemplate.jsp tile:put name=main value=/myMain.jsp/ tile:put name=menu value=../myMain.jsp/ /tiles:insert 1. Are both /myTemplate.jsp and /myMain.jsp

Re: Frames and the Tile PutList

2003-02-27 Thread Cedric Dumoulin
. Is there something like eval() that I can use? Thanks in advance, Jean -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 3:48 AM To: Struts Users Mailing List Subject: Re: Frames and the Tile PutList Hi, The extra '[' ']' are there because you declare the apps

Re: Tiles: dynamically adding definitions

2003-02-27 Thread Cedric Dumoulin
Hi, The answer is yes, but it need some coding. The default definition factory doesn't provide a well know API to add dynamically new definitions. What you can do is to implement your own definition factory to provide such functionality. You can extends the existing factory and add the

Re: Frames and the Tile PutList

2003-02-27 Thread Cedric Dumoulin
it could be done, it's like not being able to finish puzzle. Anyway cheers!, Jean -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: February 27, 2003 1:31 PM To: Struts Users Mailing List Subject: Re: Frames and the Tile PutList Hi, I don't really understand what

Re: Frames and the Tile PutList

2003-02-26 Thread Cedric Dumoulin
Hi, The extra '[' ']' are there because you declare the apps attribute as a list. You should either declare it as a normal attribute (put .../), or use an index to peek up the appropriate element in the list (not supported by getAsString or get or insert, you should get the list and use a

Re: Reuse Frames with Tiles

2003-02-25 Thread Cedric Dumoulin
The Tiles insert mechanism use the RequestDispatcher.include(...) which only allows to include a resource from the same webapp. So, you can't insert a tile from another war file. A solution is to implement a tile that read its content from an external location. But, the external location will

Re: Tile configuration problem: No value defined for bean

2003-02-25 Thread Cedric Dumoulin
Hi, You should use tiles:insert name=sccLayout .../ rather than tiles:insert beanName=sccLayout .../ beanName is for retrieving a definition from the jsp scope. name is for retrieving a definition from the tiles factory. Cedric [EMAIL PROTECTED] wrote: Greetings, I'm experienced with

Re: tiles plugin compatible with struts 1.0?

2003-02-21 Thread Cedric Dumoulin
The Tiles plugin is for initializing the Tiles framework in struts1.1 The Tiles framework can be used in Struts1.0.x. You need a special tilesForStruts1.0.jar file, available in the distribution from http://www.lifl.fr/~dumoulin/tiles/doc/download.html. Also, the setup differ. Check the

Re: TilesAction and Controller

2003-02-20 Thread Cedric Dumoulin
David Graham wrote: The controllerClass attribute doesn't appear to be hooked into the Struts exception handling mechanism so I tried controllerUrl. I pointed the controllerUrl attribute at a /something.do action. That action throws an exception which does get delegated to the exception

  1   2   3   4   5   6   >