Is it possible to know which action is fired from facesContext?

2006-05-29 Thread Anthony Hong
If I have a h:commandButton or link with action, which there is MethodBinding with it. When submit form, How could I know which action is being trigged? -- Anthony Hong

Re: JSF authorization problem

2006-05-29 Thread Cagatay Civici
Hi,Yes they are in the same view, but since the submitted parameters contain different keys, checking out the request param map for the client id of the button may help.Also before executing a phase, isRendered() control is done on each component. If not rendered, it just returns and stop

Re: JSF authorization problem

2006-05-29 Thread Cagatay Civici
FacesContext.getCurrentInstance().getRequestParameterMap();Also creating a valuebinding to #{params} returns the same map.On 5/29/06, Anthony Hong [EMAIL PROTECTED] wrote: which request map should I query?Can you offer me a example. Many thanksOn 5/29/06, Cagatay Civici [EMAIL PROTECTED] wrote:

Re: How to redirect to an error page when JSF page failed

2006-05-29 Thread Cagatay Civici
Checkout the following;http://www.jroller.com/page/mert?entry=handling_errors_with_an_errrorCagatay On 5/27/06, Julian Ray [EMAIL PROTECTED] wrote: Hi Anthony,I was refering to Chapter 12 (pg 595) of Core JavaServer Faces by Geary Horstman published by Sun Microsystems.-Original

RE: Version of Servlet Container - Facelets

2006-05-29 Thread Michael Heinen
1 for existing projects Maybe 2 for new projects -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Sonntag, 28. Mai 2006 06:10 To: MyFaces Discussion; MyFaces Development Subject: Version of Servlet Container - Facelets May I ask a question out loud? In

Re: How to redirect to an error page when JSF page failed

2006-05-29 Thread Mert Çalışkan
This could be a solution for you. http://www.jroller.com/page/mert?entry=handling_errors_with_an_errror Regards, Mert On 5/26/06, Anthony Hong [EMAIL PROTECTED] wrote: In jsp with servlet, I define error page configuration in web.xml toredirect to an error page when error occured.

Maven Build - Problems with java 1.5

2006-05-29 Thread Sven Haiges
Hi,I am trying to build myfaces with maven, check out of myfaces-current was successful, but maven install does not compile the sources as there are java 1.5 elements in the code. I changed the settings in the maven/master-pom to source/target 1.5, but maven still complains.Here is Maven's

Access a Set with JSF-EL?

2006-05-29 Thread Michael Heinen
Can I access a Set with JSF-EL? I have a datatable with many records. The user is able to update records in a detail panel. The ids of the updated records are stored in a HashSet in a backing bean. Now I want to mark all those records that have been updated by the user. Something

conditional file include %@ include file=...

2006-05-29 Thread Hansjörg Meuschel
Hello, is it possible to determine in what page an included jsp file is put? I want to have something like %@ include file=/pdca/include/all_page_headers.jsp container=page1 % ... in all_page_headers.jsp: (pseudocode) if (page1): h:panelGrid... ... if (page2): h:panelGroup... ...

Re: Maven Build - Problems with java 1.5

2006-05-29 Thread Matthias Wessendorf
Hi Sven, figured out the same on the *daily* update. Reason is that now Java5 (by accident...?) is used during Stan's JSF 1.2 update... Stay tuned... -Matthias On 5/29/06, Sven Haiges [EMAIL PROTECTED] wrote: Hi, I am trying to build myfaces with maven, check out of myfaces-current was

How to pass value from javascript to backing-bean?

2006-05-29 Thread Stefan Gesigora
Hi! How can I pass a value set with javascript (f.e.): document.getElementById(form:selListRow).value = idrow into my backing-bean? I got a datatable where the user can select a row. The selected row is highlighted and then the user can press an addRow-commandLink (with image) which add the

Re: Version of Servlet Container - Facelets

2006-05-29 Thread Alexandre Poitras
2 On 5/29/06, Michael Heinen [EMAIL PROTECTED] wrote: 1 for existing projects Maybe 2 for new projects -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Sonntag, 28. Mai 2006 06:10 To: MyFaces Discussion; MyFaces Development Subject: Version of Servlet

Re: How to redirect to an error page when JSF page failed

2006-05-29 Thread Anthony Hong
Thanks, That's a useful resource On 5/29/06, Mert Çalışkan [EMAIL PROTECTED] wrote: This could be a solution for you. http://www.jroller.com/page/mert?entry=handling_errors_with_an_errror Regards, Mert On 5/26/06, Anthony Hong [EMAIL PROTECTED] wrote: In jsp with servlet, I define error

Core 1.1.3 + Tomahawk 1.1.2 Examples?

2006-05-29 Thread Joe Reger, Jr.
Hi All! In the past I used the examples WAR files to get started: myfaces-X.X.X-examples.zip I can't seem to find a version of the examples that works with Core 1.1.3 and Tomahawk 1.1.2. Is this an outcome of the Core/Tomahawk separation? If so, what would I do to get the

Re: Version of Servlet Container - Facelets

2006-05-29 Thread baz
Option [2] and in future times eventually [3]

Solution for Which tab i have clicked

2006-05-29 Thread Purvesh Yadav
Hi All, I am using t:panelTabbedPane for creating multiple tab. when i click on any tab such as tab1 or tab2 i am not getting any event. Can any body give me solution or code with which i come to know which tab i have clicked. So, that when i click on tab2 i should come to know that tab2 is

Tree2 and frames problem within IE

2006-05-29 Thread Johnny Gonzalez
Hello Everybody, I have an application that has three frames, one top frame for banner, a left frame for tree2 based menu, and a right frame to open the page that brings up from the tree2 menu. Everything works fine in Mozilla Firefox, but when working in IE I have faced several problems. For

Where can I download the sandbox examples?

2006-05-29 Thread Hailong Zhang
I want to download the sandbox examples like http://www.irian.at/myfaces-sandbox/home.jsfWhere can I get it?Thank you!

Re: Where can I download the sandbox examples?

2006-05-29 Thread Cagatay Civici
You need to checkout the source and build it with maven2. http://wiki.apache.org/myfaces/Building_With_MavenOn 5/29/06, Hailong Zhang [EMAIL PROTECTED] wrote: I want to download the sandbox examples like http://www.irian.at/myfaces-sandbox/home.jsf Where can I get it?Thank you!

java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm

2006-05-29 Thread andreas.mitter
Title: java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm Hi Guys! I just tried to migrate from MyFaces 1.1.1 to 1.1.3 with Tomahawk 1.1.2... But I get the following error when starting the whole thing: java.lang.NoSuchMethodError:

Re: Where can I download the sandbox examples?

2006-05-29 Thread Hailong Zhang
Is there any binary version?Thank you2006/5/29, Cagatay Civici [EMAIL PROTECTED]: You need to checkout the source and build it with maven2. http://wiki.apache.org/myfaces/Building_With_Maven On 5/29/06, Hailong Zhang [EMAIL PROTECTED] wrote: I want to download the sandbox examples like

Re: Where can I download the sandbox examples?

2006-05-29 Thread Matthias Wessendorf
not yet... On 5/29/06, Hailong Zhang [EMAIL PROTECTED] wrote: Is there any binary version? Thank you 2006/5/29, Cagatay Civici [EMAIL PROTECTED]: You need to checkout the source and build it with maven2. http://wiki.apache.org/myfaces/Building_With_Maven On 5/29/06, Hailong Zhang

Re: Is it possible to know which action is fired from facesContext?

2006-05-29 Thread Ricardo Ramírez
like, know in what phase? You could know because that action method is being invoked... On Mon, 2006-05-29 at 14:20 +0800, Anthony Hong wrote: If I have a h:commandButton or link with action, which there is MethodBinding with it. When submit form, How could I know which action is being

Re: Tobago sheets don't gridLayout with other components?

2006-05-29 Thread Volker Weber
Hi John, just tested it out, layouting works well for sheet. you have two errors and one problem on your page: see inline John wrote: This is the code that exhibits the behavior: It should layout like: X X X X (both Xs are the sheets span) But it lays out like: X X X With both

Re: Maven Build - Problems with java 1.5

2006-05-29 Thread Sven Haiges
:-) Good to know. Will do a fresh checkout tomorrow and try it again. Thanx!SvenOn 5/29/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:Hi Sven,figured out the same on the *daily* update. Reason is that now Java5 (by accident...?) is used during Stan's JSF1.2 update...Stay tuned...-MatthiasOn

Getting reference to caller UIComponent from managed bean setter/getter

2006-05-29 Thread Furer Alexander
Hi Is there any way to get reference to caller UIComponent from managed bean getter/setter function ? For example , assume we have following jsp fragment: h:commandLink id="en" styleClass="#{locale.style}" h:outputText value="English" / /h:commandLink h:commandLink

Re: Websphere 6 tld not found [solved]

2006-05-29 Thread Tanikonda
HI, I am using Tree Table componenet of Tomhawk. I am getting following error Unable to locate tag library for uri http://myfaces.apache.org/tomahawk in Websphere6 . Any Ideas please. Same thing working fine on TOMCAT. Do you have any installation guide for configuring tomhawk on Websphere6

Re: Getting reference to caller UIComponent from managed bean setter/getter

2006-05-29 Thread Sven Haiges
I think the easiest option is to use an actionListener instead the action attribute. You then have a myActionlistener(ActionEvent e) Method in your backing bean and can call a method to retrieve the component that was clicked on. with that you can get the name of the id and change the locale

MyFaces Core 1.1.3 Binary Distribution - where are sources ?

2006-05-29 Thread Evgeny Goldin
Hi,After downloading myfaces-core-1.1.3-bin.zip I see it contains no sources .. Can somebody, please, help me with that ? I've downloaded manually 'api' and 'impl' sources from http://svn.apache.org/repos/asf/myfaces/core/branches/1_1_3/ but now I can't find sources for the

Re: Maven Build - Problems with java 1.5

2006-05-29 Thread Martin Marinschek
Hi Sven, it should be fixed again - care to try? regards, Martin On 5/29/06, Sven Haiges [EMAIL PROTECTED] wrote: :-) Good to know. Will do a fresh checkout tomorrow and try it again. Thanx! Sven On 5/29/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Hi Sven, figured out the same on

Re: Getting reference to caller UIComponent from managed bean setter/getter

2006-05-29 Thread Furer Alexander
Sven, I have implemented your advise beforehand.. now i want to set style for A elements according to selected locale, that's why i use styleClass="#{locale.style}" - Original Message - From: Sven Haiges To: MyFaces Discussion Sent: Monday, May 29, 2006 8:58 PM

inputCalendar with popup button problem

2006-05-29 Thread mindu
I'm using Core 1.1.3, Tomahawk 1.1.2 I've got this error when I click on popup button in an t:inputCalendar ...SEVERE: Error while serving resource: calendar.HtmlCalendarRenderer /DB/divider.gif, message : nullClientAbortException: java.net.SocketException: Connection reset by peer: socket write

Sharing just a bean VARIABLE between 2 managed beans - Howto?

2006-05-29 Thread Wolf Benz
Hi, I often see that beans get injected in one another (as in: the ENTIRE bean is injected in another bean as a variable), but is this also possible: - declare a variable in one bean - access just this ONE variable from another bean? So suppose bean A has a variable varA and bean B wishes

Re: inputCalendar with popup button problem

2006-05-29 Thread Furer Alexander
Have you installed tamahawk extensions filter ? - Original Message - From: mindu To: MyFaces Discussion Sent: Monday, May 29, 2006 9:43 PM Subject: inputCalendar with popup button problem I'm using Core 1.1.3, Tomahawk 1.1.2 I've got this error when I click on

Re: Getting reference to caller UIComponent from managed bean setter/getter

2006-05-29 Thread Matthias Wessendorf
You can call setStyle() on HtmlCommandLink clazz See [1] [1] http://tinyurl.com/kjgo7 On 5/29/06, Furer Alexander [EMAIL PROTECTED] wrote: Sven, I have implemented your advise beforehand.. now i want to set style for A elements according to selected locale, that's why i use

Re: Getting reference to caller UIComponent from managed bean setter/getter

2006-05-29 Thread Matthias Wessendorf
... to fast. also you can use binding attribute and *wire* the component itself to your backing bean -Matthias On 5/29/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: You can call setStyle() on HtmlCommandLink clazz See [1] [1] http://tinyurl.com/kjgo7 On 5/29/06, Furer Alexander [EMAIL

Re: inputCalendar with popup button problem

2006-05-29 Thread Furer Alexander
filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class init-param param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name

Re: Websphere 6 tld not found [solved]

2006-05-29 Thread Mert Çalışkan
We had a similiar problem with a JSF Webapp. The webapp is not myfaces-enabled but the reason of your problem could be same as ours. The main reason of our problem is the classloader selections of WebSphere. We are using application classloader-policy for ear and module classloader-policy for war

RE: Solution for Which tab i have clicked

2006-05-29 Thread Julian Ray
Hi Purvesh You need to implement a tabChangelistener. Heres one way to do it. [1] Set serverSideTabSwitch to true serverSideTabSwitch="true" [2] Add a tab change listener as a child component to the panelTabbedPane t:tabChangeListener type="cms.beans.inventory.StorageArea"/

Re: Websphere 6 tld not found [solved]

2006-05-29 Thread Tanikonda
Thank you vey much We are very glad to see your quick reply. We will try to resolve the problem according to gudelines you have given. It any problems we will contact with you. Thanks in advance Srinivas -- View this message in context:

Tomahawk on Websphere 5.1.1.1

2006-05-29 Thread Alex Burton
Hi all, Has anyone managed to get Tomahawk running on a IBM Webshpere 5.1.1.1 server? I seem to be getting stuck with the exception below as I am missing the EL language (which isn't suprising in J2EE 1.3). Have a app i need to port to run in Websphere that makes heavy use of the datatable and

Re: Is it possible to know which action is fired from facesContext?

2006-05-29 Thread Anthony Hong
I know the phase. But I don't know what is being sent when submit form for an action. Which paramter should I request from requestMap On 5/30/06, Ricardo Ramírez [EMAIL PROTECTED] wrote: like, know in what phase? You could know because that action method is being invoked... On Mon, 2006-05-29

[tree2] Re: Get selected node with getNode()

2006-05-29 Thread Sean Schofield
Store a reference to your tree in your backing bean with: t:tree2 id=foo ... binding=#{treeBacker.tree} Then in your action method you have public String selectedNode() { this.selectedNode = tree.getNode(); return(main); } The tree always knows the current node when processing an

Re: Tomahawk on Websphere 5.1.1.1

2006-05-29 Thread Nenz
Alex, I am currently using Tomahawk 1.1.1 with the Sun RI verison 1.1.01 and WAS 5.1.x? with no problems. When I tried upgrading Tomahawk to 1.1.2 I experienced issues similar to what you describe and unfortunately I am stuck on Tomahawk 1.1.1. I haven't banged at this too long (probably for

Now this is messed up right here..what kind of XML parser are myfaces developers using?

2006-05-29 Thread Daniel Hinojosa
System: myfaces-core-1.1.3 packaged in war, jboss4.0.4GA (not using packaged myfaces), Windows XP, 2GB Ram, DUO Core Intel. This works servlet-mapping servlet-nameFacesServlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping This doesn't servlet-mapping

Re: [tree2] Re: Get selected node with getNode()

2006-05-29 Thread Daniel Haensse
Hi Sean, thanks for the quick reply. I don't understand your answer :-( My problem is that getNode() does not exist anymore in class TreeModelBase. Eclipse claims that The method getNode() is undefined for the type TreeModelBase in the line this.selectedNode = this._treeModel.getNode(); (see

Re: Maven Build - Problems with java 1.5

2006-05-29 Thread Matthias Wessendorf
Build works for me. Martin/Stan fixed the Java5 issue. -Matthias On 5/29/06, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Sven, it should be fixed again - care to try? regards, Martin On 5/29/06, Sven Haiges [EMAIL PROTECTED] wrote: :-) Good to know. Will do a fresh checkout tomorrow and