.
On Tue, Sep 30, 2008 at 7:49 PM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
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
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,
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
This is one bandwagon I've been riding since I read that comic. I've done a
brief overview of our app with Chrome, and mostly dojo tags seem to be
working perfectly. Div, button and tree, listen- and notifytopics work just
the same as in Firefox. There's one view with tabbedpanel where content
Hi all,
I have the following problem which I think is caused by Struts 2 type
conversion.
I have a class I use to wrap a map for easier interface with view:
public class ObjectWeekHandlerT {
private MapWeekDayEntry, T weekDayObjects = new HashMapWeekDayEntry,
T();
public
, Aug 20, 2008 at 8:17 AM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
Hi all,
I have the following problem which I think is caused by Struts 2 type
conversion.
I have a class I use to wrap a map for easier interface with view:
public class ObjectWeekHandlerT {
private MapWeekDayEntry
? Or is it just recognizing that it's a Collection and
treating it appropriately for a Collection of Objects?
(*Chris*)
On Wed, Aug 20, 2008 at 10:16 AM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
Sounds reasonable, thanks for the answer. But why do the generics used in
java collections work
Check out Appfuse http://appfuse.org/display/APF/AppFuse+QuickStart,
Struts 2 Modular version. It has this kind of setup
2008/7/23 Paweł Wielgus [EMAIL PROTECTED]:
Hi Joachim,
isn't StrutsTestCase for Struts 1.x ?
Best regards,
Paweł Wielgus.
On 23/07/2008, Joachim Ansorg [EMAIL
Hi all,
Does anybody know of a way to override the default type conversion error of
Struts 2 in a way that makes it possible to localize the field name? I've
tried using ${getText(fieldName)} and {0] in the overriding message, but
they don't seem to work.
Jukka
[EMAIL PROTECTED] wrote:
Hmm, I've used ${getText(fieldName)} in the resources without issues... I
wonder why that worked for me? Are you using the key attribute in the form
tag?
Dave
--- On Thu, 6/26/08, Jukka Välimaa [EMAIL PROTECTED] wrote:
From: Jukka Välimaa [EMAIL PROTECTED]
Subject
Hi all,
I'm trying to use struts 2 autocompleter tag, and having trouble doing so.
My first problem is that valueNotifyTopics attribute works only
incompletely.
When I've written something in the text field, even one letter is
sufficient, and pick the first option from the filtered list, the
Hi all,
I'm trying to format a certain string property of an object differently
depending on the object state. For this, I'm trying to call an action method
from the jsp, like this:
s:property value=%{ getFormattedIfDeleted( [0], [0].name ) } /
My problem is the following: if I use my class type
Well, I managed to solve this one. Ognl didn't actually pass the object
itself to the method, but rather an instance of
com.opensymphony.xwork2.util.CompoundRoot. I managed to get the object I
needed by using its peek() method.
On Fri, Jun 6, 2008 at 2:47 PM, Jukka Välimaa [EMAIL PROTECTED]
wrote
Hi all,
s:set name=hourMap value=#{120 : '5 d', 48 : '48 h', 24 : '24 h', 12 :
'12 h'} /
s:doubleselect id=timeSelect key=vehicleBased.period
label=doubleselect test1 name=hours listKey=key list=hourMap
doubleName=intervalLength doubleListKey=key doubleListValue=value
doubleList=%{(top == '120')
Hi all,
Ignore the earlier message, it was sent accidentally before I was finished
writing.
I have the following code in my jsp page:
s:set name=hourMap value=#{120 : '5 d', 48 : '48 h', 24 : '24 h', 12 :
'12 h'} /
s:doubleselect id=timeSelect key=vehicleBased.period
label=doubleselect test1
All the names of our actions that call up ajax content to separate sections
of page follow a certain naming convention. We have a filter that recognizes
this pattern, and if session has expired, serves a short message that has a
link to login page instead of the login page itself.
On Wed, May 21,
: [struts 2] Two forms for one action
Hi,
but how my action class is storing objects which are shown in jsp and also
it store objects inserted through jsp ? This mean that it have state
information ?
--
Thx, Milan
- Original Message
From: Jukka Välimaa [EMAIL PROTECTED]
To: Struts
Both forms don't call the same *instance* of the action class. Neither does
one form, actually.
For each request, Struts 2 uses a different instance of the same class. Once
the result is
rendered, the action object is no longer used. If you want to retain action
state information, you
must store
version of Struts 2 are you using? 2.0.11.1 works fine for me in the
same situation. Are you using the i18n interceptor? Also, how did you name
your resource files?
On Wed, May 7, 2008 at 11:30 AM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
Hi everyone,
I have the following lines in my
Hi everyone,
I have the following lines in my jsp file:
s:select
label=%{getText('workingTeam.team')} name=teamId listKey=id
listValue=name
list=workingTeams /
s:text name=workingTeam.team /
Of these two, using text tag gives me the internalization that has been
selected as
Ignore this. The problem was caused by an unbalanced div tag elsewhere in
the form.
On Tue, Apr 29, 2008 at 5:27 PM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
Hi,
I'm using struts ajax tag tabbedPanel inside a form. I have the following
problem: the tabbedpanel renders outside the form
Thank you for answering my question. I assume setting includeParams to
'none' means it will not automatically set any parameters at all, including
ajax parameters?
On Mon, Apr 28, 2008 at 10:52 PM, Laurie Harper [EMAIL PROTECTED] wrote:
Jukka Välimaa wrote:
Hi,
I have a problem--more
Getting the context path in jsp is something struts doesn't really
support--something I've had trouble with many times. One way to get around
the problem is scriptlet like Jim showed you. Recently, we used url tag for
the same purpose:
s:url id=saveImg value=/images/save.gif /
s:submit
Hi,
I'm using struts ajax tag tabbedPanel inside a form. I have the following
problem: the tabbedpanel renders outside the form in generated html, even if
the tags are placed inside the form element in jsp, and thus the tabbedpanel
can't be used to submit data. Is there a way around this?
Hi,
I have a problem--more of an annoyance, really--with struts s:url tag. It
adds parameters into the result url without my say-so and I don't really
understand on what grounds. For example, I had the following in my jsp page:
s:url id=addNewContract action=ajaxEditContract
s:param
].selectedNode);
}
}
}
On Mon, Apr 14, 2008 at 9:38 AM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
Hi,
Right now, I'm trying to construct a forest, or a tree menu with
multiple root nodes. I'm using struts ajax tags to do it, like so:
s:iterator value=%{#request.generatedForest
using, the tags seem to be
highly breakable; they give problems that are very difficult to debug.
On Sat, Apr 19, 2008 at 9:46 AM, Jeromy Evans
[EMAIL PROTECTED] wrote:
Jukka Välimaa wrote:
Thanks for input,
Yes, I have debug on. Interestingly enough, with firefox it gives me
just
For Struts 2.1.1, use type=redirectAction instead of
type=redirect-action. I just had the pleasure of debugging some problems
caused by it.
On Fri, Apr 18, 2008 at 4:12 PM, Don Brown [EMAIL PROTECTED] wrote:
Hmm...what should happen is those exceptions should be logged as a
warn, but the
name=status means that you are trying to pass the status object itself as
a parameter to a method setStatus. That is not possible--you need to pass
the id of the status if you want to indicate which status the user chose,
like this for example:
s:select key=form.status name=id
list=statusList
Doesn't your example indicate that it would set the field called id
-Original Message-
From: Jukka Välimaa [mailto:[EMAIL PROTECTED]
Sent: Friday, April 18, 2008 12:12 PM
To: Struts Users Mailing List
Subject: Re: Clarification on Type Conversion?
name=status means that you
with it completing the last operation. You may
have to switched to the uncompressed dojo script to find out where it's
failing in within the div widget.
Jukka Välimaa wrote:
Hi everyone,
I'm using Struts 2.1's ajax tags to replace content in a section of my
page.
I have this section
Hi everyone,
I'm using Struts 2.1's ajax tags to replace content in a section of my page.
I have this section enclosed in sx:div tags, like so:
sx:div id=pageContentSection preload=false href=%{myUrl}
listenTopics=/reloadContentSection
afterNotifyTopics=/contentSectionLoaded
With preparable, you can load the objects you need in prepare() method, and
do whatever specific you want in the actual called method. In CRUD actions,
it is very handy to use prepare and paramsPrepareParams to first load the
stuff you want, and after prepare all the parameters are inserted
Hi,
Right now, I'm trying to construct a forest, or a tree menu with multiple
root nodes. I'm using struts ajax tags to do it, like so:
s:iterator value=%{#request.generatedForest}
sx:tree label=%{[0].title}
selectedNotifyTopics=/NodeSelected toggle=fade
toggleDuration=0
Hi,
You do need a getter for list. I don't think you need a setter, though.
Your textfields should have a value attribute in addition to name, to access
the getters, which I suppose you have even if you don't show them, since it
displays your arraylist correctly. Is using #stat.index enough
Hi Ancat
like this:
s:iterator value=itinerary.cities status=city
s:textfield name=itinerary.cities[%{#city.index}] value=[0]
/s:iterator
Struts should take care of populating the array when you submit the form to
the action.
On Sat, Apr 12, 2008 at 8:26 PM, ancatdubher [EMAIL PROTECTED] wrote:
36 matches
Mail list logo