codethought wrote:
On Nov 25, 2007, at 6:17 PM, hezjing wrote:
Hi
Where can I download the .zip of the Struts 2 CRUD Example?
See http://struts.apache.org/2.x/docs/crud-demo-i.html
Should we add a download link in the tutorial?
I'd like to find this, too...
It is
Ian Roughley wrote:
Hi everyone;
The question: for those that are not officially attending Javapolis,
and those that are, is anyone interested in an informal get together
during the conference? Meet some new people, have some beers, and maybe
even talk about Struts2.
Count me in,
Shoaib Gauhar wrote:
SEVERE: Error filterStart
SEVERE: Context [/library] startup failed due to previous errors
(/library is my projects path.)
Well, one of your listeners couldn't start. Check your logs (and if
necessary, increase the log level to debug) for a clue on which
I've added the defaultStack as first interceptor and it works now. Thanks!
Andreas Daab
--
-Ursprüngliche Nachricht-
Von: Musachy Barroso [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 26. November 2007 18:12
An: Struts Users Mailing List
Hi
What IDE are you using? Have you tried cleaning up your app and rebuilding?
On Nov 27, 2007 6:29 PM, Bionicoder [EMAIL PROTECTED] wrote:
Hi Ted,
Thanks for reply. Actually there is no validation XML for list method. Also
I delete validation XML files for other method too. However the
Interceptor names are camel-cased in S2.1.mumble. Try
tokenSession.
--- Shoaib Gauhar [EMAIL PROTECTED] wrote:
Regarding my previous mail, i have some how narrowed
down the problem. Below is my action as described in
my struts.xml.
action
name=LibraryItemFormInsertAction
hi,
I am trying to introduce a validation rule that checks that at least one
element has been
added to an optiontransferselect UI component. I use the expression type
validation but
does not seem to work ... see the details below.
field name=outSamplePeriods
field-validator
Hello,
I want to use the css_xhtml theme of struts 2. The problem is that by
default, the s:textfield ../ results in HTML of Label and input field that
have br/ between them.
This makes it hard to align the lable and the input field on the same line
using css.
Why is this br/ tag there?! An how
You can customize the templates by extracting them
from the jar and putting them in your classpath. The
br/ thing is irritating.
d.
--- Angel Gruev [EMAIL PROTECTED] wrote:
Hello,
I want to use the css_xhtml theme of struts 2. The
problem is that by
default, the s:textfield ../ results in
Agreed...the br / is irritating ;)
Just to expand on what Dave said...
1) extract the template/simple/inputtransferselect.ftl file from the struts
jar.
2) put the file in your classpath, we have it in
WEB-INF/classes/template/simple
3) edit the file and remove the br /. For example:
change:
Right, hence my last comment in the second paragraph... Incidentally, I
saw that web page yesterday and was the one who added the anonymous
posting about the URIEncoding attribute not appearing to do anything.
What about the use of a filter to set the character encoding? Is this
the only
I'm using the css_xhtml theme and trying to create a submit button that
outputs something like:
button type=button class=button positive save
${ctx}/images/tick.png Save
/button
I would expect something like this to work:
s:submit type=button
cssClass=button positive save
value=
Hello,
Any idea about how the first command (getText) works but the second one
does not?
1.-
s:a theme=ajax loadingText= targets=workspaceAjaxContent
executeScripts=true
onclick=var a = confirm('%{getText('Delete.Confirm')}');
if (a)
First I'd try moving your JavaScript in to actual
JavaScript methods and calling them from onclick to
avoid any potentially weird escaping/quoting/etc.
issues. That eliminates any parsing-oriented issues.
d.
--- Pablo Vázquez Blázquez [EMAIL PROTECTED]
wrote:
Hello,
Any idea about how the
Tom Schneider wrote:
Both of those plugins, by default, would need the session to keep track of
the state.
Oh, duh. I didn't see that he wanted to avoid the session.
What is up with that BTW? There seem to be quite a few posts lately
from people wanting to do stuff and avoid the http
Hello,
How can I red my application name and the actions' extension?
For example: http://localhost:8080/scheduler-admintool-1.0/Workspace.do
I'd need a code to get scheduler-admintool-1.0 and do from the context.
Thanks.
-
How do I do something like this:
public class CustomFreemarkerManager extends FreemarkerManager {
@Override
protected BeansWrapper getObjectWrapper() {
BeansWrapper beansWrapperInstance = super.getObjectWrapper();
// !!! This won't compile due to
Hi,
Trying to build a form having a tree where each node in the tree needs to have
a checkbox to take input from the user. How can I accomplish this using struts
tree tag?
Thanks,
-Akash
-
Get easy, one-click access to your favorites. Make Yahoo! your
I can't say with 100% certainty because the context of this isn't totally
clear, but I'm relatively sure root is the root of the Freemarker data
model, which means it's nothing but a plain old Java Map. Without seeing
the rest of that class I couldn't tell you how to get a handle to root,
but
I try to upgrade an application 2.0.11 to 2.1.0 (with Struts tiles
plugin)
But when I put a dojo tag such as sx:datetimepicker into my JSP I have
this error (see below).
The sx:head/ is put into a tiles definition file (a JSP file in fact).
But when I put the sx:head/ directly into ma JSP page
When I put ajax tag such as sx:datetimepicker into a remote div
(sx:div), I've the error:
Exception : java.lang.NullPointerException
at
org.apache.struts2.dojo.components.DateTimePicker.evaluateParams(DateTim
ePicker.java:256)
at
Did you add sx:head / to your page?
musachy
On Nov 28, 2007 1:26 PM, Desbois Arnaud [EMAIL PROTECTED] wrote:
When I put ajax tag such as sx:datetimepicker into a remote div
(sx:div), I've the error:
Exception : java.lang.NullPointerException
at
On Nov 28, 2007 10:53 AM, Adam Gordon [EMAIL PROTECTED] wrote:
What about the use of a filter to set the character encoding? Is this
the only way to go for Struts?
I'd say so. It might be possible to add something to the
ActionServlet, but the solution wouldn't be any less heavy handed
than
In Struts 2.1, how I can customize the widget dojo look?
Can I create a custom Dojo profile (like
http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo
+profile+for+Struts+2.0.x)?
What is the best solution to customize (the CSS in fact) the dojo
widgets?
Regards
Do we still need to create
MessageResourcesFactory
And MessageResources to facilate the requirment. Do we have an easier
way to achieve the requirement? Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Has anyone been able to confirm that this issue is working? I don't seem
to get it to work yet JIRA says it is. This is about having a button
tag with an image and text inside the button.
Thanks,
Alberto
-
To unsubscribe,
Looks like this is a previously reported issue that was fixed:
https://issues.apache.org/struts/browse/WW-1677
However, I'm using 2.0.11 and it is still not working.
Thanks,
Eric
Eric Martin wrote:
I'm using the css_xhtml theme and trying to create a submit button that
outputs something
MassimoH wrote:
How do I do something like this:
public class CustomFreemarkerManager extends FreemarkerManager {
@Override
protected BeansWrapper getObjectWrapper() {
BeansWrapper beansWrapperInstance = super.getObjectWrapper();
// !!! This
Hi,
The IDE is JBoss IDE Eclipse 1.5 and the application server is JBoss 4.0.5.
Yes, the app war file has been totally cleaned and rebuilt. It does not
help.
Now I already found other workaround to solve my project problem. But I
still hope this weird problem can be figured out in order to
Alberto-
which button component are you speaking of?
Martin--
- Original Message -
From: Alberto A. Flores [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Wednesday, November 28, 2007 3:05 PM
Subject: WW-167 not working
Has anyone been able to confirm that this issue is working? I
Will you need to support UTF-8 Encoding?
Will you want a factory to create these class objects for you?
Did you have anything specific in mind?
M--
- Original Message -
Wrom: WFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKP
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday,
If I understand your question
use in jsp use
s:set to set the value
and reference the value later with s:property (without the # to access root
objects)
http://struts.apache.org/2.x/docs/crud-demo-i.html
M--
- Original Message -
From: Gary Affonso [EMAIL PROTECTED]
To: Struts Users
https://issues.apache.org/struts/browse/WW-1677
mgainty wrote:
Alberto-
which button component are you speaking of?
Martin--
- Original Message -
From: Alberto A. Flores [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Wednesday, November 28, 2007 3:05 PM
Subject: WW-167
Eric-
I just tossed this into a test.jsp page
s:submit type=button theme=simple
s:text name=SubmitTextName /
/s:submit
..and this was the rendered html output..
SubmitTextName
button type=submit id=example1_0 value=SubmitSubmit/button
anything wrong with the output???
Martin--
I have a jsp page that produces a matrix page based on database queries for
both column header records and row records. The column and row crossed
fields are displayed as multiboxes, i.e., each vertical column of those is a
multibox field named as crossCheckBox0, crossCheckBox1,
crossCheckBox2,
I have created tree that each node displays several attributes of an object,
i.e., top node is Dept object that user could see a checkbox field holds
DeptNo, DeptNo field, DName field, Location field. clicking top node +
image, the second layer nodes display Employee object that user could see a
Did you use ctrl or shift key and mouse to select multiple elements(less
than 5 in your case), then submit it?
On 11/21/07, Adrian Marrero [EMAIL PROTECTED] wrote:
Hi,
Sorry about reposting this topic and forgetting to put a subject the first
time.
Here is my issue.
Goal:
I would like
Martin,
Yes, there is a problem with the output. The SubmitTextName should be inside
the button tag, but in your example and others posted, the value gets placed
outside the button tag (seems to get displayed before the rendering of the
button.
I would expect the output to be:
button
Well, the problem comes from a real project we're developing by Struts2
framework.
We want to achieve the effect below:
http://www.nabble.com/file/p14019492/rightresult.png
Now we will use s:select tag to achieve the above effect, our code is:
Gary Affonso wrote:
Tom Schneider wrote:
Both of those plugins, by default, would need the session to keep
track of
the state.
Oh, duh. I didn't see that he wanted to avoid the session.
What is up with that BTW? There seem to be quite a few posts lately
from people wanting to do stuff
Try the following code.
table width=400 border=1 bordercolor=black
tr
tditem1/td
td
s:select list=%{'111','222'} theme=simple/s:select
/td
/tr
tr
tditem2/td
td
s:select
Desbois Arnaud wrote:
In Struts 2.1, how I can customize the widget dojo look?
The simplest approach is to override the css. Using the web developer
toolbar and firebug you'll be able to inspect the CSS and make alterations.
Can I create a custom Dojo profile (like
Thanks, Shoaib Gauhar. Your code does help us a lot. With theme = simple,
the tag can produce the right result.
Shoaib Gauhar wrote:
Try the following code.
table width=400 border=1 bordercolor=black
tr
tditem1/td
td
s:select
hi,
i included my chart in the jsp.but it's not getting refreshed with the data
values present in the database untill i do export it to pdf.after exporting
to pdf once after refreshing the page giving the correct results..can some
body help me?
--
View this message in context:
When I put the sx:head/ tag into the included page, it work fine, but the
dojo.js (564ko) is loaded twice (one for the sx:div and one for its content
which contains the sx:datetimepicker/).
It is normal/recommended to put several times the sx:head/ tag to render the
final page?
Arnaud
Hello:
I have been trying to migrate from 2.0.8 to 2.1. I had some problems which were
solved yesterday (thanks to you guys). But, now i am facing another problem
regarding tokenSession. The same piece of code was working in 2.0.8 but is not
working in 2.1. Actually it does work but at the
46 matches
Mail list logo