Antwort: Re: Tiles and i18n

2003-12-19 Thread Oliver Wulff




I do it like this:











   
  "Marino A.   
  Jonsson" An:   [EMAIL PROTECTED]
  <[EMAIL PROTECTED]Kopie:  
  otmail.com>  Thema:Re: Tiles and i18n
  Gesendet von:
  news 
  <[EMAIL PROTECTED]
  rg>  
   
   
  19.12.2003 17:03 
  Bitte antworten  
  an "Struts Users 
  Mailing List"
   
   




Just use the title-value from the tiles definition as a key to access the
real value in the resource bundle :)

cheers,
Marinó

"Patrick Cheng" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi all,

I know that Tiles support i18n by allowing multiple tiles definition
files with standard java language file extension such as _en_US , _fr
etc.
My Master Layout file contains other pages such as the navbars, body
etc. and the ONLY single piece of information it needs to show is the
TITLE ().
But then the title would be different for each body.
I have set a tile attribute saying the title is 'blahblahblah', but it's
the actual value, not referencing the resource.
I want it to be i18n-capable by using msg resource bundle.

Question 1: is there a way to reference the msg resource bundle in tiles
layout jsp?
Question is: do i HAVE to create multiple tiles definitions to cater the
i18n title?

Thanks in advance,
Patrick.




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









*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



JSTL, local, fmt:get

2003-12-14 Thread Oliver Wulff




I wrote an Action class which changes the local according the language the
user has choosen from a listbox:
setLocale(request, Locale.ENGLISH);

Now, I migrated the struts tag library 'bean' to JSTL 'fmt'. Unfortunately,
changing the language doesn't affect the fmt tags:
snippet of my jsp:



What am I doing wrong?






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



I18N, Tiles definition

2003-12-09 Thread Oliver Wulff




I've defined a tile called "title" in a tile definition which is a language
dependend string. Therefore, I though I could set the key (webapp.title) of
the resource bundle as a value:






  

I tried to read it in the classicLayout.jsp like this:
"/>

but it doesn't work.
Can't I easily use the keys of a resource bundle for language dependend
strings in the tile definition?
I have no solution to solve my problem.


Regards
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



RE: Tiles, fixed height, scrollbar

2003-12-08 Thread Oliver Wulff




Do you have a small example?
I tried it in this way  but it didn't work. Should a
scrollbar be shown?

I also tried the following  and the definition in the css
file
div.list {
height: 100px;
}
But it doesn't work either.

Oliver

**

I use divs to create a tabbed interface, with a tile per tab for the
content.  The divs can have a fixed height.

--
Voytek Jarnot
Quantum materiae materietur marmota monax si marmota monax materiam possit
materiari?


> -Original Message-
> From: Oliver Wulff [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2003 9:15 AM
> To: [EMAIL PROTECTED]
> Subject: Tiles, fixed height, scrollbar
>
>
>
>
>
>
> Hi all
>
> Currently, I'm using frames to split my web page. Some frames have a
> dynamic content with a scrollbar to scroll through the content of the
> frame.
>
> Can I achieve the same with tiles? Can I fix the height of a
> tile? If there
> is more data to display will a scrollbar be shown?
>
> Regards
> Oliver Wulff






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Antwort: RE: Tiles, Definition inheritence

2003-12-08 Thread Oliver Wulff




Wouldn't it make sense that the inserted tiles has access to the tiles
context either?
I think, my requirement is quite common. I think that the main layout of a
web application won't change but the body tile contains sometimes one tile
or is splitted in an upper- and lower-part or a left- and a right-part.
It's a little bit unhandy to copy the classicLayout.jsp to another layout
jsp and add the input- and result-part. Therefore, layout code is
duplicated.

Does my requirement contradict the design of tiles?

******
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]



   
  "List Mailbox"   
  <[EMAIL PROTECTED]An:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>
  om>  Kopie:  
   Thema:RE: Tiles, Definition 
inheritence
  08.12.2003 15:10 
  Bitte antworten  
  an "Struts Users 
  Mailing List"
   
   




Only the template definition called can 'see' the Tiles context and access
the attributes.  In your case the classicLayout.jsp can use the input and
result attributes.  If the bodyTwoColumns.jsp is to be your layout then
changing classicLayout.jsp to have the two columns format would be the best
solution.  You could also pass the attributes from the template to the
input
jsps but that becomes difficult to extend or change because you have
explicit variables you are creating in your template jsp for other jsps to
use.

Cal
www.calandva.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Oliver Wulff
Sent: Monday, December 08, 2003 6:16 AM
To: [EMAIL PROTECTED]
Subject: Tiles, Definition inheritence




Hi

I'm quite new to Tiles and I've got the following problem:

I've defined the following default definition:

  
  
  
  
  


The classicLayout.jsp hasn't been changed (Struts examples).

Additionally, I've defined the following Definition:

  
  
  


The bodyTwoColumns looks like this:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>



  

  
  

  



My struts action forwards to the definition .showOrgEinheit but I get the
following error:
[ServletException in:/layout/bodyTwoColumns.jsp] Error - Tag Insert : No
value found for attribute 'input'.'

Can anybody help me, please? Thank you a lot.

Cheers
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


-
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]









*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Tiles, Definition inheritence

2003-12-08 Thread Oliver Wulff




Hi

I'm quite new to Tiles and I've got the following problem:

I've defined the following default definition:

  
  
  
  
  


The classicLayout.jsp hasn't been changed (Struts examples).

Additionally, I've defined the following Definition:

  
  
  


The bodyTwoColumns looks like this:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>



  

  
  

  



My struts action forwards to the definition .showOrgEinheit but I get the
following error:
[ServletException in:/layout/bodyTwoColumns.jsp] Error - Tag Insert : No
value found for attribute 'input'.'

Can anybody help me, please? Thank you a lot.

Cheers
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: Having trouble with html:form tag - Using 1.1

2003-12-07 Thread Oliver Wulff




Hi Jim

Remove your second servlet mapping in your web.xml. I had the same problem.
I've defined two mappings:

  action
  *.do



  action
  /home


As soon as I have removed the second mapping the form action is correct and
not the webapp context anymore.

Very strange!!!

Cheers
Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Tiles, fixed height, scrollbar

2003-11-25 Thread Oliver Wulff




Hi all

Currently, I'm using frames to split my web page. Some frames have a
dynamic content with a scrollbar to scroll through the content of the
frame.

Can I achieve the same with tiles? Can I fix the height of a tile? If there
is more data to display will a scrollbar be shown?

Regards
Oliver Wulff

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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