voyent
problem with Spring  XML
Forum Index -> General Help
Author Message
rageice

Joined: 21/Apr/2008 00:00:00
Messages: 16
Offline


Hello everybody (sorry for my bad english).

I have actually the following error:

Code:
 Property 'displayNeededForm' not found on type app.springbeans.SprPersonBean$$EnhancerByCGLIB$$3e70c20d
 


Strangely, displayNeededForm isn't a property:

In the facelet:
Code:
                     <ice:commandButton
                         value="connection"
                         actionListener="#{personBean.displayNeededForm}"
                         immediate="true"
                     >
 


In personBean:
Code:
 public void displayNeededForm(ActionEvent event){ ... }
 


personBean is a SpringBean and I use facelets, but I can't find the problem!

Does someone has an idea?

Thanks.

patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


I don't have concrete evidence of this yet but I don't think JSF's introspection doesn't like proxied beans. I've seen in in some cases that once the SpringBean is cast to an object it losses its identity.

As a test try wrapping you Spring bean with a none spring bean and provide a wrapper method for displayNeededForm. You might have better luck.
[Email]
rageice

Joined: 21/Apr/2008 00:00:00
Messages: 16
Offline


Ok, thanks. In fact the problem wasn't in relation with Spring but with something concerning the configuration. If I remember well, it is impossible to use verifyObject and validateXml parameters with facelets and Spring. After that all was ok.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team