Tags not evaluating expression
When the jsp executes with a single expression in the defaultValues attribute, it evaluates fine.
eg>
<ft:phone namePrefix="representative" defaultValues="<%=appeal.getRepresentative_area_code()%>"/>
// area code is set to 111
produces
<input size="3" type="text" maxlength="3" name="representative_area_code" value="111">
<input size="3" type="text" maxlength="3" name="representative_phone_prefix" value="">
<input size="4" type="text" maxlength="4" name="representative_phone_suffix" value="">
which is the expected response, Yet when I do
<ft:phone namePrefix="representative" defaultValues="<%=appeal.getRepresentative_area_code()%>;555"/>
I get
<input size="3" type="text" maxlength="3" name="representative_area_code" value="<%=appeal.getRepresentative_area_code()%>">
<input size="3" type="text" maxlength="3" name="representative_phone_prefix" value="555">
<input size="4" type="text" maxlength="4" name="representative_phone_suffix" value="">
like it doesn't evaluate the embedded expression.
Also is there a better way to pass in the default values then using a semi colon delimited list. Perhaps pass in a hashmap with attributes set?
Here is the tld file:
// tld begin
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>formtags</shortname>
<info>WCB Tags for Forms</info>
<tag>
<name>phone</name>
<tagclass>wcb.common.jsptags.PhoneTag</tagclass>
<bodycontent>empty</bodycontent>
<info>This tag puts 3 input boxes for phone numbers.</info>
<attribute>
<name>namePrefix</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>defaultValues</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
//end tld
//tag definition PhoneTag.java
package wcb.common.jsptags;
* This tag will output three input text fields that are used to input phone numbers.
* Creation date: (08/20/2002 2:05:00 PM)
* @author: Travis Leippi, WCB
* Changes:
* Author Date Change
* Travis Leippi 2002-08-20 Initial revision
import java.util.StringTokenizer;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
public class PhoneTag extends TagSupport {
private class PhoneField {
String strField = null;
int intSize;
String strValue = null;
public PhoneField(String argField, int argFieldSize) {
strField = argField;
intSize = argFieldSize;
strValue = new String();
public PhoneField(String argField, int argFieldSize, String argValue) {
strField = argField;
intSize = argFieldSize;
strValue = argValue;
private String strNamePrefix = null;
private String strDefaultValues = null;
private PhoneField[] objFields =
{ new PhoneField("area_code", 3), new PhoneField("phone_prefix", 3), new PhoneField("phone_suffix", 4)};
* doStartTag is called by the JSP container when the tag is encountered
public int doStartTag() {
try {
JspWriter out = pageContext.getOut();
// Iterate through the elements of strFields
// printing out a textbox for each
if (strDefaultValues != null) {
setupFieldValues();
for (int i = 0; i < objFields.length; i++) {
out.print("<input size=\"");
out.print(objFields.intSize);
out.print("\" type=\"text\" maxlength=\"");
out.print(objFields[i].intSize);
out.print("\" name=\"");
if (strNamePrefix != null) {
out.print(strNamePrefix);
out.print(objFields[i].strField + "\" value=\"");
if (objFields[i].strValue != null) {
out.print(objFields[i].strValue);
out.print("\">");
out.println();
} catch (Exception ex) {
throw new Error("All is not well in the world.");
// Must return SKIP_BODY because we are not supporting a body for this
// tag.
return SKIP_BODY;
* doEndTag is called by the JSP container when the tag is closed
public int doEndTag() throws JspTagException {
return SKIP_BODY;
* Gets the strNamePrefix
* @return Returns a String
public String getNamePrefix() {
return strNamePrefix;
* Sets the strNamePrefix
* @param strNamePrefix The strNamePrefix to set
public void setNamePrefix(String strNamePrefix) {
this.strNamePrefix = strNamePrefix + "_";
* Gets the strValues
* @return Returns a String
public String getDefaultValues() {
return strDefaultValues;
* Sets the strValues
* @param strValues The strValues to set
public void setDefaultValues(String strDefaultValues) {
this.strDefaultValues = strDefaultValues;
private void setupFieldValues() {
StringTokenizer st = new StringTokenizer(strDefaultValues, ";");
for (int i = 0; i < objFields.length && st.hasMoreTokens(); i++) {
objFields[i].strValue = st.nextToken();
// end java
The expression needs to be a legal java expression that evaluates to a string. Try:
<ft:phone namePrefix="representative" defaultValues='<%=appeal.getRepresentative_area_code() + ";555"'%>/>If that doesn't work, go with
<%String st = appeal.getRepresentative_area_code() + ";555";%>
<ft:phone namePrefix="representative" defaultValues="<%=st%>/>
Similar Messages
-
Custom Tag not evaluating expression in attribute
I have a custom tag that needs to take dynamic values in the attributes, but I can't seem to get the values "interpreted" correctly. I have the <rtexprvalue> tag set to "true" in my .tld file, which I thought was the only thing that was needed in order to accomplish what I am trying to do. However, that does not seem to be the case.
I am using WebLogic (8.1.4) and their <netui> tags, along with JSTL tags (1.0).
An example of what my code looks like is the following:
<test:myTag id="1" idx="<netui:content value='{container.index}' />">
<netui:select ... />
</test:myTag>and
<c:set var="myIdx" value="<netui:content value='{container.index}' />" />
<test:myTag id="1" idx="<c:out value='${myIdx}' />">
<netui:select ... />
</test:myTag>Neither of the above approaches has worked. In my code for my Tag.java file, I get the literal string values of <netui:content value='{container.index}' /> and <c:out value='${myIdx}' />, respectively, in my idx property.
Can someone give me any hints as to what I may be doing wrong?
Thanks.Shouldnt that be
<netui:content value='${container.index}' />Actually, weblogic does not use the '$' prefix before
their expressions. Fine. Which in turn means weblogic has some custom expression evaluator.
Note weblogic 8.1
as a container doesnt implicitly supportexpressions
and you have to build in that feature into yourtag
library.Are you referring to the 'isELIgnored' attribute when
you mentioned the above statement? If not, can you
explain what you meant by "build that feature into
your tag library"?
It's like this - expression language is supported by default in all containers that implement the j2ee 1.4 spec (servlet 2.4/jsp 2.0). Additionally you should also declare your web application to adhere to the 2.4 standards (through the schema definition in web.xml). In applications that refer to the 2.3 dtd but are run on a 2.4 compliant container you can set the 'isELIgnored' attribute to false and use EL. This works because your container anyways supports it.
If your container doesnt provide support for EL (outside the jstl tags) as is the case with weblogic 8.1, then you can still use expressions by using something like the [url http://jakarta.apache.org/commons/el/]apache common evaluator package. The difference being that you will have to call the evaluator classes to evaluate the attribute.
Are there any alternatives that I could use to
accomplish what I am trying to do?Did the above answer your question?
ram. -
OSB insert in not evaluating the expression
I am using insert in the proxy service of OSB and and my expression is like this:
Expression : <fcs:appId>$body/*/appId/node()</fcs:appId>
My problem is that it's not evaluating the expression. It's inserting this as text ($body/*/appId/node()).
Any idea, why?I assume you want to get the value of the tag appid, then the correct expression is <fcs:appId>{$body/*/appId/text()}</fcs:appId>
In case there is namespace defined with your xml tag then you should be using it as <fcs:appId>{$body/*/*:appId/text()}</fcs:appId>
Thanks,
Patrick
Edited by: Patrick Taylor on May 25, 2011 8:15 PM -
EL expressions not evaluating after JSF 1.1 --- 1.2 upgrade.
I am having a problem with EL expressions not evaluating in a JSF application that I just upgraded from Apache MyFaces JSF 1.1 to JSF-RI 1.2 and from Tomcat 5.5.25 to 6.0.26. After the upgrade the entire application is working fine except for EL expressions.
I was wondering if I am missing a JAR file or something.
Basically, I have prepopulated input text boxes that render the EL expression instead of its evaluated result. Example:
INPUT [#{sessionBean.result}] instead of INPUT [tedsResult].
Here are the JAR on my classpath:
tomcat/lib:
annotations-api.jar el-api-1.1.jar servlet-api.jar tomcat-i18n-fr.jar
catalina-ant.jar jasper-el.jar sqljdbc.jar tomcat-i18n-ja.jar
catalina-ha.jar jasper.jar tomcat-coyote.jar
catalina.jar jasper-jdt.jar tomcat-dbcp.jar
catalina-tribes.jar jsp-api.jar tomcat-i18n-es.jar
and in my WEB-INF/lib:
activation.jar hibernate-annotations.jar
antlr-2.7.5H3.jar iText-2.1.3.jar
asm-attrs.jar jakarta-oro.jar
asm.jar jaxen-1.1-beta-8.jar
avalon-framework-4.0.jar jaxrpc.jar
avalon-framework-cvs-20020806.jar jdom.jar
axis.jar jpdcFOP.jar
batik.jar jpdc_web.jar
cglib-2.1_3.jar jsf-api-1.2_12.jar
commons-beanutils.jar jsf-impl-1.2_12.jar
commons-codec.jar jstl.jar
commons-collections.jar jta.jar
commons-digester.jar jtds-1.2.jar
commons-discovery.jar log4j-1.2.13.jar
commons-el.jar logkit-1.0.jar
commons-fileupload-1.2.jar mail.jar
commons-io-1.3.1.jar openmap.jar
commons-lang-2.3.jar saaj.jar
commons-logging.jar standard.jar
commons-logging-optional.jar tomahawk.jar
cos.jar velocity-1.4.jar
CVS velocity-tools-generic-1.1.jar
dom4j-1.6.1.jar
el-impl-1.1.jar versioncheck.jar
ehcache-1.1.jar wsdl4j-1.5.1.jar
ejb3-persistence.jar xalan.jar
fop.jar xercesImpl.jar
hibernate3.jar xmlParserAPIs.jar
Any ideas what might be causing this problem? Thanks in advance for your help.
Edited by: tsteiner61 on Apr 14, 2010 11:05 AMHello tsteiner61,
Did you find a solution for your problem? I am asking because I have to solve a somewhat similar problem. Our system admin updated Tomcat from version 6.0.20 to 6.0.26 and now my JSF application wont evaluate EL expressions either.
I was using Mojarra JSF API Implementation 1.2_09-b02-FCS. Trying Mojarra JSF API Implementation 2.0.2-FCS I get the following error:
java.lang.UnsupportedOperationException
javax.faces.context.ExternalContext.getResponseOutputWriter(ExternalContext.java:1228)
com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:182)
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:197)
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
I am grateful for helpful advice. -
Having successfully used .txt files to store queries an then run using Evaluated Expression it seems to fall over when it comes to merging. I am faced with the following error
Formula.Firewall: Query 'Merge2' (step 'EvaluatedExpression') is referencing Query 'Section1!#"ncs gl_accounts"#EvaluatedExpression', which was not part of its formula text.
The data is stored in a MySQL environment. I am advised that the same does not occur in a SQL Server environment.
PQ code and .txt file contents replicated below
Merge2 PQ
let
//Load M code from text file
Source = Text.FromBinary(File.Contents("O:\Finance - Reporting\Common Data\Power Queries\Merge2.txt")),
//Evaluate the code from the file as an M expression
EvaluatedExpression = Expression.Evaluate(Source, #shared)
in
EvaluatedExpression
merge2.txt
let
Source = Table.NestedJoin(#"ncs gl_accounts",{"gl_unique_id"},#"ncs gl_matches",{"gl_unique_id"},"NewColumn"),
#"Expand NewColumn" = Table.ExpandTableColumn(Source, "NewColumn", {"id", "version", "gl_id", "gl_unique_id", "hpc", "hpc_name", "hpc_m", "level4",
"level4_name", "level4_m", "level3", "level3_name", "level3_m", "level2", "level2_name", "level2_m", "level1", "level1_name", "level1_m", "location",
"location_name", "location_m", "manager", "manager_name", "manager_m", "division", "division_name", "division_m", "overview", "overview_name", "overview_m",
"code", "code_name", "code_m", "summary", "summary_name", "summary_m", "grouping", "grouping_name", "grouping_m", "alt", "alt_name", "alt_m",
"type", "type_name", "type_m", "standard", "standard_name", "standard_m", "intext", "intext_name", "intext_m", "funding", "funding_name", "funding_m",
"cash", "cash_name", "cash_m", "project", "project_name"}, {"NewColumn.id", "NewColumn.version", "NewColumn.gl_id", "NewColumn.gl_unique_id", "NewColumn.hpc",
"NewColumn.hpc_name", "NewColumn.hpc_m", "NewColumn.level4", "NewColumn.level4_name", "NewColumn.level4_m", "NewColumn.level3", "NewColumn.level3_name", "NewColumn.level3_m", "NewColumn.level2",
"NewColumn.level2_name", "NewColumn.level2_m", "NewColumn.level1", "NewColumn.level1_name", "NewColumn.level1_m", "NewColumn.location", "NewColumn.location_name", "NewColumn.location_m",
"NewColumn.manager", "NewColumn.manager_name", "NewColumn.manager_m", "NewColumn.division", "NewColumn.division_name", "NewColumn.division_m", "NewColumn.overview", "NewColumn.overview_name",
"NewColumn.overview_m", "NewColumn.code", "NewColumn.code_name", "NewColumn.code_m", "NewColumn.summary", "NewColumn.summary_name", "NewColumn.summary_m", "NewColumn.grouping",
"NewColumn.grouping_name", "NewColumn.grouping_m", "NewColumn.alt", "NewColumn.alt_name", "NewColumn.alt_m", "NewColumn.type", "NewColumn.type_name", "NewColumn.type_m", "NewColumn.standard",
"NewColumn.standard_name", "NewColumn.standard_m", "NewColumn.intext", "NewColumn.intext_name", "NewColumn.intext_m", "NewColumn.funding", "NewColumn.funding_name", "NewColumn.funding_m",
"NewColumn.cash", "NewColumn.cash_name", "NewColumn.cash_m", "NewColumn.project", "NewColumn.project_name"})
in
#"Expand NewColumn"The methodology used was:
Created 2x .txt files
1. ncs gl_accounts.txt
let
Source = MySQL.Database("kdc-linux", "ncs"),
ncs_gl_accounts = Source{[Schema="ncs",Item="gl_accounts"]}[Data]
in
ncs_gl_accounts
2. ncs gl_matches.txt
let
Source = MySQL.Database("kdc-linux", "ncs"),
ncs_gl_matches = Source{[Schema="ncs",Item="gl_matches"]}[Data]
in
ncs_gl_matches
Created 2x Power Queries
1. ncs gl_accounts
let
//Load M code from text file
Source = Text.FromBinary(File.Contents("O:\Finance - Reporting\Common Data\Power Queries\ncs gl_accounts.txt")),
//Evaluate the code from the file as an M expression
EvaluatedExpression = Expression.Evaluate(Source, #shared)
in
EvaluatedExpression
2. ncs gl_matches
let
//Load M code from text file
Source = Text.FromBinary(File.Contents("O:\Finance - Reporting\Common Data\Power Queries\ncs gl_matches.txt")),
//Evaluate the code from the file as an M expression
EvaluatedExpression = Expression.Evaluate(Source, #shared)
in
EvaluatedExpression
BOTH PQ CORRECTLY RETURN THE RECORDSET
Created further Power Query (merge1 using PQ builder) to merge the above
let
Source = Table.NestedJoin(#"ncs gl_accounts",{"gl_unique_id"},#"ncs gl_matches",{"gl_unique_id"},"NewColumn"),
#"Expand NewColumn" = Table.ExpandTableColumn(Source, "NewColumn", {"id", "version", "gl_id", "gl_unique_id", "hpc", "hpc_name", "hpc_m", "level4", "level4_name", "level4_m", "level3", "level3_name", "level3_m", "level2", "level2_name", "level2_m",
"level1", "level1_name", "level1_m", "location", "location_name", "location_m", "manager", "manager_name", "manager_m", "division", "division_name", "division_m", "overview", "overview_name", "overview_m", "code", "code_name", "code_m", "summary", "summary_name",
"summary_m", "grouping", "grouping_name", "grouping_m", "alt", "alt_name", "alt_m", "type", "type_name", "type_m", "standard", "standard_name", "standard_m", "intext", "intext_name", "intext_m", "funding", "funding_name", "funding_m", "cash", "cash_name",
"cash_m", "project", "project_name"}, {"id", "version", "gl_id2", "gl_unique_id2", "hpc", "hpc_name", "hpc_m", "level4", "level4_name", "level4_m", "level3", "level3_name", "level3_m", "level2", "level2_name", "level2_m", "level1", "level1_name", "level1_m",
"location2", "location_name", "location_m", "manager", "manager_name", "manager_m", "division2", "division_name", "division_m", "overview", "overview_name", "overview_m", "code", "code_name", "code_m", "summary", "summary_name", "summary_m", "grouping", "grouping_name",
"grouping_m", "alt", "alt_name", "alt_m", "type", "type_name", "type_m", "standard", "standard_name", "standard_m", "intext", "intext_name", "intext_m", "funding", "funding_name", "funding_m", "cash", "cash_name", "cash_m", "project", "project_name"})
in
#"Expand NewColumn"
(NOTE THIS CORRECTLY RETURNS THE RECORDSET)
Copied the query from the advanced editor and pasted into merge2.txt
Created Power Query merge2
let
//Load M code from text file
Source = Text.FromBinary(File.Contents("O:\Finance - Reporting\Common Data\Power Queries\Merge2.txt")),
//Evaluate the code from the file as an M expression
EvaluatedExpression = Expression.Evaluate(Source, #shared)
in
EvaluatedExpression
PQ errors with firewall message as described previously. -
?xml version="1.0"? tag not appearing as first characters in document
Hi,
JSP below successfully creates a XML document but it includes a blank line before the <?xml version="1.0"?> tag.
This causes my PL/SQL to return a "ORA-20100: Error occurred while parsing: PI names starting with 'xml' are
reserved." error when using the XMLPARSER package.
I am outputting the XML to IE5.0 but even if I do a SYSTEM out I get the same blank line before the initial tag.
There are posts on here that confirm the PI error is caused by the tag not being the first characters in the document, but no solution/fix is provided.
Any ideas much appreciated.
JSP Code
<%@ page import="java.sql.*, oracle.jbo.*, oracle.jdeveloper.cm.*, oracle.jdbc.*,oracle.xml.sql.query.*" %>
<%String driver="oracle.jdbc.driver.OracleDriver";
Driver d = new oracle.jdbc.driver.OracleDriver();
String dbURL="jdbc:oracle:thin:@localhost:1521:mydb";
String login="i2k";
String password="fred";
Connection cn = null;
cn = DriverManager.getConnection(dbURL,login,password);
// SQL Statement from URL Parameters
String sql = request.getParameter("sql");
if(sql == null){
sql = "select * from vfi_trans";
// Create SQL-to-XML Handler
OracleXMLQuery q = new OracleXMLQuery(cn, sql);
// Use <TransactionList> as document element for Rowset
q.setRowsetTag("TransactionList");
// Use <Transaction> for each row in the result
q.setRowTag("Transaction");
// set encoding
q.setEncoding("iso-8859-1");
// ensure lower case element names
q.useLowerCaseTagNames();
// Generate XML results and write to output
String xmldoc = q.getXMLString();
out.println(xmldoc.trim());
//System.out.println(xmldoc.indexOf("\n"));
cn.close();%>
PL/SQL
PROCEDURE XML_HANDLER2 IS
-- MODIFICATION HISTORY
-- Person Date Comments
vfiURL VARCHAR2(100);
parser xmlparser.Parser;
vfiXML xmldom.DOMDocument;
transactions xmldom.DOMNodeList;
transactions_found NUMBER;
curNode xmldom.DOMNode;
textChild xmldom.DOMNode;
v_itrans_site vfi_trans.itrans_site%TYPE;
BEGIN
dbms_output.put_line('Integrator 2000 Transactions');
-- This is the URL to browse for an XML-based vfi feed of stories on XML
vfiURL := 'http://10.1.1.111:7070/i2k25_html/ShowQuery.jsp?sql=select%20*%20from%20vfi_trans';
-- Set the machine to use as the HTTP proxy server for URL requests
http_util.setProxy('MYPROXY');
-- Parse the live XML vfi feed from Moreover.com by URL
parser := xmlparser.newParser;
vfiXML := xml.parseURL( vfiURL );
xmlparser.freeParser(parser);
-- Search for all <headline_text> elements in the document we recieve
transactions := xpath.selectNodes(vfiXML,'/TransactionList/ITRANS_ID');
-- Loop over the "hits" and print out the text of the title
FOR j IN 1..xmldom.getLength(transactions) LOOP
-- Get the current <headline_text> node (Note the list is zero-based!)
curNode := xmldom.item(transactions,j-1);
-- The text of the title is the first child (text) node of
-- the <headline_text> element in the list of "hits"
-- textChild := xmldom.getFirstChild(curNode);
v_itrans_site := xpath.valueof(curNode, '.');
dbms_output.put_line('('| |LPAD(j,2)| |') '| | v_itrans_site);
END LOOP;
-- Free the XML document full of vfi stories since we're done with it.
xml.freeDocument(vfiXML);
EXCEPTION
WHEN OTHERS THEN
RAISE;
END; -- Procedure
nullCharles,
I believe that the blank line is caused by the JSP engine when it strips out the '<%@ page import...>' (replace bracket with brace) statement. God (or at least Larry E) forgive me for posting a link at IBM, but this article speaks to your issue:
http://www-106.ibm.com/developerworks/library/j-dynxml.html?dwzone=ibm
Maybe you need to put the <?xml?> tag in the jsp itself and strip it out of your xmldoc before outputting it.
Good luck. -
Sharepoint 2013 on premises Tags & Notes button in List and Document library is disabled.
Hi,
In My Sharepoint 2013 on premises installation Tags & Notes button in List and Document library ribbon is appearing as greyed out.
I have checked that managed metadata service, User profile services are running. Also have given required permissions to the logged in user.
As I came to know that Tags & Notes feature has been retired in Sharepoint online. Is this happening because of same reason as I have downloaded the Sharepoint 2013 on premises version recently or do I need to change some settings.
Please advice.Hi Saurav,
pls check below
What version of SharePoint 2010 "SP 2010 Foundation or SP 2010 Server" you need to have SP 2010 server and to have the "User Profile service application".
How do you configure the "User Profile service application" did you add the "Social Tagging Database"
Create, edit, or delete a User Profile service application (SharePoint Server 2010)"
http://technet.microsoft.com/en-us/library/ee721052.aspx
When you access to "Application Management>Manage service applications>User Profile Service Application>Manage User Permissions" validate if the all authenticated users Group have the "use Social Features" checked.
Also validate in Central Administration in Farm Features if you have social tags and notes activated.
http://sharepoint.stackexchange.com/questions/17546/tagging-feature-not-working
https://social.technet.microsoft.com/Forums/office/en-US/c11cda96-091b-4b96-91bc-ccd8000238f4/tags-and-notes-sharepoint-2010-not-visible?forum=sharepointadminprevious
Please remember to click 'Mark as Answer' on the answer if it helps you -
Div header tag - not displaying correctly
I thought I had resolved an issue with a div header tag, but - as per a reply in my 'text as gif' thread, possibly not!
The header contains three images; a logo, a banner (text), and a picture of a castle. These should display in a line.
When I first set it up, I realised that the castle picture was normally ending up below the other two on smaller screens etc.
So I changed the dims for my div container from min 760px/max 1260px, to a set width (960px). I then rejigged the three images so the widths were within 960px, with some to spare for the spacing (total widths of the three are 900: hspacing another 20 pixels). There is no padding/borders defined. Therefore the total should be well within the 960 width (?).
It looks fine on my PC (widescreen); in 3 browsers, using the restore down menu command (ie to make it not full screen), and by using the Dreamweaver multiscreen preview (phone, tablet, smaller desktop). It wasn't ideal (as scrolling required), but at least meant the header (and the rest of the screen) displayed correctly, ie in a horizontal line (and then sidebar - content - sidebar).
If I set my container width much smaller, most of the screen will be green (the body) in big screens.
If I rejig the dimensions, it's all a bit hit and miss (and why don't the current dimensions work?).
Do I need to define the width of the header (as well as the container)?
Help! Thank you
http://hertfordcarnival.org.uk/dev/Index.htmlHi there, I started off using one big image, but it didn't look right with regards to size and placing (ie I wanted the logo on the left edge, the castle on the right edge, etc). When you say slice, what do you mean? One image in from fireworks, and then ... ? Thanks again
Date: Wed, 7 Dec 2011 01:37:10 -0700
From: [email protected]
To: [email protected]
Subject: Div header tag - not displaying correctly
Re: Div header tag - not displaying correctly
created by osgood_ in Dreamweaver - View the full discussion
Datafan55 wrote: I thought I had resolved an issue with a div header tag, but - as per a reply in my 'text as gif' thread, possibly not! Why not just use one big image then you wont have a problem of with the alignment. Certainly don't use 'vspace' and 'hspace' to position the images. If you want to use 3 seperate images start by setting them us as one complete image then slice it into 3 images. Then use the following css to position the images side by side. #header img If the total sum of the width of the images is the same or does not exceed 960px then the images should be in a nice row side by side. They will actually sit side by side without using 'float' but you'll get a small gap between them which will be added to the sum of the width which will exceed 960px causing the third image to drop onto the next line.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4068499#4068499
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4068499#4068499. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Dreamweaver by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Can I write Design-time for JSP custom tag(not JSF components)
I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
the Exception is shown as follow:
java.lang.ClassCastException
at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
[catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
at com.sun.rave.text.Document$5.run(Document.java:631)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
the Exception is shown as follow:
java.lang.ClassCastException
at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
[catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
at com.sun.rave.text.Document$5.run(Document.java:631)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) -
Error TaskServerIP tag not found in Task XML - 11.3.1 FTF 1
Hi, I created long ago a preboot bundle which install a VHD folder. It was created under 11.2.3a if I remember correctly. It always works until now. Now, under ZENworks 11.3.1 FTF 1 when I configure my workstation to use this preboot bundle all I get is an error saying "Error: Task `ServerIP` tag not found in Task XML". If under the maintenance mode in the PXE I click F9 (Query for Work) again then I get "No work to do". And we have only 1 server at the moment! So what am I missing here? Anyone else have this problem?
Thanks in advance for the help!
GuillaumeBDEBOriginally Posted by shaunpond
GuillaumeBDEB,
I'm guessing that something's got broken with the bundle - why not try
exporting and importing to a new bundle, see if anything's missing?
Shaun Pond (now working for ENGL)
newly reminted as a Knowledge Professional
Problem solved. One of our tech pushed a new zmg file on the server and forgot to update the preboot bundle. It would have been more useful if the error message was less cryptic.
Thanks anyway for the help!
GuillaumeBDEB -
Shipping tags not rendering in invoice
Hi,
I'm having trouble getting the {tag_addressshipping}, {tag_addressbilling} and {tag_shippinginstructions} tags to render anything in my customer invoice. This is a basic ecommerce purchase and even after setting the checkout form page and invoice back to the default these tags are not displaying what is entered.
The data entered into the shipping and billing fields do come up in the workflow notification sent to us from the purchase (but only in the "summary of web form submission" section, not the copy of the invoice).
Is there anything I might have accidentally changed that would prompt these tags not to contain the data entered?
help much appreciated.
thanks,Thanks for replying. I'm going to outline what I've done in case anyone else is looking to solve a similar problem.
We were looking to provide two payment options - CC (through paypal) and offline EFT.
The invoice tags weren't rendering because I tried to set up the "Process Offline" option in the payment gateway section to tackle the latter of these payment methods. The Process Offline method, despite not storing credit card details in BC, requires credit card details to be entered. I assume this is so that it can encode them to send in the PDF.
Instead, what I've done is change the payment gateway back to the paypal payflow, and removed all payment options in the registration template except "Paypal" and "COD". I've relabelled COD as EFT in the html. In this way no credit card details need to be submitted and an invoice is sent with all the correct details rendering.
I have another question in regards to changing the backend status for an order depending on the payment method, but I'll start a different discussion as it's not directly related to this problem.
thanks. -
How to remove tags (not color tags)
How to remove tags (not color tags)
I love the idea of the tags, however there comes a point when some become irrelevant. How can I remove them. I highlighting them in the dialogue box and hitting the delete key, that does not work. ?I accidentally found that you can remove some tags while in the Sidebar view by just draggng them to the trash.
But after a certain point when you have drug all of tags in the list, you are then left with the "All Tags" button. When you click on that final button, you find that all of the tags you have ever created are still there in the All Tags category. So I guess what I do is just not create any new tags because the list just becomes too long to be useable. I liked the idea of Tags as a management tool, but like so many times before I will just go back to the file name workarounds that I have been using since 1988. They work because they were developed and tested by an actual user, me. Just toss a project number into the file name. Works every time, unlike the undocumented "features" that are apparently not tested.
But, if what I hear is true that Apple does not monitor these discussions, what was the point of writing this.
Would like to think they would look at these "discussions" as a resource, but....... -
FILE specified in CFHTTPPARAM tag not found
everything was working before, now i keep getting the following error:
FILE specified in CFHTTPPARAM tag not found
someone please help.
my code looks like this:
<cfhttp url="http://www.xxx.com/admin/upload-size.php" method="post">
<cfhttpparam type="formfield" name="bThumb" value="2" >
<cfhttpparam type="file" name="imgfile" file="#CFFILE.ServerDirectory#/#CFFILE.ServerFile#" >
</cfhttp>What's the value of #CFFILE.ServerDirectory#/#CFFILE.ServerFile#?
What does fileExists("#CFFILE.ServerDirectory#/#CFFILE.ServerFile#") return?
Is the file actually there?
Adam -
I upgraded from Elements 4.0 to 12.0, and everything seemed to upgrade correctly except the tag notes I created for people and places under the People and Places categories. Thankfully, the tag notes I created under the Events category transferred over, but I'm not looking forward to manually transferring over the info in the People and Places tag notes, so any suggestions would be much appreciated.
PSE13 introduced a new thumbnails display : the adapative view. It's active by default. The thumbnails are resized to fill entirely the Media section; the plus side is that it shows more thumbnails or bigger ones; that is very useful for visual browsing and searching. But it hides the texts (file name...) and the version sets icons.
Simply revert to the old 'detailed view' from the view menu or keep in mind the shortcut: Ctrl D. Your choice will stick next time. -
10 g 9.0.4 ear deploy error : localhome tag not supported
when i try deploy ear module with OEM i have :
Deployment failed: Nested exception Root Cause: local/local-home tag not supported in this version. local/local-home tag not supported in this versionI guess the question is, (I haven't found any documentation on it). What are the restriction to the size of an application that can be deployed in the OAS server.
I had heard that there was a bug that prevented apps of over 500meg from being deployed, but this is only 159meg.
Or are parameters to the java command line start up that will allow this app to be loaded?
Or alternately, where would I find specifications or parameters recommended for OAS standalone server startup?
Thanks
---John Putnam
Maybe you are looking for
-
Web Service With Dynamic URL (Very Basic Conceptual Question)
Hi everyone, I would like to employ JAX-WS to generate and publish a web service along with a web-based client which uses the service. The problem is: I want to deliver both the server (with its service) and the client to a customer, who will install
-
Duplex mismatch between N7k and 5508
Hi All, I met a duplex mismatch issue in our new DC. The port configuration on the N7k and controller is the same as in other DC Only difference is version of the NxOS on the N7k. On N7k 5.2(1) works On N7k 5.2(7) i get below logs : 2013 Aug 21 22:23
-
Use AppleScript or Automator (or both) to get Mail and add to a text file?
Hello all, I'm sorry if this is a duplicate of a well-known topic, I tried searching and couldn't see anything. I'm behind a proxy at work that blocks any kind of webmail access, but I'd like to be able to check my email while on a break or something
-
Packet Loss?? Need help!
Over the past week I've been getting massive problems when gaming online with iRacing. I get halfway through a race and then I get kicked due to packet loss. I did some ping tests and sure enough im losing between 2-5% of the total packets that were
-
Sign in requested every time I open firefox
Greetings: Although I ask Firefox to keep me signed in, [I check the box at the bottom of sign-in page], I must re-sign in regardless. What a pain. I'm in and out of e-mail 20 times a day. Any help???? I have Yahoo and have been using Firefox for ove