t:saveState

2007-12-13 Thread shyamprasad.harianathan
Hi, I have used t:saveState in a JSP. I am using JSF RI configured the STATE_SAVING = server in web.xml When Submit a Form, The View is not getting restored with the updated ManagedBean which is early stored in t:saveState. How to synchronise the Updated Managed Bean with the latest view

Re: t:saveState

2007-12-13 Thread Simon Kitching
[EMAIL PROTECTED] schrieb: Hi, I have used t:saveState in a JSP. I am using JSF RI configured the STATE_SAVING = server in web.xml When Submit a Form, The View is not getting restored with the updated ManagedBean which is early stored in t:saveState. How to synchronise the

Re: t:saveState

2007-12-13 Thread Martin Marinschek
Hi Simon, serialization should not be necessary - it should work without (if restoreState/saveState get called at least, and that should happen for any recent version of the RI). @shyamprasad: in the very first versions of the RI the stateSaving/Restoring was not processed - which version of the

Re: Getting all currently loaded managed beans in a phase listener

2007-12-13 Thread Martin Marinschek
Hi Todd, yes, but if you are using Spring for your service beans, you can easily use it also for your JSF managed beans. The suggestion of Gerald and Simon was - don't use the JSF managed bean facility at all, use only spring beans (since spring 2.0, you can scope them with

[Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Hi All, I have entred this problem earlier when I was in time evalution phasis. Today I'm concretely in dev mode and I don't have any solution (I was thinking ti was because of the context : tobago layouting etc.., so I simplified to the basis): here's my page it's the same one as in the tomahawk

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Hi Again, Examining the generated code further I have found this problem: the call is made from cells like this one: trtd style=width: 100%; onmouseover=return makeTrue(domTT_activate(this, event, 'caption', 'Menage', 'content', 'lt;igt;Alice du fourlt;/igt;', 'trail', true));a href=#

Myfaces on LINUX

2007-12-13 Thread GTrivedi
When I request for xhtml page on the linux environment we are facing following error. Please anyone help me out. Its the jetty webserver used here. HTTP ERROR: 500 org.apache.myfaces.util.StateUtils.construct(Ljava/lang/Object;)Ljava/lang/String; RequestURI=/MAWebsite/pages/medication.faces

Re: Myfaces on LINUX

2007-12-13 Thread Alonso Isidoro Roman
is this entire stact trace? 2007/12/13, GTrivedi [EMAIL PROTECTED]: When I request for xhtml page on the linux environment we are facing following error. Please anyone help me out. Its the jetty webserver used here. HTTP ERROR: 500 org.apache.myfaces.util.StateUtils.construct

Re: Myfaces on LINUX

2007-12-13 Thread Alonso Isidoro Roman
pls, is this full stack trace? 2007/12/13, Alonso Isidoro Roman [EMAIL PROTECTED]: is this entire stact trace? 2007/12/13, GTrivedi [EMAIL PROTECTED]: When I request for xhtml page on the linux environment we are facing following error. Please anyone help me out. Its the jetty

Re: linking to non-default tr:showDetailItem in a tr:panelTabbed

2007-12-13 Thread Gerhard Petracek
hello mark, e.g.: add an actionListener to your link and the disclosed-attribute to your showDetailItems your snippet (+ modifications): tr:commandLink id=tabSwitcher text=show 'Company' tab actionListener=#{bean.showCompanyTab} partialSubmit=true/ tr:panelTabbed position=above

Re: Myfaces on LINUX

2007-12-13 Thread GTrivedi
Yes, that is entire stack trace. we have our application in JSF/MyFaces/Spring.. So when we put our request for the page on address bar of browser, we get this error. If you have any idea then please let me know. logancillo wrote: is this entire stact trace? 2007/12/13, GTrivedi [EMAIL

Re: StateUtils.construct NoSuchMethod

2007-12-13 Thread Simon Kitching
Hi Gautam, This is unlikely to be anything to do with Linux. It's almost certainly a misconfigured classpath in your environment, so I've changed the email subject. The StateUtils.construct method in older releases of MyFaces took just one Object parameter. But more recent releases have only a

Problem to disable JSF validation

2007-12-13 Thread lschoop
Hi there I have a problem disabling JSF validation for some components. In the attached JSP code, the input elements orderUnits, orderAmount, validFrom and validUntil block the execution of server-side action #{orderEntryBean.gotoOrderReview} of the command button navNextButton every time they

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Volker Weber
Hi Zied, the form element with id=page::form is rendered by the PageRenderer. You have no tc:page in your source, so i can't see why this could happen. What happens if you remove the htmlbody tags and replace the h:form tag with a tc:page, and the div with a tc:panel? Regards, Volker

Re: Problem to disable JSF validation

2007-12-13 Thread Simon Kitching
Just a guess: are the problem properties perhaps primitives? I don't remember what happens if an inputText has an EL expression referencing a primitive property but its input value is null. That could very well result in a validation failure. Javascript can affect validation if it sets

Re: [Trinidad] tr:navigationTree or tr:tree nodes opened and closed afeter click on link or navigationItem

2007-12-13 Thread Gerhard Petracek
hello tomek, the approach i've in mind is similar to your second one. if i remember correctly, the challenge is: within the action listener you don't have the context of your command component (within the tree component). that's the reason why you have to add hidden information (to supply

RE: (Trinidad) How to make an inputListOfValues and tr:inputDate field non-editable

2007-12-13 Thread sandeep gururaj
Hello All, Does anybody have any suggestions on this? ~Sandeep From: sandeep gururaj [mailto:[EMAIL PROTECTED] Sent: Friday, December 07, 2007 12:22 PM To: MyFaces Discussion Subject: (Trinidad) How to make an inputListOfValues and tr:inputDate field

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Volker Weber
Hi, i think the t:schedule could not be used inside tobago. it looks like the schedule component looks for the first parent UIForm and takes this id as the id for a html form tag to submit. This can't work in tobago, because there is only one html form tag surrounding all content. And nesting

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Volker Weber
Hi, try replace this function with function fireEntrySelected(formId, scheduleId, entryId) { var form = document.forms[formId]; if (form.tagName != FORM) { form = document.forms[formId + ::form]; } form[scheduleId].value = entryId;

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
That's exactly what I didn't want to hear :-). Thanks for the patch, I'll give it a try and tell you if it works. Regards, Zied 2007/12/13, Volker Weber [EMAIL PROTECTED]: Hi, i think the t:schedule could not be used inside tobago. it looks like the schedule component looks for the first

Re: (Trinidad) How to make an inputListOfValues and tr:inputDate field non-editable

2007-12-13 Thread Frank Nimphius
Hi, this should work for Trinidad as well http://thepeninsulasedge.com/frank_nimphius/2007/11/27/adf-faces-diabling-user-input-for-afselectinputdate/ Frank sandeep gururaj wrote: Hello All, Does anybody have any suggestions on this? ~Sandeep

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Simon Kitching
I don't see why t:schedule is not usable in tobago. Yes, it looks for a parent UIForm. With tobago, is there one in the component tree or not? I would certainly presume so.. The schedule code does look for an ancestor form, but what is wrong with that? There should always be exactly one.. The

RE: JFreeChart and JSF

2007-12-13 Thread Oscar Duque
Of course, you can use the JFreeChart in your JSF projects, you only need to add the .JAR libraries that comes with the JFreeChart, add them to your project. When you use the JFreeChart, you can build Graphics dinamicaly, and generate it to Graphics files like as JPG and then that graphic can

Idea for Cancel in Form with Ajax needed

2007-12-13 Thread SEIDLER DANIEL
Hi,i have this code:h:form id="form" h:outputText rendered="#{!bean.editable}" value="#{bean.firstName}" / br / h:outputText rendered="#{!bean.editable}" value="#{bean.lastName}" /h:inputText rendered="#{bean.editable}" value="#{bean.firstName}" id="firstName"/h:inputText

Re: JFreeChart and JSF

2007-12-13 Thread Wolfgang
Hi, I tried this solution and it works, but that is not what I want. Do you know if it is possible to save the image in an object? Maybe the h:graphicImage with the value=#{class.image} can then get the image? Of course, you can use the JFreeChart in your JSF projects, you only need to add the

Re: JFreeChart and JSF

2007-12-13 Thread Bruno Aranda
://example.irian.at/example-sandbox-20071213/graphicImageDynamic.jsf Where you use a specific Image Renderer class (as far as I remember) where you generate the image on the fly... Cheers, Bruno On 13/12/2007, Wolfgang [EMAIL PROTECTED] wrote: Hi, I tried this solution and it works

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Hi Volker and Simon, replacing the method by function fireEntrySelected(formId, scheduleId, entryId) { var form = document.forms[formId]; if (form == null || form.tagName != FORM) { form = document.forms[formId + ::form]; } form[scheduleId].value = entryId;

Re: Myfaces on LINUX

2007-12-13 Thread Alonso Isidoro Roman
on browser? that isnt entire stack trace! i´ll assure you! pls let me see entire stack trace from console 2007/12/13, GTrivedi [EMAIL PROTECTED]: Yes, that is entire stack trace. we have our application in JSF/MyFaces/Spring.. So when we put our request for the page on address bar of

[tomahawk] shedule doesn't call model.setSelectedEntry(ScheduleEntry selectedEntry)

2007-12-13 Thread Zied Hamdi
Hi, I have a problem selecting -- Zied Hamdi zatreex.sourceforge.net

Re: Myfaces on LINUX

2007-12-13 Thread Bruno Aranda
It seems to me that there is something wrong in the classpath with two different versions of myfaces around. Can you list the jars in your classpath? What version of MyFaces are you using? Cheers, Bruno On 13/12/2007, GTrivedi [EMAIL PROTECTED] wrote: When I request for xhtml page on the

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Volker Weber
Hi Simon, case 1 is true: The UIPage implements UIForm and renders the complete html htmlhead.../headbody id=${pageId}form id=${pageId}::form ... and /form/body/html where ${pageId} is the clientId of the UIPage. Regards, Volker 2007/12/13, Simon Kitching [EMAIL PROTECTED]: I don't

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Thanks Volker, You saved me a lot of frustrations. I really appreciate your help. Regards, Zied 2007/12/13, Volker Weber [EMAIL PROTECTED]: Hi Zied, set org.apache.myfaces.tobago.util.DebugPhaseListener to trace to log request parameters. of cause you need also to configure this

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Volker Weber
Hi Zied, set org.apache.myfaces.tobago.util.DebugPhaseListener to trace to log request parameters. of cause you need also to configure this listener. Regards, Volker 2007/12/13, Zied Hamdi [EMAIL PROTECTED]: Hi Volker and Simon, replacing the method by function

Re: [tomahawk] shedule doesn't call model.setSelectedEntry(ScheduleEntry selectedEntry)

2007-12-13 Thread Zied Hamdi
Hi again, A gmail shortcut sent the mail before I finish :-). So when I click on a schedule entry, I verify the javascript has modified the hidden input (with the id given to the t:schedule), then I wait in my model.setSelectedEntry(ScheduleEntry selectedEntry) with a breakpoint, this never

How to implement pagination with myfaces components?

2007-12-13 Thread aquila
Please help me :) I want to display a data grid in my website. The corresponding data in database are stored like this format --- field1 field2field3 field4 field5field6 a 2 3 4 5

Re: linking to non-default tr:showDetailItem in a tr:panelTabbed

2007-12-13 Thread md10024
Gerhard, That's excellent information, and it works... almost. Two things I find: 1.Re: tr:commandLink ... partialSubmit=true/ I needed to remove the partialSubmit=true otherwise I didn't get the requested tab rendered. 2. It works when the tr:commandLink... / is on the same page as

JSF renders weird with mvn jetty:run

2007-12-13 Thread Christofer Jennings
I'm not sure where to post this question. It might be a maven jetty plugin thing but the problem I have only happens when I run mvn jetty:run on a JSF project. For some reason when I use mvn jetty:run my JSF pages render weird. The JSF components render outside the html tag. If I build a war and

Re: [Tobago] Class attribute not rendered for input fields

2007-12-13 Thread Bernd Bohmann
Hello Florian, can you remove the tomahawk and tomahawk-sandbox jar from the WEB-INF/lib, please. Regards Bernd Regards florimodo schrieb: Bernd, the content is as follows: activation.jar avalon-framework-4.1.3.jar commons-beanutils-1.7.0.jar commons-chain-1.1.jar

Re: JSF renders weird with mvn jetty:run

2007-12-13 Thread Christofer Jennings
-- FIXED -- Turned out that a dependency in my Maven POM caused the trouble. I had this... dependency groupIdjsf-impl/groupId artifactIdjsf-impl/artifactId version1.2.04/version scopecompile/scope /dependency and for some reason

Re: linking to non-default tr:showDetailItem in a tr:panelTabbed

2007-12-13 Thread md10024
Yes, sorryI was a little careless in my reading of your post. Using partialTrigger solves the partialSubmit problem when the tr:commandLink is on the same page as the tabSwitcher BUT, when using it from the main.xhtml page i.e.tr:commandLink action=about id=tabSwitcher text=show

Re: linking to non-default tr:showDetailItem in a tr:panelTabbed

2007-12-13 Thread Gerhard Petracek
hello mark, you are welcome! concerning your second problem: are you using a real redirect? (or did you just call it redirect?) in the case of a real redirect: the request scope is too short for such a scenario. - please test it with a session scoped bean (just for testing purpose). as final

c:if test not evaluating properly in ui:repeat and t:dataTable

2007-12-13 Thread M Rather
Hello, I have a jsf, myfaces, facelets, tomahawk, displaytag and c:forEach question. My apologies if you see this question in some other boards relevant to this discussion. This is the issue. I load a list of customers.. I loop thru each of them using c:forEach, ui:repeat, displaytag

Re: c:if test not evaluating properly in ui:repeat and t:dataTable

2007-12-13 Thread Andrew Robinson
c:... are evaluated at compile time all others are evaluated at render time. Best suggestion is to never use jstl tags with JSF. If you must, understand that they are executed *before* the components are built. There are WIKIs out there on this. Use the rendered attribute instead of c:if On Dec

Re: c:if test not evaluating properly in ui:repeat and t:dataTable

2007-12-13 Thread Andrew Robinson
Also, I wrote this: http://myfaces.apache.org/sandbox/limitRendered.html On Dec 13, 2007 2:02 PM, Andrew Robinson [EMAIL PROTECTED] wrote: c:... are evaluated at compile time all others are evaluated at render time. Best suggestion is to never use jstl tags with JSF. If you must, understand

Re: [Tobago] Class attribute not rendered for input fields

2007-12-13 Thread florimodo
Hello Bernd, I have already tried that, it didn't help... It even happened that the class attribute wasn't rendered at all, e.g. tx:in id=username label=Benutzername tabIndex=1

Re: linking to non-default tr:showDetailItem in a tr:panelTabbed

2007-12-13 Thread md10024
Thanks Gerhard. It was a real redirect and changing the scope to session resolved the issue. I'll investigate some custom scope moving forward. I appreciate your assistance on this! Gerhard Petracek wrote: hello mark, you are welcome! concerning your second problem: are you using a

Re: Myfaces on LINUX

2007-12-13 Thread GTrivedi
Hi, I am using following jar files for MyFaces. Let me know if this is wrong version. myfaces-api-1.1.2-SNAPSHOT.jar myfaces-commons-1.1.2-SNAPSHOT.jar myfaces-impl-1.1.2-SNAPSHOT.jar The stack trace I have pasted coming from myfaces-commons-1.1.2-SNAPSHOT.jar. Bruno Aranda wrote: It

Memory leak in ApplicationImpl$1?

2007-12-13 Thread David
Hi, We are profiling a myfaces application which uses client state saving and we have detected a collection growing continouslly but not quickly (arround 5000 objects in four hours). The collection is org.apache.myfaces.application.ApplicationImpl$1. Is this the expected behaviour for this class?

Re: Memory leak in ApplicationImpl$1?

2007-12-13 Thread Simon Kitching
David [EMAIL PROTECTED] schrieb: Hi, We are profiling a myfaces application which uses client state saving and we have detected a collection growing continouslly but not quickly (arround 5000 objects in four hours). The collection is org.apache.myfaces.application.ApplicationImpl$1. Is