myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Bennett (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Issue Comment Edited] (TRINIDAD-1813) partialSubmit attribute not working for command button when try to open dialog box
Date Mon, 15 Aug 2011 18:53:27 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085256#comment-13085256
] 

Jason Bennett edited comment on TRINIDAD-1813 at 8/15/11 6:51 PM:
------------------------------------------------------------------

Scott/Gary,

    I found the issue, and it may in fact be a bug with the current production release.  I
had a <h:outputText value="This will cause PPR to fail."/> tag in my page (See code
 below).  As soon as I replaced the JSF tag with the Trinidad tag, everything worked as expected.


I'm using JSF 2.0 and the version of Trinidad released with Oracle JDeveloper 11.1.2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
<f:view>
      <tr:document title="Title 1" id="d1">
            <h:panelGrid columns="1" id="pg1">
            <tr:panelHorizontalLayout id="phl1">

            <h:outputText value="This will cause PPR to fail."/>

           <!-- <tr:outputText value="This will not cause PPR to fail."/> -->

            <tr:form id="test_form">

      <tr:commandLink text="Open Dialog" action="#{DialogTestBean.testAction}"
                      partialSubmit="true" id="id_test_dialog"
                      useWindow="true" windowHeight="300" windowWidth="200" binding="#{DialogTestBean.dialogLink}"
                      launchListener="#{DialogTestBean.testLaunchListener}"
                      returnListener="#{DialogTestBean.testReturnListener}"/>
                  <tr:inputDate id="id1"/>
            </tr:form>
            </tr:panelHorizontalLayout>
            </h:panelGrid>
   </tr:document>
</f:view> 

      was (Author: jbennett):
    Scott/Gary,

    I found this issue, and it may in fact be a bug with the current production release. 
I had a <h:outputText value="This will cause PPR to fail."/> tag in my page (See code
 below).  As soon as I replaces the JSF tag with the Trinidad tag, everything worked as expected.


I'm using JSF 2.0 and the version of Trinidad released with Oracle JDeveloper 11.1.2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
<f:view>
      <tr:document title="Title 1" id="d1">
            <h:panelGrid columns="1" id="pg1">
            <tr:panelHorizontalLayout id="phl1">

            <h:outputText value="This will cause PPR to fail."/>

           <!-- <tr:outputText value="This will not cause PPR to fail."/> -->

            <tr:form id="test_form">

      <tr:commandLink text="Open Dialog" action="#{DialogTestBean.testAction}"
                      partialSubmit="true" id="id_test_dialog"
                      useWindow="true" windowHeight="300" windowWidth="200" binding="#{DialogTestBean.dialogLink}"
                      launchListener="#{DialogTestBean.testLaunchListener}"
                      returnListener="#{DialogTestBean.testReturnListener}"/>
                  <tr:inputDate id="id1"/>
            </tr:form>
            </tr:panelHorizontalLayout>
            </h:panelGrid>
   </tr:document>
</f:view> 
  
> partialSubmit attribute not working for command button when try to open dialog box
> ----------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1813
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1813
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha
>         Environment: Window XP, java 6, Eclipse 3.4.2, Tomcat 6
>            Reporter: Navnath Kumbhar
>            Priority: Blocker
>
> Hi There,
> I am trying to implement one simple functionality as shown in live Trinidad demo of Dialog
box. Click on button, get value of from parent window to dialog box, change value from dialog
box and submit it, then submitted value should get reflected on parent window's field.
> I am getting value from dialog box but at code level. But when I try to set that value
to display on page it's not reflecting. and ask me to reload page. when I reload page then
again dialog box is there.
> This is happen when I remove partialSubmit="true" from button attribute. when I place
this attribute, then there is no any error, but dialog is not appearing.
> Please Please let me know how do I open dialog box using command button with setting
partialSubmit="true" attribute?
> Is this version problem.
> I am stuck on this issue from last 2 Months. still don't have any solution. 
> Is Trinidad really implement Dialog box as they have shown on demo site? If Yes, then
why all downloaded code is working fine only except DIALOG BOX?
> Please replay to this post. Any kind of suggestion is welcome.
> Thank You,
> Navnath Kumbhar.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message