Re: Tiles in 1.3.9

2008-04-04 Thread Antonio Petrelli
2008/4/4, balaji.m.cs [EMAIL PROTECTED]: java.lang.IllegalArgumentException: path must begin with a / What's the path that you are calling? Antonio

Re: [S2] Struts with Web Services

2008-04-04 Thread Lukasz Lenart
http://www.ja-sig.org/products/cas/ -Wes Do you have some experience with that? It looks quite interesting ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Tiles in 1.3.9

2008-04-04 Thread Lukasz Lenart
Hi, struts-config action-mappings action path=/baselayout forward=.tiles-defs/ /action-mappings tiles-defs.xml definition name=.tiles-defs path=/jsp/baseLayout.jsp There is good practice to start Tiles definitions with dot - .tiles-defs I don't see ant

Re: Tiles in 1.3.9

2008-04-04 Thread Antonio Petrelli
2008/4/4, Lukasz Lenart [EMAIL PROTECTED]: Hi, struts-config action-mappings action path=/baselayout forward=.tiles-defs/ /action-mappings tiles-defs.xml definition name=.tiles-defs path=/jsp/baseLayout.jsp Good catch Lukasz! Now I remember

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-04 Thread Jonny Cavell
I use Maven, and if you look at struts 2.0.11.1's dependencies (http://www.mvnrepository.com/artifact/org.apache.struts/struts2-core/2.0.11.1) you'll see that it's Freemarker version 2.3.8 it depends on. I can't override this in Maven, even if I attempt to exclude it and force the latest version

RE: any struts 2 unit testers out there?

2008-04-04 Thread paulbrickell
Actually thats an interesting post. To my mind it doesn't demonstrate a solution. It demonstrates the problem. Here is why I think this. Struts 2 is just frankly brilliant for people doing test first development. The classes you create really are POJOs. There are no dependencies on any

Re: Tiles in 1.3.9

2008-04-04 Thread balaji.m.cs
i point the issue by myself. the main issue is i have not given the controller processorClass=org.apache.struts.action.TilesRequestProcessor bufferSize=4096 debug=0/ in struts-config.xml. after i give its working... thanks for giving me the best pratices on tiles... if u still find any issues

Re: Tiles in 1.3.9

2008-04-04 Thread Mihai Scripca
dont you think it would be better practice naming tiles like this: tile.def (*.def are like .jsp but virtual pages) and only class tiles should be named with dot first like this .class-name? i point the issue by myself. the main issue is i have not given the controller

Re: form within form

2008-04-04 Thread Ehteshamul Haque
I dont think so. Can you please tell why we need that? you can use lookup dispatch action if you want to chose action depending upon criterion. Thank you. Ehteshamul Haque You rock.

RE: any struts 2 unit testers out there?

2008-04-04 Thread paulbrickell
Actually thats an interesting post. To my mind it doesn't demonstrate a solution. It demonstrates the problem. Here is why I think this. Struts 2 is just frankly brilliant for people doing test first development. The classes you create really are POJOs. There are no dependencies on any

Re: Tiles in 1.3.9

2008-04-04 Thread Antonio Petrelli
2008/4/4, Mihai Scripca [EMAIL PROTECTED]: dont you think it would be better practice naming tiles like this: tile.def (*.def are like .jsp but virtual pages) and only class tiles should be named with dot first like this .class-name? Well, there is no guideline/best practice defined for

[OT] What do you code today?

2008-04-04 Thread Ted Husted
While outward facing web application get the most publicity, I know that most of us are heads-down on internally-facing applications designed for fellow employees to use over the corporate intranet. I'm trying to put together a list of the typical types of applications that enterprise developer

Re: struts.xml

2008-04-04 Thread Adam Hardy
I completely jumped the gun. My test was flawed and on fixing it, I found that struts was reloading its config on my dispatcher.init() call, and then again just before the request but without my config and so ignoring the configured Dispatch that I set! I tried the other approach but I can't

Re: Struts 2.1 TabbedPanel scenario

2008-04-04 Thread Shoaib Gauhar
It has definitely solved a big problem. Now, i can show the correct data of two tabs, submit them and have correct results. Actually, my case is very simple, as i told you that the two tabs will not be related, so, each tab will be submitted independently without needing each others data because

RE: any struts 2 unit testers out there?

2008-04-04 Thread Karr, David
And did you investigate using either of the common Java frameworks for Mock objects, jMock and EasyMock? -Original Message- From: paulbrickell [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 3:04 AM To: user@struts.apache.org Subject: RE: any struts 2 unit testers out there?

Re: any struts 2 unit testers out there?

2008-04-04 Thread Ian Roughley
Or look at the xwork / s2 test cases - there are some test classes in there that can help you. /Ian Karr, David wrote: And did you investigate using either of the common Java frameworks for Mock objects, jMock and EasyMock? -Original Message- From: paulbrickell [mailto:[EMAIL

Re: [OT] What do you code today?

2008-04-04 Thread Martin Gainty
Could you suggest a pattern which would most closely match the requirements for the typical workflow application? When I think of workflow I think of a uber-dispatcher who assigns work based on a)capabilities of the resource b)availability of the resource c)priority of product/service Any

Re: rrrrr...why my field returns null????

2008-04-04 Thread xianwinwin
I checked it on both IE7 and FireFox - no error on the js and the value is NULL any idea?!?! Laurie Harper wrote: If it works without theme set to ajax, it's probably a client-side issue. What browser are you using? Are there any Javascript errors reported? L. xianwinwin wrote:

Re: Connecting s:autocompleter and s:div

2008-04-04 Thread manishbel
Thanks for the response Musachy, The problem still persists. i went ahead and tried to follow one of the examples on struts showcase A div that will listen to events to refresh and start/stop autoupdate. the result was the same. I also tried by copying the whole example into my application.

Re: Connecting s:autocompleter and s:div

2008-04-04 Thread Musachy Barroso
Could you post a minimal example of your jsp? musachy On Fri, Apr 4, 2008 at 11:06 AM, manishbel [EMAIL PROTECTED] wrote: Thanks for the response Musachy, The problem still persists. i went ahead and tried to follow one of the examples on struts showcase A div that will listen to

Re: [OT] What do you code today?

2008-04-04 Thread Chris Pratt
I'm still working on externally facing applications. The company has a few different types of user that it supports (Members who receive services, Providers who provide the services, Brokers who sell the service, and Clients that pay for their members to receive services). Each of these audiences

Re: Struts 2 exception problem

2008-04-04 Thread jimski
Hi Oguzhan- We've run into the *exact* same problem. Our interceptor is returning error but that return value is not respected when the result is rendered. It makes me wonder what the value of returning the invocation result is in the first place... Just stepping through the code and

Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Hi, Struts 2 tags have value attribute where name of property is used to read the value from the bean. If the property is lets say xyz, tag looks for getXyz(). Is this possible to customize that so that instead of getXyz(), it looks for isXyz()? My boolean property has accessors which starts

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread Musachy Barroso
Struts 2(OGNL technically speaking) will call getX() or isX() if one of them exist, when y.x is evaluated. musachy On Fri, Apr 4, 2008 at 1:37 PM, akash agrawal [EMAIL PROTECTED] wrote: Hi, Struts 2 tags have value attribute where name of property is used to read the value from the bean.

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Here is my JSP snippet. isXyz() does not work for me. What am I doing incorrectly? s:set name=myBean value=myBeanObject/s:set s:checkbox name=xyz label=xyzLabel value=%{#myBean.xyz} required=true tooltip=xyzTooltip/ Thx. --- On Fri, 4/4/08, Musachy Barroso [EMAIL PROTECTED] wrote: From:

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
myBean is not null, There are other field which are not boolean and I do get them fine. Thx --- On Fri, 4/4/08, Musachy Barroso [EMAIL PROTECTED] wrote: From: Musachy Barroso [EMAIL PROTECTED] Subject: Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz() To: Struts Users

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 1:17 PM, akash agrawal [EMAIL PROTECTED] wrote: myBean is not null, There are other field which are not boolean and I do get them fine. Is it boolean, or Boolean? I've seen situations where I was hoping isX would return a reference to a Boolean (when reference with

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
David, It is a Boolean property but I still think it should work no matter whether it is boolean or Boolean. APIs I am using are not mine so I can't change the bean, but there are workaround I can put in although they aren't pretty. I was hoping something can be done on the framework (Struts2)

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 1:39 PM, akash agrawal [EMAIL PROTECTED] wrote: It is a Boolean property but I still think it should work no matter whether it is boolean or Boolean. APIs I am using are not mine so I can't change the bean, but there are workaround I can put in although they aren't

Re: [OT] What do you code today?

2008-04-04 Thread Frank W. Zammetti
Ted Husted wrote: I'm trying to put together a list of the typical types of applications that enterprise developer write in real life. My current main project, which has been my main project for about two years now, is an application that seeks to unite all the back-office applications in

Re: Struts 2 exception problem

2008-04-04 Thread Jim Krygowski
Hi Oguzhan- We've run into the *exact* same problem. Our interceptor is returning error but that return value is not respected when the result is rendered. It makes me wonder what the value of returning the invocation result is in the first place... Just stepping through the code and

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread Laurie Harper
David Durham, Jr. wrote: On Fri, Apr 4, 2008 at 1:39 PM, akash agrawal [EMAIL PROTECTED] wrote: It is a Boolean property but I still think it should work no matter whether it is boolean or Boolean. APIs I am using are not mine so I can't change the bean, but there are workaround I can put in

Re: s:radio issue

2008-04-04 Thread Laurie Harper
Niral Trivedi wrote: Hi Dave, Thanks for the reply. I've actually tried with #keepRemoveRadio as well but got same result. In fact, I got it working by putting john or doe as below for s:param property: s:param name=*Keep* value=%{'john}/ That makes sense, since value=john will try to

Re: any struts 2 unit testers out there?

2008-04-04 Thread Laurie Harper
As Ian says, the mock objects supplied by XWork may make this all a lot easier, but in any case all this is predicated on the fact that you're using ActionSupport's implementation of TextProvider which doesn't make provision for mocking at test time. I think it would make a great deal of sense

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-04 Thread Laurie Harper
Jonny Cavell wrote: I use Maven, and if you look at struts 2.0.11.1's dependencies (http://www.mvnrepository.com/artifact/org.apache.struts/struts2-core/2.0.11.1) you'll see that it's Freemarker version 2.3.8 it depends on. I can't 2.0.11.1 != 2.1.1 :-) override this in Maven, even if I

Re: [S2] Struts with Web Services

2008-04-04 Thread Wes Wannemacher
Production integration experience? No... I evaluated it and did a quick proof-of-concept on a project once. We ended up sticking with the in-house option, which wasn't bad, but it was an apache mod, so we periodically looked for alternatives because we were always tied to mod_jk or mod_proxy

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-04 Thread Dustin S.
The Maven dependency plugin may be useful to you as well. http://maven.apache.org/plugins/maven-dependency-plugin/index.html , specifically the dependency:tree goal. On Fri, Apr 4, 2008 at 3:27 PM, Laurie Harper [EMAIL PROTECTED] wrote: Jonny Cavell wrote: I use Maven, and if you look at