Re: stateChangeNotifier does not work with t:commandButton properly

2007-01-31 Thread Nacho Estrada

Some months ago...

http://comments.gmane.org/gmane.comp.jakarta.myfaces.user/26829

Any changes?

On 1/29/07, Madhav Bhargava <[EMAIL PROTECTED]> wrote:


 I just looked at the renderer code for this component:



In the encodeJavascript method following line is present:

sb.append(*"setTimeout('"* + replacedClientId + 
*"Notifier.prepareNotifier()',500);\n"*);



This will add a timeout of 500. However this setting does not have any
effect on command links. Moreover should not this value be configurable? If
someone does not want a timeout, rather wants to use to necessary choose
before moving ahead then he/she will not be able to do it.



~madhav


  --

*From:* Madhav Bhargava [mailto:[EMAIL PROTECTED]
*Sent:* Monday, January 29, 2007 1:12 PM
*To:* MyFaces Discussion
*Subject:* stateChangeNotifier does not work with t:commandButton properly



Hi All,



I have been looking for a component like s:stateChangeNotifier for quite
some time and I am glad that it is there is sandbox finally.

The problem with this component is that it does not work properly with
t:commandButton component.



Consider the following code:









And then you have the following buttons:











Now the problem is that when I click the "Cancel" button then the popup
only appears for 2 seconds and then it vanishes and the control goes to the
action method attached with the command button.



However, this problem is not there with the command link. I have something
like:





Now if I click this link then the modal popup stays there till you click a
link.



I have following questions:

1. Does this component only work with t:commandLink component?

2. If I have a datagrid and one of the columns in the datagrid is a link
"View Details". Say if there are 20 rows displayed in one page and there are
other command buttons on the page to control navigation. Then will I have to
put all the ID's for all the links in the column to prevent the popup
appearing on click of any of the "View Details" link?



Rgds,

Madhav
   CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this e-mail
or its contents to any other person and any such actions are unlawful. This
e-mail may contain viruses. Infosys has taken every reasonable precaution to
minimize this risk, but is not liable for any damage you may sustain as a
result of any virus in this e-mail. You should carry out your own virus
checks before opening the e-mail or attachment. Infosys reserves the right
to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored
on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



Re: sandbox stateChangedNotifier

2006-10-06 Thread Nacho Estrada Lachós
Thanks for your reply...

I'll use commandsLinks instead.




Werner Punz schrieb:

> A submit button however submits a form directly without a huge chance of
> javascript interference upfront, hence the dialog popup and hence
> the submit despite the dialog.
> I am not sure if this is fixable at all, I can remember something along
> those lines, but I will relook into it tomorrow.
>

No need to look into it anymore... a command button renders into a
submit button, as is, this is not fixable in the fast lane, use command
links instead, if possible, and if have to use command buttons, use
server side onchange events which also work for state change checking.



sandbox stateChangedNotifier

2006-10-05 Thread Nacho Estrada Lachós
Hi all,
It seems to be a strange behaviour in Tomahawk-sandbox
stateChangedNotifier component.
Everything is fine when it's used from a commandLink, but when a
commandButton fires the dialog, the confirmation dialog dissapear in a few
seconds.
Any walkarround for this?
Should I report this in the developers mail list?

Thanks in advance,

Nacho Estrada.



tomahawk panelTabbedPane, selectedIndex binding expresion

2006-07-24 Thread Nacho Estrada Lachós
Hi all!
I’m trying to get the selectedIndex property from a tomahawk
panelTabbedPane component. When I write the binding attribute and call
HtmlPanelTabbedPane.getSelectedIndex() everything works right. But where I
try to do a binding an expression with the selectedIndex attribute, the
binding property doesn’t update during the request phase.

Is this a bug?

JSF code:



…



…




Backing-bean code:

private Integer selected = new Integer(0);

  public void setSelected (Integer selected) {
this. selected = selected;
  }

  public Integer getSelected () {
return selected;
  }

I’m using Facelets and have tried with myFaces versions 1.1.3, 1.1.4 and
1.1.5.

Thanks.

Nacho