This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 143992 - Use "h:commandLink" for generating links
Summary: Use "h:commandLink" for generating links
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 23:07 UTC by asudhir
Modified: 2009-02-19 23:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asudhir 2008-08-14 23:07:36 UTC
All the generated URL's use "h:commandLink" for generating links. The problem is, none of these URL's can be opened in
New Window, or can be Bookmarked. And also not good for links for search engines to scan (SEO).

It will be good if instead "h:outputLink" can be used to display the links, Except for the situation where
"h:commandLink" is really required (for example, save link on Save.jsp page)

Looks like JSF does need some additional functionality to understand links from "h:outputLink".

Change Suggested : During the code generation process, it will be useful if we can provide a option (Drop Down) to use
to select which links method to use "GET" or "POST"
Comment 1 asudhir 2008-08-26 22:00:58 UTC
The following post on "Passing GET parameters from JSF to backing beans" could be helpful in determining one of the
approaches to get this feature working

http://balusc.blogspot.com/2006/06/communication-in-jsf.html#PassingGETParametersFromJSFToBackingBeans
Comment 2 Matthew Bohm 2008-11-15 02:30:56 UTC
We plan to implement this request in the following manner: change the generated code such that h:outputLink is used when
no user input is being submitted. (We do not plan to change the wizard UI to incoporate a GET/POST dropdown.) Many
thanks for this valuable request.