RE: Struts 2, Comet WebSockets

2010-06-29 Thread RogerV
I know that Tomcat supports Comet. I was wondering if I had to do anything different in Struts to be able to use Comet. Are you saying that by simply enabling Comet in Tomcat, or using any other Comet enabled servlet container, Struts will *just* work? Regards -- View this message in context:

Re: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Lukasz Lenart
2010/6/29 Greg Stasica gstas...@googlemail.com: 2. get the MyBean object in getModel() method but i don't think this method should do any dao/business operations You can always use Preparable interface Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010

RE: Creating Sub-Domains from Struts 2 application

2010-06-29 Thread Gustavo Felisberto
Hello Amol, This does not seem to be 100% struts related. If you want gustavo.domain.com to exist you either have to create the sub-domain (and how you do that really depends on the DNS server being used) or you can have a record like: *.domain.com 192.168.1.1 In this case all requests will be

Re: Creating Sub-Domains from Struts 2 application

2010-06-29 Thread Amol Ghotankar
Dear List member, I understand this is not a single struts issue. It is combination of many, What i want is the application to create sub-domain for each users automatically like the site https://username.tactilecrm.com/welcome/ or http://tactilecrm.com/ In this site you register for free

convention plugin requires setting @Result explicitly

2010-06-29 Thread Jake Vang
i have an Action class in the package com.company.web.struts.actions.admin.LoginAction. inside LoginAction, i use Annotation to specify the Action (i.e. @Action(value=/login) on a method. according to the documentation at, http://struts.apache.org/2.1.8.1/docs/convention-plugin.html, this should

Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
hi, the scenario is as follow:1 1. class EditMyBeanAction implements Model... 2. url mapping calls edit method on the EditMyBeanAction 3. the result should be that once edit method returns (it loads MyBean object from the database) MyBean should be displayed on the jsp the problem is that it

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Rene Gielen
Hi Greg, the thing about ModelDriven is that the model object gets pushed on the value stack _before_ your action method is executed. To initialize the model object before the ModelDrivenInterceptor comes into play, just implement Preparable and do your initialization in prepare() (as Lukasz

RE: Struts time picker does not render in IE7/IE8

2010-06-29 Thread john . varghese
Hi friendsany suggesstions? Regards John -Original Message- From: john.vargh...@smartonline.com Sent: Monday, June 28, 2010 12:41pm To: user@struts.apache.org Subject: Struts time picker does not render ihn IE7/IE8 Hi All, I am using struts version 2.1.8.1 and below is a test code

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Dale Newfield
On 6/29/10 9:03 AM, john.vargh...@smartonline.com wrote: Hi friendsany suggesstions? My suggestion is don't use dojo. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: Struts time picker does not render ihn IE7/IE8

2010-06-29 Thread Johannes Geppert
Sorry I don't have a solution for your problem, but I know that the Dojo Plugin is deprecated and out of support. Code Dojo by hand or use a other plugin like Struts2 jQuery Plugin. http://code.google.com/p/struts2-jquery

Passing Value through Radio Buttons in struts

2010-06-29 Thread akshay.ramani
Hi, I have a bit of a problem and would appreciate some help! I am creating a page that takes in a name and a text and runs an algo on the text and then asks for user feedback. I use radio Buttons to ask for the feedback (Positive or Negative) Therein lies the catch.. I am not able to pass the

Re: convention plugin requires setting @Result explicitly

2010-06-29 Thread Jake Vang
i've been reading the doc over and over. and something is not working. according to the doc, you can specify the Namespace and ResultPath in the package-info.java file. @Namespace(/admin) package my.package theoretically, all action class under this package (just this package and no

Re: Nested Iterator Problem

2010-06-29 Thread Chris Miles
Is there anything else in the logging I can enable to try and find out why this is not working? It is possibly an expression related issue? Would it be possible in the first iterator to assign the list to another completely seperate object to iterator? Or another solution? I have tried every

Re: Page composition strategy

2010-06-29 Thread Dale Newfield
On 6/26/10 4:26 AM, Paweł Wielgus wrote: as a long time tiles user it would be very interesting for me to read about some specific problem that can be easily solved in sitemesh and hard or impossible to solve in tiles. One thing that's difficult to get right if you have to generate the page

Re: Page composition strategy

2010-06-29 Thread Chris Pratt
Yup, all that is possible with Tiles, especially with the new wildcard support in 2.1+. We had the head modification stuff working well in Tiles 2.0 and were able to have separate layouts for mobile vs desktop by using the new wildcard support. I'm in the early stages of learning sitemesh, so I

Re: Page composition strategy

2010-06-29 Thread Dale Newfield
On 6/29/10 6:23 PM, Chris Pratt wrote: I think the decision really comes down to which model you like better. No argument. I'm mainly using sitemesh with this project because I jump started it with appfuse, and that's what it used :-) -Dale

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
hi, thanks for your reply but this didn't seem like solve my problem entirely as PreparableInterceptor gets called before ParameterInterceptor. The upshot is that i didn't have an access to my parameters which drive prepare method. Nevertheless i found that probably the easiest solution here is

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Struts Two
What is meant is do not use struts dojo plugin. However, you can use dojo framework (which is a great framework) with struts 2 - Original Message From: Dale Newfield d...@newfield.org To: Struts Users Mailing List user@struts.apache.org Cc: john.vargh...@smartonline.com Sent: Tue,

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Stephen Ince
The struts2 dojo plugin is way behind the dojo release. I use the dojo frame all the time with struts2. The dojo frame work is at 1.4.and the struts2 dojo plugin is at .4. Just use the dojo 1.4 framework directly. s:textfield name=time dojoType=dijit.form.TimeTextBox value=now