Hello all,
I just came across a problem that really puts me into trouble.
I have a page that holds some components. Those components need to
access some resources bound to each page, initialized on the
@PageAttached event. Those resources are closed on the @PageDetached event.
To access those resources in each component, I use the following
pattern in the component class, and everything works fine :
@Inject
private ComponentResources componentResources ;
public SomeResource getResource() {
componentResources.getPage().getTheRightResource() ;
}
(think of a connection to a DB, or an EntityManager as a resource).
Now in some pages, I have home made property editors. Those are declared
in a special "fake" page : AppPropertyBlocks. The
componentResource.getPage() returns that page, which doesnt hold my
resource, and this is my problem. I can understand why it does so, but
when I call getPage(), I'm waiting for the page that in the end, will be
sent to the client.
I'm not sure I'm missing something, any help / hint / workaround will be
much appreciated !
José
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]