Facelets

2007-03-21 Thread Rikard
Hi! was reding about the JSF built in support in S2 (jsfstack) and was wondering if that also includes facelets? i dont whant to use the shale. Or could one build a facelets interceptor ontop the jsfstack ? because Facelets is so dam good :) Thanks! /Rikard -- View this message in context:

Passing arguments key dynamically in validation.xml

2007-03-21 Thread Prithivirajan Dhamodharan
Hi All, Is there any way to pass the argument value dynamically, say, field property=complianceGroupId depends=required msg name=required key=errors.required/ arg position=0 name=required key=label.testGroup resource=true

S:if question

2007-03-21 Thread King, Leon C
How do I perform string comparisons using the s:if tag? I'm trying to compare a static value of the Action Class to a form value. s:if test=resultsToDisplay == @[EMAIL PROTECTED] Thanks, Leon

Issue with DispatchAction when configuring with multiple Form beans

2007-03-21 Thread rajan
Hi I am using DispatchAction to do similar actions. As per the requirement i have to use two different forms but similar actions. So added individual methods in my action class for each type of form beans. This is my sample config.xml form-beans form-bean name=SearchForm

Re: [s2] Possibility to hide input fields if not empty?

2007-03-21 Thread Piero Sartini
Thanks, this will work. But I was not specific enough. If there is a way to use the Validators for this task, that would be really handy (if valid then do not display). Am Dienstag, 20. März 2007 schrieb joey: Just use condition tag to hide your fields,like this: s:if

Re: [s2] Possibility to hide input fields if not empty?

2007-03-21 Thread Angelo zerr
Hi, if you want you can see http://formview.sourceforge.net/. FormView can manage your case and other. It works with Struts 1.x or without Struts. Regards Angelo 2007/3/21, Piero Sartini [EMAIL PROTECTED]: Thanks, this will work. But I was not specific enough. If there is a way to use the

Re: [s2] Possibility to hide input fields if not empty?

2007-03-21 Thread Dave Newton
--- Angelo zerr [EMAIL PROTECTED] wrote: if you want you can see http://formview.sourceforge.net/. FormView can manage your case and other. It works with Struts 1.x or without Struts. But not 2.0, which is what the question was? d,

Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my struts-config I have the following line message-resources key=messages

Re: Validator question Struts 1.2.9

2007-03-21 Thread Nuwan Chandrasoma
make your message resource as the defautl one, dont put any key just add the entry message-resources parameter=MessageResources / in struts-config and see., Thanks Regards, Nuwan. - Original Message - From: Dilip Ladhani [EMAIL PROTECTED] To: user@struts.apache.org Sent:

Re: ModelDriven Action

2007-03-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Does S2 limitthe depth to which Action Domain objects can be populated? Not as far as I know... I have three-deep fields that work. I *may* (haven't checked in awhile) have left-over null-creation configs, but I don't know if they're (still?) necessary or not.

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
Thanks for the reply. However, after doing that I get the error Unhandled exception thrown during validation: No message resources found for bundle: messages java.lang.NullPointerException: No message resources found for bundle: messages Also, on various jsps, I would have to, I would have

Re: ModelDriven Action

2007-03-21 Thread Ted Husted
The point of ModelDriven is that we don't have to refer to the parent or model property. We can just refer to the property flat-out, as if it were a property of the Action class. In this case, it might be that the reference should be to child.property, rather than parent.child.property, since

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
On 3/21/07, Dilip Ladhani [EMAIL PROTECTED] wrote: I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my struts-config I have

Re: Validator question Struts 1.2.9

2007-03-21 Thread Niall Pemberton
On 3/21/07, Dilip Ladhani [EMAIL PROTECTED] wrote: Thanks for the reply. However, after doing that I get the error Unhandled exception thrown during validation: No message resources found for bundle: messages java.lang.NullPointerException: No message resources found for bundle: messages

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
Thanks, I figured it out. I made sure this was by default bundle. On 3/21/07, Niall Pemberton [EMAIL PROTECTED] wrote: On 3/21/07, Dilip Ladhani [EMAIL PROTECTED] wrote: I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can

[S2] - Ajax Theme on freemarker template. It is possible ?

2007-03-21 Thread Monttez
Hi all, Its is possible to use ajax tags into a freemarker page? It's not working for me.. The same code works fine in a jsp result type... (with s:url sintax..) @s.head theme=ajax debug=true / ... @s.url id=ajaxMenu value=getTreeMenu.action?decorate=false / @s.div theme=ajax

Book recommendations for performance tuning

2007-03-21 Thread Christopher Loschen
Hi all, I guess this is partially off-topic, but I've been asked to start looking at improving the performance of our application, and wanted to start reading up on things I should be looking for, techniques to improve performance, and so on. Our application has a pretty standard stack of

RE: Book recommendations for performance tuning

2007-03-21 Thread Asthana, Rahul
Chris, I think before going for performance tuning you would have to decide on two things- A Load Generator and a Performance Profiler. Then you generate load and profile the application to find out exactly which layer\section of code\network needs to be tuned\upgraded. Then you focus on tuning

Re: [s2] Confused about s:tree

2007-03-21 Thread Brian Thompson
In my case, I'm retrieving a specific data object from a persistent store and acting on it. However, the only reason I need the list of child nodes is for the s:tree menu, not in other places where I'll use that object, so I'm retrieving the children separately. Then again, even using this

[S2] Struts Showcase File Download

2007-03-21 Thread Brian Thompson
I'm trying to return a stream of binary data (like the image or .zip example on http://www.planetstruts.org/struts2-showcase/filedownload/index.jsp) from a Struts 2 action class, but I'm not sure how to configure my application to get Struts to write the data directly to the response without

RE: Book recommendations for performance tuning

2007-03-21 Thread Christopher Loschen
Good recommendation, thank you. We are proceeding on that front as well, as I should have mentioned. I think the plan is to use Optimize-It to do the profiling, though I've been trying out the TPTP modules for Eclipse as well and some other possibilities have also been floated. We've also got some

Re: [S2] Struts Showcase File Download

2007-03-21 Thread Brian Thompson
After looking in the *source code* of the Struts showcase, I got the idea to declare an action with a return type of stream and use a method like public InputStream retrieveImage() throws Exception { return ServletActionContext.getServletContext ().getResourceAsStream(images/403.jpg); }

[JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread temp temp
What is the advantage of declaring method abstract in a intreface ? for example difference between Intreface Test { public void test(); } and Intreface Test { public abstract void test(); } Thanks Regards Sairam

Re: [JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread Tamas Szabo
Hi, There is no difference. All methods of an interface are abstract and public by default. So, you could even type: interface Test { void test(); } and it will have the same exact effect as your examples. Tamas On 3/22/07, temp temp [EMAIL PROTECTED] wrote: What is the advantage of

RE: Book recommendations for performance tuning

2007-03-21 Thread Karr, David
One I like is Pro Java EE 5 Performance Management and Optimization, by Steven Haines. Note that Steven Haines is associated with Quest Software and Jprobe (and related products). Although the book uses some pictures from those products, it is not in any way a veiled ad for those products. In

Re: [JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread Paul Benedict
All methods in an interface are implicitly abstract. If you declare them abstract, you're just making it verbose. Some people don't even put public in interface methods since all interface methods are implicitly public too. Paul temp temp wrote: What is the advantage of declaring method