Different validations for different command links

2007-08-21 Thread Nikhil Gahlot
I have used myfaces-1.1.2 and sandbox-1.1.2 in my application. I have created a form which has many command links/buttons for different actions (add entry, delete entry and save). I am also using validations for various input fields. But I want to make these validations applicable only to SAVE ac

Different validations for different command links

2007-08-21 Thread Nikhil Gahlot
-- View this message in context: http://www.nabble.com/Different-validations-for-different-command-links-tf4309554.html#a12268504 Sent from the MyFaces - Users mailing list archive at Nabble.com.

[TRINIDAD] 1.0.3: new PPR features

2007-08-21 Thread Adam Winer
Just added: - PPR should be a good bit more efficient, as most input + output components will not render anything unless they are being PPR'd, and tables, trees, treeTables, navigationPanes and trains will be entirely skipped unless they or one of their contents is being PPR'd. Until no

Re: [Trinidad] iframe popup skinning

2007-08-21 Thread Jeanne Waldman
I can't get my 1.2.2 branch to work. I am running it from JDeveloper and so I typed mvn install jdev:jdev, and I added jsf1.2 and JSP Runtime libraries, I removed the myfaces libraries, I removed the h.tld and myfaces-core.tld... things I normally do, but when I run the page it comes up blank.

Re: [Trinidad] iframe popup skinning

2007-08-21 Thread Jeanne Waldman
It works in trunk. I'll check 1.2.2 branch next. Simon Lessard wrote: Hello all, Using latest 1.2.2 branch, I have a problem with iframe popup skinning where the style class does not get converted. The markup looks like: class="af|panelPopup::container">   Pick a Date  

Re: [Trinidad] internationalized CoreBundle

2007-08-21 Thread Adam Winer
I'd Oracle to be contributing translated versions of all Trinidad bundles. "When" is the big question. -- Adam On 8/21/07, Christian Klocker <[EMAIL PROTECTED]> wrote: > i'm looking for a german version of the corebundle that's used in > trindad internally. can someone help or do i have to crea

Re: [Trinidad] skinning af|showDetail::disclosed-icon for different components

2007-08-21 Thread Andrew Robinson
I got it to work, but it is a hack and subject to bugs. I subclassed the PanelAccordionRenderer: protected void encodeAll(FacesContext context, RenderingContext arc, UIComponent component, FacesBean bean) throws IOException { Map origResMap = arc.getSkinResourceKeyMap(); Map resMap

Re: [Trinidad] skinning af|showDetail::disclosed-icon for different components

2007-08-21 Thread Scott O'Bryan
No, I don't think there is. You see, even though these icons are in the skinning stylesheet, they are actually served from the server. The server query's the skinning system to get the url for these icons. Andrew Robinson wrote: Is there a way to customize "af|showDetail::disclosed-icon" for

[Trinidad] skinning af|showDetail::disclosed-icon for different components

2007-08-21 Thread Andrew Robinson
Is there a way to customize "af|showDetail::disclosed-icon" for only one component? For example, this isn't working: af|panelAccordion::container af|showDetail::disclosed-icon

[Trinidad] iframe popup skinning

2007-08-21 Thread Simon Lessard
Hello all, Using latest 1.2.2 branch, I have a problem with iframe popup skinning where the style class does not get converted. The markup looks like: Pick a Date Anyone got it working? Regards, ~ Simon

issues with enter key in form inside of a tabset

2007-08-21 Thread Alexander Wallace
A very strange thing is hapenning when i hit enter in a text box which is inside of a tab in a tabset (tomahawk) ... The enter key causes the form to show content of the very first tab. My desire is that the enter key clicks on a particular button I have given it the right js on the onk

Re: t:pprPanelGroup

2007-08-21 Thread Ernst Fastl
Hi again, I commited a fix for the encoding issue recently. Try if the problem still occurs with the current nightly builds. regards Ernst On 8/17/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote: > Good to hear that. > > BTW: did you see my post regarding pprPanelGroup breaking posting

Re: Email validation

2007-08-21 Thread Matthias Wessendorf
... and the tag class, so that you can apply it directly on the tag (for those, using JSP) -M On 8/21/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > Edit org.apache.myfaces.custom.emailvalidator.EmailValidator to > support an optional "allowMultiple" attribute. > > When that attribute is true

Re: Email validation

2007-08-21 Thread Mike Kienenberger
Edit org.apache.myfaces.custom.emailvalidator.EmailValidator to support an optional "allowMultiple" attribute. When that attribute is true, have the code in validate split the input string up by comma (,) and validate each piece individually. On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote: > > I

Re: Email validation

2007-08-21 Thread rosanil
I am sorry but I dont understand. Would appreciate if you can be more elaborate. Thanks a lot for replying! Mike Kienenberger wrote: > > Submit a patch that allows multiple email addresses if allowMultiple=true. > > On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I have to do Em

Re: Email validation

2007-08-21 Thread Mike Kienenberger
Submit a patch that allows multiple email addresses if allowMultiple=true. On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote: > > Hi, > > I have to do Email validation on TO, CC and BCC fields of mail sending > module. I saw this tag. I tried to use it but it validates > only one email address. If t

Email validation

2007-08-21 Thread rosanil
Hi, I have to do Email validation on TO, CC and BCC fields of mail sending module. I saw this tag. I tried to use it but it validates only one email address. If there is a comma separated list of emails, it's not usefull. I wanted to confirm if my observation is true or is there a way to mak

[Trinidad] internationalized CoreBundle

2007-08-21 Thread Christian Klocker
i'm looking for a german version of the corebundle that's used in trindad internally. can someone help or do i have to create it? thanks christian

Re: [Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Jeanne Waldman
I've heard this request from a few people. You should add a JIRA issue if it isn't already there. Currently, no, there is no way to get this information. There is a workaround that I've used. It is to use a skin property. Then you can call skin.getProperty and pass in the key. It's a hack.

Re: [Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Andrew Robinson
That gives my a CSS style, but I really need the CSS value for a property in that style (background-color). Don't suppose I am able to do that? On 8/21/07, Danny Robinson <[EMAIL PROTECTED]> wrote: > The Trinidad renderers usually just call: > > renderStyleClass(context, arc, styleClass); > >

Re: [Trinidad] customizing converter messages

2007-08-21 Thread Simon Lessard
Hello Darren, Did you specify your message-bundle in faces-config.xml? Trinidad override most converters, but BigInteger is not one of them so your keys should work... For Trinidad specific keys for number conversion, see http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/t

Re: [Trinidad] customizing converter messages

2007-08-21 Thread Danny Robinson
Use as an example, but there are 3 other messageDetail... attributes for different conversion types supported by tr:convertNumber. On 8/21/07, Darren McEntee <[EMAIL PROTECTED]> wrote: > >Hi guys, > > > > Can anyone tell me how to custom the messages a javax.faces converter > outputs under a

Re: [Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Danny Robinson
The Trinidad renderers usually just call: renderStyleClass(context, arc, styleClass); If you want to do this from a non-Trinidad component, then you could call RenderingContext arc = RenderingContext.getCurrentInstance(); String style = arc.getStyleClass(styleClass); where styleClass would

[Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Andrew Robinson
Is there a way to get a value from the skin programmatically? For example, I have to add a color to an attribute of a JSF component. I would like to use a value from the current skin. Specifically the background color from: af|panelBox::medium af|panelBox::body Is there any way to accomplish this

[Trinidad] customizing converter messages

2007-08-21 Thread Darren McEntee
Hi guys, Can anyone tell me how to custom the messages a javax.faces converter outputs under a field after validation fails. We have a messages.properties file that contains key-value pairs like: javax.faces.converter.BigIntegerConverter.BIGINTEGER= testing 111 javax.faces.converter.BigI

How to load the component model from a JSP outside of a web container?

2007-08-21 Thread Bryan Basham
Hello, I am considering doing code generation of backing beans, JS files, CSS files, and I18N text properties files based on the JSF component model for a given screen. One hurdle I need to overcome is that this code generation phase must occur during the development cycle (not at run-time).

RE: [Trinidad] Return Listener on closing dialog

2007-08-21 Thread sandeep gururaj
Thanks Simon for letting me know, the reason for the change. ~Sandeep From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 5:47 PM To: MyFaces Discussion Subject: Re: [Trinidad] Return Listener on closing dialog Hello Sandeep, Thi

Re: [Trinidad] Return Listener on closing dialog

2007-08-21 Thread Simon Lessard
Hello Sandeep, This was a wanted change made to the dialog framework. ReturnListener's semantic is "the dialog was closed with the following parameters" implying no parameter when closed with the 'X' button. Therefore, those listeners serve as a notification system for the calling window to know w

[Trinidad] Return Listener on closing dialog

2007-08-21 Thread sandeep gururaj
Hello All, I noticed just now that in the Trinidad (version 1.0.2) along with Myfaces (version 1.1.5), the return listener is called even if we close the dialog window manually (by clicking the 'X' button of the dialog window). When I used previous version of Trinidad and Myfaces, this was not

Re: [Trinidad] Hide leaf icon

2007-08-21 Thread Hannes K
Hi Jeanne, As the arrow indicates that the node can be expanded I would like to hide it for the leaf elements. In the example below the icon shall only be displayed for the node 'Highlighting' but not for the leaves 'Links', 'Text' and 'Cells'. The selector names I got from: http://www.orac

RE: [Trinidad] display exception

2007-08-21 Thread sandeep gururaj
Hello Darren, To display the exception on the UI, it is necessary to catch the same in your Bean method either directly or wrapped in a custom exception. I guess passing the exception caught, wrapped in a custom exception, to the bean is a better way. Thanks ~Sandeep __

[Trinidad] display exception

2007-08-21 Thread Darren McEntee
Hi i'm wondering what way you would display a caught exception to the user via the trinidad. So for example if we lost connection, or our web servics could not be contacted, how would you get this message back to the user, instead of it sitting in silence. Thanks, Darren. P Please consider the