Thanks I will have a look, Lot of grids got the
limitation to have combo boxes in the Grid,
If any such Grid someone knows that will be great, we
are looking for a such a grid with Sorting and
Pagination features.
Has anyone enhanced the ftl to share with us.
Thanks
--- Jeromy Evans [EMAIL
By redirect I mean using the redirect action result type.
Nils-H
On Mon, Apr 21, 2008 at 6:40 AM, aum strut [EMAIL PROTECTED] wrote:
Nils can u just describe a bit wat u mean here by redirect
its quite possible that i am taking redirect in some other way..
aum
On 4/21/08, Nils-Helge
I use YUI.
Have a look at Satyam's demo of the editable datagrid to see if it's
suitable:
http://www.satyam.com.ar/yui/DataGrid.html
It supports client-side and server-side pagination and sorting:
http://developer.yahoo.com/yui/datatable/
tom tom wrote:
Thanks I will have a look, Lot of
Pranav wrote:
Thanks for the reply.
So, for a scalability, you suggest that I should change TextProvider
implementation to load a resource bundle for each customer. I don't exactly
know how to tell it to load a customer specific resource bundle. I mean which
methods to override for doing
Hi Stan,
mostly it's just a little mistake, that makes you crazy
Did you make sure that the key in the properties_en-file is existent and
properly written (error.login.failed) ?
I am using the same mechanism an it works without any trouble. Can only be a
stupid mistake.
If you are using
Hi All,
We are using Struts2 for our development,currently we are using
struts-2.0.11.1
As we know that struts2 is using DOJO toolkit internally for ajax support
we have previously used DOJO toolkit for UI develoment and it is a gr8
toolkit for ajax based application,with the announcement of
I'm using 2.1.1-SNAPSHOT from the people.apache.org maven snapshot
repository. I noticed 2.1.2-SNAPSHOT is already out, maybe I should try it.
I have scope=prototype in the actions that I've defined in the Spring
configuration file. The problem also affects actions that are not in the
Spring
Hi Volker,
yes, I'm sure it must be a little stupid mistake, but can't find out.
The key is defined in package_en.properties and recompiling the classes has
the same result.
perhaps you have a look to my code.
package_en.properties:
...
error.login.failed=Invalid username or password. Please
Hi Toni
there are several different approaches. The one I use has an Edit action and a
Save action. The Edit action fetches the dropdown list and puts it in the
request and results in the form jsp.
The form submits to Save and if validation fails, the Input result is
resultType=chain and
Hi,
in my struts form i have 2 html:text to insert date and time.
i want to insert more than one object in my Struts action (using iteration
to display inputs in form).
how can i name my html:text to dont have conflict name, and how can i
recover the values of these inputs
in struts action.
Well, for the retrieval I use stateless session bean injected to the action
with Spring, like this (simplified):
public User getUser() { return user; }
public String edit() {
user=dao.get(id);
return SUCCESS;
}
So it's nothing special.
The session approach of course isn't ideal, but more a
umesh awasthi wrote:
Hi All,
Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct
me if i am wrong)
Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at
the moment.
my point is as we have earlier experience of using DOJO with java (Not
Hi,
Hope someone can help me with this - I've got rather stuck. I'm using
Struts 1 and iterating the error collection:
html:messages id=error
lia href=#bean:write name=error //a/li
/html:messages
For accesibility reasons I need to be able to put a jump to the field from
the href. I could save a
Hi,
Can you provide me with the link on how to upgrade the dojo toolkit.
Cant find a page that is simple enough for me to understand.
Thanks.
P.S: Already post my problem to dojo mailing list. Hope I can get some answers.
Jeromy Evans [EMAIL PROTECTED] wrote: Simon Sew wrote:
Hi,
I have
I think so - the chain is just a forward inside the same request so you
shouldn't lose the field errors. But I'm just setting up a new website now with
this approach, so actually I'm as inexperienced as you are - my previous Struts2
project had a different approach entirely.
You second
Thanks for the answer! Does the resultType=chain approach preserve the
fieldErrors and the values the user has already typed into the form? Also,
how do you prevent the edit action from retrieving the entity from the
database in the case the validation fails?
I also thought about putting the
Hello,
What is generally regarded as the best practise for populating a select
element in a form from database so that it works regardless of the action
and the result from which the form is displayed?
I've tried this:
action configuration:
action name=edit method=edit class=admin.Users
Yes, I get the picture. If you haven't already, download the source bundle and
look at the examples.
Actually I don't think I understood one thing you said. You're using an action
taglib in the JSP, which invokes the list retrieval. Surely that's not affected
by validation failure? I was
Yes it shouldn't be affected, but there seems to be a bug that affects this
behaviour, see WW-2599.
https://issues.apache.org/struts/browse/WW-2599
On Mon, Apr 21, 2008 at 2:20 PM, Adam Hardy
[EMAIL PROTECTED] wrote:
Yes, I get the picture. If you haven't already, download the source bundle
Hi Aarthy,
you can use the displaytag to implement the pagination in struts2.
kindly tell that, Pagination as in Google? how, you want the page no in
google format or result in google format.
Regards,'
Bala
Jaarthy wrote:
Hi,
How to implement pagination as in Google in Struts2?Any Help
Hi,
On Mon, Apr 21, 2008 at 5:37 AM, Pranav [EMAIL PROTECTED] wrote:
Hi,
I am new to struts 2 and trying to figure out a problem that I am having
w.r.t. I18n. My application is supposed to serve multiple clients per hosted
instance of the application and the requirement is to somehow
Did you see this:
http://struts.apache.org/2.0.9/docs/why-didnt-my-action-tag-get-executed-when-i-have-validation-errors.html
I stumbled across it on the wiki. Do you exclude the appropriate 'read' method
on your validation interceptor config? You don't want struts to think that
validation
Toni,
Isn't your bug a duplicate of
https://issues.apache.org/struts/browse/WW-1963?
Al.
- Original Message -
From: Toni Lyytikäinen [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, April 21, 2008 12:26 PM
Subject: Re: Best practise for
Thank you for your time Jeromy,
I have confirmed that the problem with running javascript is actually
related to ajax tags. I placed the following script on my page:
script type=text/javascript
alert('boo');
/script
It refused to run until I removed the one sx:div section I had in the
page:
Hello. I've a problem with i18n resource bundles.
I've a page home.jsp that uses a resoruce bundle res1 for
internationalization.
home.jsp, like all the pages of my web app, includes bar.jsp which is a
bar with some links. The links are also internationalized and this bar uses
the resource
--- Paranoid_Fabio [EMAIL PROTECTED] wrote:
Hello. I've a problem with i18n resource bundles.
I've a page home.jsp that uses a resoruce bundle res1
for internationalization.
home.jsp, like all the pages of my web app, includes bar.jsp which is a
bar with some links. The links are also
Hi Ralf,
No the message displayed by welcome.user would be entirely different. E.g. one
could say welcome to the world of Unlimited Skiing, while the other one could
say Aren't you supposed to be working? etc. You get the idea. If it was just
possible with an args array, it would not be
--- Pranav [EMAIL PROTECTED] wrote:
No the message displayed by welcome.user would be entirely different. E.g.
one could say welcome to the world of Unlimited Skiing, while the other
one could say Aren't you supposed to be working? etc. You get the idea.
If it was just possible with an args
Just had a long search through the struts source and can't see how this is done.
I want to obtain the ActionMapper so that I can get the URL for an action, in
the same way that the Form taglib does it:
ActionMapping mapping = new ActionMapping(action, namespace, actionMethod,
parameters);
Hello
Is there way prevent notifyTopics from being triggered if there are any
validation errors?
Thanks
Manish
--
View this message in context:
http://www.nabble.com/Notify-Topics-and-Validation-Errors-tp16808233p16808233.html
Sent from the Struts - User mailing list archive at Nabble.com.
I am creating a site offered in both english and french.
When the user clicks on the french language button the language.action is
called.
The result will be to load the same page that the user was viewing only the
page will be displayed in french.
I would like to code the action using wild card
Hi Adam,
On Mon, Apr 21, 2008 at 6:02 PM, Adam Hardy
[EMAIL PROTECTED] wrote:
Just had a long search through the struts source and can't see how this is
done.
I want to obtain the ActionMapper so that I can get the URL for an action,
in the same way that the Form taglib does it:
--- Adam Hardy [EMAIL PROTECTED] wrote:
I want to obtain the ActionMapper so that I can get the URL for an action,
in the same way that the Form taglib does it:
Does the @Inject annotation not work for you?
Dave
-
To
Hi,
On Mon, Apr 21, 2008 at 5:46 PM, Dave Newton [EMAIL PROTECTED] wrote:
--- Pranav [EMAIL PROTECTED] wrote:
No the message displayed by welcome.user would be entirely different. E.g.
one could say welcome to the world of Unlimited Skiing, while the other
one could say Aren't you
Ok, so here's what I intend to prototype. Please let me know if this will work
or not.
1) Define a message resource properties file like this:
cust1.welcome.user = I want to live.
cust2.welcome.user = I will not let you live.
welcome.user = Welcome user
cust1.bye = Go live
bye = Good bye
hello =
I am try to migrate an app from struts 1 - 2
I am trying to do basic validation on a form. Fields a and b are required.
field name=a
field-validator type=requiredstring
message key=errors.required/
/field-validator
/field
field name=b
field-validator type=requiredstring
Hi all,
I'm trying to get multiple levels of indexed, nested beans working.
I've tried a variety of solutions but I keep getting xwork or ognl
exceptions. Here's what I've tried (loosely):
public class MyAction implements Action, StrutsStatics {
private ListPackageBean packages;
I really should read the documentation ;)
http://struts.apache.org/2.x/docs/static-parameters-interceptor.html
http://www.motricity.com
Tommy Becker wrote:
I can't seem to get any parameters to actually pass to actions via
struts.xml. Here's an example action config out of my struts.xml
Hi Volker,
thanks for your replies, i solved my problem today.
It was really a stupid mistake:
I had an other package.properties one package above, where
the entries for the Logon form were registered too.
Thanks for help anyway.
Volker Karlmeier wrote:
Hi Stan,
mostly it's just a
I can't seem to get any parameters to actually pass to actions via
struts.xml. Here's an example action config out of my struts.xml
(ignore the slashes in the action name, we're using a third party
container):
action name=EndUserWMLRingtonesHome
The section about migration in the documentation [1] would be a good
place to start.
[1] - http://struts.apache.org/2.0.11.1/docs/migration-guide.html
Nils-H
On Tue, Apr 22, 2008 at 1:17 AM, Lalchandra Rampersad
[EMAIL PROTECTED] wrote:
How do I migrate from struts 1 to 2?
Saludos
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
fine that its solved. I think this is one of the mistakes you only
make once ;)
stan77 schrieb:
Hi Volker,
thanks for your replies, i solved my problem today. It was really a
stupid mistake:
I had an other package.properties one package
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
in an action class, just use
String[] params=new String[] {/*your Parameter String*/0, /*your
Parameter String*/1,...,/*your Parameter String*/n};
addFieldError(a, getText(errors.required, params));
using the methods getText(String key, String[]
I was missing the getPackages() method :(
- Scott
Scott Van Wart wrote:
Hi all,
I'm trying to get multiple levels of indexed, nested beans working.
I've tried a variety of solutions but I keep getting xwork or ognl
exceptions. Here's what I've tried (loosely):
public class MyAction
I'm confused by some of the documentation and hope someone can clarify
things for me.
I'm using what I think is the latest version of Strut 2.
struts-2.0.11.1-all.zip (released Mar 04, 2008)
I'm looking at the docs for the version of Struts I'm using.
--- Chase [EMAIL PROTECTED] wrote:
But my struts-tags.tld only has the id attribute and not the ?newer?
var. Are the docs referring to a future version of Struts? or are they
referencing an older version and the addition of var was rolled back?
id is for S2.0, var for S2.1.
Not all of the
Do you know if the documentation for Struts 2 is shared across all 2.x
versions? Should var be removed from the 2.0 docs or does it just need
a version note added? I'd like to see about getting this fixed.
Given that the doc in question was last edited July 2007 to include 2.1
information has
Am Montag, 21. April 2008 23:59:46 schrieb Chase:
Given that the doc in question was last edited July 2007 to include 2.1
information has 2.1 been released already and I'm just not looking in
the right place?
Struts 2.1 has no GA release yet. That said, I think it is very stable and
possibly
I cannot for the life of me figure out how to pre-check/select items in a
checkbox list or a multiple select box.
As long as the input field is linked to exactly one value, like in a radio
list or a single select box, it works fine, but I can't figure out how to
pass a list of items to check and
--- Chase [EMAIL PROTECTED] wrote:
Do you know if the documentation for Struts 2 is shared across
all 2.x versions?
Yes. There's no real way to version the wiki; it's exported into the release,
but information is modified on an ongoing basis regardless of the currently
released version.
Hi...
I have a problem:
I have an action that retrieve some results from a DB, puts them in a form
and forwards it to a jsp.
The problem is that I have to do (from the jsp) another search in th DB
using the same FORM.
the scope of the action that generates the form is session, but it does not
Ralf Fischer on 21/04/08 18:24, wrote:
On Mon, Apr 21, 2008 at 6:02 PM, Adam Hardy
[EMAIL PROTECTED] wrote:
Just had a long search through the struts source and can't see how this is
done.
I want to obtain the ActionMapper so that I can get the URL for an action,
in the same way that the Form
Dave Newton on 21/04/08 18:29, wrote:
--- Adam Hardy [EMAIL PROTECTED] wrote:
I want to obtain the ActionMapper so that I can get the URL for an action,
in the same way that the Form taglib does it:
Does the @Inject annotation not work for you?
It works, but it doesn't light my fire. I just
Hi,
They both look good,
As I stated, I am looking for a one with Select box
inside, none of them contains a select box inside the
grid
Thanks
--- Jeromy Evans [EMAIL PROTECTED]
wrote:
I use YUI.
Have a look at Satyam's demo of the editable
datagrid to see if it's
suitable:
Hi all,
I resolved my problem using JSON.
Some links:
http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Exampleaction
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Here's the code (Maybe it could help someone)
Dont forget to include json.jar in your
ok i got that
thks for helping me out
On 4/21/08, Nils-Helge Garli Hegvik [EMAIL PROTECTED] wrote:
By redirect I mean using the redirect action result type.
Nils-H
On Mon, Apr 21, 2008 at 6:40 AM, aum strut [EMAIL PROTECTED] wrote:
Nils can u just describe a bit wat u mean here by
tom tom wrote:
Hi,
They both look good,
As I stated, I am looking for a one with Select box
inside, none of them contains a select box inside the
grid
It does. Column 4: State
http://developer.yahoo.com/yui/examples/datatable/dt_cellediting.html
YUI allows you to create customer cell
Thanks Jeromy for the rply
we will try to impliment DOJO 1.x along with struts2
some point i want to confirm if u have any exp using dojo with struts2
1) IF we will replace the Struts2 ajax tag with dojo will there be any
functional changes to struts2
lilke action automatically populate form
umesh awasthi wrote:
Thanks Jeromy for the rply
we will try to impliment DOJO 1.x along with struts2
some point i want to confirm if u have any exp using dojo with struts2
I don't use Dojo in any production applications any more. After getting
advice from others I have moved entirely to
Pranav wrote:
Ok, so here's what I intend to prototype. Please let me know if this will work
or not.
...
What do you think? Any comments or warnings would be highly appreciated.
This will work. As mentioned, it won't scale well. As warned by
others, don't take this approach if the
Hi,
Instead of directly using DOJO 1.x, did you think
about
enhancing the ftl with a new theme type
Thanks
--- umesh awasthi [EMAIL PROTECTED] wrote:
Thanks Jeromy for the rply
we will try to impliment DOJO 1.x along with struts2
some point i want to confirm if u have any exp using
dojo
Dave Newton wrote:
--- Paranoid_Fabio [EMAIL PROTECTED] wrote:
Hello. I've a problem with i18n resource bundles.
I've a page home.jsp that uses a resoruce bundle res1
for internationalization.
home.jsp, like all the pages of my web app, includes bar.jsp which is a
bar with some links.
Jukka Välimaa wrote:
Thank you for your time Jeromy,
I have confirmed that the problem with running javascript is actually
related to ajax tags. I placed the following script on my page:
script type=text/javascript
alert('boo');
/script
It refused to run until I removed the one sx:div section
Half of a year is a long time for Struts2.1 developing and I just wonder
whether it's proper to use struts2.1-from svn?
thanks!
--
View this message in context:
http://www.nabble.com/Is-now-a-proper-time-for-me-to-take-use-of-Struts2.1--tp16822103p16822103.html
Sent from the Struts - User
64 matches
Mail list logo