Use an html form:
ui:composition template=blah.xhtml
| form action=j_security_check method=post
| label for=j_usernameInput User Name:/label
| input type=text name=j_username /
| br /
| label for=j_passwordPassword:/label
| input type=password
Hello Peter,
Thnx for replyingBefore implementing your suggestion, i would like to
know if we can implement something like ResourceBundles with plain HTML as i am
developing an application with multilanguage support.
Regards,
Jankee Yogesh
http://www.m-itc.net
View the original post :
Of course, facelets interprets html as 'just another namespace' and parses it
exactly the same:
ui:composition template=blah.xhtml
| form action=j_security_check method=post
| label for=j_username#{messages['username']}/label
| input type=text name=j_username /
| br /
Hello Peter,
It seems that the page is not being correctly rendered
This is the code for the template.xhtml
|
| ?xml version=1.0 encoding=utf-8?
| !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
|
It looks to me like you named your bundle LoginBundle but are trying to
access it as messages.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985463#3985463
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985463
I was assuming the use of the Seam message bundle set up as in the examples/ref
doc not the use of JSF f:loadBundle.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985499#3985499
Reply to the post :
Don't use f:loadBundle with Seam, its really ugly, and MUCH less powerful. Use
the Seam resource bundle.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985536#3985536
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985536
Thnx All for your tips ..And any idea why the page template I am using is
not being correctly rendered ??
My idea behind using JSF/Facelet was to have validations associated with the
username and password controls itself as i dont want error messages on a
seperate error page ... but i
Ok the resource bundle and JAAS is working perfectly .. The only problem
is that the page is rendered without any styles being displayed although the
template used is correctly rendered with other pages !! When i looked at the
source in my browser i found that the stylesheet imports have