You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Henry Eduardo Iguaro <he...@gmail.com> on 2008/03/10 00:12:35 UTC

[Trinidad] Problems with dialogs

Hi, I have 2 jsp pages, a dialog launcher and a plain dialog page

This is the code for the dialog launcher:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr" %>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh" %>

<f:view>
<trh:head />
<body>
<blockquote>
<tr:form id="loginForm">
    <tr:inputText label="Test Input 1" contentStyle="width: 175px"
id="input1" required="true" showRequired="true" value="#{
userBackingBean.usuario.userName}" />

    <tr:commandLink id="link1" text="Forgot your Password?..."
partialSubmit="true" useWindow="true" immediate="true"
windowWidth="300" windowHeight="200"
action="dialog:dialogForgotPassword" />

    <br/>
    <tr:commandButton text="Log in" id="btnLoggin" action="#{
usuarioBackingBean.login}" />
</tr:form>
</blockquote>
</body>
</f:view>

And this is the dialog itself:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr" %>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh" %>

<f:view>
<trh:head title="Dialog" />
<body>
    <tr:form>
        <tr:inputText label="Give us your Email:" required="true" />
        <br/><br/>
        <tr:commandButton text="Cancel" immediate="true">
            <tr:returnActionListener/>
        </tr:commandButton>
    </tr:form>
</body>
</f:view>


And the faces-conf.xml navigation rule:

<navigation-rule>
    <from-view-id>/*</from-view-id>
    <navigation-case>
        <from-outcome>dialog:dialogForgotPassword</from-outcome>
        <to-view-id>/dialogForgotPassword.jsp</to-view-id>
    </navigation-case>
</navigation-rule>

When i click the "Forgot your Password?..." link, the dialog does not show,
the browser progress status indicator fill completely (like following the
link) but nothing else happens

(Yes, both jsp files exists and are placed in the same directory)

I already set the
org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGSparameter to
true, but nothing happened.

Tested in Firefox, IE, same problem

I've followed the developers guide doing a lot of trial an error without
progress. Can somebody point out what am i doing wrong?

Any help would be appreciated

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/O G++@ s-:+>:+ a25 tv+ d++> t+ C+++>+ U++>+++ P+ L++>+++ W+++ E---- w++$
5 X R-@ b+>++ D+ e>++ o? O? h--@ r+ y++ K? M PS+
------END GEEK CODE BLOCK------