Hi all, 

here are my observations:

useWindow="false":
==================
both parameters                         --> dialog content replaces main/parent 
content
ENABLE_LIGHTWEIGHT_DIALOGS      --> dialog content replaces main/parent content
USE_DIALOG_POPUP              --> dialog content replaces main/parent content

This works as expected anyway.

useWindow="true":
=================
both parameters = true                --> no PopUp at all
ENABLE_LIGHTWEIGHT_DIALOGS=true --> real PopUp 
USE_DIALOG_POPUP = true             --> no PopUp at all

If the PopUp shows up at all, it is in it's own window. No div/iframe - PopUp.

Kind regards


  Harald

**************************************
Harald Kuhn
AirPlus International
Business Information Services
Phone:     +49 (0) 61 02 204-821
Fax:         +49 (0) 61 02 204-139
E-Mail:    [EMAIL PROTECTED]
Internet:  www.airplus.com
**************************************



>Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
>Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Lutz 
>Logemann · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: 
>Amtsgericht Offenbach/Main, HRB 8119
>


-----Original Message-----
From: Andrew Richards [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 19, 2007 12:59 PM
To: MyFaces Discussion
Subject: RE: [Trinidad] HTTP 404 (file not found) while using DialogFramework


Hi Harald,

When I looked at light weight dialogs I think I ran into this issue. >From 
memory I think you need to set useWindow="false" on your commandNavigationItem 
otherwise a traditional dialog is launched rather than an Iframe.

Andy

-----Original Message-----
From: Kuhn, Harald [mailto:[EMAIL PROTECTED]
Sent: 19 September 2007 11:39
To: MyFaces Discussion
Subject: RE: [Trinidad] HTTP 404 (file not found) while using DialogFramework

Hi Matthias,

OK, with the "/faces/*" mapping the dialog shows up.
But, despite the fact I wanted to use lightweight dialogs it always shows up in 
a new window.
This is true for Firefox 2.0.0.6 and IE 7.0

I have this parameter in my web.xml:
  <!-- use iframe/div Popups -->
  <context-param>
    
<param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
    <param-value>true</param-value>
  </context-param>

Is this also a MyFaces 1.2.x issue? Or, is it a configuration issue?

Best regards

  Harald


**************************************
Harald Kuhn
AirPlus International
Business Information Services
Phone:   +49 (0) 61 02 204-821
Fax:     +49 (0) 61 02 204-139
E-Mail:   [EMAIL PROTECTED]
Internet:  www.airplus.com
**************************************



>Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
>Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Lutz 
>Logemann · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: 
>Amtsgericht Offenbach/Main, HRB 8119
>


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias 
Wessendorf
Sent: Wednesday, September 19, 2007 11:39 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] HTTP 404 (file not found) while using DialogFramework


Hi,

I noticed that w/ myfaces 1.2.x and *.faces mapping it doesn't work

can you try
-/faces/* mapping

-Matthias

On 9/19/07, Kuhn, Harald <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
> if I try to launch a dialog I get an HTTP 404 Return Code.
> The dialog is launched like this:
>         <tr:commandNavigationItem text="#{node.label}"
>                                 action="#{node.getOutcome}"
>                              useWindow="true"
>                          partialSubmit="true"/>
> "#{node.getOutcome}" evaluates to "dialog:goDialog"
>     <navigation-case>
>       <from-outcome>dialog:goDialog</from-outcome>
>       <to-view-id>/styling/dialog.xhtml</to-view-id>
>     </navigation-case>
>
> The reason seems to be a wrong URL:
> https://localhost/jsfpoc/__ADFv__?_afPfm=-8f005a9&_t=fred&_vir=/styling/dialog.xhtml&loc=de-DE-DE&_rtrnId=0
>
> As our Faces-Servlet is matched to *.jsf there should be .jsf somwhere in
> the URL
>   <!-- Faces Servlet Mappings -->
>   <servlet-mapping>
>     <servlet-name>faces</servlet-name>
>     <url-pattern>*.jsf</url-pattern>
>   </servlet-mapping>
>
>
> If I manually change the URL to
> https://localhost/jsfpoc/__ADFv__.jsf?_afPfm=-8f005a9&_t=fred&_vir=/styling/dialog.xhtml&loc=de-DE-DE&_rtrnId=0
> the content of /styling/dialog.xhtml is displayed correctly.
>
> Is this a bug or am I doing something wrong?
> Our environment is:
>  myFaces 1.2.1-SNAPSHOT
>  trinidad 1.2.2
>  facelets 1.1.13
> Thanks for your help.
>   Harald Kuhn
> **************************************
> Harald Kuhn
> AirPlus International
> Phone:   +49 (0) 61 02 204-821
> E-Mail:   [EMAIL PROTECTED]
> Internet:  www.airplus.com
> **************************************
>
>
>
> Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263
> Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Lutz
> Logemann · Vorsitzender des Aufsichtsrates: Stephan Gemkow ·
> Handelsregister: Amtsgericht Offenbach/Main, HRB 8119
>


--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to