• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem using BluePrint catalog  RSS feed

 
Mirko Bonasorte
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

I'm a newbie using jsf and I was trying to use the blueprint sun component.

I wanted to use the autoCompletion component.
According to the documentation, I should use the uri 'http://java.sun.com/blueprints/ui' to use the components.
But if I give a look at the jars included by Sun, I only find a tld with 'http://java.sun.com/blueprints/ui/14' uri.
Well, I've tried simply to use it, but some stuff does not work: in my case, the autoCompletion completionMethod attribute does not work as expected.
In fact, according to the documentation:

completionMethod - Method binding expression which points to a method taking a FacesContext and a prefix String, and returning a String[] which will be displayed as completion results for the given prefix


But I get an error, because it expected a signature like '<methodName>(FaceContext, String, <ABluePrintClassICantRemember>)'
I have tried to add an Object parameter to my method, but I get the same error.

Can anybody explain me what's happening?
The downloaded bpcatalog is bpcatalog-ee5-ea-0.8-installer.jar

Thanks
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don´t know Blueprints, so I can´t go in detail about this. But your understanding of the method signature doesn´t look good:
Mirko Bonasorte wrote:
completionMethod - Method binding expression which points to a method taking a FacesContext and a prefix String, and returning a String[] which will be displayed as completion results for the given prefix


But I get an error, because it expected a signature like '<methodName>(FaceContext, String, <ABluePrintClassICantRemember>)'
I have tried to add an Object parameter to my method, but I get the same error.

This should be:
 
Mirko Bonasorte
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thanks for your reply.
Well, in fact I had used that signature, but the application server complained about the wrong signature, as it expected <method>(FacesContext, String, <SomeThing>).
But it complains also if I use <method>(FacesContext, String, Object).

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!