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
[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
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
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
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
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=#
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
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
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
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
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
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
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
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
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
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
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
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
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;
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
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
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
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
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
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
://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
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;
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
Hi,
I have a problem selecting
--
Zied Hamdi
zatreex.sourceforge.net
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
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
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
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
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
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
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
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
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
-- 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
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
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
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
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
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
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
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
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
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?
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
49 matches
Mail list logo