[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-dev
Subject:    [jira] [Comment Edited] (COCOON3-114) The next year and previous year is incorrect of CalendarGenera
From:       "ZhiQiang,He (JIRA)" <jira () apache ! org>
Date:       2012-11-28 12:24:59
Message-ID: 1761804967.32246.1354105499641.JavaMail.jiratomcat () arcas
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/COCOON3-114?page=com.atlassian.jira.plugin \
.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505399#comment-13505399 ] 

ZhiQiang,He edited comment on COCOON3-114 at 11/28/12 12:24 PM:
----------------------------------------------------------------

I means is if you set the year with parameter:

parameters.put("year", 2012);

Whether the "prevYear" attrubte of <calendar:calendar> should be 2011, "nextYear" \
should be 2013, but in the output of yours, the previous year and next year always \
same as you set

The following is my sitemap pipeline configuration:

<map:pipeline>
	<map:match pattern="sitemaps/optional/calendar/{lang}">
		<map:generate type="calendar">
			<map:parameter name="lang" value="{map:lang}"/>
			<map:parameter name="country" value="CN"/>
			<map:parameter name="year" value="2013"/>
			<map:parameter name="month" value="12"/>
			<map:parameter name="dateFormat" value="yyyy-MM-dd"/>
		</map:generate>
		<map:serialize type="xml"/>
	</map:match>
</map:pipeline>    

                
      was (Author: zhiqiang,he):
    I means is if you set the year with parameter:

parameters.put("year", 2012);

Whether the "prevYear" attrubte of <calendar:calendar> should be 2011, "nextYear" \
should be 2013, but in the output of yours, the previous year and next year always \
same as you set

                  
> The next year and previous year is incorrect of CalendarGenerator in the \
>                 cocoon-optional module
> -----------------------------------------------------------------------------------------------
>  
> Key: COCOON3-114
> URL: https://issues.apache.org/jira/browse/COCOON3-114
> Project: Cocoon 3
> Issue Type: Bug
> Components: cocoon-optional
> Reporter: ZhiQiang,He
> Priority: Critical
> Fix For: 3.0.0-beta-1
> 
> Attachments: cocoon-optional-CalendarGenerator.patch
> 
> 
> The calendar of previous year and next year which cloned from start clendar is same \
> as this year with no adding and substract, but i down known why the test case is \
> passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic