Re: Configured jsf forwarding to jsp

2007-08-31 Thread Simon Kitching
Earnest Dyke [EMAIL PROTECTED] schrieb: Greetings, I have a simple JSF implementation (see below for faces-config) that has to jsf pages. When I go to http://localhost:8080/Sim/Sim.jsf it forwards to Sim.jsp and I can't figure out why. Should be pretty simple. I am running MyFaces 1.1.5

Re: h:commandLink

2007-09-10 Thread Simon Kitching
Wolfgang [EMAIL PROTECTED] schrieb: can I use the commandLink to link to a new xhtml file? If so, how does this work? All the command components cause a postback to the original view so it can handle any changes to input fields on the screen and decide where to take the user to next,

[Orchestra] Warning: Incompatible change in endConversation

2007-09-10 Thread Simon Kitching
Hi, I've just committed a change to svn head that changes the behaviour of the endConversation tag. The restart and restartAction attributes have been removed. These were intended to mimic the functionality available via the API ConversationUtils.invalidateAndRestartCurrent. Unfortunately in

Re: include rendered JSF output in JSP page

2007-09-13 Thread Simon Kitching
Have you considered using the jakarta commons httpclient library to send a separate request from your test framework back to the JSF page on the same server (or a different one)? The HttpClient operation will then return the complete block of HTML rendered by that JSF page without any complex

RE: [Trinidad] tr:inputDate problem

2007-09-14 Thread Simon Kitching
Are you sure the problem isn't this one? http://wiki.apache.org/myfaces/FAQ#Date sandeep gururaj [EMAIL PROTECTED] schrieb: Not sure why, I face the same problem if I use IE7. When on IE6, it works properly. ~Sandeep -Original Message- From: Stephen Booth

Spring WebFlow and Orchestra (was Re: Orchestra Question / another solution?)

2007-09-28 Thread Simon Kitching
wouldn't call spring-webflow too complicated in comparison to Orchestra - but what you can't do with spring-webflow is to handle the underlying JPA-persistence context out of the box, you can do that with Orchestra. regards, Martin On 9/28/07, Simon Kitching [EMAIL PROTECTED] wrote: See

Re: Orchestra Question / another solution?

2007-09-28 Thread Simon Kitching
See here for information about conversations: http://myfaces.apache.org/orchestra/myfaces-orchestra-core/conversation.html If all you want is Spring DI and AOP for your beans, then you don't need Orchestra. However Spring core doesn't give you conversation scopes by default. Copnversation

Re: Orchestra: Target unreachable

2007-09-28 Thread Simon Kitching
alberto [EMAIL PROTECTED] schrieb: I am trying ORchestra on Myfaces 1.2, Tomcat 6, Facelets, Spring 2.0.6. I have a inputText value=#{userListBean.user.username} in my welcome.xhtml When I submit I get: value=#{userListBean.user.username}: Target Unreachable, identifier

Re: Behaviour of JSF related to renderer instances

2007-10-01 Thread Simon Kitching
David Delbecq [EMAIL PROTECTED] schrieb: Hello, I have a quite technical question related to Renderers in JSF. When several components references the same Renderers, what's the expected behaviour? 1) One and only one renderer is instanciated and used for the whole life of

Re: Messages on JSF Site are shown twice

2007-10-02 Thread Simon Kitching
Yep, the problem is that your t:messages has showDetail=true. but your FacesMessage object has no detail set. If you ask for the detail to be rendered, but the FacesMessage object has null as its detail string, then it uses the summary string. Here's the relevant method from the

Re: Sharing session with struts

2007-10-03 Thread Simon Kitching
Mikael Andersson [EMAIL PROTECTED] schrieb: Hi I'm investigation how to integrate JSF into a large Struts based application and one thing which I need to do is access attributes put into the http session by Struts (homegrown security framework). I first thought that the Session would

Re: Sharing session with struts

2007-10-03 Thread Simon Kitching
security constraints (container managed) cause different sessions to be created? If anyone can think of something which may cause what I'm seeing I'd be greateful. Thanks, Mike On 03/10/2007, Simon Kitching [EMAIL PROTECTED] wrote: Mikael Andersson [EMAIL PROTECTED] schrieb: Hi

Re: Building the Tomahawk 1.1.4 branch locally

2006-12-19 Thread Simon Kitching
Jeff Bischoff wrote: Hey gang, I want to build the Tomahawk 1.1.4 branch (release candidate?) locally so that I can do some testing on it to prepare our eventual upgrade to 1.1.4 Using SVN, I downloaded the source for this branch from the repos listed on the status doc. [1] They both

Re: Building the Tomahawk 1.1.4 branch locally

2006-12-19 Thread Simon Kitching
Jeff Bischoff wrote: Simon, Thanks a lot for responding. I'm still a bit confused, as I don't see a .m2 directory anywhere. I should mention that I am using windows - do that change the behaviour at all? For Windows, look in c:\Documents and Settings\{your user}\.m2

Re: Building the Tomahawk 1.1.4 branch locally

2006-12-19 Thread Simon Kitching
Simon Kitching wrote: Jeff Bischoff wrote: Simon, Thanks a lot for responding. I'm still a bit confused, as I don't see a .m2 directory anywhere. I should mention that I am using windows - do that change the behaviour at all? For Windows, look in c:\Documents and Settings\{your user}\.m2

Re: commandLink problems - once again - this time with selectOneMenu!

2006-12-20 Thread Simon Kitching
Behrang Saeedzadeh wrote: Suppose that we are using Struts or WebWork to handle this scenario. In our showItems action we populate the list, then render the result to the browser. The user selects one of the items and submits the form. In Struts or WebWork, this simply sets the selectedItemId

Re: Problem With t:updateActionListener and Facelets

2006-12-20 Thread Simon Kitching
Jeff Bischoff wrote: Madhav Bhargava wrote: That is correct. It is a problem that i caused by property resolver. It internally uses the Introspector to get all the properties and their accessor methods and any other methods. In a special case like - sOmeBean this will cause a problem

Re: binding

2007-01-02 Thread Simon Kitching
[EMAIL PROTECTED] wrote: Hi, I have a t:selectOneMenu in a t:dataTable. The dataTable consists of wrappers, which has the selectOneMenu bound to: private HtmlSelectOneMenu oneMenu I want to check for all oneMenu as a double match isn't allowed. To compare the selected values I must have

Re: where to find doc

2007-01-03 Thread Simon Kitching
anoe wrote: hi everyone, sure this has already been posted, i am trying to use myfaces with tomahawk 1.1.5 but can't find proper doc, i am reading the doc for different components is described in the examples but i am executing them, looking in the source code... and can find none. Any help?

Re: Inline validation method

2007-01-03 Thread Simon Kitching
have to be named validate, but it's a convenient way to create the code. /dmc On 1/2/07, Simon Kitching [EMAIL PROTECTED] wrote: lightbulb432 wrote: The text below is a modified excerpt from the IBM article about JSF validation...I'm wondering what exactly they're trying to say. What do

Re: Inline validation method

2007-01-03 Thread Simon Kitching
Craig McClanahan wrote: The validator attribute has been there since JSF 1.0 ... it corresponds to the getValidator() and setValidator() methods of the EditableValueHolder interface. In a similar way, the converter attribute has been around since JSF 1.0 on components that implement

Re: JSF Integration with Legacy Portal. Need access to HTTPRequest and HTTPResponse

2007-01-04 Thread Simon Kitching
Todd Nine wrote: Hi all, I'm integrating a new JSF portlet with a legacy framework. I use the term portlet loosely, its actually an application that runs in an Iframe. I have a utility class that works as follows JSPUtils.getUser (request, response). I would like to put this in my bean

Re: Parameter lost on validation failure

2007-01-08 Thread Simon Kitching
Olof Næssén wrote: Hello! I have a jsp page which is reached by using a commandLink with a parameter. In the page I have a form with validation. If validation fails, and the user is redirected back to the page, the parameter is lost. Is this expected behavior? Is there a way around this?

Re: unexpected input while looking for attr name or '/'

2007-01-09 Thread Simon Kitching
nyon wrote: I have seen several issues on this subject. But there seems to be any real solution. I have rendered nothing but an empty body. But this error is still after me.I have checked my web.xml several times. So whats the error? If its the tomahawk bug then is there any fixed version ??

Re: Parameter lost on validation failure

2007-01-09 Thread Simon Kitching
Olof Næssén wrote: Why would you use an f:param tag rather than using t:updateActionListener? I didn't know updateActionListener existed. And frankly I don't really see the difference. Before I used a f:param embedded in a h:commandLink, now I use a t:updateActionListener embedded in a

Re: Core 1.1.5 changes behaviour of f:attribute, breaks my app

2007-01-10 Thread Simon Kitching
Jeff Bischoff wrote: Greetings colleagues, I have used in my web pages a pattern that apparently was not safe, yet it worked fine with all versions of MyFaces until the current trunk (1.1.5). Basically, when I needed to make sure a certain bean was instantiated before using non-JSF EL, I

Re: unexpected input while looking for attr name or '/'

2007-01-11 Thread Simon Kitching
nyon wrote: yes you are right. I got this problem because of my included script file. In the .js file there is a condition like var1var2. When parsing the ReducedHtmlParser class takes var2 as a tag and tried to find a closing one for it. Finding nothing it then logs a warning which quickly

Re: How to overwrite default renderer for h:selectOneRadio to include for attribute in label

2007-01-11 Thread Simon Kitching
Wendy Chou wrote: Hi, I would like to render radio buttons differently to include the for attribute in the label tag. So when I do this: h:selectOneRadio f:selectItem value=#{bean.options} / /h:selectOneRadio I want this set of radio buttons would render like so: label for=radio1

Re: t:saveState problems (not working / have tried everything)

2007-01-11 Thread Simon Kitching
support wrote: How would I know if my t:saveState is working or not (by looking at physical files)? I set STATE_SAVING_METHOD to client in my web.xml and supposed I would see something in the source html file. My saveState looked like this: t:saveState id=idSaveObject value=${object} I

Re: trace response time and status for action method

2007-01-11 Thread Simon Kitching
stormspire wrote: I want to trace every request submitted, thus for every action, I need how much time it takes to process, whether it throws sys/application exceptions etc. Anywhere I can catch them? Tracing request times could be done using a JSF PhaseListener I guess. However personally I

Re: Source code

2007-01-14 Thread Simon Kitching
As this is not the first time this question has been asked, I've created a wiki page: http://wiki.apache.org/myfaces/Source_Code_Packaging Regards, Simon Cagatay Civici wrote: Hi, The shared core is bundled at build time as shared_impl. Like in tomahawk same shared core module is bundled

Re: Can dataTable's value be a HashSet?

2007-01-14 Thread Simon Kitching
And in general sets are not ordered, which doesn't make sense when displaying data in a table. Read-only tables would be odd, but implementing editable tables would be really nasty if the server-side data structure that the table corresponds to could return its data in any order. The JSF

Re: commandLink not working ??

2007-01-14 Thread Simon Kitching
SimonSays wrote: However on the second time I hit the commandLink after getting the popup, it will never hit the actionListener or the action method in the BB. I am using t:saveState on all BB's. The usual cause for this is a validation error. Add an h:messages tag to your page so you can

Re: Access to managed bean

2007-01-14 Thread Simon Kitching
[EMAIL PROTECTED] wrote: I would like to access in the Action class to the managed bean class. How can I do this? http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother

Re: t:saveState problems (not working / have tried everything)

2007-01-14 Thread Simon Kitching
SimonSays wrote: So why is it that I read if you use t:saveState that the BB must implement Serializable? So something that is serializable does not necessarily write out a file system file, but can store the file in memory as well? There are three options for saving a component tree: (a)

Re: How to overwrite default renderer for tomahawk t:radio tag?

2007-01-16 Thread Simon Kitching
Wendy Chou wrote: Hi, I would like to change how the t:radio is rendered. This tomahawk tag is handled by org.apache.myfaces.custom.radio.HtmlRadioTag, however when I looked in that class, the getRendererType() method returns null. How should I overwrite the renderer for this tag? When the

Re: GET on page with h:form handled like form submission

2007-01-16 Thread Simon Kitching
Giampaolo Tomassoni wrote: Dears, Ciao Bella ;) I'm facing a problem with myfaces-1.4 in a framed web app under JBoss Seam (http://labs.jboss.com/portal/jbossseam) and it seems that the problem needs upstream support (you). The problem is the following. When a page with parameters and an

Re: JSTL and JSF

2007-01-16 Thread Simon Kitching
Joost Schouten wrote: Hi, I have the below code trying to print a dataTable when the backing bean found entries, or no results when none are found. But my JSTL tags don't seem to have access to my JSF backing beans. What is the best way to combine JSTL and JSF, or are the other JSF

Re: Possible Bug with UIComponentBases findComponent Method and TabbedPanels

2007-01-18 Thread Simon Kitching
I don't quote follow your description of the problem below. However if you want to reference a component in a nested naming container, then you can just provide the appropriate path: somesubview:targetId A naming container is equivalent to a directory, and an id passed to findComponent is

Re: Newbie question about Tomahawk dependencies

2007-01-18 Thread Simon Kitching
Hi Matt, Matt Koranda wrote: I have added the Tomahawk jar and dependencies to a project I am working on (first JSF project): commons-codec commons-el commons-lang jsf-impl.jar tomahawk-1.1.3 I want to use the sortable feature of the Tomahawk data table. The application was (is) working fine

Re: What is nightly builds ?

2007-01-22 Thread Simon Kitching
madan chowdary wrote: Hi all, I am very much confused seeing some technical words like Nightly builds. What exactly is nightly builds. It normally means that a project has some automated system that runs every day (usually during the quietest time of day for the development computers, ie

Re: Question about using rendered

2007-01-23 Thread Simon Kitching
Thomas Chang wrote: Hi all, I use the rendered inoder to change the showing or hiding of an inputTextField in run-time. My code look as follow: ... ... h:inputText id=search_item2 value=#{myBean.searchitem2} size=30 rendered=#{myBean.searchLabel == 2} / ... ... public class MyBean{ ...

Re: Access to managed bean in JSP

2007-01-23 Thread Simon Kitching
[EMAIL PROTECTED] wrote: I would like to access the bean instance image in the jsp file managed-bean managed-bean-nameimage/managed-bean-name managed-bean-classorg.troedel.bean.ImageBean/managed-bean- class managed-bean-scoperequest/managed-bean-scope

Re: Access to managed bean in JSP

2007-01-23 Thread Simon Kitching
Simon Kitching wrote: [EMAIL PROTECTED] wrote: I would like to access the bean instance image in the jsp file managed-bean managed-bean-nameimage/managed-bean-name managed-bean-classorg.troedel.bean.ImageBean/managed-bean- class managed-bean-scoperequest/managed

Re: AW: Re: Access to managed bean in JSP

2007-01-23 Thread Simon Kitching
[EMAIL PROTECTED] wrote: This imagefile.jsf content works, I have tested it with imagefile. jsf?filename=C:\temp\chiemgauer.jpg jsp:useBean id=image scope=request class=org.troedel.bean. ImageBean / % String filename = request.getParameter(filename);

Re: What's the difference between (onclick=submit() immediate=false) and (onclick=submit() immediate=true)?

2007-01-24 Thread Simon Kitching
Beelen, Marco wrote: Thomas, The Wiki contains a pretty good articel about the immediate attribute: http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works Check it to see if it anwsers your question. The sandbox s:submitOnEvent tag is the equivalent of a javascript submit()

Re: Consultant Developers needed for JSF

2007-01-25 Thread Simon Kitching
I don't see any problem with Samir's email. This is where JSF people hang out, and I'm sure we all want jobs (though this one is about 10,000 kms too far away for me :-). If job postings become *too* frequent it might be necessary to move them to a wiki page or similar but I suggest that

Re: Source code

2007-01-25 Thread Simon Kitching
lightbulb432 wrote: I have another question about MyFaces source code. When looking at the source code included with MyFaces, I noticed that FacesServlet is specific to MyFaces, as seen in the line: SERVLET_INFO=FacesServlet of the MyFaces API implementation I thought that Sun provided the

Re: Jsf_tree_64

2007-01-30 Thread Simon Kitching
Gattu, Praveen wrote: Hi Folks - We are using the myfaces(1.1.5 snapshot). I got couple of questions regarding the state save. So far we were using the server side save state to reduce the page size of our pages, but noticed that with this approach, our app cannot work behind a load balancer.

Re: Jsf_tree_64

2007-01-30 Thread Simon Kitching
Madhav Bhargava wrote: http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_astatesaving~html/

Re: wat is the main advantage of aliasbean component

2007-01-31 Thread Simon Kitching
Or in other words, it can be used to effectively pass a parameter to an included page, by making the names that the included page needs (parameter names) point to the appropriate values. Cagatay Civici wrote: Hi, In addition, here's an example that might help;

Re: AW: Visibility of t:column

2007-02-04 Thread Simon Kitching
For a recent project I spend a lot of time trying to dynamically hide/show columns in an HTML table using styles and had no success at all. It seems that HTML simply does not support this at all. Note that this is *not* a JSF issue; JSF can use rendered to suppress a column. However as in

Re: When does saveState occur?

2007-02-05 Thread Simon Kitching
Lisa wrote: I'm not seeing that the values are restored at the beginning. I must have something wrong. I have a BB that has 3 setters called after instantiation. I need the saveState restore to happen before these setters are called but it looks like the values are being restored much later.

Re: JSF dataTable Binding

2007-02-06 Thread Simon Kitching
kal stevens wrote: Could someone help me out and tell me what is wrong with this I am trying to bind the current value through the iteration to my bean. pgb.weekList is a ListInteger pgb.weekIndex is an Integer pgb.daysOfWeek is a ListInteger x:dataTable

Re: jsf 508 accessibility requirement satisfaction and use of label for=.. tag.

2007-02-06 Thread Simon Kitching
Nael Ramadan wrote: 1. Dear listner, My JSF pages must satisify 508 accessibility requirement through the use of the html label tag. In html, you wrap the html component (i.e. input type=radio id=id_name ..) with the label for=id_name .. /label tag where the id links the label with the

Re: JSF dataTable Binding

2007-02-06 Thread Simon Kitching
to my bean. I also tried x:inputHidden value=#{row} binding=#{pgb.weekIndex}/ Is that not supported? is there a better way of doing it? I assumed that because my value was a ListInteger, that the variable row would be an Integer, and I could bind it to my bean. Thanks On 2/6/07, *Simon

How to reply to emails

2007-02-06 Thread Simon Kitching
Hi All, When replying to an email, PLEASE follow whatever reply-style convention has already been established for the thread. There are two email reply styles: * bottom posting, where the reply is inserted *below* the text being replied to, and * top posting where the reply is inserted

Re: inputFileUpload Problem

2007-02-06 Thread Simon Kitching
Will Norman wrote: I am trying to get the inputFileUpload working. I get the following error: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:114) I expect you need the

Re: Detecting which phase being processed in backing bean

2007-02-06 Thread Simon Kitching
Lisa wrote: Is there a way to detect which phase is currently being executed inside the backing bean. Having trouble with things and would simply like to see the status of things at the beginning and end of each of the six JSF phases. Not directly AFAIK. It's easy enough to write a simple

Re: jsf 508 accessibility requirement satisfaction and use of label for=.. tag.

2007-02-06 Thread Simon Kitching
(with name = comp_id2 ) is selected. By clicking on Version 3 label, the radio button (with name = comp_id3 ) is selected. This is for html. By definition, a label serves no purpose without its for attribute. How can this be done in JSF? -Original Message- From: Simon Kitching [mailto

Re: AW: Accessing constants in EL expressions

2007-02-07 Thread Simon Kitching
The EL language is defined to provide access to Java Bean Properties, and only Java Bean Properties. Static fields are not regarded as Java Bean Properties by the java.beans.Introspector class, hence are not accessable. Yes, it sucks but this is the JSF spec. Well, actually the JSF spec says:

Re: missing t:outputFormat?

2007-02-07 Thread Simon Kitching
Andrew Robinson wrote: I was using visible as an example, there are other properties that are useful too, like forceId for example. Ecch. forceId is not useful, it's the ugliest hack around.

Re: Will saveState cause memory leak?

2007-02-07 Thread Simon Kitching
Dellee wrote: Hi all, I am new to myFaces and I think a little bit confusing on the saveState option. When using the saveState, will it keep referencing the beans that it pointed to ? if yes, will this cause a memory leak coz the pointed bean should be died and GC after the server method

Re: JSF t:saveState and Spring 2.0

2007-02-08 Thread Simon Kitching
Lisa wrote: Currently we are using JSF IoC container but need some features in Spring 2.0 IoC. Will t:saveState continue to work if we switch to Spring 2.0 to manage the backing beans at a request scope level? I don't believe that would cause any problem. All that is necessary for

Re: subview + subform aint working

2007-02-08 Thread Simon Kitching
A jsp:include tag will definitely NOT allocate a JSF component id. You don't show all of your included page but it must be a tag in there somewhere that's causing it. And only a small subset of JSF tags are naming containers that add their id into their child component path as shown here:

Re: Request scoped dataTables

2007-02-12 Thread Simon Kitching
Michael Litherland wrote: Hi all, I'm doing some pondering about bean scope and in particular if dataTable is working the way it's intended. I've tried both the myfaces and tomahawk dataTable entities and if they're filled with a request scoped bean wielding a DataModel putting a

Re: Request scoped dataTables

2007-02-12 Thread Simon Kitching
Michael Litherland wrote: Sorry about not being clear. I have a dataTable that renders a ListDataModel created by a request scoped bean. I understand that keeping the DataModel request scoped would make it not work on the return click, so as a result I tried to tie it to a session scoped

Re: [Solved] Dynamic panelGrid within dataTable

2007-02-12 Thread Simon Kitching
fastbob wrote: Simon, Thanks for your quick response. Obviously I don't understand the rendering model sufficiently. This helps. Yes, what I'm attempting does imply a tight coupling between the presentation and backing bean, but in this case the backing bean is actually used just for

Re: [Solved] selectList - how to pass a parameter to backing bean method from XHTML?

2007-02-13 Thread Simon Kitching
I don't think you're going to be able to do this; it isn't natural JSF style. JSF el expressions don't support parameters. You should look at other approaches to resolve whatever your problem is. Regards, Simon Lisa wrote: I looked at the docs on this tag f:param but there were no examples

Re: [Solved] selectList - how to pass a parameter to backing bean method from XHTML?

2007-02-13 Thread Simon Kitching
Simon Kitching-3 wrote: I don't think you're going to be able to do this; it isn't natural JSF style. JSF el expressions don't support parameters. You should look at other approaches to resolve whatever your problem is. Regards, Simon Lisa wrote: I looked at the docs on this tag f:param

Re: selectList - how to pass a parameter to backing bean method from XHTML?

2007-02-13 Thread Simon Kitching
I really think this f:param thing is completely irrelevant to the original issue. f:param allows an arbitrary http request parameter to be attached to a postback triggered by an h:commandButton or h:commandLink. As far as I am aware, the f:param tag does *nothing* when attached to any other

Re: [Solved] selectList - how to pass a parameter to backing bean method from XHTML?

2007-02-13 Thread Simon Kitching
in a database. We have a function that when passed a column value (the code type) will return a ListSelectItem. So the only thing I need to accomplish is to get this String (the codeType) to the method from the XHTML (do not want to put in the backing bean). thanks L Simon Kitching-3 wrote: Ok, I

Re: Component binding on dynamic number of check boxes

2007-02-14 Thread Simon Kitching
Pfau, Oliver wrote: Hi, I have a t:dataList which renders a dynamic number of checkboxes. Now I want to change the style of all checkboxes with component binding. Is it possible to define a component binding for the checkboxes ? Why don't you apply a binding to the t:dataList component,

Re: [Solved] Dynamic panelGrid within dataTable

2007-02-14 Thread Simon Kitching
head. It seems like I'll need to generate the dynamic components at the same time I initialize the dataTable list (perhaps in a map), and then refer to those components in the column definitions. fastbob Simon Kitching-3 wrote: fastbob wrote: Is there a preferred JSF pattern for communicating

Re: DefaultAddResource logs warning

2007-02-18 Thread Simon Kitching
Yes, it's related to the ExtensionsFilter. Tomahawk provides the ability for components to register text that they want to be inserted elsewhere in the page. After the page is completely processed, tomahawk's ExtensionsFilter goes back and post-processes the page to insert the registered

Re: [ANNOUNCE] MyFaces Core v1.1.5 Release

2007-02-19 Thread Simon Kitching
Manfred Geiler wrote: The Apache MyFaces team is pleased to announce the release of MyFaces Core 1.1.5. Firstly, thanks to everybody that worked to get this out. All your hard work is definitely appreciated. However I didn't see any anouncements about release candidates on the user list.

Re: AW: use jsValueChangeListener

2007-02-20 Thread Simon Kitching
Every JSF input component has a valueChangeListener attribute whose value is an EL expression. So: h:inputText id=name valueChangeListener=#{myBean.handleNameChange} .../ public void handleNameChange(ValueChangeEvent ev) { .. do what you want here } wang suya wrote: Dear Worm Danny

Re: AW: use jsValueChangeListener

2007-02-20 Thread Simon Kitching
I bet your code is running, and setting the value of text1 during the validate phase. However during the update-model phase the h:outputText component is then overwriting the value. wang suya wrote: Hi Simon Kitching I actrully wrote the program same as you wrote : [EMAIL PROTECTED

Re: Why does JSF submit through JavaScript?

2007-02-21 Thread Simon Kitching
Replacing all commandLinks with commandButtons seems the best solution to me. After all, if you were using some other tech like CGI or PHP or whatever you still couldn't submit a form using an a tag without javascript. It's just not possible with HTML. The h:commandLink tag is really an

Re: MyFaces and valueChangeListener??

2007-02-21 Thread Simon Kitching
While most people fail to trim irrelevant info from emails, unfortunately Julien has trimmed a little too vigorously :). The original posting on this subject showed that he was using two separate h:selectOneMenu tags each with one valueChangeListener attribute, which looks ok to me.

Re: Problem with missing CSS classes for subtags

2007-02-22 Thread Simon Kitching
Bogdan Mocanu wrote: table tr class=yearMonthHeader tda href=../a/td tda href=../a/td tda href=../a/td /tr my project. On my JSP page I have a CSS class which defines a style specific for the td element. This completely brokes my layout How about: .yearMonthHeader

Re: session scoped Bean created twice!

2007-02-22 Thread Simon Kitching
Hi Michael, What you're describing doesn't make any sense to me. When an EL expression referencing this bean is evaluated and the bean is found not to exist in any scope then the object is created and a reference to it is placed into the http session. After that, any EL expression which

Re: Facelets support for a Tomahawk dataTable trick?

2007-02-22 Thread Simon Kitching
Manually implementing alternating row styles can be done like this: t:dataTable binding=#{myBean.table} rowStyleClass=#{myBean.tableRowStyleClass} ... public String getTableRowStyleClass() { int currRowIndex = table.getRowIndex(); if (currRowIndex%2 == 0) { return

Re: preventing form submission

2007-02-22 Thread Simon Kitching
Steve Torrefranca wrote: Hi, How do we prevent form submission? I have a link that opens a new window: t:commandLink value=LINK onclick=window.open('attachments.xhtml?commEmailID=#{communication.id}') / My problem is, that the form that has the link gets submitted to the server as it

Re: preventing form submission

2007-02-22 Thread Simon Kitching
Simon Kitching wrote: Steve Torrefranca wrote: Hi, How do we prevent form submission? I have a link that opens a new window: t:commandLink value=LINK onclick=window.open('attachments.xhtml?commEmailID=#{communication.id}') / My problem is, that the form that has the link gets submitted

Re: Where are the UIViewRoot instances stored??

2007-02-25 Thread Simon Kitching
Julien Martin wrote: Hello, I have a basic question about JSF: I would like to know where the UIViewRoot instances are stored (for a given app with several UIViewRoots). Is it in some sort of java.util collection or in a specific class? I'm not sure what you mean by an app having several

Re: need help editing a row of data.

2007-02-26 Thread Simon Kitching
Mick Knutson wrote: tmpUserBean prints the row I was expecting, but now I do not know how to get tmpUserBean in the request and sent back to userDetail.xhtml What do you mean by sent back to userDetail.xhtml? Note that the h:commandLink tag can take an actionListener *attribute* as an

Re: Tomahawk 1.1.5 stable builds?

2007-02-27 Thread Simon Kitching
Marko Asplund wrote: I'm planning on using Tomahawk in an application that's currently being developed. For some reason I couldn't get t:commandLink to work in Tomahawk v1.1.3 but v1.1.5 nightly builds appear to be fine which is why I'd like to use a code base newer than 1.1.3. Are there any

Re: Change visibility dinamically

2007-02-27 Thread Simon Kitching
Not sure what you mean, Mike. Every UIComponent has a setRendered(boolean) method that can be called to specify whether that component is rendered or not. This method could certainly be called from a PhaseListener. Note that there is a slight flaw in the design of this method in my opinion;

Re: Problems using t:aliasBean

2007-02-27 Thread Simon Kitching
I presume you're using the custom Spring VariableResolver. It looks to me like this is the problem as I cannot see anything else wrong with your code. Can you try defining test as a standard JSF managed bean rather than as a spring bean? Laurentiu Trica wrote: If I create an alias for an

Re: sitemesh and jsf

2007-02-27 Thread Simon Kitching
/07, Simon Kitching [EMAIL PROTECTED] wrote: The project I am currently working on uses Sitemesh with MyFaces, ie the pages being *decorated* are JSF and it works. However the templates themselves will need to be JSP only (not JSF) I believe; that's certainly what we do. In order for a JSP page

Re: Change visibility dinamically

2007-02-27 Thread Simon Kitching
programmically. I still think it's a bad design, but that's just my opinion. On 2/27/07, Simon Kitching [EMAIL PROTECTED] wrote: Not sure what you mean, Mike. Every UIComponent has a setRendered(boolean) method that can be called to specify whether that component is rendered or not. This method could

Re: t:datatable with commandLink and parameter

2007-02-27 Thread Simon Kitching
Mike Kienenberger wrote: By the way, I don't think this is legal: from-action#{ userBackingBean.prepareForEdit}/from-action If it is legal, I doubt that's the correct syntax. Yep. The from-action value is meant to match the string *returned* from an action method. It is not an EL

Re: t:datatable with commandLink and parameter

2007-02-27 Thread Simon Kitching
Yep, I apologise. The from-action quoted below is indeed valid. This is *not* actually an EL-expression, though; just compared literally with the actionListener property of the command component that was used to generate the outcome. See class ActionListenerImpl: it just stores the value of

Re: Why does JSF submit through JavaScript?

2007-03-01 Thread Simon Kitching
Titi Wangsa wrote: i'm new to jsf, i'm using the myfaces 1.1.5 and somehow there is javascript code in my commandbutton, did i do something wrong the code is something like this h:commandButton id=autoRegisterJobseekerFormSubmit action=registerProfile / gets rendered

Re: Why does JSF submit through JavaScript?

2007-03-01 Thread Simon Kitching
Jörn Zaefferer wrote: I got the feeling that this was the result of bad knowledge browser-behaviour, HTTP and HTML and JavaScript. I still have no idea why the form isn't just submitted as is, using the name and value of the submit to determine which button was clicked. I believe it is (see

Re: Navigation with onclick and commandButton

2007-03-01 Thread Simon Kitching
Pfau, Oliver wrote: Hi, I have a onclick JavaScript function on a commanButton. When user clicks the button, the button will be disabled to avoid double submit. But with the definition of a onclick function the navigation fails. My button leads to another JSP. Without onclick it works fine.

Re: Why does JSF submit through JavaScript?

2007-03-01 Thread Simon Kitching
Jörn Zaefferer wrote: On 3/1/07, *Simon Kitching* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I believe it is (see my earlier reply), and that all the javascript is doing is ensuring any garbage left behind by h:commandLink tags is cleaned up (hidden fields _idcl

Re: where can i get tomohawk tags documentation?

2007-03-04 Thread Simon Kitching
And here: http://myfaces.apache.org/javadoc.html Adrian Mitev wrote: http://myfaces.apache.org/tomahawk/index.html - almost all 2007/3/2, Srinivas V [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Can anybody give me the link where I can get all Tomohawk tags?

Re: how does UICommand execute the action binding?

2007-03-04 Thread Simon Kitching
Madhav Bhargava wrote: Thanks Mike, So what i understand is that if only from-action is given, then irrespective of the outcome the control will go to the view id specified. For instance the folllowing rule is define din the faces config file: navigation-rule

  1   2   3   4   5   6   7   8   9   >