I had to change the JSP file from this:
to this
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
To: Struts Users Mailing List
Sent: Thursday, September 17, 2009 2:56
baseRelativePath option but it changed only the stuff in
djConfig, not the includes.
Thanks,
Scott
- Original Message
From: Scott Nesbitt
To: Struts Users Mailing List
Sent: Thursday, September 17, 2009 2:56:56 PM
Subject: Re: Dojo trouble after upgrade
Yes, I have read the Struts 2
: Dojo trouble after upgrade
Dojo has been moved to a plugin in struts 2.1. There are more information on
this on the struts 2 wiki site.
You are much better of using dojo natively than the plugin [which you can call
it an old hag now :) ]
--- On Thu, 9/17/09, Scott Nesbitt wrote:
> From: Sc
I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing trouble with Dojo
files.
Before upgrade:
After upgrade:
Somehow "/myApp" is getting inserted into thepath instead of ".."
Anybody know of how this replacement happens? Is there a way to make it use
the relative pathing?
Thanks
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
To: Struts Users Mailing List
Sent: Friday, August 7, 2009 4:41:53 AM
Subject: Re: struts2 portlet
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 a
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 t
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
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
struts2
*.action
struts2
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
parameter. Which
> give this :
> >
> > myAutoComp.useIFrame = true;
> >
> > My 2 cents,
> >
> > Pierre Goupil
> >
> >
> >
> > 2007/7/18, Scott Nesbitt <[EMAIL PROTECTED]>:
> > >
> > >
> > > Usin
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:
State:
Is there something I have to do to get the dropdown
positioned correctly? Does anyone else see this?
Thanks,
Scott
include file="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
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. Ho
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 wo
all elements. You can fix 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/
>
&g
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
Expect
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
YAHOO.util.Event.ad
We have the following:
Select.jsp
Lineup History
Struts.xml
globalUserInformation
userDetailsBean
true
/html/lineup-history.jsp
Upon clicking on the url d
","${o.code}"]
> <#if o_has_next>,
>
> ]
>
> 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 F
last comma from the list like
> this:
> >
> > [
> > ["ALABAMA STATE UNIV HORNETS"],
> > ["ALBANY ST UNIV GOLDEN RAMS"],
> > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > ["BALL ST UNIV CARDINALS&
Using the following code:
I am getting what looks like a Dojo error: Object
error at line 4871.
Here is what Fiddler says is the JSON I return:
[
["ALABAMA STATE UNIV HORNETS"],
["ALBANY ST UNIV GOLDEN RAMS"],
["BALDWIN-WALLCE CLG YELLW JCKTS"],
["B
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 this
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 cann
I am having a bit of trouble using the if tag. This
code:
Screen Alert:
checked
value="1">Yes
checked
value="2">No
Gives this error:
DEBUG util.OgnlValueStack - Caught an exception while
evaluating expression
'userDetailsBean.userPreferencesBean.mmPrelimScreenAlert
== 'N'' again
he
right format).
Warning! bad advise ahead: You can always do something
crazy like:
dojo.widget.byId("dp").setValue = 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 PRO
I have this code:
It works fine if the user uses the drop-down or types
in a date in just the right format. However, we would
like the following to work better:
user input actual value desired
value
--
-
06-12-07 NaN-NaN
but adding 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]>
&g
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 th
ache.org/struts/browse/WW-1945
>
> musachy
>
>
>
> On 5/25/07, 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
> >
>
etSelectedValue("value");
>
> I can't try it myself now, but that's the only
> method that seems to set a
> value in the autocompleter widget.
>
> musachy
>
> On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
>
> executes said Action, then forwards to a JSP. If
> you have the browser
> access the JSP directly, it won't be available.
>
> Don
>
> On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> > This is working fine
I have an autocompleter like this:
In some JavaScript I would like to set the state to,
say, Arizona. This is not working:
var t = dojo.widget.byId('states');
t.value = 'AZ';
Any ideas? I also tried statesKey, no luck.
Thanks,
Scott
__
This is working fine in my main JSP:
However, when I call a dialog like this:
window.open('overlay-headends.jsp');
This JSP cannot access the fields in the
userDetailsBean in the main JSP.
Any ideas? The userDetailsBean is a session
attribute.
Thanks,
Scott
_
t;?
>
> musachy
>
> //if you really have to hack around reloadContent,
> 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 &l
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 =
> wid
t.beforeNotifyTopicsArray = null;
> 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
> pu
t passed as a parameter, if you are using
> 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 Nesb
framework to do the ajax request,
> Dojo, Prototype, YUI,
> 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
Does anyone know how to invoke a request from a submit
handler function?
I am using a submit tag like this:
Div 1
My Javascript looks like this:
function handler(widget, node)
{
alert("DEBUG in handler");
}
dojo.event.topic.subscribe("/after", function(data,
type, e)
{
alert("Lineup
ind posting the onload 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 o
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&
I would like to enable/disable the datetimepicker when
the user selects certain radio buttons. Here is my
tag:
I can disable (and clear) the textbox next to the
calendar icon like this:
var ud = getField('mainForm', 'untildate');
ud.value = "";
ud.disabled = true;
But this does not
alue? It is
> a Dojo thing and I'm not sure 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 setti
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:
In my onbodyload() function
to it from the other 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 c
ing /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 PROT
ed the value of what was
looked up in the sportsOrg field, but I can't seem to
get it. My sportsOrg and sportsOrgKey variables are
always null.
Scott
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Scott Nesbitt <[EMAIL PROTECTED]> wrote:
> > Not sure why it should b
getFoo()"
>
> regards
> musachy
>
> On 4/12/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > I have a form with an autocompleter like this:
> >
> > validate="false">
> >> action="LookupS
I have a form with an autocompleter like this:
I expected that my LookupSportsTeamAction class (which
extends ActionSupport and has a getter and setter on
foo) would be able to use the foo member variable.
But it is always null, though the sportsTeam variable
is being set co
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 c
uot;NCAA BKBL BIG EAST CONF"],
["NCAA BKBL BIG 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 f
like
>
> http://../LookupOrgs.action?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
I am using the autocompleter tag like this:
When I type a two-char string in the text box it works
fine: six items in the dropdown. However, when I add
another char there is nothing in the dropdown. When I
add a fourth char I get six items again. When I
backspace to three chars
? Just do:
>
>
>
> 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
>
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:
Edit
Lineup
In rewriteLink() I manually create a list of parameter
key/values. Is there a better way? In my
autocompleter tag I can just do formId="dataForm" and
in,
Scott
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> You can use the "formId" attribute, like:
>
>
>//fields here
>
>
>
>
> and it will pass the fields of the form as
> paramteers when the autocompleter
> is loaded.
>
>
I am trying to use the Ajax autocompleter and would
like to pass some parameters. This is my JSP:
Select a Sports Team
Unfortunately, state is not set and the only parameter
that is passed (a 'p' was typed in the field) has no
key:
10:
n 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 Paramet
OTECTED]> wrote:
> you can 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
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 = new
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 look
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:
Lineup History
Sadly, in my action class this:
log.debug("In execute, parameters size: " +
parameters.size());
says zero.
If I use the name of a select tag instead of a hi
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)
He
I am getting the same NPE in TagUtils.getStack that
was mentioned before at:
http://www.mail-archive.com/dev@struts.apache.org/msg26104.html
However, the resolution mentioned there (update
web.xml, get other necessary files) does not seem to
work for me.
I have no doubt that there is a simple c
"
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
__
Do you Yahoo!?
Yahoo! Photos: H
65 matches
Mail list logo