RE: Message Resource Bundle utilities?

2003-06-05 Thread Gary D Ashley Jr.
There is an extension in the sandbox, I believe, that will allow you to
maintain resource bundles in a database versus .properties file.



-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: Message Resource Bundle utilities?


Does anyone have any ResourceBundle utilities, like a macro for Excel or
someothing to help me maintain the ResourceBundle?

---
Thanks...
Mick Knutson
---

_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



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



RE: Tiles menuLayout.jsp extending in the tiles-def.xml?

2003-06-05 Thread Gary D Ashley Jr.
Personally, I found doing menu layouts via tiles was to complicated and
definitely wan't as clean as I'd like.  My approach was to create my own
custom xml file like:










...


Since it was my own xml, I could create it in any fashion that met my needs.

Then, I created a struts plugin to load this file, use digester to parse it
into a set of config object (much like struts does in many other places),
and then created a custom tag to generate the html for my custom menu using
the configuration information that was loaded into the servletContext via
the plugin.

Finally, I use tiles decide which tabMenu I want to use, and which tab on
that menu to highlight.

Here is the tiles snip:












Here is the jsp snip:
...
  
  
...
  <%-- TabLayout Menu--%>
  
...



This allowed me to configure my menus separately from the pages the menus
were used on, and did away with a combersome xml speak around it.  The major
objective was that I could create a handful (ended up with 4) "master"
pages/tiles that all other tiles extended.  This allows my team to
concentrate on the smaller pieces and not the general look and feel.  They
simple create a new tiles definition as above for each new page, and define
the menu and menu items that they wish to be highlighted.

Not sure what your goals are, but there is one perspective.  Hope it helps.

Thanks.

Gary

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: Tiles menuLayout.jsp extending in the tiles-def.xml?


I need help with extending the menuLayout.jsp and menu.jsp i the
tiles-def.xml.

I need to know if there is a cleaner way to do this:


tiles-def.xml:
===









































































































































menuLayout.jsp:
===

<%-- Iterate over names.
  We don't use  tag because it doesn't allow insert (in JSP1.1)
--%>



<%
Iterator i=list.iterator();
while( i.hasNext() )
  {
  String name= (String)i.next();
%>





<%
  } // end loop
%>

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



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