Re: t:dataTable using problem

2006-08-10 Thread vasiliy.kiryanov
Are you asking how to convert this jsp code into JSF components? two days ago i was seeking for best aproach. Now I see that I was need to convert my code JSF component. I have done it using DataTable. thank you. -- View this message in context:

t:buffer doesn't work

2006-08-10 Thread vasiliy.kiryanov
Good morning. I have next working code: t:dataTable styleClass=standardTable headerClass=cellk footerClass=cellk rowClasses=celltce

Compare two password fields with a validator

2006-08-10 Thread Tom Serru
Hi, Is there a way to create a validator to compare two fields (like a password and a password check field) ? I would like to have something like this as result: ... h:inputSecret id=password f:validator validatorId=CompareFields otherField=passwordCheck/ /h:inputSecret ... h:inputSecret

Re: Compare two password fields with a validator

2006-08-10 Thread Murat Hazer
There is a sandbox compareTo componenent, you can try itregards...On 8/10/06, Tom Serru [EMAIL PROTECTED] wrote:Hi,Is there a way to create a validator to compare two fields (like a password and a password check field) ? I would like to have something like this asresult:...h:inputSecret

RE: Compare two password fields with a validator

2006-08-10 Thread Robert Locklear
http://myfaces.apache.org/tomahawk/validateEqual.html Thanks, Robert -Original Message- From: Tom Serru [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 10:32 AM To: users@myfaces.apache.org Subject: Compare two password fields with a validator Hi, Is there a way to create a

characters encoding problems?

2006-08-10 Thread David Delbecq
Hello, i have got a characters encoding problem here. In my java code i have this UISelectOne selectDocumentType = (UISelectOne)application.createComponent(HtmlSelectOneRadio.COMPONENT_TYPE); . selectDocumentType.getAttributes().put(onchange, alert(\'Cliqué\');); When the radio group is

Page with dynamically changed structure

2006-08-10 Thread Dmitry Y. Shyshkin
I have a jsf page, that includes other pages depend on application state: t:div rendered=#{mainMenuHandler.results} [EMAIL PROTECTED] file=results.jsp% /t:div t:div rendered=#{mainMenuHandler.orders} [EMAIL PROTECTED] file=orders.jsp% /t:div t:div

Re: t:buffer doesn't work

2006-08-10 Thread Torsten Krah
Have you tried to to it like in the example from t:buffer? t:buffer into=#{mytable} / kind regards Am Donnerstag, den 10.08.2006, 00:10 -0700 schrieb vasiliy.kiryanov: Good morning. I have next working code: t:dataTable

A problem with radio buttons in datatables

2006-08-10 Thread Wetterau, Jan
Hello, I have a problem with a set of radio buttons using it in a datatable: t:dataTable value=#{BackingBean.dataList} var=dataItem t:column f:facet name=header nbsp; /f:facet h:selectOneRadio id=radioList f:selectItem value=#{dataItem.id} / /h:selectOneRadio /t:column

RE: A problem with radio buttons in datatables

2006-08-10 Thread Robert Locklear
Here is a sandbox example those does exactly what youre looking for. http://www.irian.at/myfaces-sandbox/selectOneRow.jsf Robert From: Wetterau, Jan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 11:54 AM To: users@myfaces.apache.org Subject: A problem with

RE: A problem with radio buttons in datatables

2006-08-10 Thread Robert Locklear
Wow.you can tell I need some sleep. those=that. Robert From: Robert Locklear [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 12:01 PM To: MyFaces Discussion Subject: RE: A problem with radio buttons in datatables Here is a sandbox example those does exactly

RE: many components to one (or more) validation?

2006-08-10 Thread Conway. Fintan \(IT Solutions\)
Hi Joe, If you bind each component in the group to a backing bean, then you attach a custom converter to the last control of the group that appears on the page (e.g. input field). public class BackingBean { private SelectOneRadio radio; private UIInput radioInput; ... public void

2 screen mode

2006-08-10 Thread Michael Heinen
Hi, I just want to know whether it is generally possible to work with 2 screens simultaneously in a JSF application. The 2 screen mode should be optional depending on user preferences. State saving mode should be server side. My first screen is a kind of a workbench with many

RE: [OT] Book

2006-08-10 Thread Conway. Fintan \(IT Solutions\)
Should we wait for the next edition when Tomahawk has upgraded to JSF 1.2? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: 09 August 2006 22:06 To: MyFaces Discussion Subject: [OT] Book look! what I found JavaServer Faces

SV: SUNs studio enterprise 8 and web.xml config problem

2006-08-10 Thread Sköldheimer Fredrik
Hello! Well, I have struggled with my web.xml for quite some time now and I just can't get this to work with myFaces. First things first: I'm using SUN Java Studio 8.0 Enterprise and the application server that comes with de program on localhost. The application I'm building workes fine if

Re: Internet Explorer on Windows 2003, 2000 breaks myFaces Tobago

2006-08-10 Thread Udo Schnurpfeil
Hi John, a) check if there occurs a JavaScript error. Is there the JavaScript Debugger installed? (I've had a problem with the aktivation of the debugger must switch it off and on before it works) b) Does e.g. the tobago-example-demo works on your system? c) jsf version? tobago

a way to pass parameters in el expressions

2006-08-10 Thread L Frohman
I am sharing this for anyone who may find it useful. To pass a parameter to a method inside an el expression, extend the DummyMap class (below) and implement the get(Object obj) method to pass obj as a parameter to that method. As a trivial example, to pass a parameter to the changeToUpperCase()

Re: SUNs studio enterprise 8 and web.xml config problem

2006-08-10 Thread nimisha sharma
If you have read the post on wiki, it says that you dont need to do any modifications in your web.xml. Follow these steps: Change the config security file so that MyFaces can delete it's temporary files. In {InstallDir}/SunOne8.1/domains/domain1/config/server.policy Change permission

Re: Compare two password fields with a validator

2006-08-10 Thread Mike Kienenberger
validateCompareTo is a better choice than validateEqual. http://myfaces.apache.org/sandbox/validateCompareTo.html On 8/10/06, Robert Locklear [EMAIL PROTECTED] wrote: http://myfaces.apache.org/tomahawk/validateEqual.html Thanks, Robert -Original Message- From: Tom Serru [mailto:[EMAIL

Re: Compare two password fields with a validator

2006-08-10 Thread Mike Kienenberger
You will also get the better results by putting the validator on the second field on the page rather than on the first field on the page. This is especially true for validateEqual, but less important for validateCompareTo. On 8/10/06, Mike Kienenberger [EMAIL PROTECTED] wrote: validateCompareTo

Re: a way to pass parameters in el expressions

2006-08-10 Thread Mike Kienenberger
Hey Lance, This would be a great wiki topic so it doesn't get lost. It's probably worth noting that if you're using facelets, you can simply create a real changeToUpperCase() user-defined el function. On 8/10/06, L Frohman [EMAIL PROTECTED] wrote: I am sharing this for anyone who may find it

Re: checkboxes in datatable

2006-08-10 Thread nimisha sharma
GOT MY MISTAKE!! thanks again... On 8/9/06, nimisha sharma [EMAIL PROTECTED] wrote: I think i am doing the right thing with this.. i went to jenia.org and followed the instructions.. as i told you that i was not even getting the checkboxes, now i am getting them.. but when i click on the

Re: many components to one (or more) validation?

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Conway. Fintan (IT Solutions) [EMAIL PROTECTED] wrote: If you bind each component in the group to a backing bean, then you attach a custom converter to the last control of the group that appears on the page (e.g. input field). Fintan means validator and not converter. You can see

Re: SUNs studio enterprise 8 and web.xml config problem

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Sköldheimer Fredrik [EMAIL PROTECTED] wrote: !-- extension mapping for adding script/, link/, and other resource tags to JSF-pages -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name !-- servlet-name must match the name of your javax.faces.webapp.FacesServlet

Re: 2 screen mode

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Michael Heinen [EMAIL PROTECTED] wrote: I just want to know whether it is generally possible to work with 2 screens simultaneously in a JSF application. For JSF 1.2, this is generally true (although I don't know the details). For JSF 1.1, this is generally not true. The 2 screen

Re: tree expand/collpase problem

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Seshireddy G [EMAIL PROTECTED] wrote: Can any one give some idea for doing EXPANDALL and COLLAPSEALL functionalities using tree components.. P.S: Its not possible to change my complete functionlaity to tree2 for EXPANDALL / COLLAPSEALL . so i need to do with tree component only.

Re: NavigationHandler + Security

2006-08-10 Thread Andrew Robinson
Just check the security in a phase listener before render. To answer your question -- you can't (there is no API in the navigation handler to get any information out). On 8/9/06, Ingo Düppe [EMAIL PROTECTED] wrote: Hi, I like to check within the navigation handler some security constraints

How to submit multiple forms

2006-08-10 Thread Mak Nern Fatt Melvin
Hi, Iwant to save the data inboth thetwo forms when i clicked the save buttonin one ofthe forms. I have several forms in my documents as illustrated below: f:view h:form id="form1" h:inputText id="name" value="#{backingBean.var1}"/ /h:form h:form id="form2" h:inputText id="address"

Re: How to submit multiple forms

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Mak Nern Fatt Melvin [EMAIL PROTECTED] wrote: I want to save the data in both the two forms when i clicked the save button in one of the forms. I have several forms in my documents as illustrated below: f:view h:form id=form1 h:inputText id=name value=#{backingBean.var1}/ /h:form

Re: How to submit multiple forms

2006-08-10 Thread Mak Nern Fatt Melvin
Hi, I cannot use a single form for my document because I have yet another form nested in-between the two forms. Please see the illustration below: f:view h:form id="parent_form1" h:inputText id="name" value="#{backingBean.var1}"/ /h:form h:form id="child_form" h:inputText

Re: How to submit multiple forms

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Mak Nern Fatt Melvin [EMAIL PROTECTED] wrote: I cannot use a single form for my document because I have yet another form nested in-between the two forms. Please see the illustration below: There's no way you can submit two forms at the same time using the http protocol. The only

Re: [OT] Book

2006-08-10 Thread Matthias Wessendorf
On 8/10/06, Conway. Fintan (IT Solutions) [EMAIL PROTECTED] wrote: Should we wait for the next edition when Tomahawk has upgraded to JSF 1.2? :) No. Tomahawk JSF 1.2 ? When will that be? 2008 ? :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [OT] Book

2006-08-10 Thread Matthias Wessendorf
to be serious. It's great to have book which contains tomahawk (and other stuff) I ordered it already :) On 8/10/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: On 8/10/06, Conway. Fintan (IT Solutions) [EMAIL PROTECTED] wrote: Should we wait for the next edition when Tomahawk has upgraded to

Re: How to submit multiple forms

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Mak Nern Fatt Melvin [EMAIL PROTECTED] wrote: Yes you are right Mike. I need to put the child section in another form due to selective validation. I do not want the parent components to be validated or reloaded when the child section is been submitted. You talked of a workaround, so

inputSuggestAjax and onchange event

2006-08-10 Thread Francesco Consumi
Hi all, I would need to track this event for this component, but I see in HTML code that it ignores this. how can I do ? I'm using sandbox-1.1.5-snapshot, and myfaces 1.1.4

RE: 2 screen mode

2006-08-10 Thread Michael Heinen
Thanks Mike. Yes, I remember that jsf 1.2 provides a windowId. Do you have an idea when a myFaces implementation (a release) of the 1.2 spec will be available? Client Side state saving is a big performance downside and not useable for me. Another question to jsf 1.1: Would I face problems if

Re: 2 screen mode

2006-08-10 Thread Mike Kienenberger
On 8/10/06, Michael Heinen [EMAIL PROTECTED] wrote: Do you have an idea when a myFaces implementation (a release) of the 1.2 spec will be available? When enough volunteers submit patches to close all of the JSR 252 open issues :-)

Re: NavigationHandler + Security

2006-08-10 Thread Ingo Düppe
Andrew Robinson schrieb: Just check the security in a phase listener before render. To answer your question -- you can't (there is no API in the navigation handler to get any information out). I just feared it that is not convert by the API. But thanks for pointing me to the phase listener

Problem with myfaces/facelets template.xhtml

2006-08-10 Thread Gus
Hi everyone, I just begin to learn Facelets and Myfaces. I created a template, but the template did display as expected. The sidebar and content should be displayed in two columns as left and right, but it always display in one columns as up and down. I really do not have any idea how to fix it.

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread David Friedman
Gus, There is a little thing with Facelets that some components are compile time and some are render time. I think you are mixing the two. You might try putting each form inside h:panelGroup so ui:include can be sure where to place itself. Also, did you get your columns created in the

JSF Life Cycle / JSF Rendering question / Spring

2006-08-10 Thread Wolf Benz
Hi, I have this question: I am intercepting a JSF Bean 's action method (to apply method-based security) with Spring. In it I do this (test code, hance the hard coding of a few vars) in Spring's invoke() method of the interceptor: ... getFacesContext().addMessage(usersForm:errors, new

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread Gus
Hi David, Thank you for your very quick reply. I got a little understand. Yes, the two ui:include(header and footer) go to the right way, but the ui:insert (sidebar and content) are not rendered correctly in the h:panelGrid columns=2. Could you please give me some advice modifying it? Thanks

Re: Wrap actionListener methods

2006-08-10 Thread Mike Kienenberger
On 7/19/06, Hubert Rabago [EMAIL PROTECTED] wrote: Is there a way to wrap all calls to methods called by h:something actionListener=/ attributes? Something like ActionListener.processAction(ActionEvent) does for h:something action=/ methods? Maybe, but we might have an easier time telling you

Re: JSF Life Cycle / JSF Rendering question / Spring

2006-08-10 Thread Wolf Benz
In the meanwhile, I'v tried someting else, without success though: Instead of woring with h:messages (which is buguous, cf earlier post), I worked with a regular label inside the form: ... h:outputLabel styleClass=error value= id=globalErrorMsg/ h:message for=globalErrorMsg styleClass=error

Issue with referencing a ManagedBean

2006-08-10 Thread Faisal Mahmoud
Below is my managed bean. In the constructor, I get a reference to the managed property from Spring just to verify that it is available. I placed breakpoints in the code at the getSiteList() method, and my breakpoint is never hit prior to the error occuring. //package

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread David Friedman
What was your final html ? Did it list them as two different columns (i.e td tags) or did it put them together? If it put them both inside one td tag, I recommend you try putting each h:form section inside the h:panelGroup tag or perhaps inside another container tag which works within

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread Gus
Hi David, The template I want is table trtd colspan=2header/td/tr trtdsidemenu/td tdcontent/td/tr trtd colspan=2footer/tdtr /table in jsf: h:panelGrid columns=2 f:facet name=header header /f:facet h:panelGridsidebar/h:panelGrid h:panelGridcontent/h:panelGrid f:facet name=footer footer

Datatable preserveRowStates and remove row problem

2006-08-10 Thread Surapuraju, Vamsi
Hi, I tried to remove a row from data table which has preserveRowStates set to true and I noticed deleted row data is being shown an the next row. Does anyone know How I can keep the modified data on the table with out using preserveRowStates. I want to be able to remove the row from data

RE: Issue with referencing a ManagedBean

2006-08-10 Thread David Friedman
Faisal, I see at least two possible problems with your below code: 1) You are not checking the correct log files so you are missing the logged messages explaining where your code is going wrong. You keep resetting your "sites" item to a "new LinkedList()" before returning it. In your

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread David Friedman
Right, but what did you get over in your browser? Knowing what came out in the wrong places in the browser helps you figure out what parts of the .xhtml page are acting incorrectly. THEN we can act/work on those items. Regards, David -Original Message- From: Gus [mailto:[EMAIL

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread Tom Innes
I had similar problems. What I have discovered is that if you place the column in a h:panelGroup the issues will go away. I have noticed that comments and jstl will cause the html to rendered incorrectly. For Instance h:panelGroup !-- submenu of side bar insert --

Re: many components to one (or more) validation?

2006-08-10 Thread Mike Kienenberger
On 8/9/06, Joe ersinghaus [EMAIL PROTECTED] wrote: Is it possible to have more than one component validated as a group? For example: let's say I've have a radio button that when activated, text must be entered/validated in that radio button's associated input field? In other words, only when

Re: selectBooleanCheckbox not checked after valuechange, why?

2006-08-10 Thread Johnny Gonzalez
Hello Gerald,Sorry for taking to long to answer,...the part of the JSP I have is this:t:tree2 id="serverTree" value="#{EntradasBean.modeloArbol}" var="node" varNodeToggler="t" clientSideToggle="true" f:facet name="opcion" h:panelGrouph:selectBooleanCheckbox

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread Gus
David, The sidebar and content should be in two columns(left and right), but they were displayed in one column (top and down). I did not review the rendered html code. I will send it you later. Thank you. Best wishes! Gus. David Friedman-2 wrote: Right, but what did you get over in your

RE: JSF Life Cycle / JSF Rendering question / Spring

2006-08-10 Thread Dhananjay Prasanna
Hi Wolf, From a quick glance you have globalOnly=true in your h:messages and it looks like you're adding a message with a handle userForm:errors (non-global). Try setting globalOnly to false or creating a faces message with a null handle (to make the message global). For the second problem of

RE: Problem with myfaces/facelets template.xhtml

2006-08-10 Thread Gus
Hi David, It seems I found the problem. After I moved the several comments in the template.html, it displays correctly. Modified codes is as follows: h:panelGrid columns=1 styleClass=mainBody rowClasses=row cellspacing=0 cellpadding=0

Nowrap on tree2

2006-08-10 Thread Gus
Hi everyone, It is my first time to use tree2. It is very nice and very friendly, but I don't know how to set nowrap to tree node (img+nodename+(count)=one line). From the partial rendered codes: tdimg id=contentForm:clientTree:0:0:0:0:t2c src=/context/images/yellow-folder-closed.png