Render fieldsetlegend tags with JSF

2005-04-13 Thread Catalin Kormos
Hi there, I'm just wondering if there are any plans on implementing components to renderer the HTML forms related tags, fieldset and legend? just like x:div does for rendering div tags. Thanks __ Do you Yahoo!? Yahoo! Small Business - Try our

Multiple time method is executing for tree2

2005-04-13 Thread Mihir Solanki
Hi all, I am having a tree2 component (only one component) in my JSF page. h:panelGrid id=grid2 columns=1 border=0 cellpadding=1 cellspacing=1 align=left x:tree2 value=#{TreeBean.treeData} id=cabinet-tree var=node varNodeToggler=t clientSideToggle=false f:facet name=folder

Re: Multiple time method is executing for tree2

2005-04-13 Thread Enrique Medina
Take a look at the JSF LifeCycle and you'll understand ;-) On 4/13/05, Mihir Solanki [EMAIL PROTECTED] wrote: Hi all, I am having a tree2 component (only one component) in my JSF page. h:panelGrid id=grid2 columns=1 border=0 cellpadding=1 cellspacing=1 align=left

Re: Render fieldsetlegend tags with JSF

2005-04-13 Thread Borja Martín
why not just to write them in the document between the 'verbatim' tags? Catalin Kormos wrote: Hi there, I'm just wondering if there are any plans on implementing components to renderer the HTML forms related tags, fieldset and legend? just like x:div does for rendering div tags. Thanks

Re: Render fieldsetlegend tags with JSF

2005-04-13 Thread Enrique Medina
Or even better, make a JIRA and add that functionality ;-) On 4/13/05, Borja Martín [EMAIL PROTECTED] wrote: why not just to write them in the document between the 'verbatim' tags? Catalin Kormos wrote: Hi there, I'm just wondering if there are any plans on implementing components to

Re: Render fieldsetlegend tags with JSF

2005-04-13 Thread Catalin Kormos
I guess the only reason for this could be that the code its more readeable if you use only JSF tags. For now i use 'verbatim' but it would be cleaner if i could use x:fieldset just like i use x:div. Thanks for your interest. --- Borja Martín [EMAIL PROTECTED] wrote: why not just to write them in

Re: How to get component id in jsp

2005-04-13 Thread Stefan Langer
Galen Dunkleberger wrote: Is there a good way to pull the client id of a particular component in the jsp? What I'm trying to do is pass the id to javascript calls. I know how to figure out the id manually but is would be nice to be able to do something like this... h:someComponent

Re: Render fieldsetlegend tags with JSF

2005-04-13 Thread Catalin Kormos
I will probably do so, if nobody else has't done this already :). --- Enrique Medina [EMAIL PROTECTED] wrote: Or even better, make a JIRA and add that functionality ;-) On 4/13/05, Borja Martín [EMAIL PROTECTED] wrote: why not just to write them in the document between the 'verbatim'

Re: Render fieldsetlegend tags with JSF

2005-04-13 Thread Enrique Medina
Please don't hesitate to make the effort. Open Source developments like this one need to be fed from users like you and me in order to grow and become a good solution ;-) On 4/13/05, Catalin Kormos [EMAIL PROTECTED] wrote: I will probably do so, if nobody else has't done this already :). ---

Re: Problem using x:radio with the RI

2005-04-13 Thread Peter Mahoney
The MyFaces implementation also returns a Long value for #{0}. The JSF spec refers to the JSP 2.0 spec which suggests the value could be a Long or BigInteger as the result of an integer expression. Therefore this suggests that the cast should be to Number in both HtmlRadio and HtmlCheckbox. I

RE: Multiple time method is executing for tree2

2005-04-13 Thread Mihir Solanki
Enrique, As per your suggestion I have gone through the JSF request processing life cycle. But still I am not 100% clear on the things. Could you please give me some idea that during which phases the backing beans method will be called and why? Mihir -Original Message- From: Enrique

Mail archive spam problem

2005-04-13 Thread Adrien FOURES
Hello! I subscribed to the mailling list in october 2004, since january 2005 i have recevide a lot of spam. And finally i try in google my e mail adress . and google found it three time uncrypted mail-archives.eu.apache.org/mod_mbox/incubator-myfaces-user/ 200501.mbox/[EMAIL PROTECTED]

RE: Multiple time method is executing for tree2

2005-04-13 Thread Conway. Fintan \(IT Solutions\)
Hi Mihir, Is it because your commandLink has both an action and an actionListener? Regards, Fintan -Original Message- From: Mihir Solanki [mailto:[EMAIL PROTECTED] Sent: 13 April 2005 10:10 To: 'MyFaces Discussion'; 'Enrique Medina' Subject: RE: Multiple time method is executing for

RE: Multiple time method is executing for tree2

2005-04-13 Thread Mihir Solanki
I have removed the actionListener from the commandLine and still the GetTreeDAta is called two time initially and then three times whenever I click on any tree node... Mihir -Original Message- From: Conway. Fintan (IT Solutions) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005

Re: Multiple time method is executing for tree2

2005-04-13 Thread Enrique Medina
Hi again, I cannot assure if I don't have your code with me, but you can try putting a breakpoint into the getTreeData method of your bean, and then see on the Debug window who is calling it (see whether it is the render, the update model, etc.). Obviously you need the source code, but that's a

Re: Multiple time method is executing for tree2

2005-04-13 Thread Rob Decker
It gets called whenever setValue is called on the tree tag instance. You can download the source code and look at that to determine exactly what's happening. - Original Message - From: Mihir Solanki [EMAIL PROTECTED] To: 'MyFaces Discussion' myfaces-user@incubator.apache.org Sent:

DataTable and Scroller

2005-04-13 Thread kin
Hi I'm new to JSF and I'm trying MyFaces. I just made a page with x:dataTable and x:scroller but I'm having some troubles. The first one is that x:dataTable has a column with checkBox. If I check a box, then all the same rows in all the diff. pages are going to be checked. How to solve

Re: set properties of bean managed by dataTable tag

2005-04-13 Thread Heath Borders
You can set the property using an h:inputText / inside your datatable. As your datatable interates over the rows in the contactList, you can edit each contact bean independently. f:view h:dataTable var=contact value=#{allContacts.contactList} h:column h:outputText value=#{contact.firstname} /

Re: Loading javascript files from jar?

2005-04-13 Thread Matt Fury
Ok, I got the filters turned on. There was an error with conflicting jar files. We're actually just mapping plain .jsp files w/ JSF content. Unfortunately it still does not appear to resolve the *.js javascript source files or the *.css files for that matter. Is there anything else I should be

Re: DataTable and Scroller

2005-04-13 Thread kin
Enrique Thanks for answering. I've got some doubts from your reply. If I don't bind my checkbox how can I know in my backing bean whether it's checked? And about finding the page index where I'm in, I got the example and it worked ok if I needed to display the value in my page, as the

Re: dataTable and commandButton question

2005-04-13 Thread Brandon Goodin
This rowData works okay, if you are using session... but there are problems with this. Most of the time you want to query based on the ID of your object. Not the index of the object location. If you database changes behind the scenes and you query a list from the database, the index may produce a

predefined form values

2005-04-13 Thread Rob Decker
Say I have a form to do a search and a backing bean called SearchBean: h:form h:inputText value=#{searchBean.searchValue}/ x:inputCalendar value=#{searchBean.lastModified}/ h:commandButton type=submit action=#{search.search}/ /h:form Now say I want to have simple links with predefined values

Re: DataTable and Scroller

2005-04-13 Thread Enrique Medina
Hi, No, I didn't mean to unbind your checkbox, but to do it, so every time the component gets rendered, it will look at that value to see whether it must be checked or not. Maybe the problem you are facing is the well-known problem with checkboxes about false ones not being submitted by the

Re: predefined form values

2005-04-13 Thread Enrique Medina
Why not simply call another method from the commandLink (say searchQuick) where those values are set in code, and then call the search method? On 4/13/05, Rob Decker [EMAIL PROTECTED] wrote: Say I have a form to do a search and a backing bean called SearchBean: h:form h:inputText

Re: predefined form values

2005-04-13 Thread Heath Borders
You can use f:param /'s inside the quick links, or you could have the quick links fire different action events, and those action events could contains the defaults instead of having them in your JSP. On 4/13/05, Rob Decker [EMAIL PROTECTED] wrote: Say I have a form to do a search and a backing

Re: predefined form values

2005-04-13 Thread Rob Decker
I don't want to write a java method for every quick search I want. I'd like to be able to just add a new quick search to a jsp. Say I have 3 quick searches: Look for things from: Today, Yesterday, Last Week Then next month the boss says 'I want a quick search for tomorrow!'. It would be

Re: Problems with MyFaces Tiles support

2005-04-13 Thread Rob Decker
If it's any consolation I'm using myfaces on tomcat 5.0.30 with tiles support and my forms/commandButtons/commandLinks work. -- Rob @objectsource.org -- Original Message --- From: rhightower [EMAIL PROTECTED] To: myfaces-user@incubator.apache.org Sent: Wed, 13 Apr 2005

inputCalendar validator exception

2005-04-13 Thread Rob Decker
I added a custom validator on the inputCalendar component. In particular, the validator I used was the LaterThanValidator from Hans Bergsten's JSF book. When there is no validation problem everything is fine. When there is a validation problem the validator sets a faces message in a

RE: Problems with MyFaces Tiles support

2005-04-13 Thread Rob Decker
Looks alot like what I have. It's not really clear to me what you mean by buttons don't work though. I'm assuming you mean h:commandButton action's aren't being called? I'm using 1.0.9.rc3. -- Rob @objectsource.org -- Original Message --- From: rhightower [EMAIL PROTECTED]

Re: Problems with MyFaces Tiles support

2005-04-13 Thread Rick Hightower
Correct. This is what I mean. On 4/13/05, Rob Decker [EMAIL PROTECTED] wrote: Looks alot like what I have. It's not really clear to me what you mean by buttons don't work though. I'm assuming you mean h:commandButton action's aren't being called? I'm using 1.0.9.rc3. -- Rob

Re: predefined form values

2005-04-13 Thread Heath Borders
Ok, then you write a single quickSearch(ActionEvent) method and inside it you check for the quickSearch parameter(s). And use those to search. On 4/13/05, Rob Decker [EMAIL PROTECTED] wrote: I don't want to write a java method for every quick search I want. I'd like to be ableto just add a new

Re: inputCalendar validator exception

2005-04-13 Thread Enrique Medina
This is a bug I discovered and was fixed here: http://issues.apache.org/jira/browse/MYFACES-167 On 4/13/05, Rob Decker [EMAIL PROTECTED] wrote: I added a custom validator on the inputCalendar component. In particular, the validator I used was the LaterThanValidator from Hans Bergsten's JSF

Re: predefined form values

2005-04-13 Thread Heath Borders
Actually, its even simpler than that. The commandLink puts the param on the postback, so you should be able to reference it by calling: FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(paramName); On 4/13/05, Rob Decker [EMAIL PROTECTED] wrote:

Re: predefined form values

2005-04-13 Thread Rob Decker
Not that Heath's answer didn't work...just that I'd like to explore an easier that the spec seems cover (I posted this to sun's jsf forums too). Reading the JSF Specification section 5.1.4 Set Value Semantics I quote: When the setValue() method on a ValueBinding is called, the syntax of the

Re: predefined form values

2005-04-13 Thread Heath Borders
Oh... ok. You do it on the client with _javascript_. The inputHidden is going to re-post that value back to the request when the form is submitted, so if you want to make changes to it, you need to do so behind the scenes i the client. The easiest way would be with some kind of generic

Re: dataTable and commandButton question

2005-04-13 Thread Brandon Goodin
wow, after looking at all the proposed solutions i wound up coming back to what i was doing before. Which is exactly what Srikanth recommended. Is there a reason why the rest of you chose such obscure routes to the getRowData? Also it seems that no matter what i do the UIData property that my