A Strange Title Tile Problem

2004-06-26 Thread Caroline Jen
I have been using tiles for a while.  All of a sudden,
a piece of title tile in one of my web pages behaves
weird; e.g. all others work fine except this one.  It
is 2:30 am in the morning.  Maybe, I am not sober
enough to see the problem:

In my application.properties, I have:

#-- message pages --
message.Form.title=Send A New Message
thread.Form.title=List of All Discussion Topics
posting.Form.title=Postings Under Each Topic

The values of message.Form.title and thread.Form.title
all get picked up properly and displayed in the
browser.  Something went wrong with
posting.Form.title.  In the browser, I got:

???en_US.posting.Form.title??? 

What could cause this kind of problem?

In my tiles-defs.xml:

tiles-definitions
  definition name=.article.Base
path=/article/common/layouts/Article.jsp
put name=title value =${title}/
put name=header   
value=/article/common/header.jsp/
put name=message  
value=/article/common/message.jsp/
put name=content   value=${content}/
put name=navbar   
value=/article/common/navbar.jsp/
  /definition
   ...
   ...
  definition name=.message.Form
extends=.article.Base
put name=title value=message.Form.title/
put name=content  
value=/article/content/postForm.jsp/
   /definition
  definition name=.thread.Form
extends=.article.Base
put name=title value=thread.Form.title/
put name=content  
value=/article/content/listthreads.jsp/
  /definition
  definition name=.posting.Form
extends=.article.Base
put name=title value=posting.Form.title/
put name=content  
value=/article/content/viewpostings.jsp/
  /definition
   ...
   ...

/tiles-definitions

My page layout looks like:

%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/tiles prefix=tiles %
html:html
HEAD
html:base/
LINK rel=stylesheet type=text/css
href=html:rewrite forward='baseStyle'/
TITLEbean:message key=app.title//TITLE
/HEAD
BODY
tiles:useAttribute name=title/bean:message
name=title/
tiles:get name=header/
tiles:get name=message/
tiles:get name=content/
tiles:get name=navbar/
/BODY
/html:html








__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: A Strange Title Tile Problem

2004-06-26 Thread Michael McGrady
I am surprised, if you have been working with messages much, that you have 
not seen this.  It means that the message was put into the properties 
files after you last started your server instance in most cases.  Restart 
the application, and if you have the message in the properties file, it 
should show up.

At 11:57 PM 6/25/2004, you wrote:
I have been using tiles for a while.  All of a sudden,
a piece of title tile in one of my web pages behaves
weird; e.g. all others work fine except this one.  It
is 2:30 am in the morning.  Maybe, I am not sober
enough to see the problem:
In my application.properties, I have:
#-- message pages --
message.Form.title=Send A New Message
thread.Form.title=List of All Discussion Topics
posting.Form.title=Postings Under Each Topic
The values of message.Form.title and thread.Form.title
all get picked up properly and displayed in the
browser.  Something went wrong with
posting.Form.title.  In the browser, I got:
???en_US.posting.Form.title???
What could cause this kind of problem?
In my tiles-defs.xml:
tiles-definitions
  definition name=.article.Base
path=/article/common/layouts/Article.jsp
put name=title value =${title}/
put name=header
value=/article/common/header.jsp/
put name=message
value=/article/common/message.jsp/
put name=content   value=${content}/
put name=navbar
value=/article/common/navbar.jsp/
  /definition
   ...
   ...
  definition name=.message.Form
extends=.article.Base
put name=title value=message.Form.title/
put name=content
value=/article/content/postForm.jsp/
   /definition
  definition name=.thread.Form
extends=.article.Base
put name=title value=thread.Form.title/
put name=content
value=/article/content/listthreads.jsp/
  /definition
  definition name=.posting.Form
extends=.article.Base
put name=title value=posting.Form.title/
put name=content
value=/article/content/viewpostings.jsp/
  /definition
   ...
   ...
/tiles-definitions
My page layout looks like:
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/tiles prefix=tiles %
__ Do you Yahoo!? Yahoo! Mail Address 
AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail 
- 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: A Strange Title Tile Problem

2004-06-26 Thread Michael McGrady
Oh!  I see, Caroline.  You don't know how to use Struts messages.  Or I 
don't.  One of us doesn't.  If you can reference a property message with 
plain text and no tag, that is a surprise to me.

At 11:57 PM 6/25/2004, you wrote:
I have been using tiles for a while.  All of a sudden,
a piece of title tile in one of my web pages behaves
weird; e.g. all others work fine except this one.  It
is 2:30 am in the morning.  Maybe, I am not sober
enough to see the problem:
In my application.properties, I have:
#-- message pages --
message.Form.title=Send A New Message
thread.Form.title=List of All Discussion Topics
posting.Form.title=Postings Under Each Topic
The values of message.Form.title and thread.Form.title
all get picked up properly and displayed in the
browser.  Something went wrong with
posting.Form.title.  In the browser, I got:
???en_US.posting.Form.title???
What could cause this kind of problem?
In my tiles-defs.xml:
tiles-definitions
  definition name=.article.Base
path=/article/common/layouts/Article.jsp
put name=title value =${title}/
put name=header
value=/article/common/header.jsp/
put name=message
value=/article/common/message.jsp/
put name=content   value=${content}/
put name=navbar
value=/article/common/navbar.jsp/
  /definition
   ...
   ...
  definition name=.message.Form
extends=.article.Base
put name=title value=message.Form.title/
put name=content
value=/article/content/postForm.jsp/
   /definition
  definition name=.thread.Form
extends=.article.Base
put name=title value=thread.Form.title/
put name=content
value=/article/content/listthreads.jsp/
  /definition
  definition name=.posting.Form
extends=.article.Base
put name=title value=posting.Form.title/
put name=content
value=/article/content/viewpostings.jsp/
  /definition
   ...
   ...
/tiles-definitions
My page layout looks like:
%@ taglib uri=/tags/struts-bean prefix=bean %
%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/tiles prefix=tiles %
__ Do you Yahoo!? Yahoo! Mail Address 
AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail 
- 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]