You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/04/05 16:02:49 UTC

DO NOT REPLY [Bug 34305] - import attribute in
in

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34305>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34305


hrabago@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|[FEATURE REQUEST] import    |import attribute in <form>
                   |attribute in <form> in      |in <form-bean>
                   |<form-bean>                 |




------- Additional Comments From hrabago@gmail.com  2005-04-05 16:02 -------
You're in luck!  This feature has just been added and is available in the latest
nightly builds found on
http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-core/

Instead of "import", we use "extends":

<!-- the form to extend -->
<form-bean name="baseForm" 
    type="org.apache.struts.action.DynaActionForm">
    <form-property name="firstName" type="java.lang.String"/>
    <form-property name="lastName" type="java.lang.String"/>
    <form-property name="score" type="java.lang.String"/>
</form-bean>

<!-- the form extending baseForm -->
<form-bean name="subForm"
    extends="baseForm">
    <form-property name="attempts" type="java.lang.String"/>
</form-bean>

subForm will end up with: 
<form-bean name="subForm" 
    type="org.apache.struts.action.DynaActionForm">
    <form-property name="firstName" type="java.lang.String"/>
    <form-property name="lastName" type="java.lang.String"/>
    <form-property name="score" type="java.lang.String"/>
    <form-property name="attempts" type="java.lang.String"/>
</form-bean>


Hubert

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: DO NOT REPLY [Bug 34305] - import attribute in in

Posted by James Mitchell <jm...@apache.org>.
I presume you mean 1.3.x

Get the latest struts-example and it will have what you need.

http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-apps/


--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
678.910.8017
AIM:   jmitchtx
Yahoo: jmitchtx
MSN:   jmitchell@apache.org




----- Original Message ----- 
From: "Riyaz Mansoor" <rm...@gmail.com>
To: "Struts Developers List" <de...@struts.apache.org>
Sent: Thursday, April 07, 2005 8:36 AM
Subject: Re: DO NOT REPLY [Bug 34305] - import attribute in <form> in 
<form-bean>


> for the development core 3.0 struts is there a download available with
> the required jars ? the dependencies has changed a lot it seems.
>
> :)
>
>>> is there a nightly build or something available with it?
>
>> Yes, here...
>
>> http://jakarta.apache.org/commons/validator/downloads.html
>
> thanks again. will try n build this validator :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: DO NOT REPLY [Bug 34305] - import attribute in in

Posted by Riyaz Mansoor <rm...@gmail.com>.
for the development core 3.0 struts is there a download available with
the required jars ? the dependencies has changed a lot it seems.

:)

>> is there a nightly build or something available with it?

> Yes, here...

> http://jakarta.apache.org/commons/validator/downloads.html

thanks again. will try n build this validator :)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: DO NOT REPLY [Bug 34305] - import attribute in in

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
----- Original Message ----- 
From: "Riyaz Mansoor" <rm...@gmail.com>
Sent: Wednesday, April 06, 2005 12:07 PM


> > It was done in validator about a year ago - but just hasn't been
released
> > yet.
>
> hi. u mean that no final release has been made after the patch was
> submitted?

Yes

> is there a nightly build or something available with it?

Yes, here...

http://jakarta.apache.org/commons/validator/downloads.html

> riyaz
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: DO NOT REPLY [Bug 34305] - import attribute in in

Posted by Riyaz Mansoor <rm...@gmail.com>.
> It was done in validator about a year ago - but just hasn't been released
> yet.

hi. u mean that no final release has been made after the patch was
submitted? or was the patch never inserted to validator?

is there a nightly build or something available with it?

riyaz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: DO NOT REPLY [Bug 34305] - import attribute in in

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
It was done in validator about a year ago - but just hasn't been released
yet.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27870

Niall

----- Original Message ----- 
From: "Riyaz Mansoor" <rm...@gmail.com>
To: "Struts Developers List" <de...@struts.apache.org>
Sent: Wednesday, April 06, 2005 11:04 AM
Subject: Re: DO NOT REPLY [Bug 34305] - import attribute in <form> in
<form-bean>


> > You're in luck!  This feature has just been added and is available in
the latest
> > nightly builds found on
> > http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-core/
> >
> > Instead of "import", we use "extends":
>
> oh great!!! i had actually written the code to do it with RuleSet
> SetProperty as a hack which i was gonna submit. :)
>
> any chance this will be added to form validation as well?
>
> instead of writing or copy/pasting ... just extend the <form> in
validation.xml?
>
> great work guys.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: DO NOT REPLY [Bug 34305] - import attribute in in

Posted by Riyaz Mansoor <rm...@gmail.com>.
> You're in luck!  This feature has just been added and is available in the latest
> nightly builds found on
> http://svn.apache.org/builds/struts/maven/trunk/nightly/struts-core/
> 
> Instead of "import", we use "extends":

oh great!!! i had actually written the code to do it with RuleSet
SetProperty as a hack which i was gonna submit. :)

any chance this will be added to form validation as well? 

instead of writing or copy/pasting ... just extend the <form> in validation.xml?

great work guys.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org