Author Login
Post Reply
user Digest 23 Aug 2010 11:38:53 -0000 Issue 9149
Topics (messages 207265 through 207270):
Site slowing down...
207265 by: Dave Newton
207266 by: Dave Newton
Portlet problem
207267 by: Vinicius Ferraz
207268 by: Dave Newton
207270 by: Vinicius Ferraz
Re: Ajax support for Struts 2.2.1
207269 by: Matthew Barrett
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_207265.ezm (zipped)~11:30-11:45 EDT. Still comes up eventually.

Attachment:
user_207266.ezm (zipped)This, of course, was intended for a different mailing list starting with
"st".
Sorry!
On Sat, Aug 21, 2010 at 11:49 AM, Dave Newton <davelnewton@(protected):
> ~11:30-11:45 EDT. Still comes up eventually.

Attachment:
user_207267.ezm (zipped)Hi, Im using struts2 and eXo.
My JSP contains one form that submit to my action as follow:
<%@(protected)"* %>
<link rel=*"stylesheet"* type=*"text/css"* href="<s:url value=*
"/styles/styles.css"*/>">
<H2>Input your name</H2>
<s:form action=*"form-example"* method=*"POST"* portletMode=*"view"*>
<s:textfield label=*"First name"* name=*"firstName"*/>
<s:textfield label=*"Last name"* name=*"lastName"*/>
<s:submit value=*"Submit the form"*/>
</s:form>
Im using annotation (struts 2.2.1)
@Results ({
@Result (name=FormExampleAction.*INPUT*, location=
"/WEB-INF/view/formExampleInputValidation.jsp"),
@Result (name=FormExampleAction.*SUCCESS*, location=
"/WEB-INF/view/formExample.jsp")
})
After submit, throw a IllegalStateException on method isCommitted:
IllegalStateException("Not
allowed in event phase")
Whats wrong? thanks
Vinícius Ferraz Campos Florentino

Attachment:
user_207268.ezm (zipped)Do you have a complete stack trace? Is this new behavior under S2.2.1?
Thanks,
Dave
On Sat, Aug 21, 2010 at 5:51 PM, Vinicius Ferraz
<vinicius.ferraz@(protected):
> Hi, Im using struts2 and eXo.
>
> My JSP contains one form that submit to my action as follow:
>
> <%@(protected)"* %>
>
> <link rel=*"stylesheet"* type=*"text/css"* href="<s:url value=*
> "/styles/styles.css"*/>">
>
> <H2>Input your name</H2>
>
> <s:form action=*"form-example"* method=*"POST"* portletMode=*"view"*>
>
> <s:textfield label=*"First name"* name=*"firstName"*/>
>
> <s:textfield label=*"Last name"* name=*"lastName"*/>
>
> <s:submit value=*"Submit the form"*/>
>
> </s:form>
>
>
>
> Im using annotation (struts 2.2.1)
>
>
> @Results ({
>
>
>
> @Result (name=FormExampleAction.*INPUT*, location=
> "/WEB-INF/view/formExampleInputValidation.jsp"),
>
> @Result (name=FormExampleAction.*SUCCESS*, location=
> "/WEB-INF/view/formExample.jsp")
>
>
>
>
>
> })
>
>
> After submit, throw a IllegalStateException on method isCommitted:
> IllegalStateException("Not
> allowed in event phase")
>
>
>
> Whats wrong? thanks
>
>
> Vinícius Ferraz Campos Florentino
>

Attachment:
user_207270.ezm (zipped)It is possible develop portlets with struts using other versions. I just
downloaded 2.2.1.
Struts 2 src contains examples about that. Incluind eXo plataform.
The original code runned 100%, but when I put the convention plugin jar and
put the @result annotation, the error ocurres.
After I send the stack trace.
Vinícius Ferraz Campos Florentino
On Sun, Aug 22, 2010 at 12:44 AM, Dave Newton <davelnewton@(protected):
> Do you have a complete stack trace? Is this new behavior under S2.2.1?
>
> Thanks,
> Dave
>
> On Sat, Aug 21, 2010 at 5:51 PM, Vinicius Ferraz
> <vinicius.ferraz@(protected):
>
> > Hi, Im using struts2 and eXo.
> >
> > My JSP contains one form that submit to my action as follow:
> >
> > <%@(protected)"* %>
> >
> > <link rel=*"stylesheet"* type=*"text/css"* href="<s:url value=*
> > "/styles/styles.css"*/>">
> >
> > <H2>Input your name</H2>
> >
> > <s:form action=*"form-example"* method=*"POST"* portletMode=*"view"*>
> >
> > <s:textfield label=*"First name"* name=*"firstName"*/>
> >
> > <s:textfield label=*"Last name"* name=*"lastName"*/>
> >
> > <s:submit value=*"Submit the form"*/>
> >
> > </s:form>
> >
> >
> >
> > Im using annotation (struts 2.2.1)
> >
> >
> > @Results ({
> >
> >
> >
> > @Result (name=FormExampleAction.*INPUT*, location=
> > "/WEB-INF/view/formExampleInputValidation.jsp"),
> >
> > @Result (name=FormExampleAction.*SUCCESS*, location=
> > "/WEB-INF/view/formExample.jsp")
> >
> >
> >
> >
> >
> > })
> >
> >
> > After submit, throw a IllegalStateException on method isCommitted:
> > IllegalStateException("Not
> > allowed in event phase")
> >
> >
> >
> > Whats wrong? thanks
> >
> >
> > Vinícius Ferraz Campos Florentino
> >
>

Attachment:
user_207269.ezm (zipped)A massive thanks to everyone's response.
I think we may try implementing the latest Dojo as we now have some
experience with this although I will have a look at the jQuery plug-in as I
have heard some good things about that.
Kindest regards
Matt.
----- Original Message -----
From: "Dave Newton" <davelnewton@(protected)>
To: "Struts Users Mailing List" <user@(protected)"
<injenuityltd@(protected)>
Sent: Saturday, August 21, 2010 12:18 AM
Subject: Re: Ajax support for Struts 2.2.1
> On Fri, Aug 20, 2010 at 1:39 AM, Matthew Barrett wrote:
>
>> Has anyone tried using the full Dojo within Struts, rather than just the
>> historic built in tag libraries.
>>
>
> Sure. It's just like using anything else without tag support; you use it
> as
> you would with any back end system. And personally, for all but the
> *completely* trivial cases, there's almost no advantage to using a
> tag-based
> library since you have to write the JavaScript either way.
>
> Dave
>