I guess the reason the @PostConstruct annotation is not working is
that it belongs to EJB 3.0 SessionBean stuff.
This requires a J2EE Application server (like JBoss, WebSphere or
Oracle OC4J), not a simple Servlet Container like Tomcat or Jetty.
Just EJB 3.0 Persistence can be run outside a J2EE Application server.
Indeed invoking an action is much easier with Struts ... but I'm using JSF, sigh

Vincenzo


On Sat, May 17, 2008 at 6:06 PM, Matt Raible <[EMAIL PROTECTED]> wrote:
> You should be able to use the @PostConstruct annotation on a method to
> have it automatically invoked. Unfortunately, I haven't had much luck
> with this.
>
> See item #6 on the following page for more information:
>
> http://appfuse.org/display/APF/Changing+from+MyFaces+to+Sun%27s+RI
>
> Matt
>
> On Sat, May 17, 2008 at 9:00 AM, Cens <[EMAIL PROTECTED]> wrote:
>>
>> Is it possible to invoke a JSF action from a menu item?
>> I mean: how can I modify a line like this:
>>  <Item name="..." title="..." page="/myObjectForm.html"/>
>> in order to invoke a method of the underlying MyObjectForm.java class?
>>
>> Thanks
>>
>> Vincenzo Caselli
>> --
>> View this message in context: 
>> http://www.nabble.com/How-can-I-invoke-a-JSF-action-from-a-menu-item--tp17292688s2369p17292688.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to