jsf 2 - Display html files uploaded by users -


i writing application users can upload zip file contains html files.

how can show html files in jsf views?

i using wildlfy , upload files , unzip them folder in wildfly standalone/data directory. zip files contains file contains html menu, folder containing html files (which html documents containing divs).

right now, in jsf view, display link uploaded folder. when user clicks on link, index.html file of folder displayed.

i like, however, able incorporate html menu jsf view , display html files in jsf view when link pointing them clicked.

also, html menu includes text input field want use full text search in uploaded html files.

so need able value of text field in backing bean.

should use <iframe src="#{bean.iframeurl}"></iframe> or there better solution?

so in essence: can incorporate uploaded files jsf views , communicate between uploaded html files , backing beans?

edit

according kukeltje's comment , post think need to this:

in jsf view links folders displayed, create ui:insert menu , ui:insert html pages loaded when click on links in menu.

and loading of pages should implemented using custom resource handler.

so onyl need stream menu once , when click on link in menu, stream html page want display, correct?

and doing way can other jsf tags around streamed input, well, , can communicate between streamed html files , backing beans?


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -