• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Problem using BluePrint catalog

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).

 
reply
    Bookmark Topic Watch Topic
  • New Topic