Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Netbeans JSF CommandLinkRenderer

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Management at the company at which I work are insisting I use the JSF visual editor for creating applications. So I have commenced using this tool only to find that Netbeans has it's own custom CommandLinkRenderer. This caused me great issues when I attempted to embed an <f :p aram/> tag inside a commandlink tag.

It all worked fine when I hand coded using the appropriate JSF tags. However, when using the visual editor to create the tags, it malfunctioned throwing javascript errors as follows:


Any thoughts on why this may have occurred?

[ April 22, 2008: Message edited by: Matt Gaunt ]

[ April 22, 2008: Message edited by: Matt Gaunt ]
[ April 22, 2008: Message edited by: Matt Gaunt ]
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that the clue lies in the "paramname has no properties" part of the message. It would be a lot more helpful if you submit the code generated.
 
Matt Gaunt
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Righto. I have been able to recreate this using NetBeans IDE 6.0 (Build 200711261600). Building a web project with the JSF Visual framework using Sun Application Server 9.1 as the target environment.

The page generated by the visual drag and drop palette is as follows:


The associated generated Java class behind this page is as follows:


The generated output when the page is displayed is as follows:


And the client side javaskript error when clicking on the link is as follows:



I have only used the GUI builder and haven't altered the generated jsp page at all. So why is this occurring when I nest an f:param tag inside an h:commandLink tag.

[ April 22, 2008: Message edited by: Matt Gaunt ]

(I edited this so it hopefully won't make the post be six pages wide - PC)
[ April 22, 2008: Message edited by: Paul Clapham ]
 
Matt Gaunt
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Adam,

I was wondering if you have an idea as to what is causing the error I have explained above please?

Regards

Matt Gaunt
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic