Re: Struts Tiles Problem

2010-11-06 Thread Lukasz Lenart
2010/11/5 Rafael Medeiros mederaf...@gmail.com: How to use plugin-tiles in struts 1.3.8: Check the documentation http://struts.apache.org/1.x/struts-tiles/installation.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

Re: Have you ever used InputConfig annotation?

2010-11-06 Thread Li Ying
Actually, I am using interface [ValidationWorkflowAware] instead of annotation [InputConfig] for the purpose of repopulation when input validation fail happen. You can see how ValidationWorkflowAware work when you read the source code of DefaultWorkflowInterceptor. Basically, the idea is

Re: How to use s:optiontransferselect/

2010-11-06 Thread Li Ying
if I click the button to move the items, it doesn't work. Does any javascript error show up? Can you show us your entire source code? 2010/11/6 Mead Lai laiqi...@gmail.com: Hi All, I am now using s:optiontransferselect tag with simple theme. It shows two select-list fine, but if I click

Re: How to use s:optiontransferselect/

2010-11-06 Thread Mead Lai
Thanks for you reply. There is a JavaScript Error, showsno object found, and I checked the page HTML source, found there was no JavaScript files included. Than I add a tag head theme=ajax/, it cause a exception no freeMark template found. It seems the tag head theme=ajax/ was obsolete. Regards,

Re: Setting css of a row

2010-11-06 Thread Mead Lai
right, set a property in Action. private String color; private String css; then generate get/set. table bgcolor='${color}' class='{$css}' ... table/ Regards, Mead

Re: How to pass date from action to custom jsp tag?

2010-11-06 Thread Li Ying
The value passed to tag attribute is a simple String. You have to EVALUATE IT as a expression to get the real value. You can read the source of Struts2 tag lib to study how they evaluate the expression. For example: in class [org.apache.struts2.components.Property] (This class is invoked by tag

Re: Have you ever used InputConfig annotation?

2010-11-06 Thread Maurizio Cucchiara
InputConfig works as documented. I reccomend to use Li's suggestion for inheritance matter. When you need to overwrite base class behavior, then mark method with InputConfig annotation. 2010/11/5 Alfredo Manuel Osorio Martinez alfredo.oso...@afirme.com: Hello, By looking at

Re: How to use s:optiontransferselect/

2010-11-06 Thread Li Ying
no object found looks like some javascript is running, but it could not found an object in the HTML DOM. so, it looks like not an error of javascript file, but an error of your HTML DOM. For example, ID of some element is missed. Again, I need read the entire source code before I can tell what is

Re: Setting css of a row

2010-11-06 Thread Maurizio Cucchiara
As Dave suggested CSS style is the best candidate for this purpose. The only things that could change my mind, it's if is a model-related property (f.e. user defined color, preference, etc) 2010/11/6 cellterry cellte...@gmail.com: Dear all, I want to set a table row with a color retrieved

Re: How to use s:optiontransferselect/

2010-11-06 Thread Mead Lai
Hi Li, Thank you very much. s:optiontransferselect doubleList={'testing','funning'} list={'spring','hibernate'} doubleName=/s:optiontransferselect There is no struts JavaScript included in the Error in Chrome browser.: Failed to load resource: the server responded with a status of 404 (Not Found)

Re: How to use s:optiontransferselect/

2010-11-06 Thread Li Ying
s:optiontransferselect doubleList={'testing','funning'} list={'spring','hibernate'} doubleName=/s:optiontransferselect Looks like you missed the attribute [name] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: How to use s:optiontransferselect/

2010-11-06 Thread Dave Newton
The JavaScript isn't being included. This is not an Ajax tag, and the s: head tag needs to be there. Dave On Nov 6, 2010 2:59 AM, Li Ying liying.cn.2...@gmail.com wrote: s:optiontransferselect doubleList={'testing','funning'} list={'spring','hibernate'} doubleName=/s:optiontransferselect

Re: Have you ever used InputConfig annotation?

2010-11-06 Thread Dave Newton
I still don't believe using a framework-defined method, whose intent is to return a string result name, to load data is an expressive design. On Nov 6, 2010 2:36 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: InputConfig works as documented. I reccomend to use Li's suggestion for

Re: How to pass date from action to custom jsp tag?

2010-11-06 Thread Dave Newton
If you're getting the string root then the JSP EL isn't being evaluated, but we don't know which iteration caused that behavior. If you're getting null, you may be passing null. I'm not sure why you're not just using EL to get the tag argument in the tag. IIRC you can also define the expected type

Re: How to use s:optiontransferselect/

2010-11-06 Thread Li Ying
I read the source of optiontransferselect, it's template will include the JS file [/struts/optiontransferselect.js] automatically. The JS file included by head tag is [/struts/utils.js]. The is nothing relate to optiontransferselect in it. 2010/11/6 Dave Newton davelnew...@gmail.com: The

Re: How to use s:optiontransferselect/

2010-11-06 Thread Li Ying
Sorry, type error: The is nothing ... should be There is nothing ... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to use s:optiontransferselect/

2010-11-06 Thread Mead Lai
Appreciate all of you very much. Is the /struts/optiontransferselect.js included in the struts-core.jar? I am confused why the optiontransferselect.js was not automatically imported/generated into HTML page. I config the struts.theme = simple for entire project. Regards, Mead On Sat, Nov 6,

Re: How to use s:optiontransferselect/

2010-11-06 Thread Li Ying
The template of optiontransferselect has these code: #if !stack.findValue(#optiontransferselect_js_included)??#t/ script type=text/javascript src=@s.url value=/struts/optiontransferselect.js encode='false' includeParams='none'//script #assign temporaryVariable =

Re: Implmentation of RESfull ecache in S2-REST

2010-11-06 Thread Stefan Magnus Landrø
you will typically have to use something like axis or jersey to put / get cache entries from the ehcache server (instead of using the standard ehcache api) Stefan On Fri, Nov 5, 2010 at 6:41 AM, Frans Thamura fr...@meruvian.org wrote: hi all just got this

Re: Implmentation of RESfull ecache in S2-REST

2010-11-06 Thread Frans Thamura
I believe using jersey is create a rest outside struts2 rest and we cannt benefit using s2 /m/ -Original Message- From: Stefan Magnus Landrø stefan.lan...@gmail.com Date: Sat, 6 Nov 2010 21:41:07 To: Struts Users Mailing Listuser@struts.apache.org Reply-To: Struts Users Mailing List

Re: Setting css of a row

2010-11-06 Thread cellterry
OK, I think a possible way, which is, for example, the following, will show color or style if a record is cancelled or not. s:iterator value=pos status=st s:if test=(pos[#st.index].statusmaskCancel)!=0 tr s:if test=#st.oddclass=data_cancelled0/s:if