Hello,
I am very happy with the changes being made.
They really seem to help - on Firefox 2 :)
I can see much better propagation of events in cascaded
autocompleters, predefining seems to work on the simple test case that
I made.
But there are still problems, some of them seem to be very new.
I
Hello List,
I have a problem with Struts Tiles.
First I wrote all sub-page's for a very little Web shop.
Then i started with tiles and created a simple test layout.
Nothing special, but it works.
I have several normal pages, like the page katliste.jsp
I click the link to the related action:
Hello,
I have a older application running under Struts 1.24. I would like to
incorporate the Spring IOC for DAO to my database. Can this be done
with struts 1.24? Any links, information would be appreciated.
-
To unsubscribe,
Yes, it can. You can look at appfuse.dev.java.net to see how to do it.
And this is the steps (copied from appfuse):
- in web.xml:
context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/applicationContext-*.xml,/WEB-INF/security.xml/pa
ram-value
/context-param
You can
Hi,
I have some action [/namespace/edit.action] which cannot be called without ID.
In fact the ID parameter is needed under some conditions.
Therefore if I do not have ID when it is needed I add error message
and redirect to INPUT:
addActionError(getText(some.id.not.set));
return INPUT
Hi Dariusz
I need to update the documentation with this info, the thing is that for
each autocompleter, struts will create 2 fields, one for the text
entered, with the name ${name} and another for the key, with the name
${name}Key, we need both to remember the values if there is a
validation
I forgot to mention the postfix was _selected before, from the Dojo
widget, I changed it to Key to make it less cryptic, and it won't
change anymore.
musachy
Musachy Barroso wrote:
Hi Dariusz
I need to update the documentation with this info, the thing is that
for each autocompleter,
Hi Musachy,
I tried as you advised.
Works, no more exceptions and the values are set as expected.
But there is still some little problem with preloading.
Now I have properties
private String carMaker = AUDI;
private Integer carMakerKey = 354;
with hardcoded initial value, just for test.
I
Dariusz Wojtas wrote:
But If I open such page [the same values preloaded] and just click
somewhere in that autocompleter [no changes] and leave the field - the
value is lost.
Some event is generated that causes fresh reload of the field.
Submitted form shows both properties empty.
Are you
Hi,
These are excerpts from my JSP page:
s:url id=markaPojazdowURL value=/listy/markiPojazdow.action /
s:autocompleter name=carMaker
theme=ajax
href=%{markaPojazdowURL}
cssStyle=width: 240px;
dropdownHeight=200
can we see the
autoCompleter code
any relevant JS (setBeforeLoading,setAfterLoading)
Thx,
---
This e-mail message (including attachments, if any) is intended for the use of
the individual or entity to which it is addressed
Hi all,
This is probably a common question but have struggled to find an answer so
apologies if I have missed the obvious. Below is an example of issue:
I have a page that uses a single form to hold all the display data but can
perform the following multiple submit actions:
Create - create as a
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote:
This validates at the action mapping level so in the above case it validates
on update as well as create.
How do you validate just against the create submitaction of the
DispatchAction mapping?
I would suggest turning off the automatic
Hi there,
I would like to be able to programatically control weather I am doing
validation or not.
For example, I have validate=true in my struts-config file, but, I would
like to be
able to decide myself in code (in a Filter, or controller??) if the
validation should
actually be done.. How
Thanks Wendy,
Switching validation off in struts-config and invoking manually in each
method where required will work. This can be done as follows:
// validate
ActionMessages errors = form.validate(mapping,request);
if ( errors != null !errors.isEmpty() )
{
saveErrors(request, errors);
All,
I've been hunting around and can't seem to find the location of the
latest 2.0.2 bundled S2. I am continually redirected back to the 2.0.1
which I have. Can someone please point me in the right
direction/location?
Thanks!!
Christy Kudlac
From: Aleksandar Matijaca [EMAIL PROTECTED]
Hi there,
I would like to be able to programatically control weather I am doing
validation or not.
For example, I have validate=true in my struts-config file, but, I would
like to be
able to decide myself in code (in a Filter, or
Use a page field in your form (set this in your action class before
you call form.validate()) and set page=x in your validation.xml
file. The example below shows using a HTML hidden field page, which
is a different way to set this page variable.
All,
I successfully have S2 (2.0.1) and Tiles2 working. I'm looking at the
latest Tiles core source, and I see where some of the tld definitions
have changed since the snapshot I have that was bundled with S2. Where
are we at in Tiles2 stability? Are we still using snapshots or have we
gone
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote:
This should solve my problem as each submitaction that requires validation
validates the same set of data.
However this will not work if there are three methods create and update both
need to validate but each validate against a different set
On 12/28/06, Christy Kudlac [EMAIL PROTECTED] wrote:
I've been hunting around and can't seem to find the location of the
latest 2.0.2 bundled S2. I am continually redirected back to the 2.0.1
which I have. Can someone please point me in the right
direction/location?
That's because Struts
I just noticed that the parameters for the XSLT result type in the
javadocs are not those in the showcase example, or there may be some
that are missing. Has anyone worked on these lately?
/Ian
-
To unsubscribe, e-mail:
On 12/28/06, Martin Gainty [EMAIL PROTECTED] wrote:
can we see the
autoCompleter code
any relevant JS (setBeforeLoading,setAfterLoading)
ok, the last question made me check the code again.
I found an error in my code - an artefact from the yesterdays
autocompleter usage.
Is showcase working for you? On IE I'm getting a Error: System error:
-1072896658. Some people have had the same problem due to encoding
issues. The error message is really explicit :)
musachy
Dariusz Wojtas wrote:
On 12/28/06, Martin Gainty [EMAIL PROTECTED] wrote:
can we see the
I noticed the same thing:
https://issues.apache.org/struts/browse/WW-1550
For the short term, I've added a work around that works for my use case
which allows you select only a single property from the action which
will be exposed.
David
Ian Roughley wrote:
I just noticed that the
We just upgraded to struts 1.2.9 and started getting this message when I
pressed the cancel button. I fixed it once before, but it's popped up on
another screen. So I went through the docs again and did as they instructed,
but the problem continues. Here's the problem code:
action
showcase, just built ans started on tomcat 5.5.17
1) Firefox
Everything seems to work.
About the preloaded aurocompletes at the bottom:
Yes, the value is preloaded but entering and leaving the
Autocompleter 1 makes it clear on blur. But filtering of
Autocompleter 2 works as expected, even when I
Just curious if anyone knows of a workaround for SB-96?
http://issues.apache.org/struts/browse/SB-96 I'm converting a large,
enterprise app from Struts 1.x (tiles of course) to S2 using Tiles2
Or at least I was trying until I ran into this issue. I'm still in the
process of evaluating
On 12/28/06, Christy Kudlac [EMAIL PROTECTED] wrote:
Just curious if anyone knows of a workaround for SB-96?
http://issues.apache.org/struts/browse/SB-96 I'm converting a large,
enterprise app from Struts 1.x (tiles of course) to S2 using Tiles2
Or at least I was trying until I ran into
I'm using Struts 2.0.1 and the tiles2 jar (the date on the
tiles-core-2.0-SHANSHOT.jar is 10/10) that was bundled with the
download. I attempted to upgrade tiles2 to the latest snapshot, but got
even more errors so I reverted back.
Thx.
-Original Message-
From: Wendy Smoak
Hi Christy,
There are reports of people that have it working and others that
obviously don't. The problem is that struts 2.0.1 was release against a
tiles snapshot and the snapshot on that day is no longer available. I
haven't had a chance to try to recreate the exact mix of dependencies to
David,
Any specific daily build of Tiles2, or just head? I pulled out the
latest Tiles 2 today, but didn't grabbed the latest Struts2.
Thx.
Christy
-Original Message-
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
DeWolf
Sent: Thursday, December 28, 2006 3:52
for those interested :
https://issues.apache.org/struts/browse/WW-1477
Musachy Barroso-2 wrote:
I was talking about this javascript code:
dojo.io.bind({
url: @s.url
action=updateCharacterAvailable namespace=/hangman/ajax /,
This is what I found so far, there are 2 problems, one is that when
there is a json array like:
[ [A, B] , ]
IE puts a null object in the array. That one is easy to fix. The other
problem is that using freemaker, like in showcase to render the json
array, the charset of the response is set
I am not really sure if it worked before, both autcompleter and my
code do evolve ;)
I was always using JSP with UTF-8 encoding to generate my options.
Is UTF-8 a problem here?
You mean
[ [A, B] , ]
is problematical for IE, but
[ [A, B] ]
will work? Should I change something in the json
I will fix it so it ignores that null value. UTF-8 works.
regards
musachy
Dariusz Wojtas wrote:
I am not really sure if it worked before, both autcompleter and my
code do evolve ;)
I was always using JSP with UTF-8 encoding to generate my options.
Is UTF-8 a problem here?
You mean
[ [A, B]
On 12/28/06, Christy Kudlac [EMAIL PROTECTED] wrote:
Where
are we at in Tiles2 stability? Are we still using snapshots or have we
gone to beta or rc yet?
To answer this question, Tiles was just approved as an Apache top-level
project. In the Struts sandbox it has no chance of getting past
I logged a ticket for this issue, with a patch:
https://issues.apache.org/struts/browse/WW-1579
The tag was not reading the value from properties. Now it will get the
value from the property specified in name, the value needs to be of
type Date, or any object whose toString method returns an
Hi,
I am tryin to extend request processor which basically tracks the session
and does some routing stuff.
but for that I need to pass a variable which is available on JSP and need to
pass it to the request processor to check something.
I tried hidden field in the form but gettin value of
Hi Sarry
Try setting the variable using the
request.setAttribute(Attribute key name as string, Value as Object);
and then, access the value in the request processor using the
(Cast to the desired object type) request.getAttribute(Attribute key name
as string);
Hope this helps.
- Sandeep
Struts2 currently specifies Tiles 2.0-r488734-SNAPSHOT as it's
dependency. This works. Make sure you include both tiles-core and
tiles-api jars in your webapp.
Look here:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/tiles/
David
Christy Kudlac wrote:
David,
HI Sandeep,
This doesn't work since request is going from client to server so I can't
set the request.getAttribute since when I submit the form it will be a fresh
new request however had I tried settin thru request.setAttribute, it would
have been a old request.
getting parameters thru
After several hours of searching i found the problem.
All pages work, if I set validate=false in the struts config.
So I can't use the validate method of the bean?
Is there an alternative for this method?
Best regards,
Sebastian Marten
Sebastian Marten schrieb:
Hello List,
I have a problem
Hi all,
I want to check a key value whether it is true or false in messageresource
bundle in JSP.
There is no tag to check the key value directly as
logic:equal key=checkKey value=true
/logic:equal
checkKey=true
Any help thanks
Nagesh
Hello,
Consider for eg, I have 5 fields. For the first 2 fields, the errors will be
displayed by mentioning their property in the html:error tag. And I want to
display the remaining errors at the end of the page. So, for this I use
html:errors/. But I dont want to display all 5 error messages.
45 matches
Mail list logo