Re: [Tobago] No id for tc:out

2006-12-04 Thread Bernd Bohmann
Hello Helmut, this is not a bug, but you can submit a feature request for this. http://myfaces.apache.org/tobago/issue-tracking.html Regards Bernd H. Swaczinna wrote: Hi, the id attribute of the tc:out tag is not rendered into the html code. Example: JSP tc:out value=Hello id=welcome/

Re: How to handle a Action in Form which takes a long time?

2006-12-04 Thread Adrian Mitev
Look at the mailing lists archive from november. There was discussion about progress bar component. 2006/12/4, John Allerdyce [EMAIL PROTECTED]: Hi, Can someone please advice me how handle a Action in Form which takes a long time to complete? In myfaces a user submits and a function in the

panelTabbedPane doesn't reset form's target

2006-12-04 Thread Svilen Ivanov
Hello, I'm using panelTabbedPane with server side tab switching on a page with commandLink that should open a new browser window (target=_blank). When user first clicks on the commandLink and then - on a panel tab, instead of reloading the current page with clicked tab displayed, the page is

help : client side validation of h:selectManyCheckbox using Java Script

2006-12-04 Thread Mr Arvind Pandey
Hi All, I am using h:selectManyCheckbox in my application. I want write a java script function which will check whether at least one check box has been checked or not. If no check box is checked then show a alert message to user like 'no check box is checked' Pls help Thanks and

Re: Newbie question: How to generate a jsf component dynamically

2006-12-04 Thread koshi
Hi, first of all, thanks for all your post and ideas, i'm grateful for your support. i decided to solve my problem this way in the view: h:panelGrid binding=#{managedBean.panelGrid} / the managed bean: public HtmlPanelGrid getPanelGrid () { HtmlPanelGrid grid = new HtmlPanelGrid ();

Re: DataTable and SelectBooleanCheckbox.

2006-12-04 Thread A.McCall
Anyone clue me in I know I am doing something wrong A form is definitely wrapped around my table... any code snippets would be appreciated. I know this is a common requirement, I've tried everything. I am new to the JSF world and do not have a good grip on this stuff. Thanks.

Re: Newbie question: How to generate a jsf component dynamically

2006-12-04 Thread David Delbecq
Those calls (and other components you may create) are wrong: HtmlPanelGrid grid = new HtmlPanelGrid (); HtmlCommandLink link = new HtmlCommandLink (); To create component, use the FacesContext.getApplication().createComponent(componentType) call. example: import

RE: Newbie question: How to generate a jsf component dynamically

2006-12-04 Thread Leyzerzon, Simeon
Could you please elaborate on why this is a preferred (or the only right) way of creating a component dynamically? Simeon -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 9:11 AM To: MyFaces Discussion Subject: Re: Newbie question: How to

Re: Newbie question: How to generate a jsf component dynamically

2006-12-04 Thread David Delbecq
1) this is the only way i know of 2) As i was answered about a similar question i had months ago because application does much more than just instanciating the component with default constructor. The application need to handle the lifecycle of the component Also, am pretty sure you can also

Re: How to handle a Action in Form which takes a long time?

2006-12-04 Thread Andrew Robinson
You can also use AJAX with polling. This would be implemented differently per AJAX provider. Ajax4Jsf does this with partial-page refreshing and JBoss-Seam has it with a JSON implementation On 12/4/06, Adrian Mitev [EMAIL PROTECTED] wrote: Look at the mailing lists archive from november. There

TreeTable with ca 500 Nodes?

2006-12-04 Thread Sebastian Menge
Hi We want to use a treetable to display a tree of 500 nodes together with a single-select dropdown for each node. Are there any issues with such large trees? It slows everything down ... Ideas? Sebastian.

Re: TreeTable with ca 500 Nodes?

2006-12-04 Thread Andrew Robinson
FYI -- both IE and Mozilla based browsers are very slow with SELECT controls, espically IE if they are large. Loading 500 SELECT controls will not be good performance. This is probably a browser performance issue instead of a JSF issue. I would consider re-architecting the UI to avoid the SELECT

Re: TreeTable with ca 500 Nodes?

2006-12-04 Thread Renzo Tomaselli
Interesting. But btw, is component tree2 suitable for including scroll widgets in place of common nodes when large expansion occurs ? Say inside a node facet. This would allow to scroll/page large nodes with controlled scale up. Renzo Andrew Robinson wrote: FYI -- both IE and Mozilla based

Tree2 dataModel generation

2006-12-04 Thread Leyzerzon, Simeon
Hi, I have a tree2 component on a page and generate the dataModel to populate the tree using TreeModel class which is instantiated in the constructor of the backing bean of the page. The backing bean has a session scope, but it seems like every time one chooses a node on the tree, the Tree2

RE: Sun RI vs MyFaces

2006-12-04 Thread Bharath Belagodu
Appreciate all the responses in regarding to this topic. The component base is tomahawk but once tomahawk and myfaces separated out as different build, it probably has minimal impact if myfaces or Sun RI is chosen. Will update the group after few more findings. Thanks. -Original

Re: Sun RI vs MyFaces

2006-12-04 Thread Mike Kienenberger
Yes, that should ideally be the case with perfect code. In practice, I found that trying to use the Sun RI 1.1 had much poorer error reporting and it was difficult to determine what caused a particular error. On 12/4/06, Bharath Belagodu [EMAIL PROTECTED] wrote: Appreciate all the responses in

RE: REST-like URLs?

2006-12-04 Thread Keyur Shah
Brad, Rather than looking for a component which does this, I would recommend a simple Filter mapped to the office/* url which forwards the request to the appropriate resource. And for generating the URLs, you can implement a static function and include it in your tag library. Cheers, Keyur

Re: HTML-pages gets very large.

2006-12-04 Thread Magnus Sandberg
Thanks you, I have also notices that the jsf_tree_64 is included with every form. Would in not be possible to include the viewstate just once in the page and include it in the post with javascript? Cannot find any info on this - maybe someone have already thought of this as well ... Thanks,

Timezone Component

2006-12-04 Thread Cary Penniman
Hi there, Has anyone made a timezone UI component? A select-one dropdown list of all possible timezones? Thanks! -Sol

Re: TreeTable with ca 500 Nodes?

2006-12-04 Thread Sebastian Menge
Am Montag, den 04.12.2006, 09:19 -0700 schrieb Andrew Robinson: FYI -- both IE and Mozilla based browsers are very slow with SELECT Thanks for the prompt reply. We are in indeed a hurry :-) No, as a matter of fact, we dont use the dropdown-boxes by now, only simple strings. But ill bear that in

Question about inputText ID attributes

2006-12-04 Thread Mick Knutson
I have dozens of form elements like this: h:inputText disabled=true style=background-color: #D3D3D3 / That do not have id's for them. The form is existing and works right now. My question is, what issues should I look for if I want to add ID's to these elements in order to clean up

Re: Question about inputText ID attributes

2006-12-04 Thread Jeff Bischoff
Mick, Negative: You need to make sure these manually-set IDs are unique within their naming-container. Positive: If you use the default validation messages, they can be much more meaningful in combination with a useful id. Bottom Line: Proper use of subviews should allow you to implement

[Tobago] tc:reload reloads only once

2006-12-04 Thread H. Swaczinna
Hi, the tc:reload tag reloads it's parent component only once after the given frequency. I thought, it should reload the component regulary. Right? Here is a simple example: %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc % %@ taglib uri=http://java.sun.com/jsf/core;

Error using inputFileUpload component.

2006-12-04 Thread Jorge Vásquez
Regards, I am getting the following snack trace error with the inputFileUpload component: (has anybody had any similar error?) java.lang.NoSuchMethodError: java.lang.StringBuffer.insert(ILjava/lang/CharSequence;)Ljava/lang/StringBuf fer; at

ENTER key with a single form but multiple actions

2006-12-04 Thread Mick Knutson
I have a form with multiple actions and I want a default action to happen when I click the enter key. Right now, I seem to get the 1st (default) action if I am NOT inside another component like a text field. But when I am inside another component, I get nothing submitted and have to manually

RE: ENTER key with a single form but multiple actions

2006-12-04 Thread Daniel Young
Hi Mick, I use the nasty 1-pixel image hack, putting it first in the form so the action I want (your.action) is the default: h:commandButton action=#{your.action} image=/images/blank.gif type=button tabindex=-1/ That should get you going for now, but if somebody does have A Better Way,

Re: ENTER key with a single form but multiple actions

2006-12-04 Thread Simon Kitching
Hi, I expect that the browser is simply invoking a method on the HTML control that currently has the focus. If that HTML control happens to be a submit button then its default behaviour in that situation is to submit the associated form; if the control happens to be a text field then it will

Re: ENTER key with a single form but multiple actions

2006-12-04 Thread Mick Knutson
I just tested it when I was in an input field, and it does not work. Nothing happends at all. Just like before. On 12/4/06, Simon Kitching [EMAIL PROTECTED] wrote: Hi, I expect that the browser is simply invoking a method on the HTML control that currently has the focus. If that HTML control

RE: ENTER key with a single form but multiple actions

2006-12-04 Thread Daniel Young
Hi Simon and Mick, The method I gave works for me if the user has clicked in an input box and presses return (tested in firefox and IE). If they click on some other component outside of that form, it no longer works (which I think is appropriate behaviour). It doesn't work when the page first

Re: Newbie question: How to generate a jsf component dynamically

2006-12-04 Thread Simon Kitching
And this probably doesn't help: link.setId (action.getId ()); Here the link is given an identical id to the parent, but ids must be unique. Try something like link.setId(action.getId() + _link); David Delbecq wrote: Those calls (and other components you may create) are wrong:

New component FilterTable

2006-12-04 Thread Thomas Spiegl
Checkout MyFaces new filterTable component http://www.irian.at/myfaces-sandbox/filterTable.jsf which is based on dojo's filterTable widget. The 2 core features are: - Sorting of multiple columns - Filter to show/hide records based on a criteria -Thomas -- http://www.irian.at Your JSF

RE: popup component

2006-12-04 Thread Song Haojie-a23023
I failed to try the below example with a JavaScript error: Object doesn't support this property or method. Is it because of my browser version issue? I'm using IE6.0 xpsp2. Any hint will be welcome!!! BRs Johnson -Original Message- From: Madhav Bhargava [mailto:[EMAIL PROTECTED]

Re: ENTER key with a single form but multiple actions

2006-12-04 Thread Mario Ivankovits
Hi Mick! I have a form with multiple actions and I want a default action to happen when I click the enter key. Have a look at our sandbox component submitOnEvent. It has various modes to determine which action to trigger. The simplest might be to add it as child to the commandButton which should