archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eshan Sudharaka <esudhar...@gmail.com>
Subject Re: Regarding MRM-1399
Date Sun, 19 Sep 2010 00:55:37 GMT
Hi Brett,
Thanks for the help and  I checked out redback source code from following
svn repository and the examples you mentioned are not there. Am referring
wrong source code ..?

 svn checkout https://svn.codehaus.org/redback/redback-site/trunk redback-site
http://redback.codehaus.org/source-repository.html

Thanks.



On Tue, Aug 31, 2010 at 7:05 PM, Brett Porter <brett@apache.org> wrote:

> It would depend how you constructed the HTML, but I'd suggest you'd have
> more luck with a List<String> which will just return all the ones that were
> checked (and you will have to determine what was omitted, as the "false"
> ones will never be sent).
>
> An example of this used in Archiva can be found in the Redback source code
> that is merged in, in the AssignmentsAction.java and assignments.jsp
>
> Cheers,
> Brett
>
> On 31/08/2010, at 11:18 AM, Eshan Sudharaka wrote:
>
> > I have a implementation issue regarding
> > MRM-1399<http://jira.codehaus.org/browse/MRM-1399>. Here we are
> > supposed to display conflicting artifacts list which is a
> > dynamic one. Then by checking each one we can skip them being merged to
> > target repository. In order to do that we need to have boolean variables
> for
> > each artifact (in action class). since conflicting artifact list is a
> > dynamic list we cant follow that way. So I decided to have a Hash Map as
> > follows.
> >
> > HashMap <String , Boolean > conflictingArtifacts = new HashMap <String
,
> > Boolean > ( );
> >
> > String variable is consisting name space + group id + artifacts id +
> > artifacts version. And boolean variable use for set user's preference to
> > merging the artifact or not. By default i am going to set true for all
> > artifacts and change this boolean value when the user check on a specific
> > artifact in  the jsp page. But it seems that normal setter method ( for
> the
> > hash map) is not invoking when user check an artifact.
> >
> > Here i want to know whether my approach is correct or wrong and Is there
> a
> > specific way to write a setter method for that. (in action class )
> >
> > Thanks.
> > --
> >
> > P.A.Eshan Sudharaka
> > Dept of Computer Science and Engineering
> > University of Moratuwa
> > Sri Lanka
> > http://esudharaka.blogspot.com/
>
> --
> Brett Porter
> brett@apache.org
> http://brettporter.wordpress.com/
>
>
>
>
>


-- 

P.A.Eshan Sudharaka
Dept of Computer Science and Engineering
University of Moratuwa
Sri Lanka
http://esudharaka.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message