how to add post-data to a redirect from an action

2009-04-21 Thread Georg Füchsle
hallo, I have to call another application out from JSF. To call this application i have to send (xml) data via post to the start-url of this application. I found some example on the web: code ExternalContext extContext = FacesContext.getCurrentInstance().ctx.getExternalContext(); String name =

Re: how to add post-data to a redirect from an action

2009-04-21 Thread Simon Kitching
Georg Füchsle schrieb: hallo, I have to call another application out from JSF. To call this application i have to send (xml) data via post to the start-url of this application. I found some example on the web: code ExternalContext extContext =

[JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Anton Gavazuk
Hi all, I need advice/suggest for such situation: is there any way to execute an action in bean/(in listener) when user requests certain jsf page? - for example: /customer/edit.jsf?id=172387 Why I need this: I want to make some preprocessing logic before showing the final page. I know there is

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Matthias Wessendorf
On Tue, Apr 21, 2009 at 10:24 AM, Anton Gavazuk antongava...@gmail.com wrote: Hi all, I need advice/suggest for such situation: is there any way to execute an action in bean/(in listener) when user requests certain jsf page? - for example: /customer/edit.jsf?id=172387 Why I need this: I

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Matthias Wessendorf
On Tue, Apr 21, 2009 at 10:53 AM, Anton Gavazuk antongava...@gmail.com wrote: Hi Matthias, thank you for the answer, One option could be doing some sort of logic (e.g. extracting req param) in the constructor that was my point - I dont like this way: in case of an exception (no object sure,

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Anton Gavazuk
Hi Adrian, looks interesting - will give it a try also, thanks. 2009/4/21 Adrian Mitev adrian.mi...@googlemail.com On Tue, Apr 21, 2009 at 11:53 AM, Anton Gavazuk antongava...@gmail.com wrote: Hi Matthias, thank you for the answer, One option could be doing some sort of logic (e.g.

Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Adrian Mitev
On Tue, Apr 21, 2009 at 11:53 AM, Anton Gavazuk antongava...@gmail.com wrote: Hi Matthias, thank you for the answer, One option could be doing some sort of logic (e.g. extracting req param) in the constructor that was my point - I dont like this way: in case of an exception (no object with

Re: show selected item in a tree2 component

2009-04-21 Thread mitroiasi
Hi After some searching and trying some solutions I came across this page: http://wiki.apache.org/myfaces/Tree2 (section about navigation). I have tried to implement the described solution but with no luck. Can someone provide me with an ample solution for this problem (more code

Re: how to add post-data to a redirect from an action

2009-04-21 Thread Georg Füchsle
Hallo Simon, Yes You have understood right: I want the user's browser to call another server and dont want to continue processing my application afterwards. I also have thought about the JavaScript solution. But using a js solution generally I will write the xml-data into the user's html. I

Re: how to add post-data to a redirect from an action

2009-04-21 Thread Walter Mourão
Some time ago I wrote a small http proxy where an web service call generates a http post. I used commons-httpclient: http://hc.apache.org/httpclient-3.x/and it was quite useful. Cheers, Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Tue, Apr 21, 2009

[Trinidad 1.0.10] error in TrRegExpValidator

2009-04-21 Thread Sven.Rottstock
Hi, I was running in an issue in Trinidad. I have used the following tag tr:validateRegExp pattern=[\w]+ and I was wondering why nothing has matched with my pattern. So I was going to debug the JavaScript implementation of TrRegExpValidator.prototype.validate function and I have seen that the

[Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Paul Freeman
Hi all, We're about to go production on our web site within the next month, but we're hitting a number of issues caused by the above bug. We see it not only on deleting rows from a table but also when updating certain tables - basically, PPR does not occur after any action which causes the

tree2 menu

2009-04-21 Thread mitroiasi
I have created a menu with the help of the tree2 component. But I have also on the same pages the buttons for next page and previous page. I want to change the selected item from the tree2 when the page is changed by clicking on the next button. I hope someone had implemented already this

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Matthias Wessendorf
On Tue, Apr 21, 2009 at 1:31 PM, Paul Freeman pfreeman...@yahoo.com wrote: Hi all, We're about to go production on our web site within the next month, but we're hitting a number of issues caused by the above bug. We see it not only on deleting rows from a table but also when updating certain

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Matthias Wessendorf
On Tue, Apr 21, 2009 at 1:53 PM, Matthias Wessendorf mat...@apache.org wrote: On Tue, Apr 21, 2009 at 1:31 PM, Paul Freeman pfreeman...@yahoo.com wrote: Hi all, We're about to go production on our web site within the next month, but we're hitting a number of issues caused by the above bug. We

Re: [Trinidad 1.0.10] error in TrRegExpValidator

2009-04-21 Thread Matthias Wessendorf
On Tue, Apr 21, 2009 at 11:05 AM, sven.rottst...@sungard.com wrote: Hi, I was running in an issue in Trinidad. I have used the following tag tr:validateRegExp pattern=[\w]+ and I was wondering why nothing has matched with my pattern. So I was going to debug the JavaScript implementation of

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Paul Freeman
Matthias - thanks for the response. We tried addPartialTarget on the table component itself - i.e. on the action method which deletes the object we tried calling addPartialTarget() on the table. Unfortunately, that didn't help. We also tried adding a return listener on the commandButton which

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Matthias Wessendorf
one more guess. in the delete, did you try something like this ? public String delete() { ... List myList = // get the thing; myList.remove(...); // store the change UIXTable table = (UIXTable) FacesContext.getCurrentInstance().getViewRoot().findComponent(tableId);

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Paul Freeman
Just tried it and no luck :-( Note that the delete() method in my case is in context of a popped up dialog so the line:   UIXTable table = (UIXTable)FacesContext.getCurrentInstance().getViewRoot().findComponent(tableId); ... returned null so I got to the UIXTable object through an associated

Re: how to add post-data to a redirect from an action

2009-04-21 Thread Georg Füchsle
Hallo Walter, thanks for Your reply. I have tried to understand what ist httpclient, but I am not shure if I am right. What I guess is that httpclient can manage the client-communication to a web server. That means I can make programs that interact with a webserver. (like calling an url with

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Andrew Robinson
Could you submit a test case that builds using maven and runs with jetty support (just a normal war pom setup and the jetty plugin can be added easily)? On Tue, Apr 21, 2009 at 9:41 AM, Paul Freeman pfreeman...@yahoo.com wrote: Just tried it and no luck :-( Note that the delete() method in my

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Paul Freeman
I think the JIRA issue has a reasonably standalone testcase so I can certainly turn that into a maven-based testcase over the next day or so. It will also help me validate whether or not I'm seeing exactly the same problem. Do you know if there's a maven archetype which includes trinidad and

Re: [Trinidad-Sandbox] trs:tableFormLayout renderer problem

2009-04-21 Thread Leonardo Uribe
Hi Glauco Sorry for the late response, but right now I'm busy contributing to myfaces core 2.0. I'll try to be as concrete and simple as possible to explain this issue. To understand how this component works you have first to check a working example of it. Trinidad 1.2.8 is the nearest version

Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table

2009-04-21 Thread Paul Freeman
I have attached a maven-based testcase to the JIRA issue. Much appreciated if someone could look into it... From: Paul Freeman pfreeman...@yahoo.com To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, April 21, 2009 6:40:22 PM Subject: Re:

Re: how to add post-data to a redirect from an action

2009-04-21 Thread Walter Mourão
No, Sorry, I misunderstood your needs... Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Tue, Apr 21, 2009 at 12:43 PM, Georg Füchsle giofy...@googlemail.comwrote: Hallo Walter, thanks for Your reply. I have tried to understand what ist

Unsubmitted sub-forms loosing values when using t:subform ... within h:dataTable

2009-04-21 Thread Babu Subburathinam
Hi, When t:subform ... is used within h:dataTable, subforms that are not submitted loose value changes (they load values from the model even if preserveSubmittedValues=true). In the following UI Mark up, I make changes to the first name and first score and click submit. Changes made to score are