Yes it appeared everything is fine as per the following solution, but that is
not the case.
What happens is, This will work only for the portlet where user just
minimized. If user tries to minimize another portlet the previous one get
Expanded, It looks to me server is not detected the portlet
Hi!
I just tried, and the proposed solution works nicely in pluto, even
when a user minimizes another portlet. So it might be a container bug.
Try your portlets in a different container and see if the problem
persists, or attach a debugger and try to figure out what information
is set on the
Hi Adrian,
Yeah, that's like I am looking for. Thanks a lot!
Hubert
-Ursprüngliche Nachricht-
Von: Rios, Adrian [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 8. Juli 2007 19:42
An: Struts Users Mailing List
Betreff: RE: How suppress the HTML INPUT from Struts2 Combobox?
Hubert,
Not
I've got an ajax tabbedpanel with six tabs. When I click on the tabs in
rapid sequence, it often causes IE to crash.
It seems to happen if I click on a tab while one or two others are still
loading.
Some times IE locks up, and other times it gets the standard error message
Internet Explorer has
Hi all,
I use link to open a popup, in this popup i have a list of cars with radio
button.
So if the user choose a car, i want to do:
1-get the idcar and affect it to ActionForm.
2-close the popup.
3- refresh the parent window and show the car selected(if possible the id
car must be in a hidden).
OK. Maybe I'm expecting too much or haven't come across the right Struts
property but...
In the following snippet, I'm not expecting the 1st 'list' action to be
overridden by the 2nd. But that's what is happening.
package name=A/ extends=tiles-default
action name=list
Since you're using the servlet and not the listener, have you added the
servlet mapping like the following?
Easy to overlook!
servlet-mapping
servlet-nametiles/servlet-name
url-pattern/*/url-pattern
/servlet-mapping
The listener is a good (and
Hello!
I'm missing the textarea wrap attribute in struts 1.2.8. I can't use the
workaround with the hard coded textarea /textarea, because I need the value
of the textarea later on in the application.
I read about the possibility to extend existing tags - but I didn't found any
information
Well I found out what index is (index=count +1), but a need something that
tells me how much iterations are there before reaching the end of
interation.
Example:
Emplooyes: 2350 (I need to know this value before iterations)
Emplooyes data 1
Emplooyes data 2
.
Hi All,
I want to use the Struts autocompleter tag as mentioned below.
s:autocompleter theme=ajax href=%{json} name=state
showDownArrow=false loadMinimumCount=3 loadOnTextChange=true
notifyTopics=load/ It is working fine if I give the result type is
hardcoded JavaScript file.
But I don't
I have the same problem with a checkbox tag,
if a use the ccsStyle=color:Green to change the label color to green,
it doesn't work at run time and the label remains with a black color!
It's a serious problem. I think Hubert Hers wrote for the same thing.
Could someone help us!
Thanks!
I have a property that I cannot access while inside an s:iterator... yet I
can access it before and/or after the loop! It is as though the collection
I'm iterating over has the same property which is causing an overshadowing.
However, the collection does *not* contain the property! Is it
Yes,
Just try:
value=#parameters.yourproperty
and if you want to know why that works, check:
http://struts.apache.org/2.x/docs/ognl.html
Ezequiel
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 9 juillet 2007 13:44
À : Struts Users Mailing List
But it's a property on the Action!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks, Rene!
Someone might want to update the documentation to make this clearer.
The following document seems to indicate otherwise:
http://struts.apache.org/2.x/docs/writing-interceptors.html
Thread Safety
Interceptors must be thread-safe!
A Struts 2 Action instance is created for
Did you try asking on the Dojo forums? You'd probably have a better chance
there.
regards
musachy
On 7/9/07, Jason Wyatt [EMAIL PROTECTED] wrote:
I've got an ajax tabbedpanel with six tabs. When I click on the tabs in
rapid sequence, it often causes IE to crash.
It seems to happen if I click
You can build the json string instead of returning the hardcoded one, you
can use FreeMarker, JSP, Velocity, to generate it. You can also use the json
plugin:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Look at the examples in showcase, there is one that builds the json result
using
Maybe I am reading your question wrong, but I can't see why you would
want to do that... Struts2 will have to pick one or the other. Perhaps
maybe you are looking for the namespace attribute?
http://struts.apache.org/2.x/docs/namespace-configuration.html
-Wes
--
Discussion of Struts2, Spring,
Have you tryed #yourproperty ?
If that doesn't work, can you send your code ?
Ezequiel.
-Message d'origine-
De : Big Stick [mailto:[EMAIL PROTECTED]
Envoyé : lundi 9 juillet 2007 15:05
À : Struts Users Mailing List
Objet : RE: RE : Orthognal OGNL!
But it's a property on the Action!
According to the following page in the Struts 2 docs,
package inheritance only includes interceptor,
interceptor-stack, and action configurations.
http://struts.apache.org/2.0.8/docs/package-configuration.html
Is this true? I would like to know if
global-results, result-types, and
Anyone know what the name attribute of
exception-mapping tag in the Struts 2 configuration
file is used for?
The doc at the following page doesn't mention it.
http://struts.apache.org/2.0.8/docs/exception-configuration.html
-Bill
--- Big Stick [EMAIL PROTECTED] wrote:
But it's a property on the Action!
s:iterator.../ pushes each iteration onto the value
stack. So what's at the top then? Not the action (or
model), but each element of the iteration.
d.
I'm new to Spring and Struts2 and currently working on an existing
project(Spring 1.2.8+ struts+hibernate 3) which is upgrading to struts2.
Need to add OpenViewInSessionInterceptor to the project to enalbe the lazy
loaing in the presentation layor. I've searched the forum and didn't get the
If that's right then I've been wrong for a long time :). I think that
interceptor instances are reused between requests. On
DefaultActionProxy:prepare:
config = configuration.getRuntimeConfiguration().getActionConfig(namespace,
actionName);
that configuration is not instantiated on each
Uahhh,
thanks for pointing out this information, I was way to fast to reply on
the said question - I recalled it wrong. Indeed documentation is right
here, they need to be thread safe - sorry for causing misunderstanding
here.
Anyway, this does not answer the question if interceptor parameters
I can't really say about Spring 1.2.8 because I've only ever used 2.0, but
here's what I did:
in web.xml:
web-app
filter
filter-nameOSIVFilter/filter-name
filter-class
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
/filter-class
/filter
...
filter-mapping
Is there a way to redirect, send them to a different page, but keep
information in the request so the jsp its forwarded to can use
information passed in the request attributes?
Paul Benedict wrote:
Cary,
A redirect causes a second request. You're putting data in the first
request,
Thank you Toni for your example.
I'm just wondering about the OpenViewInSessionInterceptor. Don't know how to
configure it in struts2.
Thanks again!
Toni Lyytikäinen wrote:
I can't really say about Spring 1.2.8 because I've only ever used 2.0, but
here's what I did:
in web.xml:
Sorry, I must have read the post too quickly and assumed you were talking
about the filter, because I haven't really seen a working OSIV interceptor
for Struts 2. If you want to use an interceptor, you'll probably have to
write one yourself for Struts 2. I don't think the one in Spring can be
Cary, you are confusing attributes and parameters. Attributes are internal
data points about the request, while parameters are external data points. If
you want to retain data you have two choices:
1) Add parameters to the redirect
2) Store data in the session
Paul
On 7/9/07, Cary Ho [EMAIL
Can someone provide a definitive answer on this then? It is obviously a
key infrastructure and implementation issue.
Thank you!
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, July 09, 2007 11:30 AM
To: Struts Users Mailing List
Subject: Re: [S2]
Thank you a lot! Toni. That answer cleared my question.
Have you noticed there is Non-IoC version of OpenSessionInViewInterceptor in
the Apache Struts 2 Documents. Please click the below link:
http://struts.apache.org/2.x/docs/non-ioc-version-of-opensessioninviewinterceptor.html
I don't know
I took a look at that, but it's not actually written for Struts but for
WebWork 2.x and the AroundInterceptor class it extends is not included in
Struts 2. I don't know what that page is doing in Struts documentation,
since it won't even compile with vanilla Struts 2.
On 7/9/07, panpan [EMAIL
Hello!
I took the source code an implemented the missing attribute myself.
Kind regards,
Andreas Hartmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thank you very much Tony. I'll try to write my own interceptor.
Toni Lyytikäinen wrote:
I took a look at that, but it's not actually written for Struts but for
WebWork 2.x and the AroundInterceptor class it extends is not included in
Struts 2. I don't know what that page is doing in
I think you may be confusing Struts2 (S2) interceptors with Spring
Interceptors.
The two are not the same.
S2 interceptors provide some aop-like functionality by allowing code to
modify request processing in some fashion; however it's not truly based
around an aop standard ( i.e. aopallliance )
There is no searching up the stack beyond the top?
On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Big Stick [EMAIL PROTECTED] wrote:
But it's a property on the Action!
s:iterator.../ pushes each iteration onto the value
stack. So what's at the top then? Not the action (or
model), but
I am relatively new to Struts. I have a simple form submitting to an action.
The problem is http://./action_name.action is straight going into
execute method. It is not going into the get/set methods for form
parameters. Can someone please tell what is the common cause of such a
problem? I
Did you change the interceptor stack for this action?
(*Chris*)
On 7/9/07, Shilpa Kulkarni [EMAIL PROTECTED] wrote:
I am relatively new to Struts. I have a simple form submitting to an
action.
The problem is http://./action_name.action is straight going into
execute method. It is not
the easiest solution would be to s:set the property name you want to
reference with a different name
s:set value=myprop name=mynewname/
and then access it in your loop under the new name.
s:iterator ...
s:property value=#mynewname/
/s:iterator
stanlick wrote:
There is no searching up
Thank you cilquirm. I think i'm a little bit confused and the filter is the
one I needed.
There is one thing which is unclear to me. If I only apply the filter to the
new developed struts2 action, it will not affect the rest existed
application(struts1), right? I saw there are some side effect of
Seems like you should be able to say
s:property value=#action.myattr/
But since there's no getAction in the ActionContext, I doubt that will
work. Maybe it should be added?
(*Chris*)
On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:
the easiest solution would be to s:set the property name you
Assuming your S2 actions are 'pathed' differently ( i.e. s2 actions are
mapped to .action , while s1 actions are mapped to .do ), then specifying
the url pattern only for s2 actions ( /*.action ) will have the intended
effect.
As far as side effects go, it's really dependent on your application.
technically, if you knew the index of where the action was in your value
stack, you could use the index notation.
so you might want to try :
s:property value=[1].myattr/
assuming the action is the second root down.
but i do agree that'd it be nice to stuff the action into #action.
Chris
I am currently utilizing the Servlet-Config Interceptor in order to
manage HTTPSession attributes as advised in the following document:
http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.ht
ml
The document states that this is preferred and that:
Any changes
+1 for that :)
https://issues.apache.org/struts/browse/WW-2034
musachy
On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:
technically, if you knew the index of where the action was in your value
stack, you could use the index notation.
so you might want to try :
s:property value=[1].myattr/
Cilquirm. That's really helpful! Thans a lot!
I can understand the most part your post and I still have question for the
last sentense.
For those that you do, reattach them early on, and watch your transaction
boundaries.
The session is open, why do I need to reattach them? And could you
Thanks brother. This is what I wound up doing, but it sure seemed weird!
Why should properties available to a page somehow be made invisible while
looping?
Parent Id: s:property value=model.parentId / //works fine here!
s:set name=pid value=model.parentId scope=request/s:set //GOOFY!
TonyD wrote:
Well I found out what index is (index=count +1)
Bzzt. Index is a zero-based iteration count, count is a one-based
iteration count, so index+1=count.
but a need something that tells me how much iterations are there
before reaching the end of interation.
That has nothing to
panpan wrote:
The session is open, why do I need to reattach them?
You wouldn't need to if you loaded and discarded your objects in a single
request, but let's say you have objects that lived around longer than a
single request ( i.e., a User object in your http session ). You might
Hello:
Is there a good tutorial for the Tiles plugin
in struts 2?
I am not seeing anything that gives me enough
to move forward.
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for
That's great! I got pretty clear pictures now. Thanks again cilquirm.
cilquirm wrote:
panpan wrote:
The session is open, why do I need to reattach them?
You wouldn't need to if you loaded and discarded your objects in a single
request, but let's say you have objects that lived
Thanks for reply Chris. I am using defaultStack. So no change there.
Hi,
Bump...Nobody using the ParameterNameAware interface?
Any responses would be highly appreciated.
Thanks!
Gunnar
Gunnar Hillert wrote:
Hi,
I have a question regarding the ParametersInterceptor, specifically the
ParameterNameAware interface. Since Struts 2 is typically injecting the
Hi,
I think you can only have problems with parameter names that has
public getter/setter in you action class.
Il giorno 09/lug/07, alle ore 22:09, Gunnar Hillert ha scritto:
Hi,
Bump...Nobody using the ParameterNameAware interface?
Any responses would be highly appreciated.
Thanks!
The only other thing that comes to mind would be misspellings.
(*Chris*)
On 7/9/07, Shilpa Kulkarni [EMAIL PROTECTED] wrote:
Thanks for reply Chris. I am using defaultStack. So no change there.
It was not misspellings - but equally silly mistake. My set method signature
was wrong :( I was cross checking everything but that.
Glad you found it.
(*Chris*)
On 7/9/07, Shilpa Kulkarni [EMAIL PROTECTED] wrote:
It was not misspellings - but equally silly mistake. My set method
signature
was wrong :( I was cross checking everything but that.
TonyD wrote:
I have the same problem with a checkbox tag,
if a use the ccsStyle=color:Green to change the label color to green,
it doesn't work at run time and the label remains with a black color!
Is it generated by struts and ignored by the browser (if so, maybe
Green and green are not
You can try this,
set the theme of your form to css_xhtml .
If you have any css classe, you can just call them within form elements
like .e.g.
s:submit action=ABC cssClass=buttons /
s:textfield key=myText labelposition=left cssClass=textfield /
Leena
On 7/9/07, Dale Newfield [EMAIL
Hi,
Can anyone tell me the freemarker equivalent of this (in particular
the list with map literal syntax):
s:select
name=months
list=#{'01':'Jan', '02':'Feb'}
/
I've tried many, many different variations and I'm getting nowhere.
I do NOT understand the difference in attribute
Hello,
I am trying to configure my struts application to listen to request
without .action or .do
I think it has to do something with the struts.mapper.class but I cannot
seem to make it work, I have tried several approaches but I cannot get
rid of the .action or .do without mapping
The session object is wrapped by a SessionMap, so every time you do a put or
remove, the appropriate underlying method on the session is called.
So, in a nutshell, no, nothing to worry about.
Like most of struts2, it just works :-)
-a
Hoying, Ken-2 wrote:
I am currently utilizing the
--- [EMAIL PROTECTED] wrote:
... CRAZY!
... STACK!
d.
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us.
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
Is there a good tutorial for the Tiles plugin
in struts 2?
Not yet; I was going to do that but was waiting for
Tiles 2 to settle in a bit more then I got
sidetracked.
I am not seeing anything that gives me enough
to move forward.
At what point are
I doubt, the reason is, before struts 2, we developed
all portlets using struts-bridge, there the
functionality works fine same container, Due to this
reason I dont think this is a portal container bug.
It looks to me for some reason for previously
minimized portlets in render method it gives as
I always thought a stack implied levels! Am I strange to think maybe the stack
search should consider this capability?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- Big Stick [EMAIL PROTECTED] wrote:
I always thought a stack implied levels! Am I
strange to think maybe the stack search should
consider this capability?
I think you and Musachy have the right idea with an
#action (or whatever; I'd actually go for something
quicker to type) rather than a
The red colour doesn't show up in your email Hari, can you highlight the
problem lines in another way?
I normally use document.getElementById(name) which works in most browsers.
The other format document.ChallengeQuestionForm.year might not work in some
browsers.
Instead, give the year field
Hi all,
I've been developing Struts 2 webapp for nearly a year now and have a great
deal of experience with it. Personally, the architecture of Struts 2 is much
cleaner than its predecessor. However, recently I converted one of my Struts
2 pages into Servlet + JSP solution and it turns out that
If you want to write portable javascript, learn the language, or at
least learn what makes the language quirky. If you want to do that very
quickly, watch the videos referred to here:
http://jroller.com/page/TedHusted?entry=crockford_clips
-Dale
Dave:
Thank you for the response.
I am not sure how to tell a struts action to call
a tiles layout.
I added the tiles jars to my lib directory and
then I added the listener to my web.xml:
listener
listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class
/listener
Now,
climbingrose wrote:
The other thing I want to comment on is the use of Dojo as Ajax theme. I
don't have much experience with Dojo apart from a few hours playing around
with it. However, even with the latest version (0.9), Dojo just seems to be
to heavy weight for most purposes. I mean if you
Neil:
Your should extend package tiles-default and use tiles result type, as
following:
package name=mydefault namespace=/my extends=tiles-default
action name=top/Home
result name=success type=tilestiles.definition/result
/action
/package
Package tiles-default
Thanks Musachy, I'll try the Dojo forums.
Do you know if the tabbed panels are entirely third party, ie were they
incorporated into S2 without changes from an Ajax or Dojo project?
I was also wondering why would the Dojo forum would be more appropriate than
an Ajax forum?
Thanks a lot for your
75 matches
Mail list logo