You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Darren McEntee <da...@amt-sybex.com> on 2007/10/03 18:44:35 UTC

[Trinidad] display dialog programmatically.

Hi,

 

I want to have a dialog popup returned, but programmatically, when I
decide whether or not I want to show it, from my ordinary "action" call.
This is to show a info/warning dialog instead of navigating like normal.

 

I have a command button with an action and a useWindow parameter like
so:

 

<tr:commandButton text="Confirm" action="#{bean.Confirm}"
useWindow="true" ... />

 

Within my bean I have "dialog:AlreadyReserved" returned as the outcome.

                                           

... And in my navigation case is have:  

  

    <navigation-case>

      <from-outcome>dialog:AlreadyReserved</from-outcome>

      <to-view-id>/AlreadyReserved.jsp</to-view-id>

    </navigation-case>

 

But the pop up notification does not happen. Can anyone point out what
im doing wrong?

 

If I change the returned outcome to another result, this works fine, but
it never seems to work with the "dialog:" prefix to get it to work with
the useWindow="true" attribute on the command button.

 

Can anyone point out anything?

 

Thanks,

Darren.

 

 

 

Darren McEntee
AMT-SYBEX (NI)

Edgewater Office Park
Edgewater Road
BELFAST

BT3 9JQ

Tel:  028 9078 1616
www.amt-sybex.com
 
P Please consider the environment before printing this email
_________________________________________________________ 
 
1. The information contained in this E-mail, including any files transmitted with it, is confidential and may be legally privileged. This E-mail is intended only for the personal attention of the stated addressee(s). Any access to this E-mail, including any files transmitted with it, by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this E-mail or any files transmitted with it. Such unauthorised use may be unlawful. If you have received this E-mail in error, please inform the sender immediately and delete it and all copies from your system. You may not forward this E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not necessarily represent the views of AMT-SYBEX. Internet communications are not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_________________________________________________________

Re: [Trinidad] display dialog programmatically.

Posted by Luka Surija <lu...@iytim.hr>.
Darren McEntee wrote:
>
> Luka, what version of Trinidad are you using?
>
> I’m still on 1.0.1, as 1.02 & 1.0.3 break our application in places.
>
I using 1.0.3, and as a workaround I'm calling directly dialog as 
mention below.
>
> What way have you implemented it to display the dialog programmatically?
>
> Is it the same method as I discussed below?
>
I didn't find the way to do that. I've mention that couple of times on 
this mailing list, but no one found the answer for this problem.

And, another funny thing is that I my other project calling dialog from 
bean works with new version of trinidad. So I'm a little bit confused 
why is working in one project and doesn't working on the other.
Environment is the same:
trinidad 1.0.3
facelets 1.1.12
glassfish v2 - JSF RI 1.2


> Thanks,
>
> Darren.
>
> -----Original Message-----
> From: Luka Surija [mailto:luka.surija@iytim.hr]
> Sent: 03 October 2007 21:58
> To: MyFaces Discussion
> Subject: Re: [Trinidad] display dialog programmatically.
>
> ****** This Message Originated From The Internet Please Be Aware Of 
> Suspicious Attachments And Content ******
>
> I have the same problem. It looks like some thing happend with Dialog
>
> Framework, because it worked couple months ago. I don't remember any
>
> more the version, but I know that worked. Now I must write
>
> action="dialog:somedialog" if I want to use Dialog Framework.
>
> Use window parameter has no influence on this.
>
> Darren McEntee wrote:
>
> >
>
> > Hi,
>
> >
>
> > I want to have a dialog popup returned, but programmatically, when I
>
> > decide whether or not I want to show it, from my ordinary "action"
>
> > call. This is to show a info/warning dialog instead of navigating like
>
> > normal.
>
> >
>
> > I have a command button with an action and a useWindow parameter like so:
>
> >
>
> > <tr:commandButton text="Confirm" action="#{bean.Confirm}"
>
> > useWindow="true" ... />
>
> >
>
> > Within my bean I have “dialog:AlreadyReserved” returned as the outcome.
>
> >
>
> > … And in my navigation case is have:
>
> >
>
> > <navigation-case>
>
> >
>
> > <from-outcome>dialog:AlreadyReserved</from-outcome>
>
> >
>
> > <to-view-id>/AlreadyReserved.jsp</to-view-id>
>
> >
>
> > </navigation-case>
>
> >
>
> > But the pop up notification does not happen. Can anyone point out what
>
> > im doing wrong?
>
> >
>
> > If I change the returned outcome to another result, this works fine,
>
> > but it never seems to work with the “dialog:” prefix to get it to work
>
> > with the useWindow="true" attribute on the command button.
>
> >
>
> > Can anyone point out anything?
>
> >
>
> > Thanks,
>
> >
>
> > Darren.
>
> >
>
>
>
> P Please consider the environment before printing this email
> _________________________________________________________
>
> 1. The information contained in this E-mail, including any files 
> transmitted with it, is confidential and may be legally privileged. 
> This E-mail is intended only for the personal attention of the stated 
> addressee(s). Any access to this E-mail, including any files 
> transmitted with it, by any other person is unauthorised. If you are 
> not an addressee, you must not disclose, copy, circulate or in any 
> other way use or rely on the information contained in this E-mail or 
> any files transmitted with it. Such unauthorised use may be unlawful. 
> If you have received this E-mail in error, please inform the sender 
> immediately and delete it and all copies from your system. You may not 
> forward this E-mail without the permission of the sender.
>
> 2. The views expressed in this E-mail are those of the author, and do 
> not necessarily represent the views of AMT-SYBEX. Internet 
> communications are not secure and AMT-SYBEX cannot, therefore, accept 
> legal responsibility for the contents of this message nor for any 
> damage caused by viruses.
> AMT-SYBEX Limited is a UK company, registration number GB03036807 at 
> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
> AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 
> at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit 
> http://www.amt-sybex.com <http://www.amt-sybex.com/>
> _________________________________________________________


RE: [Trinidad] display dialog programmatically.

Posted by Darren McEntee <da...@amt-sybex.com>.
Luka, what version of Trinidad are you using?

I'm still on 1.0.1, as 1.02 & 1.0.3 break our application in places.

 

What way have you implemented it to display the dialog programmatically?

Is it the same method as I discussed below?

 

Thanks,

Darren.

 

-----Original Message-----
From: Luka Surija [mailto:luka.surija@iytim.hr] 
Sent: 03 October 2007 21:58
To: MyFaces Discussion
Subject: Re: [Trinidad] display dialog programmatically.

 

****** This Message Originated From The Internet Please Be Aware Of
Suspicious Attachments And Content ******

 

I have the same problem. It looks like some thing happend with Dialog 

Framework, because it worked couple months ago. I don't remember any 

more the version, but I know that worked. Now I must write 

action="dialog:somedialog" if I want to use Dialog Framework.

 

Use window parameter has no influence on this.

 

Darren McEntee wrote:

> 

> Hi,

> 

> I want to have a dialog popup returned, but programmatically, when I 

> decide whether or not I want to show it, from my ordinary "action" 

> call. This is to show a info/warning dialog instead of navigating like


> normal.

> 

> I have a command button with an action and a useWindow parameter like
so:

> 

> <tr:commandButton text="Confirm" action="#{bean.Confirm}" 

> useWindow="true" ... />

> 

> Within my bean I have "dialog:AlreadyReserved" returned as the
outcome.

> 

> ... And in my navigation case is have:

> 

> <navigation-case>

> 

> <from-outcome>dialog:AlreadyReserved</from-outcome>

> 

> <to-view-id>/AlreadyReserved.jsp</to-view-id>

> 

> </navigation-case>

> 

> But the pop up notification does not happen. Can anyone point out what


> im doing wrong?

> 

> If I change the returned outcome to another result, this works fine, 

> but it never seems to work with the "dialog:" prefix to get it to work


> with the useWindow="true" attribute on the command button.

> 

> Can anyone point out anything?

> 

> Thanks,

> 

> Darren.

>
 
P Please consider the environment before printing this email
_________________________________________________________ 
 
1. The information contained in this E-mail, including any files transmitted with it, is confidential and may be legally privileged. This E-mail is intended only for the personal attention of the stated addressee(s). Any access to this E-mail, including any files transmitted with it, by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this E-mail or any files transmitted with it. Such unauthorised use may be unlawful. If you have received this E-mail in error, please inform the sender immediately and delete it and all copies from your system. You may not forward this E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not necessarily represent the views of AMT-SYBEX. Internet communications are not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_________________________________________________________

Re: [Trinidad] display dialog programmatically.

Posted by Luka Surija <lu...@iytim.hr>.
I have the same problem. It looks like some thing happend with Dialog 
Framework, because it worked couple months ago. I don't remember any 
more the version, but I know that worked. Now I must write 
action="dialog:somedialog" if I want to use Dialog Framework.

Use window parameter has no influence on this.

Darren McEntee wrote:
>
> Hi,
>
> I want to have a dialog popup returned, but programmatically, when I 
> decide whether or not I want to show it, from my ordinary "action" 
> call. This is to show a info/warning dialog instead of navigating like 
> normal.
>
> I have a command button with an action and a useWindow parameter like so:
>
> <tr:commandButton text="Confirm" action="#{bean.Confirm}" 
> useWindow="true" ... />
>
> Within my bean I have “dialog:AlreadyReserved” returned as the outcome.
>
> … And in my navigation case is have:
>
> <navigation-case>
>
> <from-outcome>dialog:AlreadyReserved</from-outcome>
>
> <to-view-id>/AlreadyReserved.jsp</to-view-id>
>
> </navigation-case>
>
> But the pop up notification does not happen. Can anyone point out what 
> im doing wrong?
>
> If I change the returned outcome to another result, this works fine, 
> but it never seems to work with the “dialog:” prefix to get it to work 
> with the useWindow="true" attribute on the command button.
>
> Can anyone point out anything?
>
> Thanks,
>
> Darren.
>
> Darren McEntee
> AMT-SYBEX (NI)
>
> Edgewater__ Office Park__
> Edgewater Road__
> BELFAST__
>
> BT3 9JQ
>
> __Tel: 028 9078 1616
> _www.amt-sybex.com_
>
>
>
> P Please consider the environment before printing this email
> _________________________________________________________
>
> 1. The information contained in this E-mail, including any files 
> transmitted with it, is confidential and may be legally privileged. 
> This E-mail is intended only for the personal attention of the stated 
> addressee(s). Any access to this E-mail, including any files 
> transmitted with it, by any other person is unauthorised. If you are 
> not an addressee, you must not disclose, copy, circulate or in any 
> other way use or rely on the information contained in this E-mail or 
> any files transmitted with it. Such unauthorised use may be unlawful. 
> If you have received this E-mail in error, please inform the sender 
> immediately and delete it and all copies from your system. You may not 
> forward this E-mail without the permission of the sender.
>
> 2. The views expressed in this E-mail are those of the author, and do 
> not necessarily represent the views of AMT-SYBEX. Internet 
> communications are not secure and AMT-SYBEX cannot, therefore, accept 
> legal responsibility for the contents of this message nor for any 
> damage caused by viruses.
> AMT-SYBEX Limited is a UK company, registration number GB03036807 at 
> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
> AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 
> at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit 
> http://www.amt-sybex.com <http://www.amt-sybex.com/>
> _________________________________________________________