Re: [Trinidad] How to delete a selected node from tr:tree

2007-12-21 Thread Luka Surija
And what is the procedure to select node of in tree trough managed bean, without selectionListener, knowing only selected person from the list? Matthias Wessendorf wrote: You can construct a tree by: Person john = new Person("John Smith"); Person kim = new Person("Kim Smith"); Person tom =

return event in text fields

2007-12-21 Thread Peter Dahm
Hello, we have this code sniplet in our page. This forces an event, if the value of the textfield changes. Know we have the need to force the same event on submitting the textfield with the enter button. Unfortunately the current effect is, that one of the buttons gets the submit e

Re: return event in text fields

2007-12-21 Thread Matthias Wessendorf
In Trinidad, the form has a defaultCommand attribute. You can specify a id of a link/button and on ENTER the form would be submitted. If not set, nothing happens on enter. Not tried..., but just an idea. Is it possible to say and a little JS-script, like: function blah(event) { if(event.keyCo

Re: [Trinidad] Override onclick Event

2007-12-21 Thread Simon Lessard
Hi Sven, Why not use the onclick attribute on the component? Regards, ~ Simon On Dec 21, 2007 7:55 AM, Rottstock, Sven <[EMAIL PROTECTED]> wrote: > Hi list, > > i have to dynamically override the onclick method. Currently i used the > following code snippet: > > > var completeBtn = > window

[Trinidad] Override onclick Event

2007-12-21 Thread Rottstock, Sven
Hi list, i have to dynamically override the onclick method. Currently i used the following code snippet: var completeBtn = window.document.getElementById("activityPanel:activityActionPane:complet e-button"); var oldOnClickMethod = null; if(completeBtn != null) { oldOnclickMethod = co

AW: return event in text fields

2007-12-21 Thread Peter Dahm
Hi, I know what you mean. Your first solution: We do not use trinidat. The second solution: There is a strange behavior in our pages: The method “blah” is used but a server request is executed anyway. We have a combination of ajax- and tomahawk-buttons and the enter-command executes the f

AW: [Trinidad] Override onclick Event

2007-12-21 Thread Rottstock, Sven
Hi Simon, we provide a specific page for our customer. He can decorate this page via facelets and IMO it is a bad idea to modify the specific page. Because we can change the content of the specific page and the customer has the effort to merge. Von: Simon Lessa

AW: [Trinidad] Override onclick Event

2007-12-21 Thread Rottstock, Sven
Good pointer. If i understand you correctly then this should be the best practice for my requirement: Looks very simple. Great job Simon. Thank you. Regards Sven Von: Simon Lessard [mailto:[EMAIL PROTECTED] Gesendet: Freitag

Re: [Trinidad] Override onclick Event

2007-12-21 Thread Simon Lessard
Then one way would be to define the script in the user page and reference it using EL from the template. Regards, ~ Simon On Dec 21, 2007 8:07 AM, Rottstock, Sven <[EMAIL PROTECTED]> wrote: > Hi Simon, > > we provide a specific page for our customer. He can decorate this page via > facelets a

AW: [Trinidad] Override onclick Event

2007-12-21 Thread Rottstock, Sven
Ok - i have tested it. The decoration page looks as follow: function myCompleteMethod() { alert('completed'); } Now it works great. Thank you for the pointer. Regards, Sven Von: Rottstock, Sven [mailto:[EMAIL PROTECTED] Gesendet:

Configuration files being loaded twice, but not declared in web.xml

2007-12-21 Thread diaphanous
Hi, I have read the FAQ and double-checked that my web.xml does not contain the config files parameter. However, my entire startup is being repeated twice. This is a rather simple application that I am building using NB6 and the bundled Tomcat6. I am trying to use MyFaces 1.1.5, Tomahawk 1.1.6

RE: [Trinidad] Inline Validation incorrect when using PPR

2007-12-21 Thread Graeme Steyn
Hi Sven, I was alredy making use of panelGroupLayouts. I have created a JIRA issues (TRINIDAD-880 http://issues.apache.org/jira/browse/TRINIDAD-880) and attached a maven 2 project to the issue to demonstrate the problem. Regards, Graeme. -Original Message- From: Rottstock, Sven Sent

Re: [Trinidad] Inline Validation incorrect when using PPR

2007-12-21 Thread Gerhard Petracek
hello graeme, that's a known issue - i provided a patch (+ workaround): https://issues.apache.org/jira/browse/TRINIDAD-842 (it's already committed) please don't forget to close your issue TRINIDAD-880 (thanks) regards, gerhard 2007/12/21, Graeme Steyn <[EMAIL PROTECTED]>: > > Hi Sven, > > I w