I had to change the JSP file from this:
sx:head/
to this
sx:head
baseRelativePath=../struts/dojo/
I think this is either a bug or an undocumented change to the 2.1 upgrade
process, but I am happy it is working.
Scott
- Original Message
From: Scott Nesbitt scottnesb...@yahoo.com
/styles.css type=text/css/
When in 2.0 it generated
link rel=stylesheet href=../struts/xhtml/styles.css type=text/css/
I tried tweaking the baseRelativePath option but it changed only the stuff in
djConfig, not the includes.
Thanks,
Scott
- Original Message
From: Scott Nesbitt
I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing trouble with Dojo
files.
Before upgrade:
script type=text/javascript
src=../struts/simple/dojoRequire.js/script
After upgrade:
script
language=JavaScript type=text/javascript
src=/myApp/struts/ajax/dojoRequire.js/script
, Scott Nesbitt scottnesb...@yahoo.com wrote:
From: Scott Nesbitt scottnesb...@yahoo.com
Subject: Dojo trouble after upgrade
To: user@struts.apache.org
Received: Thursday, September 17, 2009, 5:03 PM
I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing
trouble with Dojo files
So Ajax actions do not work in Struts portlets? If not, do you know if there
are plans for them to work in the future?
Thanks,
Scott
- Original Message
From: Nils-Helge Garli Hegvik nil...@gmail.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, August 7, 2009
I have an existing Struts 2.1.6 configuration that is working fine. I am
interested in adding a new page that contains a single portlet, and also having
the portlet be accessed from a totally different server. Is this possible with
the Struts portlet plugin?
I have read the portlet plugin
I recently upgraded from Struts 2.0.12 to 2.1.6. Everything works fine
in IE8, but IE6 (sometimes) hangs before it finishes downloading
everything. One one machine it works with IE6, and on another it
hangs. Using Fiddler2 I see that IE6 is not requesting the very last
.GIF file on the page
I am migrating from Struts 2.0.11.1 to 2.1.6 and have read the
migration guide but am running into trouble. I changed my web.xml to
filter
filter-namestruts2/filter-name
filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class
/filter
Is this a bug in Struts 2.0.6 or Dojo 0.4? Why would
there be garbage in the data argument?
Is this not the right way to subscribe to a topic?
Surely somebody out there is doing this.
Thank you,
Scott
--- Scott Nesbitt [EMAIL PROTECTED] wrote:
Hmm, when I print out the value of the data
, Pierre Goupil [EMAIL PROTECTED]
wrote:
I'm not sure but maybe its due to a bug in IE. See
:
http://developer.yahoo.com/yui/autocomplete/
and look for the use iframe parameter. Which
give this :
myAutoComp.useIFrame = true;
My 2 cents,
Pierre Goupil
2007/7/18, Scott
=sports.jsp %
Thanks for the help,
Scott
--- Musachy Barroso [EMAIL PROTECTED] wrote:
Anything that you write to the output stream on your
action will be
available on the data argument.
musachy
On 7/17/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
For this topic
Using the YUI plugin with the Yahoo autocompleter is
working pretty well, but the autocompletion dropdown
is not positioned under the textfield. Here is my
markup:
s:url id=statesUrl
action=AjaxTest
namespace=/nodecorate
includeParams='none'/
div
For this topic:
dojo.event.topic.subscribe(/saveTopic,
function(data, type, e)
{
// data : text returned
// type : before, load or error
// e: request object
if ('load' == type)
{
}
}
When my action on the server is successful the type is
set to load and things work great. However,
I have a topic like this:
dojo.event.topic.subscribe(/saveTopic,
function(data, type, e)
{
// data : text returned
// type : before, load or error
// e: request object
if ('load' == type)
{
}
}
When my action on the server is successful the type is
set to load and things work
In 2.0.6 the updownselect tag only sends items that
are selected to the server. The documentation says
that all items in the list will be sent.
Is this a bug? Will it be fixed in 2.1?
Thanks,
Scott
this by
overriding the templates in
the xhtml theme. Struts 2.1 will have a fix in place
to resolve this issue, but
until then the template fix is the only way to
resolve it I believe.
James
http://jamesholmes.com/StrutsTCR/
On Wed Jul 11 14:25 , Scott Nesbitt
[EMAIL PROTECTED] sent
I am evaluating the yahoo calendar and am having a bit
of trouble with the YUI plugin. I would like to
enable multiple select on calendar but do not see an
option to set this through the plugin.
Does anyone know of a way to do this?
I tried the example code but the script in
We have the following:
Select.jsp
s:head theme=ajax debug=true/
s:url id=historyUrl action=LineupHistory/
s:a href=%{historyUrl} theme=ajax
formId=selectedDataLineup History/s:a
Struts.xml
action name=LineupHistory
class=com.mycompany.action.LineupHistoryAction
Using the following code:
s:url id=autosportsteam action=LookupSportsTeam/
s:autocompleter name=sportsTeam
id=sportsTeam
keyName=sportsTeamKey
theme=ajax
formId=sportsForm
],
[ALBANY ST UNIV GOLDEN RAMS],
[BALDWIN-WALLCE CLG YELLW JCKTS],
[BALL ST UNIV CARDINALS],
[BAYLOR UNIV BEARS],
[CATAWBA COLLEGE] --
removed comma
]
On 6/26/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Using the following code
]
musachy
On 6/26/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Hmm, I guess I could do that, though I would have
to
learn a bit more about Freemarker above my simple
template:
[
#list options as o
[${o.description},${o.code}],
/#list
]
However, when I went back
I am using the updownselect tag and things are almost
working perfectly. Once I switched to a s:form it
sends the sorted list to the server, but the select
gets refreshed on the screen and scrolled to the
bottom despite the fact that it is not in a refreshing
div.
Has anybody else run into
I am using the updownselect tag and things are almost
working perfectly. The only problem I have is that
the list that gets sent back to the server only
includes the rows that have been selected. I
patterned my code after the showcase example (which
does work), but despite my best efforts I
I am having a bit of trouble using the if tag. This
code:
labelScreen Alert:/label
input type=radio
name=pScreenAlert
s:if
test=userDetailsBean.userPreferencesBean.mmPrelimScreenAlert
== 'N'checked/s:if
value=1Yes
input type=radio
name=pScreenAlert
s:if
= function(dateObj) {
};
and then do your thing there, or extend
StrusDatePicker widget, which I
would strongly advise not to :)
musachy
On 6/12/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I have this code:
s:datetimepicker id=selectedDate
name=selectedDate
I have some code like this that is not working:
dojo.event.topic.subscribe(/refreshTopic,
function(data, type, e)
{
if ('load' == type)
{
dojo.event.topic.publish(/refreshCableHeadends)
dojo.event.topic.publish(/refreshTDGrid)
return;
}
}
Only the
a
semicolon at the end looks better :). You could also
make them listen to a
common topic an publish that one to make them
refresh, in any case it should
work they way you have it.
musachy
On 6/12/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I have some code like this that is not working
I have this code:
s:datetimepicker id=selectedDate
name=selectedDate
displayWeeks=5
displayFormat= MM-dd-
I have an autocompleter like this:
s:autocompleter name=states
id=states
theme=simple
autoComplete=false
showDownArrow=false
searchType=startstring
forceValidOption=true
, Musachy Barroso [EMAIL PROTECTED]
wrote:
2.1 is going to ship with 0.4.2 or 0.4.3, as for
0.9 we don't have any
estimated time.
musachy
On 5/25/07, Scott Nesbitt
[EMAIL PROTECTED] wrote:
That does not seem to do anything for me.
After reading this:
http
This is working fine in my main JSP:
s:hidden id=selectedCallLetters
name=selectedCallLetters
value=%{userDetailsBean.selectedCallLetters}/
However, when I call a dialog like this:
window.open('overlay-headends.jsp');
This JSP cannot access the fields in the
userDetailsBean
,
it is defined here:
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js?view=markup
On 5/3/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Anybody have a suggestion on this? Or do I just
need
to wait
Anybody have a suggestion on this? Or do I just need
to wait until the next version of Struts?
Thanks,
Scott
--- Scott Nesbitt [EMAIL PROTECTED] wrote:
Well, I tried this:
function handler(widget, node)
{
var beforeTopicsArray =
widget.beforeNotifyTopicsArray
script? I'm having
trouble with it...
Thanks...
David M.
Scott Nesbitt wrote:
I am having trouble setting the focus on an
autocompleter field.
When I print out all the fields in my overlay, I
see
three for the sports team autocompleter:
sportsTeam
sportsTeamKey
(one
,
DWR, JQuery,zillion_framework_name
}
is that what you are trying to do? do the request
yourself?
musachy
On 5/2/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Does anyone know how to invoke a request from a
submit
handler function?
I am using a submit tag like this:
div id
the div tag, you can call
refresh() on it. These functions are not really
part of the api and might
change in the future (although it would be nice if
they were right?).
musachy
On 5/2/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Yes, I would like to do the request in the
JavaScript
;
widget.reloadContents();
widget.beforeNotifyTopicsArray = beforeTopicsArray;
I will add a refreshContent method that will be
common for all of the
widgets (and part of the api), with one
parameter(boolean), to skip the
publishing of the topics.
musachy
On 5/2/07, Scott Nesbitt [EMAIL PROTECTED
I would like to enable/disable the datetimepicker when
the user selects certain radio buttons. Here is my
tag:
s:datetimepicker name=untildate
displayWeeks=4
displayFormat= MM-dd-/
I can disable (and clear) the textbox next to the
calendar icon like
Works great!
Thanks, Musachy.
Scott
--- Musachy Barroso [EMAIL PROTECTED] wrote:
Assign an id to your datepicker, lets say dp1 and
do this:
dojo.widget.byId(dp1).disable();
to enable it:
dojo.widget.byId(dp1).enable();
musachy
On 4/24/07, Scott Nesbitt [EMAIL PROTECTED
why, but there is
probably a good reason :).
The focus should be set on the visible one.
musachy
On 4/18/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I am having trouble setting the focus on an
autocompleter field.
When I print out all the fields in my overlay, I
see
three
I am having trouble setting the focus on an
autocompleter field.
When I print out all the fields in my overlay, I see
three for the sports team autocompleter:
sportsTeam
sportsTeamKey
(one with no name) (why does it have no name?)
Here is how it is declared:
s:autocompleter
.
Scott
--- Dave Newton [EMAIL PROTECTED] wrote:
--- Scott Nesbitt [EMAIL PROTECTED] wrote:
Not sure why it should be getBar(). The name of
the
hidden field is foo, so shouldn't that be the
variable that has the getter and setter?
You guys are both right.
The argument to the 'value
/html/LookupSportsTeam with method execute.
No mention of sportsOrg.
Scott
--- Musachy Barroso [EMAIL PROTECTED] wrote:
When you click submit, are they getting submitted to
the action (with
values)?
musachy
On 4/13/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Well, it is great
autocopleter, using
formId
musachy
On 4/13/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Well, there is not submit per se, the action is
getting called when the user types the second char
in
the lookup editor.
Here is the log when the user types zz:
DEBUG
I have a form with an autocompleter like this:
s:form id=mainForm theme=simple validate=false
s:url id=autosportsteam
action=LookupSportsTeam/
div class=form-edit
s:autocompleter name=sportsTeam
id=sportsTeam
keyName=sportsTeamKey
a getBar() defined on your action,
not a getFoo()
regards
musachy
On 4/12/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I have a form with an autocompleter like this:
s:form id=mainForm theme=simple
validate=false
s:url id=autosportsteam
action=LookupSportsTeam/
div class=form
In my app I have need menu items at the top of every
page that are links do other pages. I also need a
common date and dropdown selection on most pages. My
challenge is how to componentize the date/dropdown
selection so it can be re-used on each page, and then
get the data passed to the action
I am using the autocompleter tag like this:
s:url id=autoorgs action=LookupOrgs/
s:autocompleter name=org
id=org
keyName=orgKey
theme=ajax
href=%{#autoorgs}
?org=ab
http://../LookupOrgs.action?org=abc
...
regards
musachy
On 4/10/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I am using the autocompleter tag like this:
s:url id=autoorgs action=LookupOrgs/
s:autocompleter name=org
id=org
SKY CONF],
]
That trailing comma is not a problem, is it? (It is
there in the working and nonworking lookups.)
Thanks,
Scott
--- Musachy Barroso [EMAIL PROTECTED] wrote:
Looks right, and is it returning data for all of
them?
musachy
On 4/10/07, Scott Nesbitt [EMAIL PROTECTED]
wrote
? Just do:
s:a theme=ajax formId=form .. /
like what you did for the autocompleter, there are a
few examples on
showcase also.
musachy
On 4/5/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I have a link that calls an action and I would
like
the action class to have some field
I am trying to use the Ajax autocompleter and would
like to pass some parameters. This is my JSP:
form id=selectForm
s:url id=autosports action=LookupSports
includeParams=all
s:param name=key value=SearchString/
s:param name=value value=yarr/
s:param name=context
--- Musachy Barroso [EMAIL PROTECTED] wrote:
You can use the formId attribute, like:
form id=dataForm
//fields here
/form
s:autocompleter formId=dataForm .. /
and it will pass the fields of the form as
paramteers when the autocompleter
is loaded.
musachy
On 4/5/07, Scott Nesbitt
I have a link that calls an action and I would like
the action class to have some field values from my
page. Currently I do this:
s:url id=editUrl action=EditLineup
includeParams=all/
s:a href=%{editUrl}
onclick=this.href=rewriteLink(this.href)Edit
Lineup/s:a
In rewriteLink() I manually create
read the document and
source of result.
you can download it from struts2 website.
regards
joey
On 3/26/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
Hmm, when I have this class
public class PopulateGridAction extends
ActionSupport
implements ParameterAware, Result
With this method
I am moving an app from S1 to S2 that has a
third-party grid component. In S1 it looked like
this:
public ActionForward perform(
ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse resp)
{
try
{
GetHandler myGetHandler =
just register a custom result which
implement com.opensymphony.xwork2.Result.
Find detail in struts2 document.
On 3/26/07, Scott Nesbitt [EMAIL PROTECTED]
wrote:
I am moving an app from S1 to S2 that has a
third-party grid component. In S1 it looked like
this:
public
I would like to have a url pass a parameter based on
the value of a field on the JSP. My code looks like
this:
s:url id=historyUrl action=LineupHistory
includeParams=all
s:param name=foo value=%{barbar}/
/s:url
s:a href=%{historyUrl}Lineup History/s:a
s:hidden name=barbar value=%{'baz'}/
there is a way to do this with a link,
correct?
Thanks for the response,
Scott
--- Dave Newton [EMAIL PROTECTED] wrote:
--- Scott Nesbitt [EMAIL PROTECTED] wrote:
I would like to have a url pass a parameter based
on
the value of a field on the JSP. My code looks
like
this:
Unless the field
I am getting the following when I try to use the
taglib:
Servlet failed with Exception
java.lang.NullPointerException
at
org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56)
at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
(RequestDispatcherImpl.java:111)
A search on Original request not available
returns some posts from 2002, but no solutions other
than upgrade to the 1.1 release version of struts,
which I am running.
Any suggestions would be greatly appreciated.
Thanks,
Scott Nesbitt
61 matches
Mail list logo