Hi all,
Can tag fetch the value processed by a specified ActionForm?
For instance, there's an ActionForm named TestActionForm, which has a field
defined with "String test". And the corresponding get-method getTest() will add
a prefix "p:" to the field test. Supposing the origin value of test is
2008/3/20, Chen Chunwei <[EMAIL PROTECTED]>:
> Can tag fetch the value processed by a specified ActionForm?
> For instance, there's an ActionForm named TestActionForm, which has a field
> defined with "String test". And the corresponding get-method getTest() will
> add a prefix "p:" to the fie
2008/3/20, Sonu S <[EMAIL PROTECTED]>:
> Hi,
>
> I have something like this in JSP :
>
> MALE
> FEMALE
>
> 1) i want to know how to make "Male" to be default selected when page is
> loaded
Initialize your ActionForm's "gender" property with "male".
> 2) I would set the value in form bean a
Ok i've done something like this :
struts-jsf.xml
http://struts.apache.org/dtds/struts-2.0.dtd";>
org.apache.struts2.jsf
Thanks Antonio.
Yes, this is exactly what I want.
And this is my fourth day to learn about JSP, STRUTS and everything about JAVA.
So I found there are too much to learn, whereas I don't have much time to learn
it systematically and I don't have enough materials to learn it from espesially
that
2008/3/20, Chen Chunwei <[EMAIL PROTECTED]>:
>
> And this is my fourth day to learn about JSP, STRUTS and everything about
> JAVA. So I found there are too much to learn, whereas I don't have much time
> to learn it systematically and I don't have enough materials to learn it
> from espesially that
Almost. :-(
Talos
- Original Message -
From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, March 20, 2008 5:01 PM
Subject: Re: About tag
2008/3/20, Chen Chunwei <[EMAIL PROTECTED]>:
>
> And this is my fourth day to learn about JSP, STRUTS and
Hi all, I'm trying to make a password field be at least 6 characters in
length but the check doesn't seem to work.
Here's my code:
/**
* @struts.validator type="required,minlength,maxlength,mask"
*
* @struts.validator-var name="minlength" value="5"
* @struts.validator-var name=
First of all, I'm not even sure if it's possible to use the portlet
and the jsf plugin at the same time. I have not tried, but there might
be issues with it if they try to do conflicting things in the
interceptors and the results.
> struts.xml
>
>
>
>
>
>
>
No it doesn't
On Wed, Mar 19, 2008 at 2:14 PM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Does your action implements ValidationAware interface?
>
>
>
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> --
> No it doesn't
Maybe that's the problem, FileUploadInterceptor check if action
implements it and add error messages. If you implement it, remember to
add result name=input.
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
What I need is to have one action and many various (POJO) objects, which
polulate and receive date from html form. POJO object should be selected by
the form, which is displayed (or submited). But I realy don't know how to do
this in Struts 2.
newton.dave wrote:
>
> --- bugs_ <[EMAIL PROTECTED
I have changed the myfaces lib with jsf lib.
Now i am getting the error :
javax.portlet.PortletException
at com.bea.portlet.container.PortletRequestDispatcherImpl.include(
PortletRequestDispatcherImpl.java:143)
at org.apache.struts2.portlet.result.PortletResult.executeRenderResult(
PortletResult.
Is it valid to, within the scope if a s:if tag, to:
a) Call non getter/setter methods on a bean on the stack
b) Reference some unrelated class' public static field (without a
getter method)
To give the situation some context, I'm attempting to do something similar
to the following
Hi, all.
I'm working on a form that would allow some arbitrary number of
documents to be uploaded at once. The idea is that by default, one set
of document fields appears, and there's a link that a user can click to
activate some javascript that would add another set of document fields.
I have thi
Hi all
Creating my first struts2 web application i came to the point where
questions about access restriction and authentication pop up.
I read some articles about these topics that cover certain single aspects
but none of them seem to answer all my questions.
As far as i learned, i think best
> I just read bout about Acegi (http://www.acegisecurity.org/). As far as i
> understand this framework would provide mechanisms for authentication and
> authorization (which also will be going to be a topic in a later project
> stage). In its documentation i read that it's working with spring.
Static access:
http://struts.apache.org/2.x/docs/ognl-basics.html
--- Michael Gagnon <[EMAIL PROTECTED]> wrote:
> Is it valid to, within the scope if a s:if tag, to:
>
> a) Call non getter/setter methods on a bean on the stack
>
> b) Reference some unrelated class' public static fie
Isn't it the case that Struts2 integrates Dojo, but a version older than
the latest Dojo version? Should I expect any difficulties if I try to
use the latest Dojo in a Struts2 application? I imagine this might
preclude trying to use the Struts2 tags that use Dojo widgets (or just
need some additi
--- "Karr, David" <[EMAIL PROTECTED]> wrote:
> Isn't it the case that Struts2 integrates Dojo, but a version older than
> the latest Dojo version?
Yes.
> Should I expect any difficulties if I try to
> use the latest Dojo in a Struts2 application?
Not if you're not trying to combine the two vers
The following link into the "Dojo Book" has an example. There are
others throughout the book. The "${...}" is substituted on the CLIENT
side.
http://dojotoolkit.org/node/3161
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 20, 2008 1:41 PM
>
Oh, the templates? Yeah, if you tried to use that notation on a JSP page it
would cause a problem. I'd imagine escaping the $ would work, although I
haven't tried it.
Dave
--- "Karr, David" <[EMAIL PROTECTED]> wrote:
> The following link into the "Dojo Book" has an example. There are
> others t
Yes, create a custom theme to get out of that table. css_xhtml may work
immediately.
Potential issues:
- Your current approach is also going to create nodes with duplicate
ids. This may confuse some browsers badly. At least remove the ID from
the template
- I'm not sure that order is guarante
23 matches
Mail list logo