Antwort: [fileupload] need help dealing with large files!

2009-11-18 Thread Andreas . Schmidt
Hello Khristian, you have to get the error in the phase listener (Render Phase in before Phase). public class myPhaseListener implements PhaseListener { ... public void beforePhase(PhaseEvent event) { // RENDER_RESPONSE Phase if (event.getPhaseId().equa

RE: Only want to validate a text field if checkbox is checked ... how?

2009-11-18 Thread laredotornado
The attachment didn't come through (I'm looking at this forumn through Nabble). Could you cut and paste the relevant parts of your example into the thread? Thanks for the help, - Dave Radhesh Radhakrishnan wrote: > > You can use a custom phase listener trick (See the attached file) > An f:pa

[fileupload] need help dealing with large files!

2009-11-18 Thread Khristian
Hello, I'm trying to limit the size of files users can upload in my app, but I can't figure out what to do when a user tries to upload some file larger than the limit. The limit is set in the web.xml file. Any file smaller than the limit is handled without problem; when I try to upload a larger fil

Re: [Trinidad] Trinidad, Facelets, multiple forms

2009-11-18 Thread Arnold Preg
I accept that making a composite component cleans the code etc. But I still have to iterate over the collection of books somehow, e.g. with tr:iterator, right? And I don't know how does it solve the parameter sending problem. With tr:inputHidden the POST parameters looks like this: _noJavaSc

Re: Myfaces compatibility issues

2009-11-18 Thread Leonardo Uribe
2009/11/18 Oluf Jensen > Hi > > I have used struts tiles 1.2.8 with Tomahawk 1.1.6 with Myfaces 1.1.5. in > my project. > Recently I changed to myFaces 1.2.7(latest), Tomahawk 1.1.9. and Tiles > 2.0.5. > This stack generates the following error: > > "Servlet.service() for servlet jsp threw except

Why is t:checkbox ignoring my "id" attribute?

2009-11-18 Thread laredotornado
Hi, I"m using Tomahawk 1.1.9. I am trying to assign unique ids to my checkboxes that are part of a t:selectManyCheckbox list. I have and then later on down the page I have amongst others. However the HTML that is generated does not use t

RE: Only want to validate a text field if checkbox is checked ... how?

2009-11-18 Thread Radhesh Radhakrishnan
You can use a custom phase listener trick (See the attached file) An f:param can be used to send the "enable / disable validation" flag. Thank you, Radhesh -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Tuesday, November 17, 2009 11:27 PM To: users@myfaces.

Re: loader constraints violated when linking javax/el/ELResolver class error

2009-11-18 Thread Mike Kienenberger
On Wed, Nov 18, 2009 at 1:00 AM, beginner_prithvi wrote: > Here is my .classpath file. How do you want me to arrange contents in it? > > > >         >         path="org.eclipse.jdt.launching.JRE_CONTAINER"/> >         path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runt

Re: [Trinidad] Trinidad, Facelets, multiple forms

2009-11-18 Thread Bart Kummel
Okay, now I get what you want. Good idea to post an image! If I were you, I would craete a Facelets Composition Component to render a single book's details (image, title, etc.) Inside that Composition Component you could use various Trinidad components to render the image, the price, the link, etc

Re: [Trinidad] Trinidad, Facelets, multiple forms

2009-11-18 Thread Arnold Preg
Hi, If I can reach this ( http://i48.tinypic.com/2q207ib.png ) look with skinning, then yes. (In essence I don't need column headers, pagination bar, radiobuttons etc. Just the layout and collection handling function I need from tr:table in this case.) I

Re: [Trinidad] Trinidad, Facelets, multiple forms

2009-11-18 Thread Bart Kummel
Hi, If you only want to change the appearance, you should definitely take a look at Trinidad's skinning features. You can change the appearance of every Trinidad component this way, while keeping the functionality. Is that what you're look

Re: [Trinidad] client (all) view state issue

2009-11-18 Thread JoeJoseph
Hi Matthias, I am using Trinidad 1.2.10. In my application, I am using nested dialogs with PPR used extensively. Suppose I open a dialog and then open another dialog from that, and use partial submit on my second dialog continuously, without any break, suddenly the state is lost and a ViewExpiredE

Re: [Trinidad] Trinidad, Facelets, multiple forms

2009-11-18 Thread Arnold Preg
Hi, I have to use Trinidad components, and minimalize the use of manual HTML or js codes. I do not like to use trh: components, but the tr:table appearance has not been being suitable and I did not want to write own component because I thought the tr:table and iterate will do the work and I

Myfaces compatibility issues

2009-11-18 Thread Oluf Jensen
Hi I have used struts tiles 1.2.8 with Tomahawk 1.1.6 with Myfaces 1.1.5. in my project. Recently I changed to myFaces 1.2.7(latest), Tomahawk 1.1.9. and Tiles 2.0.5. This stack generates the following error: "Servlet.service() for servlet jsp threw exception java.lang.IllegalArgumentException:

Re: Only want to validate a text field if checkbox is checked ... how?

2009-11-18 Thread Gerhard Petracek
hi, basically the current implementation of @RequiredIf is designed to be used in combination with two text-input fields. anyway, it's quite easy to solve the requirement with the cross-validation mechanism of myfaces extval. you can also implement a @ValidateMyCustomConstraintIf based on the infr