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 96772 - Pure HTML element <input type="hidden"> are rendered outside the form when the form is included in a page fragment
Summary: Pure HTML element <input type="hidden"> are rendered outside the form when t...
Status: CLOSED WORKSFORME
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Winston Prakash
URL: http://www.netinfo.eu
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 13:13 UTC by thoism
Modified: 2007-08-14 21:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thoism 2007-02-28 13:13:11 UTC
I have a hidden HTML input element inside a form included in a page and it works
fine. I tried to do the same in a form included in a fragment but it just didnt
work. It renders the input component outside the form which has no meaning for me.
The hidden JSF component is no good for me because I need the name to stay as it
is because I do not want any prefix to be added on the component name (e.g
formName:componentName);

I really am desperate. I managed to make tomhawk JSCookMenu to work fine in a
page but I need to have this: 
<input id="jscook_action" name="jscook_action" type="hidden"/> in my form in
order for it to work.
I really believe this is a bug on the side of the Form and HtmlForm elements
because it does not have any meaning to kick out pure HTML  components that are
explicitly defined as to be included in the form.
Comment 1 Jayashri Visvanathan 2007-03-01 02:02:11 UTC
Is this with J2EE 1.4 or Java EE5 project ?
Comment 2 Jayashri Visvanathan 2007-03-06 00:15:53 UTC
If I understand your problem correctly, what you describe is the expected
behavior. Anything you embed in a page fragment is still part of the page that
includes it, so form Id will be prepended. There is no work around for it. 

If I remember right, there is a new attribute on UIComponent in JSF 1.2 called
"prependId" that might satisfy your requirement. Please check the JSF 1.2
specification or documentation for its usage. You can make use of this in Java
EE 5 project if it solves your problem.
If I am misunderstanding your question, please re open the issue.
thanks
Comment 3 Lark Fitzgerald 2007-08-14 21:12:16 UTC
closing