cargotracker icon indicating copy to clipboard operation
cargotracker copied to clipboard

Move to JSF 2.2+ HTML5 syntax

Open erickdeoliveiraleal opened this issue 3 years ago • 2 comments

Include a file to activate JSF 2.3 features:

import javax.faces.annotation.FacesConfig;
import javax.faces.annotation.FacesConfig.Version;

@FacesConfig(version = Version.JSF_2_3)
public class JSFConfigurator {
}

https://stackoverflow.com/a/53172876/2882383

erickdeoliveiraleal avatar Oct 16 '20 12:10 erickdeoliveiraleal

And move to HTML5 syntax as possible. see: https://github.com/hantsy/jakartaee-faces-sample/blob/master/src/main/webapp/form.xhtml#L27

hantsy avatar Nov 27 '20 14:11 hantsy

This is mostly addressed now. A PR to move to HTML 5 syntax is welcome.

m-reza-rahman avatar Feb 28 '21 21:02 m-reza-rahman

Can I work on this issue?

santapan345 avatar Mar 04 '23 05:03 santapan345

Sure, assigned to you.

m-reza-rahman avatar Mar 04 '23 14:03 m-reza-rahman

can i work on this issue ?

ojuschugh1 avatar Mar 23 '23 18:03 ojuschugh1

does we have to convert the index.html file content to html5 ???

ojuschugh1 avatar Mar 23 '23 19:03 ojuschugh1

can i work on this issue ?

Please submit a PR. This keeps the possibility open for others to contribute.

does we have to convert the index.html file content to html5 ???

If you wish, sure. But the main objective is to convert the Faces forms to HTML5 syntax as @hantsy has provided an example of above.

m-reza-rahman avatar Mar 23 '23 19:03 m-reza-rahman

Yeah, sure thanks for the quick reply I have made a Pull Request.Here I have converted \cargotracker\src\main\webapp\index.xhtml file to html5. As told by hansty And move to HTML5 syntax as possible. see: https://github.com/hantsy/jakartaee-faces-sample/blob/master/src/main/webapp/form.xhtml#L27

ojuschugh1 avatar Mar 23 '23 20:03 ojuschugh1

Do i have to covert all the facelets into html5 ??

ojuschugh1 avatar Mar 23 '23 20:03 ojuschugh1

If you like, sure. However, the original suggestion is to simply convert the forms over. Also, we are not really looking to move away from Faces.

m-reza-rahman avatar Mar 23 '23 21:03 m-reza-rahman

ok as hansty has provided https://github.com/hantsy/jakartaee-faces-sample/blob/master/src/main/webapp/form.xhtml#L27 as sample of faceform i guess ?? or the final html5 format in which we have to convert.

Thanks and Regards

ojuschugh1 avatar Mar 23 '23 21:03 ojuschugh1

If I may be honest, I suggest doing significant research on this topic and Faces in general before proceeding any further. Here is a suggested starting point: https://dzone.com/articles/jsf-22-html-5-support.

m-reza-rahman avatar Mar 23 '23 21:03 m-reza-rahman

ok thank you :)

ojuschugh1 avatar Mar 23 '23 21:03 ojuschugh1

will do it by tomorrow.Thanks for the replies.Good Night sir :)

ojuschugh1 avatar Mar 23 '23 21:03 ojuschugh1

Closing this. It’s hardly a priority.

m-reza-rahman avatar Sep 21 '23 23:09 m-reza-rahman