Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 148520

Summary: [Improve Page Break Management] Cannot set style in onPageBreak method
Product: z_Archived Reporter: Liwen Chen <lchen>
Component: BIRTAssignee: Wei Yan <wyan>
Status: VERIFIED WONTFIX QA Contact: mindan xu <mindan.xu>
Severity: normal    
Priority: P3 CC: bluesoldier, xwang
Version: unspecifiedKeywords: plan
Target Milestone: 2.5.0 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete
Attachments:
Description Flags
tableonpagebreak java class none

Description Liwen Chen CLA 2006-06-24 03:54:42 EDT
Description:
Cannot set style in onPageBreak method. 
I tried to set style in onPageBreak method of my java class implemented from TableEventAdapter but failed
Comment 1 Liwen Chen CLA 2006-06-27 23:03:03 EDT
Created attachment 45432 [details]
tableonpagebreak java class
Comment 2 Liwen Chen CLA 2006-06-27 23:06:58 EDT
report attached in bug #148519
Comment 3 Wei Yan CLA 2006-08-21 22:22:07 EDT
the onPageBreak is used to control the next page content, the user can only change the global variables and then access the global variables in the page content.

To complete fix this issue, engine need use a readonly content to invoke the onPageBreak event handler.

Comment 4 Wenfeng Li CLA 2006-08-23 02:41:00 EDT
how about provide access to the "this" handle where the onPageBreak event belongs to.   changing the style in the "this" object should take effect in the next page this object is render?
Comment 5 Wei Yan CLA 2009-04-27 23:29:40 EDT
defer to RC1 due to resource limitation.
Comment 6 Wei Yan CLA 2009-05-15 03:36:54 EDT
In the new page script framework, the onPageBreak is used to evaluate the page aggregation. 

The content is a read only object as the content has been serialized into the document, so the user can't changes the content in the onPageBreak.

throw out a UnsupportedException if the user tries to change the style in onPageBreak scripts.
Comment 7 mindan xu CLA 2009-05-17 22:03:54 EDT
Mark as Verified fisrt.