Reply To: Dynamic view ID not working.

Splash Forums PrettyFaces Users Dynamic view ID not working. Reply To: Dynamic view ID not working.

#27081

Peter-TI
Participant

Thanks a lot,
It’s working.

Maybe I was asking some noob stuff. Java EE,JSF and prettyfaces where new to me.
Thanks to you’re help I finally got my Java EE (EJB and WAR modules) up and running and visable in the browser.
I used to work with php and put quite some efford into stepping up to Java EE.
I love it.

I have one more question:
Why does this work?


 <url-mapping id="home">
		<pattern value="/" />
		<view-id value="#{loginBean.getLogin}" />
</url-mapping>
        
<url-mapping id="contact">
		<pattern value="/#{pageBean.page}" />
		<view-id value="/specifications/noordzij-it/frontend/pages/contact.xhtml" />
</url-mapping>

And this doesn’t?:


 <url-mapping id="home">
		<pattern value="/" />
		<view-id value="#{loginBean.login}" />
</url-mapping>
        
<url-mapping id="contact">
		<pattern value="/#{pageBean.page}" />
		<view-id value="/specifications/noordzij-it/frontend/pages/contact.xhtml" />
</url-mapping>

Both beans are structurally exactly the same.

  • This reply was modified 6 years, 9 months ago by  Peter-TI.