Hi,
Thanks for your reply, i tried this code but it is returning
nodes.length as zero though i have a tree with 1 root and 3 child nodes for
root. this is my code snippet
*tree
*
*javascript*
var nodes = dojo.widget.manager.getWidgetsByType('struts:StrutsTreeNode');
alert("Number of
I don't know what ForwardResolution is, but if you need the
functionality of jsp:forward, why not use that?
L.
Eric Nelson wrote:
Thanks Zak. However, the s:action tag calls an action inline, and renders the
results on the same page. I'm looking to forward the request on, similar to
. Doe
Hi,
I have a problem when using the token and fileUpload interceptor
together (Struts 2.0.11.2).
When I put fileUpload before token in my interceptor stack and I
upload a file larger than the maximum allowed I get 2 error messages:
* the request was rejected because its size (1454475
I considered putting the Tile Controller on each Ad Tile that would
collect Ad codes to expose to in the request, which works, except that
each Tile is rendered and flushed to the browser one at a time, so by
the time the last Ad is processed, the header (which contains the Ad
engine code) has alre
I had no issues using the datetimepicker with FF3. Maybe your problems
are related with the following post:
http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/firefox-3-and-struts-2-theme-ajax-render-issues
2008/9/30 Abhinav Sharma <[EMAIL PROTECTED]>:
>
> I am using inbuilt struts
--- On Tue, 9/30/08, Williams, Marlon wrote:
> Your solution works great! Syntax issue, bad on me. Thanks very much!
No problem.
> DAN IS THE GREATEST! Singing the praises.
Who's Dan?
Dave
-
To unsubscribe, e-mail: [EMAIL PR
Your solution works great! Syntax issue, bad on me. Thanks very much!
DAN IS THE GREATEST! Singing the praises.
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 2:22 PM
To: Struts Users Mailing List
Subject: Re: International Menu Help
--- On Tue, 9/30/08, Willia
--- On Tue, 9/30/08, Williams, Marlon wrote:
> Menu ts_login = new Menu();
> ts_login.setId("1102");
> //ts_login.setLabel("Login");
> // This is hard coding
> ts_login.setLabel("menu.login");
>// This also is hard coding
> //ts_login.setLabel("
When I use ComponentContext and get the attributes in the context, is
there a way to determine that attribute "A" is a Tile and I can then
drill into that Tile and get a list of its attributes? Can I do an
"instanceof" against the Object returned from "getAttribute" to compare
it to some class tha
I am trying to build and use a Yahoo UI menu in my struts2 / tiles2
application. The menu I am creating is a static 'logged out' menu created in
the action triggerd by the web app 'index.jsp'. The menu is a List
collection and is added to the session, e.g. session.put("basicMenu",
basicMenuLi
Siemback, Chris wrote:
Hello all - sorry if this is a newbie question, but I haven't seen this
addressed before. I'm currently using the fileupload interceptor in my
application. I have 2 distinct portions of the web site where I'd like
to have users upload files. The problem is the struts..mu
Well, I just need to know if Tile definitions A, B and C are in the
chain of Tiles to be inserted in the particular page render, and if so,
put some variables in the Request or Page scope for the JSP to pick up
during render.
-Ryan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
2008/9/30 Shelley, Ryan <[EMAIL PROTECTED]>:
> Interesting! Is there a URL to some documentation or examples or are
> there any examples of Tile Controllers in any of the packages?
The only thing that I can find is this:
http://www.theserverside.com/tt/articles/article.tss?l=Tiles101
> So in the
Interesting! Is there a URL to some documentation or examples or are
there any examples of Tile Controllers in any of the packages?
So in theory, if we put a custom Tile Controller on the primary Tile
definition, that Controller class could inspect down into the Tile tree
for that view and set pa
2008/9/30 Shelley, Ryan <[EMAIL PROTECTED]>:
> Thanks for the prompt response! We're using Spring Controllers and not
> Struts Controllers. Tiles is the only Struts component we're using.
> Unfortunately, we have hundreds of Spring Controllers, and it wouldn't
> be feasible to refactor them all t
Thanks for the prompt response! We're using Spring Controllers and not
Struts Controllers. Tiles is the only Struts component we're using.
Unfortunately, we have hundreds of Spring Controllers, and it wouldn't
be feasible to refactor them all to use a separate Controller type.
Thanks for the sugg
2008/9/30 Shelley, Ryan <[EMAIL PROTECTED]>:
> We were wondering if there is any way for us, in the primary view Tile,
> to inspect the Tile definitions that WILL be loaded into the page.
I don't know if it's useful, but you could use a Tiles controller to
preprocess your definition:
http://struts
Hi All,
We're using Struts Tiles 1.3.5 in Spring 2.0 on Tomcat 5.5 and Java 1.6.
With Spring, we're loading a view that is a Tile definition. That Tile
loads several other Tiles respectively. Some of those sub-Tiles include
global advertising Tiles such as the banner ad, a square ad, a pop-un
Thanks Zak. However, the s:action tag calls an action inline, and renders the
results on the same page. I'm looking to forward the request on, similar to
. Does Struts have a class similar to ForwardResolution?
--Eric
-Original Message-
From: zakary melvin [mailto:[EMAIL PROTECTED]
You can use the struts tag. Just include a reference to the
struts-tags<%@
Then call the action like this:
http://struts.apache.org/2.x/docs/action.html
Documentation can be found here:
Hope this helps,
Zak
- Original Message
From: Eric Nelson <[EMAIL PROTECTED]>
To: user@struts.a
What I spoke of doesn't really address your immediate issue, which was
how could you use different error messages for client-sided and
server-sided validation. It's more of a workaround as it eliminates the
need to have your error messages contain links to the fields.
Have you ever filled out a
I am using inbuilt struts 2 ajax date time picker for my web application. It
works fine with FireFox 2 but I face issues with rendering of these controls
in FireFox 3. FireFox 3 is really unpredictable in rendering date picker
and time picker. Sometime it does not renders date picker or time pic
Hi all. I'm looking into how to invoke a Strut's action from a JSP
page. I'm able to do it pretty easy in Stripes with this code:
<[EMAIL PROTECTED] import="simplifile.web.action.ScheduleTransactionAction"%>
<[EMAIL PROTECTED] import="net.sourceforge.stripes.action.ForwardResolution"%>
<[EM
but this does not give me access to the Guice injector, which is what I
wanted. I think the ServletContextListener would work only if using Spring.
Chris Pratt wrote:
>
> I think the more common way is to use a standard ServletContextListener.
> (*Chris*)
>
> On Tue, Sep 30, 2008 at 2:16 A
Kawczynski, David wrote:
Your Action classes can add ActionMessages for a specific property, not
just GLOBAL_MESSAGES.
Then, display GLOBAL_MESSAGES at the top of the page, and field-specific
ones relative to the field.
(this will work in 1.3.8)
See
http://struts.apache.org/1.2.7/api/org/apac
Geia sou wre Dimitri.
Dimitris Mouchritsas wrote:
we are using elements in our error messages to allow the user to
go to the form field when the error message shows up.
Obviously this messes up the client side javascript popup message
which shows like: Username is missing.
Is there a way to u
I think the more common way is to use a standard ServletContextListener.
(*Chris*)
On Tue, Sep 30, 2008 at 2:16 AM, Ron Chan <[EMAIL PROTECTED]> wrote:
>
> There's been a number of messages about this, and I've tried a number of
> different suggestions. After going round in circles for a few d
Your Action classes can add ActionMessages for a specific property, not
just GLOBAL_MESSAGES.
Then, display GLOBAL_MESSAGES at the top of the page, and field-specific
ones relative to the field.
(this will work in 1.3.8)
See
http://struts.apache.org/1.2.7/api/org/apache/struts/action/ActionMessa
Dimitris Mouchritsas wrote:
Hi all,
we are using elements in our error messages to allow the user to
go to the form field when the error message shows up.
Obviously this messes up the client side javascript popup message
which shows like: Username is missing.
Is there a way to use a different
Hi all,
we are using elements in our error messages to allow the user to go
to the form field when the error message shows up.
Obviously this messes up the client side javascript popup message which
shows like: Username is missing.
Is there a way to use a different error message or should we ab
As far as I know, it is not possible to expand tree widget server-side.
Client-side, javascript can be used to open the tree, like so:var nodes =
dojo.widget.manager.getWidgetsByType('struts:StrutsTreeNode');
for( var i=0; i < nodes.length; i++){
nodes[i].expand();
}
Jukka
On Tue, Sep 30, 20
any one who worked on tree control plz give some helping hand
On Fri, Sep 26, 2008 at 3:34 PM, Narayana S <[EMAIL PROTECTED]> wrote:
> Hi
> Is it possible to display a tree expanded by default?
> I am using struts 2.1.2 dojo-plugin to create the tree structure. any one
> used tree...pl
A couple of interesting lines in the log:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
Nils-H
On Tue, Sep 30, 2008 at 2:41 PM, abmyers <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to do t
Hi,
I'm trying to do the Struts 2 + Spring 2 + JPA + AJAX tutorial from
http://struts.apache.org/2.1.2/docs/struts-2-spring-2-jpa-ajax.html but I am
getting some errors when I start the app:
30/09/2008 22:35:35 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{
Hi,
if you use xml validation, you should use a validator like this one :
mySelectBox
0
Please select a value
As your default value is -1, the validator will only check if the value
is not -1. For the rest of the values, there won't be any other check.
If you use annotation va
Hello all - sorry if this is a newbie question, but I haven't seen this
addressed before. I'm currently using the fileupload interceptor in my
application. I have 2 distinct portions of the web site where I'd like
to have users upload files. The problem is the struts.multipart.maxSize
attribute
hi to everybody...
i am getting the problem with validating the filed which contains the drop
down box. from the box we can select the item to the field.
the headerkey="-1" header value="select one item".
how to validate these type of fileds.
my problem is---?
if didn't select any item
I have finally solved it! I did not modify any template.
This is the code in my subscribe function:
if (type == "load") {
dojo.require("dojo.widget.Parse");
var widgetParser = new dojo.widget.Parse();
var xmlParser = new dojo.xml.Parse();
var initIndex
It would be grate if you could share your code. I am waiting for it :)
About my code, I think ther big problem is how to pass the jsonResult to the
script, because the line below is saving the result in a local string...
String jsonResult = serializer.exclude("*.class").deepSerialize(json);
Yes. I looked and even found article about this.. But Its aren't dinamic
double select fields
ReadOnly wrote:
>
> ReadOnly wrote:
> Hi.. May be someone can help me:)..I start use struts 2.0.11, spring,
> hibernate. I need create cascading select fields.. For example: first
> select: city s
When a jsp enters in struts' filter, it's read and each tag prefixed by
in the template package. It's one of the core purposes and I don't think
it's a good idea to change this. I would rather recommend you to modifiy
the ftl instead or try not to use dojo by loocking at the ftl. It seems
that
I would prefer to call whatever struts calls to apply this template
instead of changing it. Do you know how struts invokes this template?
Thank you.
Sébastien Domergue escribió:
I finally found where struts call dojo. In struts' jar, check the
package template.simple. You'll find datetimepicke
I finally found where struts call dojo. In struts' jar, check the
package template.simple. You'll find datetimepicker.ftl. This is the
base used by struts to generate HTML. The syntax is not very hard and
you'll easily see where dojo is called. If you want to modify this, you
can modify the inn
There's been a number of messages about this, and I've tried a number of
different suggestions. After going round in circles for a few days, I
eventually ended up with just a few lines of code that seems to work. I
basically extended the FilterDispatcher, added to the init() method and used
the
Yes, that is my problem. Do you know how to do to get it? I don´t see
where struts call dojo via javascript to parse the form...
Thank you very much.
Sébastien Domergue escribió:
Sorry for the misunderstanding.
The difference that you see between the form while loading and the
form loaded com
Sorry for the misunderstanding.
The difference that you see between the form while loading and the form
loaded comes from dojo widget only. Struts rewrites the tag
with a call to dojo (in javascript) which is executed
on the client side. You could find the process construction in dojo's
sourc
Thank you Sébastien, but this is not actually my issue, but when does
dojo do create the hidden inputs for each s:datetimepicker tag. (why if
I have the form when loads and once it is loaded, they are different.)
Sébastien Domergue escribió:
Hello,
We are using Struts 2 + Dojo too and it seem
Hello,
We are using Struts 2 + Dojo too and it seems that datetimepicker
separate informations into a list with two elements. The first one is
the date and the second one is the time.
Nevertheless, we still have problems to repopulate our inputs after an
action. So we "rebuild" Strings to rend
Hello,
I am using Struts 2.0.9 + dojo 0.4.
I would like to know when dojo adds two hidden inputs for each
tag.
I have a topic that is published when I load a form and when I recieve
the data and parse the form (type == "load"), it has "N" elements. When
the form is rendered, if I see it in
Thank you very much! This works!
Gabriel Belingueres schrieb:
Inside the form.ftl, the stack.findValue(id') will find the form's id
attribute, since the Form component is _already_ pushed into the
stack. Hence, your action's id variable is shadowed by the form's id
variable.
What you would need
ReadOnly wrote:
ReadOnly wrote:
Hi.. May be someone can help me:)..I start use struts 2.0.11, spring,
hibernate. I need create cascading select fields.. For example: first
select: city second select: streets .. When you are choosing city in the
first one select second one need show streets
51 matches
Mail list logo