How to remove id auto integrated of <h:form> in JSF? [duplicate] - forms

This question already has answers here:
How can I know the id of a JSF component so I can use in Javascript
(6 answers)
Closed 4 years ago.
I have <h:form prependId="false" id="productDescription"> and when rendered to html:
<form id="j_idt143:0:productDescription" name="j_idt143:0:productDescription" method="post" action="/WatchesStore/product-detail.jsf" enctype="application/x-www-form-urlencoded">
I want clear id:"j_idt143:0:" after rendered to html. Please help me solved this problem.

<h:form prependId="false">
Change
id="j_idt143:0:productDescription"
to
id="productDescription"

Related

What is this GitHub "Note" header with icon and are there any other documented anywhere? [duplicate]

This question already has answers here:
How to create a good-looking notification or warning box in Github Flavoured Markdown?
(3 answers)
How to make a styled Markdown admonition box in a GitHub Gist?
(9 answers)
Closed 2 months ago.
I accidentally discovered this nice header GitHub generates:
This is the original code:
> **Note**
> Make sure the Blazor CSS is imported correctly in `index.html` for `PageLoader` to work correctly:
>
> ```html
> <link href="<ProjectName>.styles.css" rel="stylesheet" />
> ```
What's that blue header called? Is it documented anywhere? I have another header **IMPORTANT** but it isn't made into cool header like that.

How to use more than one JSF form

I have a Java EE 7 project and in web application part I am trying to open JSF forms.
However when I run it, it just sees the initial form.
How can I enable it to reach other forms?
Small example from my code:
<body>
<h:form id="firstForm" prependid="false">
...
</h:form>
<h:form id="secondForm" prependid="false">
...
</h:form>
</body>
This answer helped me a lot. And also there were some referance problem. After correcting them, I can see all the form structure.
I know the code above is not nested form structure, but for other people who are curious about this issue, you cannot make nested forms in HTML5 (for both <h:form> and <form>). So be careful to your template.
Good luck!

ColdFusion 10 form variable functionality change relating to case of variables

We're just looking at porting a legacy script to ColdFusion 10 and I believe I have come across a bug/change in functionality relating to the use of multiple form fields using the same name. In ColdFusion 9 these would have been appended to the relevant variable with commas, but in ColdFusion 10, if the case of the variables is different one field will overwrite the other.
The following test code:
<form action="index2.cfm" method="post">
<input type="hidden" name="test" value="1" />
<input type="hidden" name="TEST" value="0" />
<input type="submit" />
</form>
<cfdump var="#form#">
Produces on ColdFusion 9
TEST = 1,0
On ColdFusion 10:
TEST = 0
Has anyone else experienced this behaviour and knows whether it is a bug or intended functionality? I know the application shouldn't be using the same variable name in different cases, so will look at changing this, but just wondered if anyone had any more information on the issue.
Edit
I have submitted this bug to Adobe at https://bugbase.adobe.com/index.cfm?event=bug&id=3298179
#Russ
This feature is indeed just that a feature. I believe you've missed the point in the above post that specifying the same field name with different case no longer passes a list result.
One of the main things I and many have used this functionality for in the past is checkboxes. A group can have the same name so that your validation is easy yet different values so CF can process which ones have been ticked before form submission(obviously unticked items aren't passed into the list).
This bug appears to have been confirmed by Adobe in as Bug #3298179. It is reported as fixed in build 283412 and currently in the testing phase. I will update this answer with the relevent hotfix information once this has been released publicly.
That "feature" has been around since at least CFMX 6.1. I blogged about it back in '08: http://cfruss.blogspot.com/2008/01/passing-multiple-same-named-arguments.html

locate missing html tags in emacs

How can I validate that all tags have been closed in emacs?
<div>
hi
<div id="2">
hello
<div>
The above being a very simple example of a missing div. How can i see in emacs which html tag is missing?
If it is XHTML, nxml-mode can validate it automatically. That's what I am using. (I.e. I switch to nxml-mode for validation, though I usually use html-mode.)

How can I handle a customized tag in iPhone? [duplicate]

This question already has an answer here:
How to use Javascript to communicate with Objective-c code?
(1 answer)
Closed 7 years ago.
For example, I have a web page like this:
<title>Testing</title>
<body>
I am a hyper-link
</body>
In my program, I have a UIWebView, and it will display this web site, when the user click the "I am a hyper-link", I would like the console, to print the "helloWorld", how can I do so? Thank you. (Actually, I would like to the UIWebView knows when I click on the "print://" in hyperlink, it will do some callback on my application specify function.)
You add a URL handler to your info.plist file and then handle the URL in your application delegate.
See this for reference: http://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102207