Am Samstag, 14. Februar 2009 17:11:55 schrieb Frans Thamura:
i try use the non interceptor version, work well, but i find the
interceptor cannot work with JTA related injection
Why?
I am using S2 and Spring with JTA managed transaction too here and it works
fine (if spring is the object
Hi,
prg does work fine using the normal workflow.
I want to use this pattern with my exception mappings too and defined:
exception-mapping result=error exception=java.lang.Exception/exception-
mapping
result name=error type=redirect
param
Am Montag, 9. Februar 2009 14:05:41 schrieb Torsten Krah:
result name=error type=redirect
Hm this should read redirectAction.
And nvm, it works using redirectAction - argl, typo ...
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word
Am Freitag, 16. Januar 2009 18:13:49 schrieb dusty:
If you have the action can you use Reflection to step through the
properties and find the types that way?
I am using now BeanIntrospection + Parsing the failed Expression.
How can i get there without parsing the String and tokenizing the ognl
I wonder if someone faced this behavior before, wheter this is known or
wanted.
XWork ParametersInterceptor Code:
protected boolean isAccepted(String paramName) {
if (!this.acceptedParams.isEmpty()) {
for (Pattern pattern : acceptedParams) {
Matcher
Am Montag, 9. Februar 2009 21:48:33 schrieb Nils-Helge Garli Hegvik:
This should be handled by the default portlet interceptor stack. If it
doesn't, it's a bug...
Its a bug i guess, i need to use a Message Store Interceptor too, because
using PRG in portlets i lost my messages and errors
I want to customize the conversion error messages to be more special in cases
of wrong types.
Using a custom interceptor this is possible to do but lets say the map
contains an error for the field rule.date.
Thats the OGNL expression, telling me that getRule().setDate(Date a) failed,
because a
Hi.
Work ist still in progress i know to support jsr268 spec.
Does Struts2 Tags already support portlet:namespace/ feature?
If not i am really interested in how to handle this to make params interceptor
work - i guess stripping of the portlet:namespace / should all which have to
be done - maybe
Am Donnerstag, 27. November 2008 19:13:01 schrieb Nils-Helge Garli Hegvik:
The portlet namespace should be transparent from the portlet point of
view when getting request parameters. I've not had problems with this
when I have been testing.
Yeah thats right.
But from the jsp perspective, does
Hi some question abount the unknown handler:
The unknown handler gots injected looking at the code - but where do i
configure my own one which should be used - can't find the right place?
thx
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe
Hi. I need to programmatically create an PortletURL to include in an email.
Trying to use the PortletHelper to build the URL does not help because it does
fail with this exception:
RenderRequest cannot be obtained in event phase
RenderRequest request = PortletActionContext.getRenderRequest();
Am Friday 21 November 2008 13:57:26 schrieben Sie:
You can't. It's a limitation of the portlet spec.
Ok. Lets take this scenario:
User fill out some registration form (portlet) and want to receive a optin
email with a activation link.
How would this be done with portlets (spec v1)? Is it not
Am Freitag, 21. November 2008 14:16:31 schrieb Nils-Helge Garli Hegvik:
Yes, I would handle this outside the portlet. As you say, it's not
than uncommon, and it should be easily solved using a servlet.
I used buildResourceUrl on PortletUrlHelper to generate my servlet urls
handled by
Hi, I want to know which rows in my table (s:iterator) are dirty.
Is there any way to know (beside looking manually in the parameter map and
loading again db state + looking at old/new values before saving) which rows
have changed?
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Hi - got some problem with namespace and i don't see my error.
Global namespace is view in view mode (portlet).
Got some action which is in rules namespace called index.
Got another action called index too which is in namespace tag which got as
parent the /view one too.
1. /view/rules/index
2.
Am Freitag, 14. November 2008 12:07:17 schrieb Nils-Helge Garli Hegvik:
Did you try just /rules? It might be a bug, so if it doesn't work,
please file a JIRA issue.
Yeah did - that was the 3rd way:
s:url action=index namespace=/rules / renders
/view/tag/rules/index
I will go and file a
Am Freitag, 14. November 2008 12:12:08 schrieb Torsten Krah:
Nvm, no bug but correct behaviour which i've missed to understand until now.
Debugging is shows that the portlet modeNameSpace is prepended every time
(which is correct from a portlet perspective).
And that was my problem - i did
Am Mittwoch, 12. November 2008 schrieb Adam Lister:
I'm not seeing this red border either...
does anyone recall which theme provides this?
Afaik no theme does provide this, you have to write your own theme (actual for
this input field only) to do this - its really easy to do that.
On Friday 24 October 2008 09:57:18 Nils-Helge Garli Hegvik wrote:
If you can, I would suggest that
you re-organize your application so that every event (usually a post)
is followed by a redirect (using the redirect action result type).
That way, the RenderDirect action is never used.
Did what
On Friday 07 November 2008 07:03:56 Mead Lai wrote:
don't like the theme.
Thats what i like most - i can design the tag layout with minimal work, really
nice idea this theme thing.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe
Am Dienstag, 28. Oktober 2008 04:46:49 schrieb Ronaldo Rigoni ...:
Yes, I need that the container injected the instance of EJB in
Action automatically. Sorry for my english.
Tanks.
You may try the ejb struts plugin from googlecode /struts2 plugin page) - not
the solution you wan't, but you
Am Montag, 27. Oktober 2008 schrieb Phillips, Bruce A:
Any help would be greatly appreciated.
Use the stream Result of Struts2 and construct your PDF with Jasper without
the plugin.
Take a look at the examples of JR (sourcecode included in the JR download) -
there is a good example with XML
Am Freitag, 24. Oktober 2008 07:35:18 schrieben Sie:
Is this what you're looking for?
http://struts.apache.org/2.0.12/docs/interceptors.html#Interceptors-Interce
ptorParameterOverriding
Nils-H
That won't work.
I need to overwrite the defaultStack in the defaultPortlet Interceptor
Stack -
Am Freitag, 24. Oktober 2008 09:57:18 schrieben Sie:
If you can, I would suggest that
you re-organize your application so that every event (usually a post)
is followed by a redirect (using the redirect action result type).
I still can but i don't see how it would work.
If i use redirectAction
Am Freitag, 24. Oktober 2008 11:09:43 schrieb Torsten Krah:
PortletActionContext.getActionRequest().getPortletSession()
Some more thoughts about this.
I think this is a design error in struts2.
public static ActionRequest getActionRequest() {
if (!isEvent()) {
throw new
Nvm, forget what i said - there it is:
getRequest() instead of using getActionRequest ... thanks Nils pointing this
to me, i think this should work.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out
Some more questions here.
I need to know when rendering is done, because i want to remove some session
attribute.
I can't do this in my action, because a servlet is used to render some content
based on this session attribute.
After rendering i can remove it safely, but how to know this?
Spring
I am using my own Stack and wonder why parameter setting fails although i did
exclude them:
interceptor-ref name=params
param
name=excludeParamsdojo\..*,d-.*-(p|s|o),^struts\..*/param
Am Mittwoch, 8. Oktober 2008 10:48:50 schrieb Nils-Helge Garli Hegvik:
It's not directly supported (using action and namespace), but if I
remember correctly you can use the value attribute to generate a
regular non-portlet url.
I guess did find some bug.
I want to generate a regular servlet
Am Dienstag, 21. Oktober 2008 16:11:54 schrieb Torsten Krah:
s:url id=pdfurl value=/view/pdfaction.action
s:param name=p1 value=20/s:param
/s:url
And additionally whats not working is something like this:
http://struts.apache.org/2.0.11.2/struts2-core/apidocs/org/apache/struts2
https://issues.apache.org/struts/browse/WW-2846
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to destroy Microsoft. That will just be a
completely unintentional side effect.
-- Linus
Am Dienstag, 21. Oktober 2008 17:46:41 schrieb bakann:
Did you find an example ?
I think it is not working.
It is working.
I am using 2.0.11.2 with portlets. I am using some field validators and
configured validators.xml and my *.xml for the actions and validation
triggers fine.
--
Bitte
Am Dienstag, 21. Oktober 2008 18:20:09 schrieb Rabin Aryal:
Does anybody know what might cause it?
You are undeploying your app - according to your stacktrace.
I am getting this error too, but not reproducable - sometimes it undeploys
without those exception, sometimes not.
Additionally i am
Hi.
You can configure the action to set the result type to e.g. plain text (
http://struts.apache.org/2.x/docs/result-types.html).
How to tell the action, its content type is text/html?
I am calling my action
action name=registerStatic class=com.opensymphony.xwork2.ActionSupport
result
Am Freitag, 17. Oktober 2008 15:33:24 schrieb Dave Newton:
AFAIK it is; I've never had to set the content type.
I am running my struts2 war in Pluto 1.1.6 (Tomcat 5.5.x) and Liferay 5.1.x
(JBoss 4).
Portlet Actions are working fine (because the container sets the stuff).
But running Actions
Am Freitag, 17. Oktober 2008 14:57:23 schrieb Torsten Krah:
How to tell the action, its content type is text/html?
Answering to myself - although i am confused that this is not the default when
delivering jsps:
... extends ActionSupport implements ServletResponseAware
Am Freitag, 17. Oktober 2008 15:53:03 schrieb Pierre Thibaudeau:
Suggestions?
Yes but more to your question.
Instead of the uri, the action name, method and namespace called would be
better.
In this way the same can be applied to portlets too. So i would like to
enhance your original thread
Am Freitag, 17. Oktober 2008 15:22:43 schrieb Adam Lister:
Am I missing something?
Write your own one which does that and add it to your stack.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to
Am Freitag, 17. Oktober 2008 16:18:27 schrieb Martin Gainty:
you can configure fileUpload Interceptor to allow these predefined types
Its not a upload problem. I am delivering a simple jsp page with more or less
static html and there is no content type set.
I don't want a method at the
Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah:
can anybody gives idea
Make a custom theme for your tag you want to get a custom border and add your
css definition there.
Another solution would be, to use s:if and look in the fielderror List for a
failure for your field and if
Hi.
Is it possible with struts stable (2.0.11.2) - afaik there is no
portletUrlType resource there - to render images or other binary content?
At the moment i am using the workaround to configure the FilterDispatcher
(which got this annoying shutdown bug ...) and using the s:url value= /
hack.
Hi.
I've got a table where every tr /tr line needs to be a new button group
(using custom template to remove label and add td).
But there is no attribute a s:radio to specify the group which should be used.
How does struts2 support radio button groups?
smime.p7s
Description: S/MIME
Hi, i've got a simple JSP displaying some i18n text:
s:form method=post namespace=rules action=index
s:text name=rule.name/
s:submit method=save cssClass=bg07 title=%{getText('button.save')}
value=%{getText('button.save')} /
/s:form
struts.xml:
package name=rules extends=view
Using s:checkbox id=active name=currentRule.active /
where my currentRule bean gots a boolean active with getter + setter.
Setting, unsetting works but i am still getting this error:
17:24:55,198 ERROR [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
ParametersInterceptor -
Am Freitag, 10. Oktober 2008 17:37:44 schrieb Dave Newton:
Do you have the checkbox interceptor in your stack? Is it before your
params interceptor?
I am using the included paramsPrepareParamsStack.
There the first params interceptor is defined before the checkbox one and
after the second
Am Mittwoch, 8. Oktober 2008 20:27:40 schrieb Gabriel Belingueres:
You can do it by hand though:
Thx for this hint, should habe seen that myself. Thats a good idea to do stuff
with s:if and s:else myself. thx.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe
Hi.
I am iterating over a list like this:
s:iterator value=mylist status=status id=list
/s:iterator
which works.
Additionally i've got a Map where the key is the List and the value is another
list.
s:iterator value=mylist status=status id=list
s:iterator value=mymap.[0] id=listinmap
Am Donnerstag, 9. Oktober 2008 16:04:27 schrieben Sie:
s:iterator value=myMap
s:iterator id=elementInList value=key
s:property value=#elementInList/
br/
/s:iterator
/s:iterator
But here you iterate through a map (order does not matter) and take the key,
which is the
Hi,
i wonder whats the best way to write back values taken from a Map or List.
Lets take this for example:
s:iterator value=listofsets status=status id=set
s:iterator value=#set.rules id=setrules
s:textfield name=rule_%{#set.id}_%{id} value=%{current} /
Am Donnerstag, 9. Oktober 2008 18:17:57 schrieb Dave Newton:
Use Map/array notation in the field name.
http://struts.apache.org/2.x/docs/type-conversion.html
Dave
Can this be stacked?
My Action got a List of MyBean and in MyBean there is a List of MySecondBean
from which the value is taken.
Am Donnerstag, 9. Oktober 2008 18:46:45 schrieb Adam Lister:
I've also heard that there is a generics-based type converter that might
solve this assuming you properly annotate the lists?
I'am using typed lists, so @Element should not be needed, shouldn't it?
What causing me headaches is that i
Am Donnerstag, 9. Oktober 2008 19:20:55 schrieb Adam Lister:
Whoa, I just noticed in the docs where you have pointed out, it says NOT
to use the [] syntax, but to used (). I've always used the [] syntax,
I'm on struts 2.0.11. Can anyone clear that up? The bracket syntax has
always worked
Hi,
validation is easy when you know how your field is named:
http://struts.apache.org/2.x/docs/validation.html
But how its done if you don't know it exactly.
E.g. this one:
s:textfield name=ruleSets[%{#status.index}].rules[%{#rulesStat.index}] /
You get something like:
Hi.
I want to use servlets to do some tasks called from a portlet.
I wonder how i can tell the s:url Tag to generate a servlet URL (dispatched by
the FilterDispatcher) instead of an PortletURL?
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe
Am Mittwoch, 8. Oktober 2008 11:46:48 schrieb Nils-Helge Garli Hegvik:
Feel free to register an improvment
request in JIRA.
https://issues.apache.org/struts/browse/WW-2832
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe
Am Mittwoch, 8. Oktober 2008 10:48:50 schrieben Sie:
It's not directly supported (using action and namespace), but if I
remember correctly you can use the value attribute to generate a
regular non-portlet url.
To bad its not supported via action and namespace.
Using s:url value attribute with
Hi.
I don't want to use the xhtml theme because of the table layout it produces,
the simple is enough.
However, simple does not render the validation errors or messages.
Wheres the glue to do so with the simple theme? Did not find any information
about this yet which helps me, to render those
Hi,
maybe a little bit OT but maybe its struts related, don't know yet.
I've got two portlets written with struts2 2.0.11.2.
I've create a page and did both of them onto it.
Lets say Portlet 1 got Step 1 and Step 2 and Portlet 2 too.
Pluto:
I click on the button to go to Step 2 of Portlet 1.
Hi,
I want to use the namespace feature of struts2 actions in a portal/portlet
environment.
Using s:url like this works (like shown in the struts2 delivered testcases):
s:form action=MasterControl method=POST
a href=s:url portletUrlType=action namespace=mw action=/mvc/stopWork
/s:urlTest/a
Am Montag, 6. Oktober 2008 10:38:36 schrieben Sie:
Can you store the url with an id an use it as an expression in the
action attribute of the submit tag?
This works using a html link with s:url and %{myactionurl}.
However the form does only work in this form (like it should):
s:form
Am Freitag, 15. August 2008 08:11:42 schrieb Nils-Helge Garli Hegvik:
I guess that depends on what you're trying to achieve. Interceptors
are typically used for before/after functionality.
I want to intercept the dispatching of the Render and Action phase of the
portlet, to inject
Am Freitag, 15. August 2008 00:22:01 schrieb Stephan Schröder:
i don't know which interceptors are on your default stack. Does 'workflow'
come after 'validation'?
Look into struts-default.xml in the struts-2.x.jar file, there you can see all
stacks defined with their interceptors.
--
Bitte
Hi.
I am wondering if it is possible to hook into the render and action phase of
the portlet execution?
If there is not yet such a possibility, where to look for to do this
(something like extending dispatcher portlet ... anything else).
--
Bitte senden Sie mir keine Word- oder
Am Mittwoch, 13. August 2008 09:47:07 schrieb Nils-Helge Garli Hegvik:
Which server are you running?
This does happen on JBoss 4.0.5 with Tomcat 5.5.20 (Liferay 5.x)
And this does happen too on Pluto 1.1.5 with Tomcat 6.0.13.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe
Deploying a struts2 example app to liferay (5.1.1) i am facing this error
output:
13:07:39,410 INFO [STDOUT] 13:07:39,410 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor]
ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'struts.portlet.action' on
Undeploying a struts2 webapp and deregister the portlets does result in this
exception:
8:22:26,869 ERROR [MainServlet] java.lang.IllegalStateException: The
configuration manager shouldn't be null
java.lang.IllegalStateException: The configuration manager shouldn't be null
at
Hi.
I am implementing Preparable Interface to prefill my form.
But prepare gets called before the setter with the id needed is called.
Paramaters should be set first (before prepare) call, shouldn't it?
Is this a known bug - or did i missed something (using struts 2.0.11.2).
--
Bitte senden Sie
nvm, did find the anwer myself, i need to use the paramsPrepareParamsStack
interceptor stack instead of the default one.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to destroy Microsoft. That
Hi,
there are 2 known implemeting classes yet, one for Servlet and one for
Portlets.
I want to provide my own implementation of PricipalProxy.
Whats missing to me, where is the glue to my webapp, how do i announce my own
implemetation to be used?
thx
--
Bitte senden Sie mir keine Word- oder
Hi,
i am working on portlets and wanted to get the struts sample mentioned
working.
It does work so far (changes to web.xml + dependencies) and it runs with pluto
1.1.5 (tomcat 6.0.16).
However, i can't get the validation example working - reading the docs it
should do - but it won't.
I am not
nvm - works now, was a packaging issue, the xml file was not in the proper
location.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to destroy Microsoft. That will just be a
completely
Hi get a problem with the caption parameter of this example, it is sent and
found by the MultiPartRequest Handler, but it is not set by the
ParametersInterceptor; look at the stacktrace:
18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Found item upload
Am Dienstag, 5. August 2008 18:18:51 schrieb Torsten Krah:
Does look like a bug, is it?
https://issues.apache.org/struts/browse/WW-2464
May this be related to this bug?
Can anyone tell me what is/was the fix? Can i use the latestet GA release and
get this working (without patching)?
--
Bitte
73 matches
Mail list logo