I learned building a web-app with Java and Seam (and JSF 1.2)
But now i'm working at the moment with pure Java EE 6 and JSF (Mojara 2.0.9) - without any extra Framework around.
In Seam i used for the index.xhtml
the index.page.xml
for restriction:
<restrict>#{authorizationManager.isAdmin()}</restrict>
Is there any equal function like the page.xml?
And:
I also used the index.page.xml
to make some calls like:
<action execute="#{indexController.doSomething()}" on-postback="false"/>
Is it now the only chance to do it with an @PostConstruct
in the Controller for the .xhtml?
Also how i'm doing something like this without the page.xml
?
<navigation>
<rule if-outcome="OK">
<redirect view-id="/pages/index.xhtml" />
</rule>
</navigation>
It seems to me, the pure JavaEE works totaly different?
(you don't have to send me full code, just give me the key words i have to google, thanks!)