As far as I know, there is no way to set some nodes already extended
server-side. You can open the nodes you want client-side using javascript,
however.
On Fri, Sep 12, 2008 at 6:48 AM, Narayana S [EMAIL PROTECTED] wrote:
Hi Jim,
Thanks for your reply, tree control default shows
i found solution to the parent node item.
here is the code snippet ..
*tree construction *
sx:tree id=contentTree name=contentTree
label=Root treeSelectedTopic=treeSelected
expandedNotifyTopics=treeExpand
-
-
/sx:tree
*java Script code *
script language=javascript
dojo.connect does not exist in dojo 0.4 :(
And separateScritpts attribute neither does in struts 2.0.9.
Jeromy Evans escribió:
Pablo Vázquez Blázquez wrote:
Using dojo.addOnUnload(function) neither works. Besides that, I would
need sht like dojo.addOnBeforeUnload, but it does not exist.
I
script type=text/javascript
var form = document.forms[0];
if ((form) amp;amp; (formIsDirty(form))) {
var a = confirm(There are unsaved changes. Do you want to
continue?);
if (!a) {
dojo.event.topic.publish(/cancelNavigation);
//HOW TO CANCEL NAVIGATION??
I don't really know as i don't use dojo or the ajax tags for any more
for all the same reasons you're experiencing.
Dojo's event model is based on AOP concepts; which allows you to bind
functions to the event, before the event or after the event.
So you need a listener attached to before the
Hello,
I am using Ajax in my struts application.
From JavaScript in JSP page I call employee.do?method=employee
I get following error
java.lang.IllegalStateException: Cannot forward after response has been
committed
For Ajax calls I am using struts execute method.
But Action
Here is a blog writeup of what I'm using. It allows you to test interceptors.
http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/
Mark-413 wrote:
Hi all:
Does anyone have a working example of unit testing a Struts 2 app?
I've been looking around for awhile know
Hi...
just try to add this short script to the page that contains your tree...
Might possibly be not the most beautiful solution, but works for me!
dojo.event.topic.subscribe(tree/treeCreate, function
treeCreated(node) {
// get all treenodes and iterate through
Hi,
I am a newbie to Struts and I am trying to make the HelloWord example work
in Netbeans 6.1 (http://struts.apache.org/2.x/docs/hello-world.html). I have
implemented all files in a web project and it compiles fine. I have then
used the undeploy deploy functionality and got no error message.
This is not the issue because I've tried deleting optiontransferselect and
stuHover... I think I only need to execute javascript in result page, but I
don't know how. I don't know if executeScripts and separateScripts attributes
in struts ajax tags could be a solution, but I can't implement
hi,
thanks for the explanations.
Which means if you work from a snapshot version of xwork it's fixed
(which is a 2.1 stream though, which you don't want).
What do you mean here ?
I do not mind using Struts 2.1 or xwork 2.1
I prefer working with a jar that has been fixed rather than a jar that
--- On Fri, 9/12/08, UseTheFork wrote:
I have no idea why it does not work. Can anybody help? Give
tips? Pointers? Could it be a config issue?
...
Sure, it could be a config issue.
Is there anything in the logs? Do you have devMode turned on?
Dave
Bobby Mitch wrote:
hi,
thanks for the explanations.
Which means if you work from a snapshot version of xwork it's fixed
(which is a 2.1 stream though, which you don't want).
What do you mean here ?
I didn't realise you could move to 2.1.x. It's not a trivial migration
normally. A
Return null.
--- On Fri, 9/12/08, Raghuveer [EMAIL PROTECTED] wrote:
From: Raghuveer [EMAIL PROTECTED]
Subject: Struts 1.2.9 +Ajax Error -- java.lang.IllegalStateException
To: user@struts.apache.org
Date: Friday, September 12, 2008, 3:55 AM
Hello,
I am using Ajax in my struts
I'm trying to use autocompleter with struts 2.1.2 to replace a select
drop down with too many options, but on submission it seem autocompleter
submits the listValue rather than the listKey. (The same params work
fine with s:select, I've had this same issue since 2.0.11.x)
My jsp:
Hi
s:iterator value=valueables status=status
s:textfield name=valueables[%{#status.index}].description/
s:property value=%{valueables[%{#status.index}].description}/
s:property value=valueables[%{#status.index}].description/
/s:iterator
The textfield property correctly displays the value ,
Perhaps you mean to use this Struts-core 2.1.3 jar with this 2.1.2 Xwork jar ?
http://people.apache.org/builds/struts/nightlies/2.x/struts2-core-2.1.3-SNAPSHOT-20080912.jar
http://maven2.opensymphony.com/com/opensymphony/xwork/2.1.2-SNAPSHOT/
--- On Fri, 9/12/08, Jeromy Evans [EMAIL PROTECTED
Jeromy Evans wrote:
Roger wrote:
Hi
s:iterator value=valueables status=status
s:textfield name=valueables[%{#status.index}].description/
s:property value=%{valueables[%{#status.index}].description}/
s:property value=valueables[%{#status.index}].description/
/s:iterator
The textfield property
--- On Fri, 9/12/08, Roger wrote:
The textfield property correctly displays the value, neither
of the property tags display anything at all. What's the
correct syntax for the property value attribute?
In addition to what Jeremy said...
My first response was to say it was because you spelled
Roger wrote:
Hi
s:iterator value=valueables status=status
s:textfield name=valueables[%{#status.index}].description/
s:property value=%{valueables[%{#status.index}].description}/
s:property value=valueables[%{#status.index}].description/
/s:iterator
The textfield property correctly displays
--- On Fri, 9/12/08, Bobby Mitch wrote:
Perhaps you mean to use this Struts-core 2.1.3 jar with this 2.1.2 Xwork jar ?
Perhaps.
But AFAIK the nightlies only include core, not the rest of the framework. So
you'll still probably want to build from source, or fix the version for S2.0
and
Dave Newton wrote:
My first response was to say it was because you spelled valuables wrong and
the framework is just really snooty.
he he, I'd be in a lot of trouble if it was narky about typos.
Obviously for the text field you'd still need to set the name appropriately
using the
another alternative would be to use a normal anchor tag and via CSS to make
it look like a button..
On Wed, Sep 10, 2008 at 3:47 PM, Dan [EMAIL PROTECTED] wrote:
Lukasz Lenart escribió:
As Don said, implement small form, only with submit button and you
wouldn't have to use JavaScript.
Hi
I'm trying to get indexed lists working so that I can get any amendments back
into my model. At the moment I've got
s:form
s:iterator value=valueables status=status
s:set name=count value=%{#status.index + 1}/
s:textfield name=valueables[%{#status.index}].text value=%{text}/
On Friday 12 September 2008 15:38:39 Dave Newton wrote:
--- On Fri, 9/12/08, Roger wrote:
The textfield property correctly displays the value, neither
of the property tags display anything at all. What's the
correct syntax for the property value attribute?
In addition to what Jeremy
Hi Dave,
Is there anything in the logs? Do you have devMode turned on?
i) I don't know what devMode is, can you explain?
ii) I have noticed that I did not create my web.xml and struts.xml files
properly.
I have corrected that problem, compiled, undeployed and redeployed and I
still
have the
--- On Fri, 9/12/08, UseTheFork wrote:
i) I don't know what devMode is, can you explain?
http://struts.apache.org/2.x/docs/devmode.html
Without any more information it's essentially impossible to help. You'd be
better served by posting your web.xml and struts.xml files here; I'm assuming
Roger wrote:
Hi
I'm trying to get indexed lists working so that I can get any amendments back
into my model. At the moment I've got
In the last line, did you confirm that count has the correct value?
What if the list is empty? (in that case count has never been set)
s:textfield
UseTheFork wrote:
When I refresh my browser with
http://localhost:8080/tutorial/HelloWorld.action, I do not get any WARNING
or SEVERE kind of messages in the Glassfish Logs. I only get more of the
above. I have also checked for CONFIG, FINE, FINER, FINEST messages, but I
don't get any. The
On Friday 12 September 2008 16:18:02 Jeromy Evans wrote:
Roger wrote:
Hi
I'm trying to get indexed lists working so that I can get any amendments
back into my model. At the moment I've got
In the last line, did you confirm that count has the correct value?
Yes, I've confirmed that
On Friday 12 September 2008 16:18:02 Jeromy Evans wrote:
In the last line, did you confirm that count has the correct value?
What if the list is empty? (in that case count has never been set)
s:iterator
/s:iterator
s:if test = %{count}/
s:else
s:set name=count value=0/
/s:else
--- On Fri, 9/12/08, Roger wrote:
s:iterator
/s:iterator
s:if test = %{count}/
s:else
s:set name=count value=0/
/s:else
How about losing the seemingly-unnecessary count?
s:set name=count value=0/
s:iterator ...
s:set name=count value=count+1/
...
/s:iterator
Dave
If you are using Spring into your projet, this may be related to the
beans being singletons, we had this problem in the past, we actually
were required to call cleanErrorsAndMessages method at each prepare call.
- Pascal
Kawczynski, David wrote:
I'm using struts 2.1.2, and the xhtml theme to
Here is my struts.xml:
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
constant name=struts.devMode value=true /
package name=tutorial extends=struts-default
action name=HelloWorld
--- On Fri, 9/12/08, Kawczynski, David wrote:
I'm using struts 2.1.2, and the xhtml theme to render a
form. When client-side validaiton fails, an error message
is placed above the bad input fields.
Subsequent submission attempts result in new error messages
being ADDED to the UI, but the old
--- On Fri, 9/12/08, UseTheFork wrote:
You will notice in my struts.xml that devMode has been set
to true. However, I still don't get anything new in my
Glassfish Logs. BUT, I have noticed some issues when
I start Glassfish:
http://www.nabble.com/file/p19457690/Log%2BList.png
Looks
Hi,
I am using velocity with struts. The tags like #slabel,#ssubmit introduce
tr td elements of their own. Is there anyway to disable it?. I would
like to create a table with 2 columns and include #slabel,#ssubmit in each
but its not happening the right way.
--
View this message in context:
Hey Márcio
Where you ever successful in getting AjaxTags to work with Dispay Tag and
Struts2
I am at the same junction as you were. Please let me know.
Thanks
Márcio Gurgel wrote:
Hi Randy,
I also tried to set requestURI.
I'm having lots of problems with components inside
There is no client side date validator in the default themes.
I added a basic one in the xhtml theme for use with the
datetimepicker; it has a hardcoded date format though (dd/MM/).
To add it, open your xhtml theme's form-close-validate.ftl file, and
as the last option add the following
Hi Dave,
I have a library called commons-loggin in my project:
http://www.nabble.com/file/p19462329/Commons-loggin.png
I had to fiddle with the Web Pages directory structure in the project and
create a Classes sub-directory to match the requirements mentioned on
I've run into an odd issue recently where data posted from a form is being
saved with %20 where a space is present.
Let's say I have a form with a field named company. The value submitted is:
Acme Company
Watching the call stack I can see that prepare is being called and the data
passed in is
--- On Fri, 9/12/08, m_kk wrote:
I am using velocity with struts. The tags like #slabel,
#ssubmit introduce tr td elements of their own.
Is there anyway to disable it?. I would like to create
a table with 2 columns and include #slabel,#ssubmit in
each but its not happening the right way.
--- On Fri, 9/12/08, UseTheFork wrote:
I have a library called commons-loggin in my project:
Is it being deployed?
I had to fiddle with the Web Pages directory structure in
the project and create a Classes sub-directory to match the
requirements mentioned on
Hello:
I am in a situation where I need to populate a s:textfield with a
value in the request scope. It sounds anti-Struts but it can't be
helped. Since the value attribute cannot take a runtime expression, I
am wondering if there is a syntax for picking values off the request.
So, I am
Is it being deployed?
I can't find the common jar in the App server installation directory. I will
open a ticket with Netbeans Nabble.
Thank you for your help,
J.
--
View this message in context:
http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19463173.html
The request is accessible with ognl this way:
s:textfield name=field1 value=#request['param']/
- Pascal
Eric Hamacher wrote:
Hello:
I am in a situation where I need to populate a s:textfield with a
value in the request scope. It sounds anti-Struts but it can't be
helped. Since the
--- On Fri, 9/12/08, UseTheFork wrote:
I asked:
Is it being deployed?
I can't find the common jar in the App server installation directory.
I will open a ticket with Netbeans Nabble.
This is [most likely] not a NetBeans issue, either, it's a project
configuration and/or deployment issue.
--- On Fri, 9/12/08, georz1 wrote:
I've run into an odd issue recently where data posted
from a form is being saved with %20 where a space is present.
Is it a GET or POST form?
My app has been working for about a year and I have never
seen this happening and I don't recall changing something
Dave,
I have managed to deploy another project two days ago without any issue. The
JSP pages worked fine. This time, I am trying to use Struts. It could be a
project configuration issue, I agree, but I have checked that and I don't
know what is wrong... I am in newbie exploration mode here !!!
Thanks for the reply Dave -
It's a post. And since posting to this group I've changed from Struts
2.0.11 - 2.0.11.2 still with the same results.
About the stack that was not my intention - Are those given by
struts-default? Is that why they would be included twice.
newton.dave wrote:
--- On Fri, 9/12/08, UseTheFork wrote:
I have managed to deploy another project two days
ago without any issue. The JSP pages worked fine.
That doesn't require any additional web app libraries.
It could be a project configuration issue, I agree,
but I have checked that and I don't know what
--- On Fri, 9/12/08, georz1 wrote:
It's a post. And since posting to this group I've changed
from Struts 2.0.11 - 2.0.11.2 still with the same results.
I'm still reasonably certain it's not an S2 issue--if it were me I'd be
checking the change logs. If it's been working for a year and
I completely agree that something that was working shouldn't all of a sudden
stop. I was kind of hoping someone has run into an issue like this before
and might have pointed out some subtle change that I might have made and I'm
just overlooking. I've been working in the code base adding things
53 matches
Mail list logo