Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans JSF CommandLinkRenderer

 
Matt Gaunt
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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 ]
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic