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. class="data_cancelled0" class="data_cancelled1"> But if I want to compute

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ø Date: Sat, 6 Nov 2010 21:41:07 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Implmentation of RESfull ecache

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 wrote: > hi all > > just got this > > http://ehcache.org/documentation/cache_server.h

Re: How to use

2010-11-06 Thread Li Ying
The template of has these code: <#if !stack.findValue("#optiontransferselect_js_included")??><#t/> "> <#assign temporaryVariable = stack.setValue("#optiontransferselect_js_included", "true") /><#t/> These code should generate some HTML code which import the JS file. And, the JS

Re: How to use

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

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

2010-11-06 Thread Li Ying
I read the source of , it's template will include the JS file [/struts/optiontransferselect.js] automatically. The JS file included by tag is [/struts/utils.js]. The is nothing relate to in it. 2010/11/6 Dave Newton : > The JavaScript isn't being included. This is not an Ajax tag, and the s: >

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 typ

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" wrote: > InputConfig works as documented. I reccomend to use Li's suggestion > for inheritance matter. When yo

Re: How to use

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" wrote: >> > list="{'spring','hibernate'}" doubleName=""> > > > Looks like you missed the attribute [name] > > --

Re: How to use

2010-11-06 Thread Li Ying
> list="{'spring','hibernate'}" doubleName=""> Looks like you missed the attribute [name] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to use

2010-11-06 Thread Mead Lai
Hi Li, Thank you very much. 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) IndexAction_index.action:300Uncaught ReferenceE

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 : > > Dear all, > > I want to set a table row with a color retrieved from an action clas

Re: How to use

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 i

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 : > Hello, > > By looking at DefaultWorkflowInterceptor I saw an annota

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: 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. ... Regards, Mead

Re: How to use

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

Re: How to use

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 : > Hi All, > > I am now using tag with simple theme. > It shows two select-list fine, but if I click the button to move the items, > it d

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 similar.