Re: displaying a page from root directory when URL points to sub directory

2008-08-13 Thread [EMAIL PROTECTED]
This approach sounds like a bad idea to me. Having all your pages in the root directory means your app will not scale beyone a few dozen pages; it will just get unmanageable. And this approach simply feels wrong. If you really want to do this then I would agree with Frank's suggestion to do th

Re: displaying a page from root directory when URL points to sub directory

2008-08-13 Thread [EMAIL PROTECTED]
This project might be useful: http://code.google.com/p/urlrewritefilter/ This could allow you to effectively take the "proxy server" approach that Frank suggested, but do the url modification within your webapp rather than in an external application. [EMAIL PROTECTED] schrieb: This approach s

[Trinidad] set focus after partial submit

2008-08-13 Thread Rottstock, Sven
Hi, i have the following JavaScript code that should execute a partial submit. After the response is completed the focus should be set on the input element that have triggered the request. //

AW: [Trinidad] set focus after partial submit

2008-08-13 Thread Rottstock, Sven
I think I have figured out my issue but I don't know how I can fix it. The problem is the action method. It returns an existing navigation-rule so that the page is completely refreshed after the partial submit is done. This is necessary because the table could be changed (regarding of the column

Re: [Trinidad] set focus after partial submit

2008-08-13 Thread Matthias Wessendorf
Sven, we have a dom-update-listener. From the Trinidad DevGuide ([1]). Trinidad also lets you get notified when DOM is replaced after an AJAX response by adding a "DOM replace listener" on the page: function myCallback(oldDom, newDom) { ... } TrPage.getInstance().addDomReplaceListener(m

AW: [Trinidad] set focus after partial submit

2008-08-13 Thread Rottstock, Sven
Hi Matthias, thank you for your answer. I have tried to add the DOM replacement listener but it wasn't invoked in my case. It seems to be a difference between a simple partial submit and a partial submit with a resulting refresh of the page (because of the navigation rule). I have also added a

Re: [Trinidad] set focus after partial submit

2008-08-13 Thread Matthias Wessendorf
On Wed, Aug 13, 2008 at 12:16 PM, Rottstock, Sven <[EMAIL PROTECTED]> wrote: > Hi Matthias, > > thank you for your answer. I have tried to add the DOM replacement listener > but it wasn't invoked in my case. It seems to be a difference between a > simple partial submit and a partial submit with a

tr:commandLink in table not launching dialog

2008-08-13 Thread Anthony Ryan
Hi all, I use a commandLink to delete a row in a table but we need to have a warning pop-up first. I have it made as a pop-up using the dialog: method but the pop-up window never displays (nothing happens!)! Below is my (shortened) code. If anybody has any suggestions or sees something wrong,

Re: [Trinidad] set focus after partial submit

2008-08-13 Thread Matthias Wessendorf
> erks.addScript(facesContext, "doSomeNiceStuff()"); you even can "add" the function (to do the element.focus) dynamically. -M > > > at the very end of the (ajax) response a tag is added, > > like > >