Re: Your JasperReport Example and D2W
Re: Your JasperReport Example and D2W
- Subject: Re: Your JasperReport Example and D2W
- From: Theodore Petrosky <email@hidden>
- Date: Tue, 10 Apr 2012 18:08:26 -0700 (PDT)
There is a section of the link:
http://wiki.wocommunity.org/display/WO/Adding+a+Normal+WOComponent+Page+to+an+ERModernLook+based+application
If I read this I need to create the DownloadIsCompletePage as a D2W component with the factory method in:
public class FileTaskDownloadController extends ERXNextPageForResultWOAction {
but of course FileTaskDownloadController is extending ERXNextPageForResultWOAction so I get the error that session() can not be found. Or I just don't understand what to do.
//DownloadIsCompletePage nextPage = pageWithName(DownloadIsCompletePage.class);
DownloadIsCompletePage nextPage = (DownloadIsCompletePage)
D2W.factory().pageForConfigurationNamed("DownloadIsCompletePage", session());
I'll keep hacking and see if I can figure it out.
Ted
--- On Tue, 4/10/12, David Holt <email@hidden> wrote:
> From: David Holt <email@hidden>
> Subject: Re: Your JasperReport Example and D2W
> To: "Theodore Petrosky" <email@hidden>
> Cc: "Kieran Kelleher" <email@hidden>, email@hidden
> Date: Tuesday, April 10, 2012, 12:34 PM
> Hi Ted,
>
> You'll probably have to go through the steps of adding a
> "normal" component to ERModernLook app to get the
> DownloadIsComplete page behaving as you wish.
>
> http://wiki.wocommunity.org/display/WO/Adding+a+Normal+WOComponent+Page+to+an+ERModernLook+based+application
>
> Wrap the DownloadIsCompletePage in your page wrapper and
> make sure that you have the "fake" entity and task set for
> that page in your rules. Something like:
>
> pageConfiguration = 'DownloadIsCompletePage' => entity =
> "Brief" [com.webobjects.directtoweb.EntityAssignment]
>
> pageConfiguration = 'DownloadIsCompletePage' => task =
> "inspect" [com.webobjects.directtoweb.Assignment]
>
> pageConfiguration = 'DownloadIsCompletePage' =>
> templateNameForInspectPage = "DownloadIsCompletePage"
> [com.webobjects.directtoweb.Assignment]
>
> pageConfiguration = 'DownloadIsCompletePage' =>
> navigationState = "DownloadIsCompletePage"
> [com.webobjects.directtoweb.Assignment]
>
> David
>
>
> On 2012-04-10, at 9:19 AM, Theodore Petrosky wrote:
>
> > Kieran,
> >
> > I see in your JasperReport example that in the
> DownloadIsCompletePage there is a method to set the
> referringPage.
> >
> > Is there a way to get the D2W context and apply it to
> the DownloadIsCompletePage in the appendToResponse method so
> the DownloadIsCompletePage has the PageWrapper?
> >
> > I stuck a NSLog in the setReferringPage method and I
> see that it is a D2W page:
> >
> > *** DownloadIsCompletePage setReferringPage
> ) ***** <er.modern.look.pages.ERMODListPage name:
> er.modern.look.pages.ERMODListPage
> >
> > Ted
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden