F:verbatim tag
can anyone please explain to me what the purpose of this tag?
an example wolud be very helpful
Thanks.
Perhaps there is someother use,
as far as i use it,it enables you to insert
a HTML code inside your JSF page.
for instance -
<f:verbatim>
//Any kind of HTML goes here
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/flash/album/album480x410.swf? />
</f:verbatim>
but i'm kindo new at this,so there may be some other use also.
Similar Messages
-
What is the usage of f:verbatim/ tag?
I have seen the API, which said "Create and register a child UIOutput component associated with the closest parent UIComponent custom action, which renders nested body content."
but I still cannot understand what it means!!
I search the web and many web site just use <f:verbatim/>
</f:verbatim/> as a example, but is there any situation which need to use <f:verbatim/> tag?
if there is any non-jsf code (html, jsp) produce some output inside jsf tag, then we need to use <f:verbatim/> to enclosed it, like
, is it?the exception is
javax.faces.FacesException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.myfaces.taglib.html.HtmlPanelGridTag.setColumns(Ljava/lang/String;)V
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:347)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:155)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.myfaces.taglib.html.HtmlPanelGridTag.setColumns(Ljava/lang/String;)V
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:341)
... 20 more
Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.myfaces.taglib.html.HtmlPanelGridTag.setColumns(Ljava/lang/String;)V
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
at org.apache.jsp.helloWorld_jsp._jspService(helloWorld_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
... 30 more
Caused by: java.lang.NoSuchMethodError: org.apache.myfaces.taglib.html.HtmlPanelGridTag.setColumns(Ljava/lang/String;)V
at org.apache.jsp.helloWorld_jsp._jspx_meth_h_005fpanelGrid_005f0(helloWorld_jsp.java:176)
at org.apache.jsp.helloWorld_jsp._jspx_meth_h_005fform_005f0(helloWorld_jsp.java:152)
at org.apache.jsp.helloWorld_jsp._jspx_meth_f_005fview_005f0(helloWorld_jsp.java:118)
at org.apache.jsp.helloWorld_jsp._jspService(helloWorld_jsp.java:83)
... 33 moreI just download MyFaces Tomahawk 1.1.7 Examples
http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-examples-1.1.7-bin.zip
then downlaod MyFaces-core 1.2.5
http://www.apache.org/dyn/closer.cgi/myfaces/source/myfaces-core-1.2.5-src.zip
then download MyFaces Tomahawk 1.1.7 for JSF 1.2
http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk12-1.1.7-bin.zip
then unzip myfaces-example-blank-1.1.7, unzip MyFaces-core 1.2.5 and place the .jar file in myfaces-example-blank-1.1.7 lib folder, then unzip tomahawk12-1.1.7-bin.zip and place the .jar file in myfaces-example-blank-1.1.7 lib folder, then placed the file in tomcat 6.0.18 and deploy, the exception as stated above is shown!!
I really want to use jsf 1.2!! -
JDev 11, Should we use f:verbatim tag in ADF faces pages?
When you type something in a facet in a jspx page it automaticaly get into an f:verbatim tag.
yet in the code it has a warning:
Using f:verbatium tag can cause undesirable results when used with PPR navigation. For inlining styles or javascript, af:resource should be used instead.
Also if you use call and return from a dialog page, the page is procken
[http://adfbugs.blogspot.com/2009/08/returning-from-dialog-to-page-that-has.html]
Is this a bug? or we should not use f:verbatim?You shouldn't be using f:verbatim to just display text on your page instead put the text into one of the output components - such as outputText or the formatted outputText.
-
Verbatim Tag Being Ignored in Tree2
I have the following tree2 tag working:
<t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node" varNodeToggler="t" showRootNode="false" >
<f:facet name="folder">
<h:panelGroup>
<f:facet name="expand">
<t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
</f:facet>
<f:facet name="collapse">
<t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
</f:facet>
<h:outputText value="#{node.description}" styleClass="description"/>
<h:outputText value=" (#{node.childCount})" styleClass="description" rendered="#{!empty node.children}"/>
</h:panelGroup>
</f:facet>
<f:facet name="entry">
<h:panelGroup>
<%/*
Both identifier and description are set in TreeBacker.java.
Identifier is the url and description is the value displayed to user.
*/%>
<t:graphicImage value="images/document.png" border="0"/>
<h:outputLink value="#{node.identifier}" styleClass="description">
<h:outputText value="#{node.description}"/>
</h:outputLink>
</h:panelGroup>
</f:facet>
</t:tree2>The problem is that I want the text "1." to go right before the yellow-folder-open.png or yellow-folder-closed.png and the verbatim tag is not being displayed where I'd expect it when I include it in the code like this:
<t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node" varNodeToggler="t" showRootNode="false" >
<f:facet name="folder">
<h:panelGroup>
<f:verbatim>
<b>1.</b>
</f:verbatim>
<f:facet name="expand">
<t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
</f:facet>
<f:facet name="collapse">
<t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
</f:facet>
<h:outputText value="#{node.description}" styleClass="description"/>
<h:outputText value=" (#{node.childCount})" styleClass="description" rendered="#{!empty node.children}"/>
</h:panelGroup>
</f:facet>
<f:facet name="entry">
<h:panelGroup>
<%/*
Both identifier and description are set in TreeBacker.java.
Identifier is the url and description is the value displayed to user.
*/%>
<t:graphicImage value="images/document.png" border="0"/>
<h:outputLink value="#{node.identifier}" styleClass="description">
<h:outputText value="#{node.description}"/>
</h:outputLink>
</h:panelGroup>
</f:facet>
</t:tree2>In this case it prints after the yellow-folder-open.png (or yellow-folder-closed.png) and before the first h:outputText. I want it to print before the yellow-folder-open.png. How do I get this html displayed in the correct place?jamesellis22: I'm not at the point that I could answer your question, however would you be able to help me?
Would you please post your treeBacker.treeData Java code or what did you reference to build the backing bean?
Also, what does the following do?
var="node"On http://myfaces.apache.org/tomahawk/tlddoc/index.html, there is no description.
Thanks,
--Todd -
I have a jspx page with the following structure:
h:form
afh:rowLayout
f:verbatim
div
f:verbatim
div
Everything loads in order in IE but when I load the page in Firefox, the verbatim tags are switched. Any idea how to fix this?
thanks,
timIt possible but close the tags.
<h:form>
<afh:rowLayout>
<f:verbatim>
<div>content1</div>
</f:verbatim>
<f:verbatim>
<div>content2</div>
</f:verbatim>
</afh:rowLayout>
</h:form>
Good Luck -
EA12 Faces: Error in client state and verbatim tags
When we switch our ADF Faces (EA12) application state method to client, we are receiving the stack trace below. All screens work correctly when the STATE_SAVING_METHOD is set to server. We've noticed if we remove the verbatim tags out of our JSF pages, we do not receive the error.
It seems this is a problem with the JSF spec per the Sun JSF forum. Is this correct?
java.lang.IllegalArgumentException: type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java)
at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178)
at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java)
at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:171)
at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:234)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:196)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:189)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:189)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:189)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:189)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:189)
at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:189)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:175)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:672)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:869)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].server.http.HttpRequestHandler.run(HttpRequestHandler.java:288)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].server.http.HttpRequestHandler.run(HttpRequestHandler.java:120)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
at java.lang.Thread.run(Thread.java:534)Adam,
Here is the JSF page. I'm not sure if you want the backing bean as well?
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA12" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA12/html" prefix="afh"%>
<f:view>
<afh:html binding="#{backingBean.html1}">
<afh:head title="Page"
binding="#{backingBean.head1}">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
<style type="text/css">
body {
background-color: #e7e7e7;
</style>
</afh:head>
<afh:body binding="#{backingBean.body1}"
onload="#{backingBean.resetTable}">
<af:panelPage title="Select a Record"
binding="#{backingBean.panelPage1}">
<f:facet name="menu1">
<af:menuTabs binding="#{backingBean.menuTabs1}">
<af:commandLink text="Record"
binding="#{backingBean.commandLink1}"/>
</af:menuTabs>
</f:facet>
<f:facet name="messages">
<af:messages binding="#{backingBean.messages1}"/>
</f:facet>
<af:form binding="#{backingBean.form2}">
<af:table rows="25" emptyText="No items were found"
binding="#{backingBean.table}"
var="rowVar" value="#{model.data001vList}"
width="100%" banding="row" bandingInterval="1">
<af:column binding="#{backingBean.selectColumn}">
<f:facet name="header">
<f:verbatim>
Number
</f:verbatim>
</f:facet>
<af:commandButton text="#{rowVar.cffNum}"
binding="#{backingBean.selectButton}"
action="#{backingBean.selectRowFromList}"/>
</af:column>
<af:column binding="#{backingBean.datacolumn1}">
<f:facet name="header">
<f:verbatim>
Name
</f:verbatim>
</f:facet>
<af:outputText binding="#{backingBean.outputtext1}"
value="#{rowVar.name}"/>
</af:column>
<af:column binding="#{backingBean.datacolumn2}">
<f:facet name="header">
<f:verbatim>
ID
</f:verbatim>
</f:facet>
<af:outputText binding="#{backingBean.outputtext2}"
value="#{rowVar.cffAccount}"/>
</af:column>
<af:column binding="#{backingBean.columnBalance}">
<f:facet name="header">
<f:verbatim>
<b>Balance</b>
</f:verbatim></f:facet>
<af:outputText binding="#{backingBean.outputBalance}"
value="#{rowVar.cffBalance}">
<f:convertNumber pattern="$ ###,###,###,##0.00"/>
</af:outputText>
</af:column>
<af:column binding="#{backingBean.datacolumn15}">
<f:facet name="header">
<f:verbatim>
<b>Status</b>
</f:verbatim>
</f:facet>
<af:outputText binding="#{backingBean.outputStatus}"
value="#{rowVar.cffStatus}"/>
</af:column>
</af:table>
</af:form>
</af:panelPage>
</afh:body>
</afh:html>
</f:view> -
F:verbatim - missing end tag
im trying to use f:verbatim tag in my code, and when im writing something like-
<f:verbatim>
<table><tr><td>
</f:verbatim>
<h:outputText value="x"/>
<f:verbatim>
</td></tr></table>
</f:verbatim>
im getting the message - "missing end tag table"
what im doing wrong?
thanks in advanced.I get the same thing in my IDE. It works anyways. I think the compiler/parser in the IDE gets very confused when I use f:verbatim and h:outputText.
Try running the code anyways and see if it works. If you can, test it in several different browsers (IE, FF, Safari, etc...).
I am using the IBM WSAD 5.1.2 IDE. Which is based off of Eclipse.
CowKing -
Alternative to f:verbatim to use custom DIV classes?
I have some pages with panelCustomizable facets containing simple HTML like so:
<f:verbatim>
<div class="tableClass">
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><h2>TABLE TITLE</h2></td>
</tr>
</f:verbatim>
At runtime, in "*Edit mode*", when I try to "*Add Content*" - the page hangs with a message about "stopping long-running script" which point to core11.1.1.3.js line 4569
By some trial and elimination - i think this is due to usage of f:verbatim tag- so whats the alternative?
I could use included HTML snippets stored off the file system (as shown in Avitek sample) but the data will eventually be dynamic and coming from data controls - to which i want to add some formatted textYannick - you are so right.
I once added some plain text in Design view which automatically got wrapped in <f:verbatim> and I assumed all plain HTML needed it.
Now this leads me to new exceptions which I will try to fix
java.lang.NullPointerException
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.hasRefreshParametersChanged(JUMethodIteratorDef.java:541)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.executeQueryIfNeeded(JUMethodIteratorDef.java:334)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3185)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2845)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:227)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3143)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2845)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:227)
at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
Edited by: new_to_webcenter on 24-Jan-2011 02:42 -
Would tomahawk selectOneRadio work in html table tag
hey guys,
i want to use the tomahawk tag in a html table in JSF pages, but it seen unwork, my example is shown below
<f:view>
<h:form>
<table>
<!-- include from the other pages called LIC3320.jsp -->
<x:selectOneRadio id="select" layout="spread" forceId="true" forceIdIndex="false" value="#{LIC3320.currentSelect}">
<f:selectItem itemValue="dog" itemLabel="Dog"/>
<f:selectItem itemValue="cat" itemLabel="Cat"/>
<f:selectItem itemValue="fish" itemLabel="Fish"/>
</x:selectOneRadio>
<f:verbatim>
<tr><td align="center" colspan="4">
</f:verbatim>
<x:radio for="select" index="0"></x:radio>
<f:verbatim>
</td></tr>
</f:verbatim>
<!-- include from the other pages called LIC3320.jsp -->
</table>
</h:form>
<f:view>
the main problem is the radio isn't in the table, it came before the table and show at the top of the table. Is if i use tomahawk tag, i must use datetable in JSF?
Thanks
emmyWe have successfully used the Tomahawk radio component within a plain table using JSF 1.1 (MyFaces 1.1.5) and JSF 1.2 (the Sun RI 1.2_04). We also use facelets however and so did not use the verbatim tag.
Did you try looking at the component tree to see if it is in the correct order?
What implementation and version of JSF are you using?
Which version of Tomahawk?
Did you check the generated HTML to see if it is what you expect? -
How html textfield use i jsp tag
hi master
sir see my php code i get input in name and fname text box and pass in php tag for insertion into database
<html>
<body>
<form action="mfa.php" method="post">
First Name<input type="text" name="fname">
Second Name<input type="text" name="lname">
<input type="submit" name"Insert">
</form>
<?php
//Inserting records into database
$firstname=$_POST['fname'];
$lastname=$_POST['lname'];
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("test1");
mysql_query("INSERT INTO persons (Firstname, Lastname) VALUES ('$firstname','$lastname')");
echo "Data Inserted";
?>
<?php
//showing resutls in browser
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("test1") or die(mysql_error());
$result = mysql_query("SELECT * FROM persons") or die(mysql_error());
echo "<table border='1'>
<tr>
<th>First Name</th>
<th>Last Name</th>
</tr>";
while($row = mysql_fetch_array( $result ))
echo "<tr>";
echo "<td>" . $row['Firstname'] . "</td>";
echo "<td>" . $row['Lastname'] . "</td>";
echo "</tr>";
echo "</table>";
?>
</body>
</html>
how i use html text box and pass to jsp tag for insertion data into database
please give me sample code
thank's
aamirI have never had any problems mixing straight HTML (without the verbatim tag) and JSF tags. OTOH, I use facelets, not JSPs, so my experience may not be applicable.
-
Verbatim bug with JSF (SUN RI) 1.1 ?
Hi,
Could someone explain me why this example doesn't work :
<html>
<head>
</head>
<body style="background-color:#E0E0E0">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<h:form id="frm1">
<f:verbatim> <p> A simple text </p> </f:verbatim>
<h:inputText id="inp1"/>
<h:inputText id="inp2" required="true" /><h:message for="inp2" showSummary="false" showDetail="true" />
<h:commandButton id="cmd" value="valider"/>
</h:form>
</f:view>
</body>
</html>
When i submit the form, a ClassCastException is thrown during restoreState.
If i remove the verbatim tag that works perfectly well...
Nicolas Lenoire
SunopsisYou would better to take option 2, I believe. I don't know when the next release will be issued. You can get 1.1 source code and patch by yourself or just try weekly build. Good luck!
-
h:outputText inside f:verbatim : is it legal?
Hi,
Is it valid to nest a <h:outputText> inside a <f:verbatim> tag? If so, could someone please explain this section of the JSF sepc:
Body Content
JSP. However, no UIComponent custom actions, or custom actions from the JSF Core
Tag Library, may be nested inside this custom action.
Regards,
BehiYou answered your own question. =)
You must end the verbatim tag before using any other JSF tag (or closing a JSF tag).
CowKing -
Hi I'm looking for input on this.
I'm trying to figure out how to render a object tag in JSF with dynamic parameter values tied to the backing bean.
The only way i can think of possibly doing it is by creating hidden fields and tying those hidden fields to the backing bean and then using the values of those hidden fields somehow as the value for my parameter tags
The object i am trying to create is needed a for a third party piece of software. It looks like this:
<object id="activeXPlugIn" style="width:100%; height:100%"
codeBase="123456"
classid="123456">
<param name="VALUE1" value="/test/test.xml"/>
</object>The problem i have is if i use the verbatim tag from what i understand then i can't use any JSF faces tags like the f:param inside it in order to tie the param values to the backing bean.
Any thoughts or suggestion please? Thanks in advance.You can just use f:verbatim. It's a misunderstanding that f:param would be applicable on plain HTML elements.
Do for example:<f:verbatim>
<object id="foo">
<param name="value1" value="</f:verbatim><h:outputText value="#{myBean.value1}" /><f:verbatim>">
</object>
</f:verbatim> -
Hello all,
I'm currently trying to use the amx:verbatim tag to embed arbitrary HTML in my amx page. Here is my code:
<?xml version="1.0" encoding="UTF-8" ?>
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
<amx:panelPage id="pp1">
<amx:verbatim id="v1">
<div id="d1" width="100px" height="100px" style="background-color:#FFFFFF; ">
<p id="p1">111111111111111111111111111111111111111111</p>
</div>
</amx:verbatim>
<amx:facet name="header">
<amx:outputText value="Header" id="ot1"/>
</amx:facet>
<amx:facet name="primary">
<amx:commandButton id="back" action="__back"/>
</amx:facet>
<amx:facet name="secondary">
</amx:facet>
<amx:verbatim id="v3">
<div id="d2" width="100px" height="100px" style="background-color:#FFFFFF; ">
<p id="p2">222222222222222222222222222222222222</p>
</div>
</amx:verbatim>
<amx:commandButton text="makeAlert" id="cb1" actionListener="#{pageflowScope.InjectionBean.injectJS}"/>
<amx:verbatim id="v2">
<div id="d3" width="100px" height="100px" style="background-color:#FFFFFF; ">
<p id="p3">3333333333333333333333333333333333333333</p>
</div>
</amx:verbatim>
</amx:panelPage>
</amx:view>
But neither a single div or paragraph is being rendered. At least not in the visible are of my amx page. So can any one point me to the right usage of the amx:verbatim tag?
Edited by: Angelo Hannes on Nov 26, 2012 2:04 AMYou need add the HTML in CDATA section.
example:
<amx:verbatim id="v1" >
<![CDATA[
<p style="color:white">My HTML <b style="color:red">html</p>
]]>
</amx:verbatim> -
ADF Faces: is mixing JSF RI and ADF Faces tags supported?
Hi,
I'm looking at ADF Faces as a future possibility for our application that is currently based on JSF RI.
When looking at the ADF Faces demo it strikes me that all pages are almost completely built up from ADF Faces tags.
For instance
af:form
af:commandButton
af:inputText
are used instead of the equivalent core jsf tags f:form, f:commandButton and f:inputText
I'm wondering if this is mandatory if we would like to use some ADF Faces components mixed within our existing application.
In other words: are ADF Faces tags supported in the environment of conventional JSF tags? And mixing ADF Faces JSF components with JSF components by other vendors?
Another thing that strikes me is that pages are constructed using ADF Faces tags for any and all markup content.
I guess this is meant to support several different clients (normal browser applications, mobile clients, voice activation over telephone) using different renderers.
In my experience abstracting markup this way inherently means loss of control over the exact markup that is sent to the client. This is not acceptable for all projects and customers.
Is embedding ADF Faces tags within template HTML, within f:verbatim tags or not, supported?
Regards,
Joost de VriesYou absolutely can mix JSF RI and ADF Faces tags. This is very much supported! You can swap in <h:form> and <h:commandButton> and <h:inputText>. Our versions support some features that the JSF tags do not, as described in our release notes.
Your point about using tags to produce all markup is a very cogent one. For some projects, absolute control over HTML will be a necessary requirement, so we do support that style of development. But we believe strongly that the future does not lie in constant handcoding of HTML, but instead in building more powerful, flexible, and reusable components and assembling those into pages. This was one of the themes of a talk I gave with two coworkers at this past JavaOne.
-- Adam Winer (JSF EG member and ADF Faces lead)
Maybe you are looking for
-
Trying to open a file from an older version to a new version of indesign
I'm on am mac and i am trying to open a file from the 2014 indesign with 2015 software, i am getting this error: what i don't understand is why a newer version can't read the file of an older version
-
PC Suite 682 gives error 1713 and aborts installat...
Error reads "Error 1713.PC Suite cannot install one of its required products" Installation then aborts. Have no other version of PCSuite installed. Nevertheless I tried cleaning with PC Clean, no luck. have downloaded and reinstalled. Tried installin
-
How can I see previously ViewNX2-edited photos (raw) in Lightroom 3?
I recently bought Lightroom 3, and after importing my previously ViewNX 2-edited photos (in RAW, NEF), I saw that Lightroom doesn't show those changes. I can only see the photos in its original form. Is there a way to import them to Lightroom 3 and s
-
Page numbering every second page
Hi guys, ok I have a 200 page booklet I'm doing, very simple - a notes page on the left hand side and then the contacts details on the right. But in the top right corner I need a page number that correlates with the contact. Problem is if I make page
-
I have an unknown error (-81) when connecting iPod Photo and Nano
This error keeps coming up when connecting iPods to iTunes and no photos can be downloaded. I have downloaded the all the latest iTune and iPod updates