RE: Build table dinamically

2007-04-03 Thread Yaron Spektor
Mario, Start by reading this article: http://www.jsfcentral.com/articles/dynamic_jsf.html Yaron From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 11:58 AM To: users@myfaces.apache.org Subject: Build table dinamically Hi, i need to build a table dynamical

problem with forceId

2007-04-06 Thread Yaron Spektor
Hi, Does anyone know how to use the force id in a component? I looked for an answer but could not see this even mentioned anywhere... For example I use this tag: And I need id 'cal1' to be forced to true. When I try and do it with HtmlInputCalendar components I don't have that

RE: problem with forceId

2007-04-07 Thread Yaron Spektor
ore problems than it solves, and i dont know a case in which it is realy needed. Anyway: inputCalendar.getAttributes().put("forceId", "cal1"); should do it. Reagards, Volker 2007/4/6, Yaron Spektor <[EMAIL PROTECTED]>: > Hi, > Does anyone know how to use the force i

com.sun.faces.config.ConfigureListener Exception

2007-04-10 Thread Yaron Spektor
Hi I was wondering if any of you had any experience with this bug: Were using sun RI and tomahawk 1.1.5. Java version 1.5.0_10_b03 As well as Spring and Hibernate. Up to a week ago every thing worked fine on our tomcat 5.5.20 on Windows When we moved to our environment on Fedora, we get this

RE: com.sun.faces.config.ConfigureListener Exception

2007-04-10 Thread Yaron Spektor
Nope, we are using java 1.5 on both... Thanks, Yaron >is this perhaps a java 1.5.x VS. 1.4.xx thing? >ClassNotFound: String-Array ... On 4/10/07, Yaron Spektor <[EMAIL PROTECTED]> wrote: > > > > > Hi > > I was wondering if any of you had any experience wit

RE: customizing h:dataTable

2007-08-18 Thread Yaron Spektor
If you know the lines that you would like to highlight, set a highlight style in css and put it in rowClasses. If not you can create this string on the fly. E.g., "highlight,noHighlight, noHighlight, noHighlight, Highlight, noHighlight, noHighlight, Highlight" following your example of rows 1,5 and

creating a dynamic code for a group of radio buttons

2006-11-13 Thread Yaron Spektor
Hi there, I would like to convert this code to dynamic components (I can not use tableData with newspaperColumn because I want multiple columns with the same button group and I need a header aligned with each such column). I would like to be able to set the  t:radio in a panelGrid with X n

RE: creating a dynamic code for a group of radio buttons

2006-11-15 Thread Yaron Spektor
tFor("choicesRadioButtons"); radio.setIndex("0"); selectOneRadio.getChildren ().add(radio); panelGroup.getChildren().add(selectOneRadio); Hope that helps! Aneesha On 11/14/06, Yaron Spektor <[EMAIL PROTECTED]> wrote: Hi there, I would like to convert this code to dynamic compo

t:dataTable with dynamic newspaperColumns

2006-11-28 Thread Yaron Spektor
Hi, I was wondering if anyone knows why the t:dataTable does not accept a backing bean value for the newspaperColumns value-binding? Where this example works (4 columns): But this does not:

RE: t:dataTable with dynamic newspaperColumns

2006-11-30 Thread Yaron Spektor
!= null ? v.intValue() : DEFAULT_ROWS; } public void setRows(int rows) { _rows = new Integer(rows); if (rows < 0) throw new IllegalArgumentException("rows: " + rows); } Please open a JIRA issue and attach a patch. Thanks. On 11/28/06

HtmlpanelGrid issues

2006-12-01 Thread Yaron Spektor
Hi There, This is not entirely a myFaces discussion but I wander if anyone knows: 1. is there a fix to the border in HtmlPanelGrid? When I set it to 0 the HTML does not explicitly show border="0" so the browser does show a border, for example: VS. Is rendered differently 2.is it poss

RE: HtmlpanelGrid issues

2006-12-01 Thread Yaron Spektor
Ok, I did answer myself on the second question (colspan): Taken from the new example build of myFaces (Note that it is not posted on the website yet): 1-1 1-2 1-3 2-1

RE: inputCalendar validator

2006-12-01 Thread Yaron Spektor
Don't you sometimes wish you could replace some of your users :-> But seriously, your question does not seem to be a JSF related question, if the user clicks a valid date you can not check (as far as I know) what he thought when he entered it. My workaround would be to switch the input to comb

RE: accessing static fields and methods via EL

2006-12-01 Thread Yaron Spektor
I am not sure this is what you mean but you can try using a field in your managed bean for example: String address; And then in the getter do: String getAddress(){ return myMap.getAddress(); } Hope this helps, -Original Message- From: Jeff Bischoff [mailto:[EMAIL PROTECTED] Sent:

RE: selectOneRadios in TreeTable

2006-12-06 Thread Yaron Spektor
Hi Sebastian, You might want to try and use a panelGrid instaed of a table. It might take a little more effort to create it but you have more control over the components. Look at my previous threads to find some solutions, also look here: http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Co

RE: Possible to make a dataTable work like a selectOneRadio?

2006-12-11 Thread Yaron Spektor
When you say labels in multiple columns, do you mean a different label per column? Or different Id for each column? I sent an example not too long ago with a in a HtmlPanelGrid, using "spread" layout. There is an example of a dynamically constructed table and a use of a tag If you think it would

RE: Dynamically changing newspaperColumns in dataTable

2006-12-16 Thread Yaron Spektor
Hi Frank, See my previous thread on this. There is a bug in the newspaper column that was not fixed yet. It does not read the binded value but only the numeric value you set, or else sets it to 1. I was told to write to JIRA but I saw that was already done. I am also waiting for that fix. Good luck

RE: onload comp-jsf

2007-01-09 Thread Yaron Spektor
on load listener will not be able to be seen. What JDK are you using (>= 1.5 is required by the current version of the on load listener)? Other than that, please get your log4j environment up and configured correctly and set the loggging for the net.sf.jsfcomp package to debug. On 1/8/07, Ya

RE: onload comp-jsf

2007-01-09 Thread Yaron Spektor
Thanks Andrew and Matthias, The myfaces-all.jar is in the lib as are the rest of the jars (I let eclipse do it for me) so I do not think that is the problem...

RE: onload comp-jsf

2007-01-10 Thread Yaron Spektor
I am using MyEclipse to build the JSF capabilities for me. It is using MyFaces 1.1.1 Int the onload documentation it says it was tested with that version, so I guessed it was the best bet.

Onload - retry

2007-01-11 Thread Yaron Spektor
Hi there, I followed your advice and tried myFaces 1.1.4. Apparently it does not work either. These are the jars I used: tomahawk-1.1.5.jar myfaces-impl-1.1.4.jar myfaces-api-1.1.4.jar commons-beanutils-1.7.0.jar commons-codec-1.3.jar commons-collections-3.1.jar ccommons-el-1.0.jar

debugging bean generated componenets

2007-02-26 Thread Yaron Spektor
Hi, I am creating a bean generated page using components and would like to see the jsf tags during the rendering in order to debug the code. I used to have a package that I would set to DEBUG in log4j but I cannot find the example I used. Any suggestions? In general, any good debug methods in JSF,

from components to JSF tags

2007-03-06 Thread Yaron Spektor
Hi, Does anyone know a way in which I could see my JSF components as JSF tags? I am creating the components programmatically and would like to view the JSF tags before or after they are rendered to the screen. Thanks, Yaron

RE: t:datatable and newspapercolumns

2007-03-08 Thread Yaron Spektor
Have you tried it with value instead of binding? This is a code I use: Yaron -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brummeline Braaten Sent: Thursday, March 08, 2007 3:13 AM To: users@myfaces.apache.org Subject: t:datatable and newspapercolumns I'm tr

inputCalendar issues

2007-03-23 Thread Yaron Spektor
Hi All, I have been looking at the inputCalendar component and would like to ask a few questions. 1. Are there any pros/cons to using inputCalendar vs inputDate? It seems the second has fewer options. 2. How can one disable the rendering of the "todayString" and the "week" string? 3. Is there a

RE: How to work with JSF components and HTML Web Prototype Designer?

2007-09-02 Thread Yaron Spektor
Hi, We let our web designer do his thing in html and then SLAVED over making those designs into JSF. Since JSF technology is still new, we found that many things needed to be tweaked in order for JSF to work. We had no other option, but if you could hire someone that knows some programming and le

Selenium and badboy on JSF

2007-11-05 Thread Yaron Spektor
Hi, I was trying out Selenium and badboy today. I couldn't make any of them work for me. For example I used Selenium IDE and tried to record a very short session: 1. Go to a search page 2. click an id of a user ("") 3. click on "search" ("form1:doSearch") 4. from a list of users in a

RE: Selenium and badboy on JSF

2007-11-05 Thread Yaron Spektor
lto:[EMAIL PROTECTED] Sent: Monday, November 05, 2007 3:39 PM To: Yaron Spektor; MyFaces Discussion Subject: RE: Selenium and badboy on JSF You could use the location strategy feature introduced in Selenium Remote Control 0.9.2: http://release.openqa.org/selenium-remote-control/0.9.2/doc/ja

conversion in jsf

2008-01-16 Thread Yaron Spektor
Hi , I was wondering about the conversion mechanism that is done automatically in jsf. When I bind a value to an input field, for example, how and where in the code does JSF realize which converter to setup ( Long or a String etc.) I see it is doing it, I know how to override it but I am interested

RE: conversion in jsf

2008-01-16 Thread Yaron Spektor
Thanks for your answer, I Googled it and found your article about customizing it for JSF. I was wondering though, can I get the default property resolver to work for me in cases where I do not use the binding (I am creating a framework that does not use the concept of binding but would like to en

jsf validation in diffrent life phases

2008-01-29 Thread Yaron Spektor
Hi, I have a form that I would like to validate. Some of the validations are field validations and some need application-level validation (for example a country must match a state - where State and Country are 2 different fields in the form). I would like to be able to show * next to the erroneou

RE: jsf validation in diffrent life phases

2008-01-31 Thread Yaron Spektor
above code, before returning null to redraw the current page, to create an new FacesMessage object and associate it with "first-name" just like it does when a field validation fails. We have been doing this for years and as I recall we found this approach on the web or in a book.

setDisplayValueOnly does not work on HtmlSelectOneMenu

2008-05-10 Thread Yaron Spektor
I appologize if this was sent twice, but I couldn't see the first one on the list: Hi, I am running this simple example below trying to set the setDisplayValueOnly on HtmlSelectOneMenu to true It does print out: "in buildComboBox menu.isDisplayValueOnly:true" but I still see the menu widg

RE: setDisplayValueOnly does not work on HtmlSelectOneMenu

2008-05-12 Thread Yaron Spektor
Richard, My jsp has a binding to a grid. The code I sent is added to the grid and the grid is rendered. In any case I am attaching the grid's code if that helps. Thanks, Yaron -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Sunday, May 11, 2008 11:26 PM

RE: setDisplayValueOnly does not work on HtmlSelectOneMenu

2008-05-16 Thread Yaron Spektor
onday, May 12, 2008 9:22 AM To: MyFaces Discussion Subject: Re: setDisplayValueOnly does not work on HtmlSelectOneMenu I don't see any binding between the grid that you are building and the one in the JSP page. Did you send the correct code? -R On Mon, May 12, 2008 at 12:06 AM, Yaro

displayValueOnly does not work in binded grid

2008-05-20 Thread Yaron Spektor
Hi, I narrowed down the problem; I can not make a selectOneMenu be displayValueOnly in a grid when I bind the grid to the jsp page. Any other way it works fine (thanks Richard for directing my attention towards the binding). This is the jsp code some code snippets work and the last one does n