aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans JSF CommandLinkRenderer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans JSF CommandLinkRenderer" Watch "Netbeans JSF CommandLinkRenderer" New topic
Author

Netbeans JSF CommandLinkRenderer

Matt Gaunt
Ranch Hand

Joined: Sep 05, 2003
Posts: 34
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

Joined: Jan 28, 2008
Posts: 467
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.


Visit my blog: http://jnassef.blogspot.com/
Matt Gaunt
Ranch Hand

Joined: Sep 05, 2003
Posts: 34
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

Joined: Sep 05, 2003
Posts: 34
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
 
jQuery in Action, 2nd edition
 
subject: Netbeans JSF CommandLinkRenderer