--- zafer Mohamed <[EMAIL PROTECTED]> wrote:
> Person-Conversion.properties [This should be in the
> same package as the Person class] with the below
> contents
I re-read the type conversion page; obviously your way
works, but the docs are somewhat vague or ill-worded.
It works my way too :)
> Th
Thanks Dave,
Got it working atlast...!
Here is what I have,
public class PersonAction extends ActionSupport {
private Person person;
public String execute() throws Exception { return SUCCESS; }
public Person getPerson() {return person;}
public void setP
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
SF,
Struts2 Fan wrote:
> src="images/hata.jpg">
>
>
> I want to define a validation for Age field as it is an example on
> the site. But if it is an invalid field I want the "ageerror" div to
> be visible and if not invisible.
You should be able t
You should be able to do this, be writing your own theme. Look in the
struts2-core-2.0.1.jar, all the themes are in "templates" folder, use them as
reference. You should know freemarker to do this, but I should be easy..
Zafer
- Original Message
From: Struts2 Fan <[EMAIL PROTECTED]>
To
--- Struts2 Fan <[EMAIL PROTECTED]> wrote:
> [...] So I wonder if we can have the opportunity to
> have a validation message such below.
> [...] will there be such an option for validation?
http://cwiki.apache.org/WW/themes-and-templates.html
d.
_
Yes it does work, I am using on every single page.
Rodrigo Pereira <[EMAIL PROTECTED]> wrote: hi All,
does anybody know if validator work with struts-faces?
I have read a lot of tutorials on the Internet, but no success at all
Thanks,
Rodrigo Pereira
Hi all,
I really don't like the position of the validation messages. And I
want to use theme="simple" tags always.
So I wonder if we can have the opportunity to have a validation
message such below.
I want to define a validation for Age field as it is an example on the site.
But if it is an
Hi there !
I got into a new problem, that i can't fix it. I have a page that i'd like
to show all the data from a table in the database, so i am using JTable. If
anyone can help me, i would be very gratefull. Thanks in advance !
Here is the JSP:
<%@ page import="databeans.*"%>
<%@ page import="
hi All,
does anybody know if validator work with struts-faces?
I have read a lot of tutorials on the Internet, but no success at all
Thanks,
Rodrigo Pereira
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
--- zafer Mohamed <[EMAIL PROTECTED]> wrote:
> Initializing the collection also did not help. If
> possible can you please let me know what are the
> conversion-properties files u have and their
> location [should they be in the package of the class
> or in the classpath] and does it need any addit
Thanks Dave,
Initializing the collection also did not help. If possible can you please let
me know what are the conversion-properties files u have and their location
[should they be in the package of the class or in the classpath] and does it
need any additional interceptor for this.
Zafer
--
--- zafer Mohamed <[EMAIL PROTECTED]> wrote:
> I have Person-conversion.properties in the "zm.junk"
> package. It is the same package where I have the
> Person and Role class
> CreateIfNull_roles=true
> Element_roles=zm.junk.Role
>
> And as for the other question I do not have the
> roles initiali
Hi Dave,
I am getting the below errors
15:18:15,192 ERROR [xwork2.util.XWorkMethodAccessor] An unexpected exception
occurred
ognl.OgnlException: Error getting property descriptor: null
at
com.opensymphony.xwork2.util.XWorkCollectionPropertyAccessor.getProperty(XWorkCollectionPropertyAccesso
Hi Saul,
I tried as u said, but still getting error. I get the below error
15:10:57,583 ERROR [xwork2.util.OgnlValueStack] Error setting expr
'person.roles[0].name' with value '[Ljava.lang.String;@121f4ef'
ognl.NoSuchPropertyException: zm.junk.Person.roles
I also added Person-conversion.propert
Hello Dave,
Thank you for your reply.
I'd like to have a "default" title in my layout tile and then redefine
it in the tiles I want, just like I redefine the other tiles
components.
The problem I'm having is that I'm not getting a tag to work when it
have another tag as an attribute value.
I t
--- Gonçalo Luiz <[EMAIL PROTECTED]> wrote:
> Is it clear what I'm trying to achieve?
Yep, I get it now :) I'm slow on Saturdays.
Can't help you, though :) I'm barely up-to-speed on
Tiles 2; I don't know if it's possible to have tiles
definitions be S2-namespace-aware or not.
Dave
_
--- Gonçalo Luiz <[EMAIL PROTECTED]> wrote:
> Is it clear what I'm trying to achieve ?
No; Why do you want the key in the tiles file?
d.
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Dr
Hello Dave,
Thank you for your answer.
I now I can have multiple files in a comma-separated list (BTW, right
now don't matter how I write it tiles configuration is assumed to be
in WEB-INF/tiles.xml, what do I need to put in my web.xml?).
What I'm trying to achieve is to use the same name for s
Hello Dave,
Thank you for your answer.
However what I want to achieve is a little more than just
internationalization, what I can do by simply using .
What I'm seeking is to put a key in tiles configuration file (usually
tiles.xml) like:
that gets included in the page by using . However by d
--- Gonçalo Luiz <[EMAIL PROTECTED]> wrote:
> I'd like to do something like name=" name="title"/>"/> to internationalize my page title.
You want to put the key in your tiles file?
S2 properties are already I18N-aware:
http://cwiki.apache.org/WW/localization.html
d.
___
--- zafer Mohamed <[EMAIL PROTECTED]> wrote:
> I am struggling to populate a collection in the
> struts action's attribute.
You neglect to say what the problem actually is, so
helping is... tricky.
> name="person.roles(0).name" />
As prev. poster said use [0], but this will only work
if you've
--- Gonçalo Luiz <[EMAIL PROTECTED]> wrote:
> Is it possible to have one tiles configuration file
> per struts namespace ?
For both S1 and S2 you can configure multiple tiles
config files in a comma-separated list.
d.
__
Hi,
You may want to try the following:
1. add index-based getter and setter to your Person bean class, i.e.
public Role getRoles(int i) {
return (Role) getRoles().get(i);
}
public void setRoles(int i, Role role) {
getRoles().set(i, role);
}
2. use [0] rather than (0) for your name field
I am struggling to populate a collection in the struts action's attribute. My
scenario is similiar to below
public class PersonAction extends ActionSupport {
private Person person;
public void setPerson(Person
person){ this.person = person}
public Person getPerson(){ return person}
pu
--- Simion Ursache <[EMAIL PROTECTED]> wrote:
> Oh my god ! That was it !
Don't you hate that?! :)
I think we've *all* had that happen... I know I have,
over and over again.
IIRC a bad ActionForward will show something in the
logs, but sometimes with tiles it will just fail
silently, so I tend t
Hi Luiz,
I am only a novice but this might help: replace the quotes by a single
quote around the title:
Oren
Gonçalo Luiz wrote:
Hello,
I'd like to do something like "/> to internationalize my page title. Then in the tiles
configuration I'd have
Is this possible to achive ?
---
Hello,
I'd like to do something like "/> to internationalize my page title. Then in the tiles
configuration I'd have
Is this possible to achive ?
When I try the above code all I get is an error: "/layout.jsp(7,17)
equal symbol expected"
Can you help me ?
--
Gonçalo Luiz
---
Hello,
Is it possible to have one tiles configuration file per struts namespace ?
Thank you.
Best Regards,
--
Gonçalo Luiz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I think in a bad&ugly (tm) solution using cookies, but you are free to
give it a try ; )
Put a session scoped flag that says "beenthere" in the Action of your
primary form. Null by default this variable will be initialized to
something the first time the user open your Action. If the user try t
Oh my god ! That was it !
I was so tired after recoding and so on that i missed a simple one like this
!
Thank you man ! God bless you !
On 2/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Simion Ursache <[EMAIL PROTECTED]> wrote:
> [... wow ...]
> [...]
> return mapping.findForward("succe
--- Simion Ursache <[EMAIL PROTECTED]> wrote:
> [... wow ...]
> [...]
> return mapping.findForward("success");
Is the snippet from the struts-config file a typo?
d.
Sucker-punch spam with award-winning prot
Hi !
I am learning to work with struts, after i click on submit button (in a
form) i get a blank page. This thing is annoying me because i can't find the
solution for a week !
The page has 2 hmtl list option. The first list loads info about a company
compartiments, and after hitting "Refresh Emp
32 matches
Mail list logo