Hi Abdul,
the error log You have shown states that the setPriceMrpPerPiece
method is causing a problem,
so look again in Your app, add some debuging. Converting from/to Long
should work out of the box.
Best greetings,
Paweł Wielgus.
2009/6/8 Abdul Qayyum qayy...@gmail.com:
Hi,
I am doing a
thats fine. in many cases it has the same syntax like the sx tags.
e.g.
sx:a href=%{myaction} targets=mytargetLink/sx:a
looks with the jquery plugin
sj:a href=%{myaction} targets=mytargetLink/sx:a
The sx:a and sx:div tags has an Attribute to highlight the Target after
result is finished.
anything different with ThemeRoller?
BTW: nothing wrong with handcoding
its what us old-timers had to do before IDEs
Muchas Gracias/Vielen Danke
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese
Hi Folks,
In Struts 2.1.6, if we have a result name=success type=redirectAction,
for example,
result name=showReportResult type=redirectAction
param name=actionNamegenerateReport/param
param name=namespace/genReport/param
param name=reportTypepie/param
Refer
Okay, since it came up recently, I created a plugin with slightly
better multipart request handling capabilities.
I had to make a few small changes to struts2-core, so if you want to
test out the fileupload plugin, you'll have to either grab struts2
from svn and build it yourself, or download the
Firstly, I persist the portraits (images) of all users in the db as Strings
(large one, say length 5000). Then, I want to get the String and display the
portraits of users on the web page(like a topic in a forum). Here I know
three solutions but none of them is efficient:
1. Because the image is
ruby folks seem to favour a content-type of text/x-json over
application/json
http://www.ruby-forum.com/topic/94728
(prevailing argument with text is you can read it)
wikipedia seems to lean to automatically associating application/json as JSON
I opted to go with application/json because of this -
http://www.ietf.org/rfc/rfc4627.txt
it is accepted by the IANA.
Anyhow, that serialization, and deserialization in the unit test is
only there until the JSON result type gets officially brought into
core.
-Wes
On Tue, Jun 9, 2009 at 12:09
You should persist the images as bytes, in a binary field or something similar.
1. Because the image is large, it's not efficient to store it in
objects(beans).
Well this depends on the Bean. Is the bean stored in session? If yes
then it will take up some memory. If you dont have alot of
You need to set hte requestURI attribute
see
http://displaytag.sourceforge.net/1.2/displaytag/tagreference.html#display-el:table
On Mon, Jun 8, 2009 at 12:11 PM, Bhaarat Sharmabhaara...@gmail.com wrote:
Hi guys,
I'm starting displaytag for the first time.
I have a simple Struts2 action that
Richard Sayre wrote:
You should persist the images as bytes, in a binary field or something
similar.
1. Because the image is large, it's not efficient to store it in
objects(beans).
Well this depends on the Bean. Is the bean stored in session? If yes
then it will take up some
Hello everyone,
I'm wondering is there a way I can insert a displayTag table into my
struts form? I want the table to appear under form edit controls, but
before the buttons, like a master detail type of view. I'd like to know
if there is a way to do this without making changes to the default
Hello everyone,
I'm wondering is there a way I can insert a displayTag table into my
struts form? I want the table to appear under form edit controls, but
before the buttons, like a master detail type of view. I'd like to know
if there is a way to do this without making changes to the default
Michael, which version of struts? (assuming Struts 2 since you mention
templates, but want to be sure)
-Wes
On Tue, Jun 9, 2009 at 3:17 PM, Griffith, Michael
*michael.griff...@fda.hhs.gov wrote:
Hello everyone,
I'm wondering is there a way I can insert a displayTag table into my
struts form?
Sorry, yes -- Struts 2 (2.1.6).
-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com]
Sent: Tuesday, June 09, 2009 2:21 PM
To: Struts Users Mailing List
Subject: Re: Can I insert a table into a struts form without changing
the template?
Michael, which version of struts?
I don't think there is a really great way to do it. If you really want
to get a solid handle on it, look through
template/xhtml/controlheader*.ftl and
template/xhtml/controlfooter*.ftl do. To summarize it, they create a
two-column row in the table :)
I think you can pretty easily add your element
It's a report and the requirement I'm trying to satisfy is that you
have to be able to save it as a MS Word *.doc file. What I've
discovered is that you can take a stand-alone html file (i.e. no
external files like images or CSS etc. ) change the file extension
from *.html to *.doc and double
It would be a nice feature to have as a struts tag to allow other tags
or HTML into the form without mucking about with the template.
Something like:
s:embed
display:table id=results
class=displaytag
name=search-results
fireapple wrote:
If I want to persist images to the hard drive of server. Shall I persist the
data inside WAR or outside? Because user can change their portrait, does it
mean it must be persisted outside WAR?
You can't write stuff into your WAR.
Dave
Griffith, Michael * wrote:
I'm wondering is there a way I can insert a displayTag table into my
struts form? I want the table to appear under form edit controls, but
before the buttons, like a master detail type of view. I'd like to know
if there is a way to do this without making changes to the
Can't put em in your database as BLOB's with all the other user info?
On Tue, Jun 9, 2009 at 4:26 PM, Dave Newtonnewton.d...@yahoo.com wrote:
fireapple wrote:
If I want to persist images to the hard drive of server. Shall I persist
the
data inside WAR or outside? Because user can change
Dave,
Thanks for the reply.
Create a trtd colspan=2...
Do this in my form, or change the template?
MG
-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com]
Sent: Tuesday, June 09, 2009 3:27 PM
To: Struts Users Mailing List
Subject: Re: How can I insert a table into a
Jim Collings wrote:
It's a report and the requirement I'm trying to satisfy is that you
have to be able to save it as a MS Word *.doc file. What I've
discovered is that you can take a stand-alone html file (i.e. no
external files like images or CSS etc. ) change the file extension
from *.html to
Griffith, Michael * wrote:
It would be a nice feature to have as a struts tag to allow other tags
or HTML into the form without mucking about with the template.
Something like:
s:embed
display:table id=results
class=displaytag
name=search-results
requestURI=summary.action
Griffith, Michael * wrote:
Create a trtd colspan=2...
Do this in my form, or change the template?
On your page.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail:
You can easily use Themes created with jQuery Themeroller.
Take a look in the Wiki about Custume Themes
http://code.google.com/p/struts2-jquery/wiki/HeadTag
BTW: I also have handcoding befor but a taglib can speed up
the development and reduce the javaScript Code in my jsp.
mgainty wrote:
Thanks Dave! That was too easy. Here I thought I would have to edit the
template. I'm always over thinking S2.
How can I make my submit buttons show up next to each other, rather than
on separate rows (using xhtml template)
s:submit action=cancel key=button.cancel
I have a little js script that allows multiple targets (using jquery
selectors), using a comma separated list.
Should I mail it or put in on the wiki?
Also, I think better control is acchieved using selectors, than plain
targets. what do you think?
Si quieres ser más positivo, pierde un electrón
On Tue, Jun 9, 2009 at 4:51 PM, Griffith, Michael
*michael.griff...@fda.hhs.gov wrote:
Thanks Dave! That was too easy. Here I thought I would have to edit the
template. I'm always over thinking S2.
How can I make my submit buttons show up next to each other, rather than
on separate rows
I need to access a session variable from one of the FreeMarker Theme
templates, and I can't seem to find the proper syntax. One site said to use
${Session.formToken}, but that seems to give me a lovely red on yellow error
box across my display. I've also tried ${#session.formToken} thinking OGNL
As usually happens after three hours of searching the web, finally breaking
down and asking the question, I ran across the answer and was able to find a
solution. So for anyone else out there that runs into this problem, this
won't work:
input type=hidden name=formToken
Awesome!
You just improved my understanding of how the theme works. I appreciate
the input from you and Dave.
Best Regards,
MG
-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com]
Sent: Tuesday, June 09, 2009 3:59 PM
To: Struts Users Mailing List
Subject: Re: How can I
in your ftl try
html
headtitleThis page has no title/title/head
body
br/the secret password is: @s.property value=#session.fubar/
/body
/html
?
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese
On Tue, Jun 9, 2009 at 4:31 PM, Dave Newton newton.d...@yahoo.com wrote:
Jim Collings wrote:
It's a report and the requirement I'm trying to satisfy is that you
have to be able to save it as a MS Word *.doc file. What I've
discovered is that you can take a stand-alone html file (i.e. no
Jim Kiley wrote:
Just for fun I just tried it -- made a trivial HTML file, named it
foo.doc, and double-clicked, and it did open in Word. Properly formatted
and so on too. Word is happy to open HTML files. It loves you and it wants
you to be happy.
On *your* machine, perhaps. On all my
did you try ${session.formToken} (case sensitive)
On Tue, Jun 9, 2009 at 2:08 PM, Chris Prattthechrispr...@gmail.com wrote:
${Session.formToken}
--
Hey you! Would you help me to carry the stone? Pink Floyd
-
To unsubscribe,
Yup, didn't work either, but I found the workaround, thanks.
(*Chris*)
On Tue, Jun 9, 2009 at 3:56 PM, Musachy Barroso musa...@gmail.com wrote:
did you try ${session.formToken} (case sensitive)
On Tue, Jun 9, 2009 at 2:08 PM, Chris Prattthechrispr...@gmail.com
wrote:
${Session.formToken}
On Tue, Jun 9, 2009 at 6:25 PM, Dave Newton newton.d...@yahoo.com wrote:
Jim Kiley wrote:
Just for fun I just tried it -- made a trivial HTML file, named it
foo.doc, and double-clicked, and it did open in Word. Properly
formatted
and so on too. Word is happy to open HTML files. It loves
Jim Kiley wrote:
That surprises me, since I had always assumed that Windows based the
application of choice on the file extension. I wonder what other guidance
is being used. Content-type?
AFAIK it's extension in both XP and Vista. Can't check the XP machine
now, but my Vista machine
Hi all,
I decided to externally paginate the display tag, by implementing the
org.displaytag.pagination.PaginatedList interface in my struts action.
As I already had all the fields the interface defined (but with
different names), it's only adding some extra getters.
The weirdness comes here:
The
Yeah windoze still honors extension, but they have added the ability
to make multiple associations. However, if memory serves, IE honors
content-type. So if set it to application/msword or whatever it should
try to launch a word doc viewer. I noticed an example of the wrong
way recently while
Yes, please put it in on the Wiki or Tracker.
At the moment the plugin supports multiple targets
for anchor and submit. You can see it at the wiki.
Best Regards
Johannes Geppert
http://www.jgeppert.com
Miguel-55 wrote:
I have a little js script that allows multiple targets (using jquery
42 matches
Mail list logo