Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45

Thread: JSF + Webflow popup question

  1. #21
    Join Date
    Jul 2009
    Location
    Karlsruhe, Germany
    Posts
    13

    Default

    Yes, I use SWF 2.3.0 and Primefaces 2.2.1; how can I start the main flow in embedded mode?
    I only know that I have to set an input param for embedded mode of the subflow as shown above...

  2. #22
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Default

    Quote Originally Posted by mfb View Post
    Yes, I use SWF 2.3.0 and Primefaces 2.2.1;
    ok
    Quote Originally Posted by mfb View Post
    how can I start the main flow in embedded mode?
    you need to pass mode=embedded as a url parameter
    like for example

    PHP Code:

    http
    ://yourapp/myFlow?mode=embedded 

  3. #23
    Join Date
    Jul 2009
    Location
    Karlsruhe, Germany
    Posts
    13

    Default

    That's great, the popup opens!!! Now I have only the problem that nothing happens,
    when I press a button on the popup (select language, close popup, ... See code above)
    Do you have also an idea what can be the problem for this behaviour?

  4. #24
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Default

    Quote Originally Posted by mfb View Post
    That's great, the popup opens!!! Now I have only the problem that nothing happens,
    when I press a button on the popup (select language, close popup, ... See code above)
    Do you have also an idea what can be the problem for this behaviour?
    remove the :

    PHP Code:
     <input name="mode" value="'embedded'" /> 
    when you call your popup

  5. #25
    Join Date
    Jul 2009
    Location
    Karlsruhe, Germany
    Posts
    13

    Default

    I've tested, but that's not the problem. I've seen that there were no "update"- attributes in my p:commandButton- Tags.
    When I put the "update"- attributes inside it works, but I don't understand the difference between these attributes and
    the render- Tag in my Webflow?! I think in the swf documentation they say , that render- Tags can still used in combination
    with jsf 2.0?! Do you know?

    My next problem is that since I've set the embedded- param by calling the main flow other buttons which are not calling
    a popup don't still work, nothing happens... For example:
    Code:
    		<h:form id="form">
    		 		 	
    		 	<p:commandButton value="Page 01" action="goToPage01" />	 	
    		 	
    		 	<p:commandButton 	 			 		
    		 		action="selectLanguage" 
    		 		process="@form"
    		 		update="form:panelPopupContent"
    		 		oncomplete="popupDialog.show()"
    		 		value="#{label.lbl_select_language}" />  
    
    			<p:dialog id="popupDialog" widgetVar="popupDialog" modal="false">	
    	 			<p:outputPanel id="panelPopupContent" />
    	 		</p:dialog>	
    	 		
    		</h:form>

  6. #26
    Join Date
    Jul 2009
    Location
    Karlsruhe, Germany
    Posts
    13

    Default

    ...if I press the button to go to page 01 nothing happens...

  7. #27
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Default

    Make your commandButtons non ajax like so :

    PHP Code:
    <p:commandButton ajax="false" /> 

  8. #28
    Join Date
    Jul 2009
    Location
    Karlsruhe, Germany
    Posts
    13

    Default

    That's fantastic! Now everything works!! I thank you so much, because I spent a lot of time on finding a solution...
    If you have a problem next time yourself then tell me, I will also try to to help you!

    With best regards to Strasbourg,
    Michael

  9. #29
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Default

    My pleasure, glad to see you managed to get it working

  10. #30
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Default

    sure anytime

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •