datetimepicker: how to select both date and time

2010-07-01 Thread Tom Pop
Hello, I want to select date in format dd.MM. h:mm:ss. How to do this with datetimepicker? I can select only date (type=date) or time (type=time), but not both to same date text input field... or is there same way to do this? Thanks a lot. Tom --

struts2 + tiles

2009-02-17 Thread Tom Pop
Hello, please, how to insert localized string XXX as attribute in tiles definition? You can't use because it's nested in tiles tag. You can't use getText(), I think because it's not struts tag. So, how read localized text and insert it to tiles attribute value? Please, provide the exam

Re: struts2 and tiles

2009-01-31 Thread Tom Pop
can't use OGNL and struts2 tag. Thanks for example, I didn't find this in documentation. Tom Původní zpráva Od: Jeromy Evans Předmět: Re: struts2 and tiles Datum: 31.1.2009 12:04:44 On 31/01/2009, at 6:23 AM, Tom Pop

struts2 and tiles

2009-01-30 Thread Tom Pop
Hello, please, can you show me on this example how to convert tiles from struts1 to struts2? This example defines localized page title attribute passed to template in struts1: <% String docTitle = messages.getMessage(locale, "page.title"); %> Thank you. Tom

Re:Re : struts2: resource bundle messages

2009-01-28 Thread Tom Pop
ges > Datum: 27.1.2009 23:43:55 > > if you are in a struts tag. > > title="%{getText('key')}" > > else you can use > > title="" > > > ______

struts2: resource bundle messages

2009-01-27 Thread Tom Pop
Hello, I can get localised messages in JSP like this: How to do the same and assign the text to variable like this: <% String text = getText("key"); %> So - how to get message from resource bundle in JSP java code? I can then put it for example to ALT attribute of image tag. Thanks. Tom

Re: how to redirect error page to struts action

2009-01-27 Thread Tom Pop
're using Struts 2, have you tried adding > > ERROR > > to the filter mapping? > > Nils-H > > On Tue, Jan 27, 2009 at 10:14 PM, Tom Pop wrote: > > Hello, > > > > I want to redirect 404 error page to struts action: > > > > This action w

how to redirect error page to struts action

2009-01-27 Thread Tom Pop
Hello, I want to redirect 404 error page to struts action: This action works: http://localhost/resolver.action This web.xml configuration doesn't work: 404 /resolver.action Redirect to JSP page works: 404 /error.jsp However, it works in struts1, doesn't in s

reading resource bundle from JSP to variable

2009-01-05 Thread Tom Pop
Hello, please, I can't find any solution how to read message from resource bundle to variable in JSP page. First I call the action and then display results in JSP, tags and form tags reads resource bundle perfectly, but I don't know how to do something like this (in Struts1) now in Struts2:

Datetamepicker: problems with dojo

2009-01-05 Thread Tom Pop
Hello, I have page with datetimepicker and debug mode in head tag causes some error lines with this content: [SyntaxError: syntax error, file: http://localhost:8080/tomis/struts/dojo/dojo.js, line: 115] Do you have any idea what should be wrong in dojo.js? My configuration: Struts 2.0.14 all

Datetamepicker: problems with dojo

2009-01-03 Thread Tom Pop
Hello, I have problem with datetimepicker, I configured the page according to struts-example and the final source code is the same (except context), but problem is with attribute. Without the tag the page works fine (except datetimepicker) - the javascript console says "dojo is not defined".

Re: Form select option label from resource bundle

2009-01-02 Thread Tom Pop
> If I don't remember wrong, you cannot nest %{} in the same expression. Try: > > %{getText('status.' +name())} Thanks a lot, it works. Tom - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-

Form select option label from resource bundle

2009-01-02 Thread Tom Pop
Hello, I have these keys in resources: status.active=Active status.done=Done I have enum instances for each status in list and want to display it in select control: This works except of the listValue parameter. This works: listValue="%{getText('status.active')}" listValue="name()" but how