Re: menu component for facelets

2006-11-14 Thread Gerald Müllan
Hi, sure, it is both. For example you can use the rendered attribute of every menu item: t:jscookMenu layout=hbr theme=ThemeOffice styleLocation=/css/jscookmenu/ .. t:navigationMenuItem itemLabel=admin users rendered=#{permission.adminUsers}

Re: modal dialog help

2006-11-14 Thread Gerald Müllan
Hi, yes the server was down for quite a time. Hm..the best way to have a look at the source code is a fresh checkout of svn head. In the sandbox module you can found everything you are looking for. It`s not that difficult to have a look at the examples there. regards, Gerald On 11/14/06, Dave

Wrap text

2006-11-14 Thread Madhav Bhargava
Hi All, I have a panelGrid with 2 columns. A couple of questions: Can I fix the width of my columns? The other way round is to nest panelGrid components and use the width attribute, but this is not elegant. Since panelGrid generates a table component, more control

Re: Need help in display the page number in the data scroller

2006-11-14 Thread Aneesha Govil
How many total rows do you have in the table? And what is the rows attribute of your datatable?Regards,AneeshaOn 11/14/06, ying lcs [EMAIL PROTECTED] wrote:Hi,I am trying to build a dataScroller with page number like it here: http://www.irian.at/myfaces/dataScroller.jsfHere is my code, but when I

Problem with f:convertNumber

2006-11-14 Thread Adrian Mitev
Hi all! I`m using myfaces 1.1.5 nightly build. I've created my own convertor for BigDecimal to show error message that is oriented to the big decimal object. I have form with input field that is binded to big decimal. Everything works fine. Now i want to put a convertor that will cut some fraction

Re: Problem with f:convertNumber

2006-11-14 Thread Adrian Mitev
Other suggestions? And btw why such problem occured?2006/11/14, Mario Ivankovits [EMAIL PROTECTED]: Hi Adrian! Hi all! I`m using myfaces 1.1.5 nightly build. I've created my own convertor for BigDecimal to show error message that is oriented to the big decimal object. I have form with input field

Re: Problem with f:convertNumber

2006-11-14 Thread Mario Ivankovits
Hi Adrian! Hi all! I`m using myfaces 1.1.5 nightly build. I've created my own convertor for BigDecimal to show error message that is oriented to the big decimal object. I have form with input field that is binded to big decimal. Everything works fine. Now i want to put a convertor that will

JSF page with two backing beans

2006-11-14 Thread Aneesha Govil
Hi,I have a specific use-case in which I refresh a datatable based on the filter conditions entered by the user. The page consists of:1. Filter jsp included on top (Filter bean)2. Component binding to PanelGroup that holds dynamic Data table (Data bean) For both parts of the page, there are two

Re: modal dialog help

2006-11-14 Thread Werner Punz
Dave schrieb: Hi Gerald, Thanks, I tried the link several times last week, but it did not work. It is working now. The demo did not get the values back to the master window. Is there a way to see its source code? Yes the demo is not fully implemented yet, in the main form some values

JSF Lifecycle question

2006-11-14 Thread Aneesha Govil
Hi,How is it determined which components need to be reloaded when a component is submitted or an action is executed?I cannot get my JSF page to reload a datatable that uses component binding on page submit. Does using sub-views affect any behaviour, i.e., only the subview is refreshed, the other

Re: Submit h:form from outside the form

2006-11-14 Thread Martin Marinschek
Hi Oliver, try s:subForm/ and it's parameters to achieve what you need! regards, Martin On 11/14/06, opick [EMAIL PROTECTED] wrote: Hi again, does nobody implemnts a JSf-Application with such a structure (divided content and navigation areas) or is it just impossible to do this kind of

Re: Need help in display the page number in the data scroller

2006-11-14 Thread Mr Arvind Pandey
Hi, datascroller shows the page number when number of total rows in the table exceeds the rows attribute of datatable. regards Arvind --- Aneesha Govil [EMAIL PROTECTED] wrote: How many total rows do you have in the table? And what is the rows attribute of your datatable? Regards,

Re: AW: Inter-portlet communication of JSF-PORTLETS

2006-11-14 Thread Jose Merchan
How did you implement yourself?? I'm thinking in 2 portlets. One writes some information to a shared memory and other reads that information. Well, my problem is how can i do to write-portlet executes before read-portlet?? The library i mentioned last resolves this problem writing on

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

2006-11-14 Thread Aneesha Govil
Hi,I haven't constructed radio buttons dynamically but in general, to do something like this..HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio(); selectOneRadio.setId(choicesRadioButtons);//TODO: componentID selectOneRadio.setLayout(spread);selectOneRadio.setValue(displayValue);// If

Re: JSF Lifecycle question

2006-11-14 Thread Martin Marinschek
Hi Aneesha, component-binding never calls its getter as long as you stay on the same page - only the getter will be called. So if you're doing dynamic stuff in your application, you'll need to do it in the setter (or in an action-method). regards, Martin On 11/14/06, Aneesha Govil [EMAIL

Re: [announcement] new security extensions

2006-11-14 Thread Martin Marinschek
Hi Cagatay, great addition to MyFaces! Thanks... regards, Martin On 11/14/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi, There is a new EL extension in sandbox for security purposes. The basic usage is like #{securityContext.ifGranted['rolename']} Here is the wiki;

Re: url validating?

2006-11-14 Thread Bjørn T Johansen
Found it, thx... :) BTJ On Tue, 14 Nov 2006 13:08:38 +0100 Martin Marinschek [EMAIL PROTECTED] wrote: Hi Björn, it's in tomahawk-sandbox. You can get the sandbox by downloading the nightly builds. regards, Martin On 11/14/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: I see the

Panel Tabbed Pane

2006-11-14 Thread Hasnain Badami
Hi I have written the following code: t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC activeTabStyleClass=levelOneActiveTab inactiveTabStyleClass=levelOneInactiveTab activeSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSub

two additional jsf complibs opensourced

2006-11-14 Thread Werner Punz
Icefaces has been opensourced under the MPL today and last week a really excellent ajax based complib has been opensourced under LGPL: rcfaces: here are the links: RCFACES:http://www.rcfaces.org/ ICEFACES: http://icefaces.org/

Inter-portlet communication of JSF-PORTLETS

2006-11-14 Thread Jose Merchan
Someone has experience in using this library??: http://www.doc.ic.ac.uk/~mo197/portlets/portlet_messaging/ to communication MyfacesGenericPortlet jsf-portlets?? There is a problem. How can i avoid problems due to portlets loading out of order/in parallel on the page??

Re: Acegi Facelets url problem

2006-11-14 Thread Cristi Toth
Hi Martin, Well the view-handler solution sound a bit complicated. With Acegi I secure pages depending on the User Role and in the acegi config I map a group of pages to one ore more User Roles So by decoratng the view-handler I practically do Acegi's work. what does redirect/ and how is it

Re: Problem with f:convertNumber

2006-11-14 Thread Jeff Bischoff
Adrian, As I recall, this f:convertNumber tag was broken in order to ensure compatibility with the JSF spec. The old convertNumber implementation (which automatically converts numbers) was immediately moved to sandbox, where you can still use it. If you want to use BigDecimal, use

Re: JSF Lifecycle question

2006-11-14 Thread Martin Marinschek
*correction: only the _s_etter will be called. And as David has mentioned - this is not true for value-binding, only for component-binding (which I figured you were talking about). regards, Martin On 11/14/06, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Aneesha, component-binding never

url validating?

2006-11-14 Thread Bjørn T Johansen
I see the tomahawk docs mention a validateurl tag but I can't find it... Does this still exists or is there another way to validate an url (guess regexp works but I haven't taught myself regexp yet...)? Regards, BTJ --

AW: Inter-portlet communication of JSF-PORTLETS

2006-11-14 Thread Pfau, Oliver
Hi, saw this library...but I suppose the conecept is for the portlet API. I don't know if it works with JSF brigded portlets. So I implemented it self. Regards, Oliver -Ursprüngliche Nachricht- Von: Jose Merchan [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. November 2006 12:30

Re: Submit h:form from outside the form

2006-11-14 Thread opick
Hi again, does nobody implemnts a JSf-Application with such a structure (divided content and navigation areas) or is it just impossible to do this kind of submitting a form? If my plan is not the proper way to implement a structured fronted with navigation and content panels, does somebody now

Re: url validating?

2006-11-14 Thread Cagatay Civici
Hi,It's in sandbox,Regards,CagatayOn 11/14/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: I see the tomahawk docs mention a validateurl tag but I can't find it...Does this still exists or is there another way to validate an url (guess regexp works but I haven't taught myself regexp

[announcement] new security extensions

2006-11-14 Thread Cagatay Civici
Hi,There is a new EL extension in sandbox for security purposes.The basic usage is like #{securityContext.ifGranted['rolename']}Here is the wiki; http://wiki.apache.org/myfaces/SecurityContextAs mentioned in the wiki user-role Awareness attributes enabledOnUserRole and visibleOnUserRole will be

Re: JSF Lifecycle question

2006-11-14 Thread David Delbecq
Upon submit, if all validation went successful, each component store it's current internal in the backing bean property represented by the value expression. If validation was unsuccessful, the form is rendered using the component's internal values In all other cases, form will render it's values

Re: Submit h:form from outside the form

2006-11-14 Thread Martin Marinschek
P.S.: you'll need to use t:commandLink / t:commandButton and the actionFor attribute additionally. regards, Martin On 11/14/06, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Oliver, try s:subForm/ and it's parameters to achieve what you need! regards, Martin On 11/14/06, opick [EMAIL

[Tobago] Mozilla renders different than Explorer

2006-11-14 Thread PiotrekJ
Hi, Next day, Another problem. What's wrong with this code? Explorer renders ok, Mozilla renders with scrollbars. Is there any tutorial about tobago? Couldn't find anything else then myfaces.apache.org/.../tobago.. Thx again, Peter layout:standard jsp:body tc:panel

Re: url validating?

2006-11-14 Thread Martin Marinschek
Hi Björn, it's in tomahawk-sandbox. You can get the sandbox by downloading the nightly builds. regards, Martin On 11/14/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: I see the tomahawk docs mention a validateurl tag but I can't find it... Does this still exists or is there another way to

AW: AW: Inter-portlet communication of JSF-PORTLETS

2006-11-14 Thread Pfau, Oliver
Hi, I don't know the JSF bridge implementation but I think a JSF action or action listener points to the processAction of the portlet api. I set the shared attribute in the portlet session with application scope when the users clicks a command link. The more interesting thing is when the other

Re: JSF Lifecycle question

2006-11-14 Thread Aneesha Govil
Thanks a lot. That was useful. Regards,AneeshaOn 11/14/06, Martin Marinschek [EMAIL PROTECTED] wrote:*correction: only the _s_etter will be called.And as David has mentioned - this is not true for value-binding, only for component-binding (which I figured you were talking about).regards,MartinOn

Re: two additional jsf complibs opensourced

2006-11-14 Thread Werner Punz
Yes especially since ICEFaces provides ide integration into the most commonly used JSF ides. Dont ask me how good those complibs are, but both look excellent and in case of Icefaces this has been comercially available for quite some time. Murat Hazer schrieb: excellent On 11/14/06,

Re: Tobago's hidden input in form

2006-11-14 Thread PiotrekJ
Hi, My constructor opens file(path includes id variable). It must be done before everything else in backing bean. I've solved problem by adding id attr in every component. So, I can now get param with

Re: two additional jsf complibs opensourced

2006-11-14 Thread Murat Hazer
excellentOn 11/14/06, Werner Punz [EMAIL PROTECTED] wrote: Icefaces has been opensourced under the MPL today and last weeka really excellent ajax based complib has been opensourced under LGPL:rcfaces:here are the links:RCFACES: http://www.rcfaces.org/ICEFACES: http://icefaces.org/-- Murat

Re: Acegi Facelets url problem

2006-11-14 Thread Martin Marinschek
Hi Cristi, You put redirect/ elements in your navigation-rule cases in the faces-config.xml file, and with these redirect-elements, the server-side only forward is replaced by a client-side redirect (don't do it on every navigation - only when you cross security boundaries). You loose all

Acegi Facelets url problem

2006-11-14 Thread Cristi Toth
Hi, I'm trying to secure a Facelets application with Acegi Security The problem is that with faceletsthe URL rendered is that of the previous page, not the current one so Acegi checks for authorization rightsfor the previous page this way I can see a secured page and Acegi will give a access

JSF RI 1.2 + Facelets + Tomahawk problem

2006-11-14 Thread ratondeau
Hi there, I have 2 questinons concernig the combination of the JS-RI 1.2 + Facelets 1.1.9 + Tomahawk Components 1.1.3. Does these components run well together or does anyone have some experiance running these components? Maybe I should use the old 1.1 JSF Implementation MyFaces instead... I

Re: Acegi Facelets url problem

2006-11-14 Thread Martin Marinschek
Hi Cristi, that's a problem with all server-side technologies which use a forward to go to the next page (a forward is not reflected in the URL, only a redirect is). So it is not a specific facelets problem, not even a JSF problem... This evaluation already points to the solution: you can

Re: JSF RI 1.2 + Facelets + Tomahawk problem

2006-11-14 Thread Martin Marinschek
Hi Werner, yes - 1.2 still works with old components, for compatibility reasons, the old API is still aboard. regards, Martin On 11/14/06, Werner Punz [EMAIL PROTECTED] wrote: Interesting, to my knowledge JSF 1.2 uses some incompatible API changes, I was not aware that mixing jsf 1.1

Re: Custom component, validation messages

2006-11-14 Thread Martin Marinschek
If he can integrate the message-component in the input-component, then that's an option, right! regards, Martin On 11/14/06, David Chandler [EMAIL PROTECTED] wrote: I may not be understanding your question correctly, but if you're adding the input sub-components programatically, you could add

Custom component, validation messages

2006-11-14 Thread David Delbecq
Hi, I have a custom component ( let's say assume has id X ) that is made of several Input component ( let's say X:a, X:b, X:c) Is it possible to have the error messages for X also contains the error for X:a X:b and X:c. I assume user will want something like h:message for=X/ and not have to

Re: JSF RI 1.2 + Facelets + Tomahawk problem

2006-11-14 Thread Werner Punz
Interesting, to my knowledge JSF 1.2 uses some incompatible API changes, I was not aware that mixing jsf 1.1 components and 1.2 works at all. (it could be possible, but there is an api breach on the jsp taglib level to my knowledge) ratondeau schrieb: Hi there, I have 2 questinons concernig

Re: Custom component, validation messages

2006-11-14 Thread Martin Marinschek
No, there's nothing in MyFaces which could handle this AFAIK. I suppose you could write a new component (or changing t:message) which also collects the messages of all children of the comp by visiting the sub-tree under the parent-component (Attention: this doesn't work with UIData). regards,

Re: Custom component, validation messages

2006-11-14 Thread David Chandler
I may not be understanding your question correctly, but if you're adding the input sub-components programatically, you could add the associated message sub-components programatically at the same time. Call setId() on each input component to give it its own ID that you can then use in for= "" the

Re: Navigation from error question...

2006-11-14 Thread Mick Knutson
That did work, but now, I do not get the messages I want printed...In registration.xhtml: TD colspan=2 h:messages / /TD TD h:inputText value=#{UserBackingBean.user.username} required=true id=username f:validateLength minimum=2 / /h:inputText h:message for=""> errorClass=error / /TDThen in my

Any examples of unit testing validators?

2006-11-14 Thread Mick Knutson
I would like to see if anyone has any Unit Test examples for their validators?-- ThanksDJ MICKhttp://www.djmick.com http://www.myspace.com/mickknutson

Re: Any examples of unit testing validators?

2006-11-14 Thread Matthias Wessendorf
Inside of the Apache Trinidad sources are several examples for testing validators / converters. Trinidad uses JUnit, Shale and JMock (in different areas) for testing. Greetz, Matthias On 11/14/06, Mick Knutson [EMAIL PROTECTED] wrote: I would like to see if anyone has any Unit Test examples

outputFormat and html code

2006-11-14 Thread Rogerio Pereira
Hi guys!I have this resouce string:results_details=b{0}/b primeiros resultados de b{1}/b.and this component:h:outputFormat escape=false value=#{appLabel['results_details']} styleClass=ftCheckNormal f:param value=#{queryResultBean.documentsPerPage * queryResultBean.page} / f:param

[OT] JavaScript controls for complex layouts that work with JSF?

2006-11-14 Thread Andrew Robinson
I have been using a custom grown grid bag layout in my code. I often use them quite nested and our UI can get extremely complex (our UI designers for our company develop thick client style UIs for use in the browser -- fun for us). All has been working quite well (with quite a lot of JS coding),

Re: extension filter problem in portlets

2006-11-14 Thread Dave Brondsema
Jose Merchan Bosch wrote: Hi, Someone has the solution for extension filter problem in portlets. I need to use inputCalendar and inputDate in portal. How get external resources (css and js) for these components in portlets?? Have you seen http://wiki.apache.org/myfaces/Using_Portlets and

Navigation across frames using commandLink. Broken?

2006-11-14 Thread Scott Stevenson
I have just upgraded from Tomahawk 1.1.3 to 1.1.5 nightly and I'm now encountering a problem with page navigation across frames. We are using two frames: A navigation frame and a main work area. We are using command links in the navigation frame to navigate to the appropriate page in the main

text-align: center - without h:dataTable

2006-11-14 Thread monkeyden
I have 1 row of 10 fields, with respective column headers, which I need to display in a two-row table. Some fields are strings and some are numbers and dates. Applying typical justification rules, I need to right justify dates and numbers and left justify the Strings. I have come to the

Re: [OT] JavaScript controls for complex layouts that work with JSF?

2006-11-14 Thread Matthias Wessendorf
Andrew, I am using (for small apps) this lib with Facelets: http://www.jackslocum.com/yui/2006/10/19/cross-browser-web-20-layouts-with-yahoo-ui/ For me it works, perhaps you can give it a try. Btw. I know that doing lot's of things in the dom slows down your application client. And therefore

Very strange problem: conversion error

2006-11-14 Thread Fraley, Taylor
So I'm having a very strange problem. I have a jsp that's using a h:selectOneMenu populated by an ArrayList within a bean, which is all pretty standard. In one environment, on my desktop PC running Tomcat 5.5, everything works fine. On my SPARC running the same version of Tomcat, configured,

Exception when writing invalid url when using s:validateUrl

2006-11-14 Thread Bjørn T Johansen
I get the following exception when using validateUrl an entering an invalid url..: 14.11.2006 22:57:53,322 ERROR [Faces Servlet] [] - Servlet.service() for servlet Faces Servlet threw exception java.lang.NoSuchMethodError:

Help getting started with tobago-facelets in a portlet

2006-11-14 Thread Stephen More
I am trying to get a simple HelloWorld JSR 168 facelet tobago example working. In my logs I see the following: 2006-11-14 22:05:35,894 INFO [ClientProperties:68] contentType='html' from header Accept='null' 2006-11-14 22:05:35,898 INFO [ClientProperties:75] userAgent='null' from header

Re: Exception when writing invalid url when using s:validateUrl

2006-11-14 Thread Andrew Robinson
Is your sandbox jar built against the tomahawk jar that you are deploying (looks like a Jar version conflict between the two) On 11/14/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: I get the following exception when using validateUrl an entering an invalid url..: 14.11.2006 22:57:53,322 ERROR

Re: Help getting started with tobago-facelets in a portlet

2006-11-14 Thread Bernd Bohmann
Hello, looks like the scarborough jar is missing. I'm not sure that tobago is working in a portlet enviroment, but if you are interested I will try to help you with the errors. Can you share the example with me? Good Night Bernd Stephen More wrote: I am trying to get a simple HelloWorld

Re: Very strange problem: conversion error

2006-11-14 Thread Grant Smith
Recent changes to SelectItem in 1.1.5 SNAPSHOT remove the convenient conversion between types for this component to make it work like the RI. Is #{TransactionReportBean.beginHour} a String ? On 11/14/06, Fraley, Taylor [EMAIL PROTECTED] wrote: So I'm having a very strange problem.I have a jsp

Using Tree2 without Javascript

2006-11-14 Thread Sawan Vithlani
Hello all, I'm currently evaluating some JSF controls and one of our requirements is that we be able to use the Tree control when Javascript is unavailable on the client side. I have downloaded and tried the Tomahawk examples. The Tree2 control example given

[OT] Experiences with DynaFaces

2006-11-14 Thread Roger Keays
A lot of people on this list have questions about which AJAX libraries to use. I've blogged about my experiences with DynaFaces Early Access at http://www.ninthavenue.com.au/blog/dynafaces Perhaps somebody will find this useful. Roger -- Ninth Avenue

Re: Selectable DataTable or similar to that

2006-11-14 Thread Damar Thapa
Hi, Thank you, every body, for your great help. But, I have the following snapshot of my Action method: java.util.ArrayList data=this.applications; Iterator FirstObject it=data.iterator(); String title=; java.util.ArrayListStudents students=new java.util.ArrayList(); while(it.hasNext

Re: Using Tree2 without Javascript

2006-11-14 Thread Andrew Robinson
JavaScript is required. Even with server side state toggling, the javascript is what submits the tree when the icon is clicked. On 11/14/06, Sawan Vithlani [EMAIL PROTECTED] wrote: Hello all, I'm currently evaluating some JSF controls and one of our requirements is that we be able to use the

Re: Exception when writing invalid url when using s:validateUrl

2006-11-14 Thread Bjørn T Johansen
That might be the case.. I am using sandbox from a nightly build but I am using tomahawk 1.1.3, I'll check this when I get home tonight... btw, how stable is the nightly builds? Should one use those instead of myfaces 1.1.4 and tomahawk 1.1.3? BTJ On Tue, 14 Nov 2006 15:09:48 -0700 Andrew

Re: text-align: center - without h:dataTable

2006-11-14 Thread Scott Stevenson
In your column (or columns) tag simply specify a style to align the text contained in that column. We use something like this in our t:columns tag: style=text-align:#{dataTableBean.alignment}; Where getAlignment() in the backing bean returns left, right or center depending on the current

Re: JSF RI 1.2 + Facelets + Tomahawk problem

2006-11-14 Thread ratondeau
Hi folks, good to know but that did not solve my configuration issue with the extension filter at all. Any ideas? Matt Hi Werner, yes - 1.2 still works with old components, for compatibility reasons, the old API is still aboard. regards, Martin On 11/14/06, Werner Punz [EMAIL PROTECTED]