Skip to content

yracnet/hiska-HskFrame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hiska-HskFrame

Sample web application using Java Server Faces and Popup / IFrame navegation JSF2.0 + POPUP / IFRAME java

Hsk - Frame Navegation - Java Server Faces navegation into iframe an return to parent page

Please, help me to test this component for JSF 2.0, 2.1 and 2.2

CommandLink with arget can open a iframe(name reference) and navegate in this iframe until, the case negation toViewId is equals to ViewId caller.

Idea: uses for opene finder page for select a parameter's, this can share paremeters in SESSION SCOPE and FLASH SCOPE.

  1. index.xhtml : neet 2 params then click "open" link, and define targer attribure
  2. index.xhtml : automatic ajax-refresh to hsk:panelFrame with name equals to target attribute of command link invoked
  3. hsk:panelFrame : create a basic estructure for include a iframe in the page, with a simple javascript.(you can modify this estructure for your cusstom project)
  4. hsk:panelFrame/java script : detected a this navegation-case is equals to parent opener (window.parent/window.top).
    1. TRUE: close the frame an call to ajax event defined in the commandLink invoked( parent.currentViewId and parent.eventAjax )
    2. FALSE: open the iframe with url equals to navegation-case, and define 2 methods
    3. Method 1: currentViewId(), define the viewId caller to iframe (view.viewId)
    4. Method 2: eventAjax(), define a hack script to simulete click in the commandLink invoked

The HskFrame is a java project for lib the hsk:panelFrame and has all configuration and class for use-alone

The HskTest is a java-web project for test the hsk-jsf-frame_1.5.jar in a simple test, when we need get 2 parameters (session, flash scope) from the popupX.xhtml pages to parent page (main is index.xhtml)

About

JSF POPUP FRAME IFRAME JAVA SERVER FACES

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors