I tried it but somehow it does not work and i get an new or empty ViewState
field on postbacks.
Would be cool if anyone could guide me before i must read and understand
the complete state saving code :-)
2012/5/9 Thomas Andraschko zoi...@googlemail.com
Hi,
is it possible to switch
Hi Thomas
I think to make it work correctly it is necessary to do some stuff
inside MyFaces internals. Look these classes:
http://svn.apache.org/repos/asf/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/StateCache.java
Hi Leonardo,
i already checked this classes and server/client StateCache will be
switched via isSavingStateInClient().
So why it is required to make it more pluggable? Sorry but it's really hard
to understand who and where the state will be written or restored because
there are many classes for
Hi
I'm trying to load some heavy js file only after a user have clicked on
button
so basically when user loads the main page there is a hidden page inside
ui:include
h:body
h:form
h:commandButton value=ClickMe action=#{myBean.callme()}
f:ajax
I'm currently using myfaces 1.1.9 for my web app. I'm having some problems
with commandlink not working correctly for me. It appears that when
commandlink is inside of the panelgrid, it is not calling the method specified
in the action attr. But it works fine if I put it outside of the
Are u sure ur bean is in session scope? Befor the action event is fired, it's
verified whether the grid is rendered or not. So if the bean is in request
scope, it returns False and therefore the link's action isn't fired.
Sent from my iPhone
On May 9, 2012, at 9:57 PM, Lim Hock-Chai
I tried both session and request scopes. Both failed to work. The thing is
that the commandlink is showing on the page, which would mean that the rendered
condition in the panelGroup or panelgrid is ok. It just that when I click on
the link that is inside the panelgroup/panelgrid, it does
After u click the link also the expression in the rendered attribute is
evaluated. That time it should be returning Faldo and hence ur action isn't
being fired. If u remove all the rendered attributes or keep ur bean in session
scope, it should work. Try printing the expression u gave in the
I added an onclick=alert(#{not empty sessionScope.MyAccountLoginType and
sessionScope.MyAccountLoginType==resources.LOGIN_TYPE_MY_ACCOUNT }) on the
commandlink element and the alert showing value of true when I click on the
link.
h:panelGrid
Finally got it to work inside panelgrid. I don't understand it but it works.
Shasi, I think you are right about the problem is caused by rendered attribute
being evaluated as false when clicked. Below is what I did to get it to work.
Hopefully you or someone can explain why.
The code
I also had this problem month's ago and i don't like :)
Maybe it would be better if rendered attribute evaluation would be skipped
for the action-source component.
But don't know if this would have some side effects.
2012/5/9 Lim Hock-Chai lim.hock-c...@usamobility.com
Finally got it to work
I should probably clarify by saying, it shows the link but just will not fire
the action when click on it. Another word, the rendered test is successful on
panelgrid (hence the link is shown), but the test failed when clicked on the
link. Scratch my head on this for two days. Learn a new
12 matches
Mail list logo