Default Doctype
Does anyone know how to change the default doctype of new
documents created in HomeSite?
Currently, all new docs use this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
I want to use
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
But I cannot find either a place to change the default or a
way to edit the current doctype. Tips?
Thanks,
Botch
Change your default template: Options > Settings >
Locations > Default template and then change to the HTML Strict
template (by default in C:\Program Files\Macromedia\HomeSite
5\Wizards\HTML\Default Template Strict.html). These are just HTML
pages so you can edit them to include anything you want in your
default template.
Similar Messages
-
Default document type for FB50L
Hello Guys,
When i am trying to post a document through T.Code FB50L with ledger group ZL (Non-Leading Ledger)
The t.code FB50L is picking DocType SA by default. I need a separate DocType ZL for posting to non leading ledger.
How do i default DocType for FB50L.
Regards,
SKHello AP,
I want to Default Document type for FB50L.
The config part, it is done.
Any how i the issue is closed. I can change the document type at the posting
Regards,
SK -
How do I change XMLNS in default document?
The default xlmns code for xhtml transitional is a little
abbreviated, and I'd like to have the longer version on my page in
the <html> tag automatically come up when I open a new page.
How do I do this?> Yes, I caught that and fixed it, but apparently not
before you got the
> wrong
> version. Sorry.
Please do not edit your posts at all. You will leave NNTP
users (like me)
flatfooted when you do (at least for the duration of Adobe's
support for
NNTP).
I'm not entirely sure which document you would need to edit
but there are
two of them on the Mac at these locations -
Macintosh HD :: Applications :: Adobe Dreamweaver CS4 ::
configuration ::
Document Types :: internal.html
Macintosh HD :: Applications :: Adobe Dreamweaver CS4 ::
configuration ::
Document Types :: NewDocuments :: Default.html
Please make backup copies first before changing them.
> I always use
> XHTML transitional and have that set as my default doc
type, but DW is
> inserting the abbreviated <html> tag, not the
extended one.
This is curious. What are the steps that you use to see this
happen? If
you have specified a default doctype in your preferences, DW
should adhere
to that specification.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"trixiesirisheyes" <[email protected]> wrote
in message
news:[email protected]...
> Yes, I caught that and fixed it, but apparently not
before you got the
> wrong
> version. Sorry.
>
> I'm on a Mac Pro (Intel), running 10.5.6, the latest OS.
>
> I went into the Configuration file->Document
Types->New Documents, as this
> other site said to. Apparently, that was the wrong place
to be because the
> file
> was locked and didn't have the tags I see all the time
anyway. What I need
> to
> change is the automatic insertion of the doc type and
<html> tag. I always
> use
> XHTML transitional and have that set as my default doc
type, but DW is
> inserting the abbreviated <html> tag, not the
extended one.
>
> Okay, if I go in at the user level, what would I change?
Document Types is
> not
> available at the user level. I'm not even sure that's
what needs to be
> changed.
>
> I appreciate your help on this.
> -
Question on doctypes, quirks mode etc
I notice from another thread that someone suggests a doc type
of:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
Yet the doc type DW8 inserts as default into my web pages is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
Can someone please explain the difference and which is the
right one? If the DW8 default (above) is incorrect, what should all
my docs be displaying at the top?
Thanks!> Yet the doc type DW8 inserts as default into my web
pages is:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
You can change the default doctype in DW8.
The difference is this -
The former is for HTML4.01 Loose code. This means you will
use deprecated
attributes (like border="0", or <td height="20"
width="14"), or even
deprecated tags (like <font>, or <center>) and
your page will still
validate.
The latter is for XHTML 1.0 Loose code. This means that you
will use
deprecated attributes *and* XHTML-type tags, e.g., <img
/>, or <br />, or
<hr />, rather than the corresponding HTML-type
versions (<img>, <br>, and
<hr>).
Adding the desired doctype to your page ONLY affects the code
hints that are
offered by DW when you work in code view, or the way that DW
closes your
tags when you have tag closing enabled in PREFERENCES. It
won't prevent you
from using methods or coding that doesn't fit that doctype.
Further, the doctype only tells a) the validator (whether DW
or some 3rd
party validator - like
http://validator.w3.org) how to
validate the page,
and b) the browser whether to render the page in quirks
(bugwards) mode, or
standards mode (this is called 'doctype switching' -
http://www.ericmeyeroncss.com/bonus/render-mode.html)
The best rule of thumb is this - use a doctype that is
consistent with your
ability to code according to the doctype's requirements.
This, perforce,
requires that you *know* what those standards are.... 8)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Cactus Woman" <[email protected]> wrote in
message
news:[email protected]...
>I notice from another thread that someone suggests a doc
type of:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
> "
http://www.w3.org/TR/html4/loose.dtd">
> )
>
> Yet the doc type DW8 inserts as default into my web
pages is:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
>
> Can someone please explain the difference and which is
the right one? If
> the
> DW8 default (above) is incorrect, what should all my
docs be displaying at
> the
> top?
>
> Thanks!
> -
Is there a way to make an HTML or CSS Dreamweaver template (not a website template)?
This might be confusing. I'm not looking for a way to create a website template but a layout/DocType template that has an HTML skeleton in place. The reason I'm asking is that I do a lot of email designs in Dreamweaver and I want to get a template in place but all I've found are these time-consuming website template tutorials that don't serve my needs.
What I want is to be able to create something like the DW's default DocType templates that have the initial <html><head></head><body></body></html> etc.... because I can then just start adding in content and change the HTML/CSS attributes (emails require a lot of inline css) as needed.
So far, I've been using an HTML document that I'd like to make into a template but sometimes I end up saving over it and then have to recreate it...which gets old real fast. This is why having an initial template would eliminate the worry of saving over my makeshift HTML template. Any insight or advice would be greatly appreciated!
Thanks for the help!Snippets is a good idea. But you can also do this with a template. Each time you use FILE | New > Page from Template, as you would to create a new child page, you have the option to enable or disable an option called "Update page when template changes". If that option is DISABLED (i.e., unchecked), then the child page will be created but with NO TEMPLATE MARKUP (i.e., no editable/non-editable regions)! Seems that's exactly what you want, no?
-
Error in function PTCard.Store (): -2147467259
hello,
<p>
I am trying to add a card to the knowledge directory using API. I call <strong>IPTCard.Store()</strong> method to store the card. below is my code.
public void createCard(int folderParent, String cardName){
IPTCatalog catalog = session.GetCatalog();
IPTCard card = catalog.CreateCard();
card.SetName(cardName);
int[] parentIds = {folderParent};
card.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS, parentIds);
card.SetDescription("test description.");
card.Store();
But when i call "IPTCard.Store()" method, it returns the following error;
</p>
<strong> com.plumtree.openfoundation.util.XPException: Error in function PTCard.Store (): -2147467259 - Failed to store card: storing cards in DB failed
</strong>does anybody have an idea, why this error appears ??
thank you for ur openion in adv.
<p>
</p>I can't tell from the error, but I suspect you will need to associate the card with a data source (content upload or similar) before it can be stored in the database (PTCard.Store).
Since I don't remember exactly how I did this at one point, I have provided some code below that I hacked from the API and changed around. It sets some extra stuff related to the file upload data source, but you can probably use some of it to piece together data source info. Here are some relevant lines that you'll probably need to fudge with:
IPTDataSource ptDS = (IPTDataSource)
session.GetDataSources().Open(nDataSourceID, false);
string strCardPropBagXML = pbagCardProp.SaveToXML(0);
ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
And here's the rest of the code it was ripped from...
// Functions in this region were somewhat ripped from the UI source (KD submission space)
// they have been slightly cleaned and commented for clarity (actual card submission happens here)
public static IPTCard SubmitCard(int dataSourceId, int parentFolderId, string name, string description, string path, string type, string docId, string duServer, string duId, SortedList propertyList, IPTSession session, AActivitySpace space) {
IXPPropertyBag pbag = CreateCardSubmitUploadPropertyBag(path, type, docId);
return SubmitCardWithPropertyBag(parentFolderId, dataSourceId, name, description, duServer, duId, false, propertyList, pbag, session, space);
public static IPTCard SubmitCardWithPropertyBag(int parentFolderId, int nDataSourceID, string strCardName, string strCardDescription, string duServer, string duId, bool approved, SortedList propertyList, IXPPropertyBag pbagCardProp, IPTSession session, AActivitySpace space) {
// Set Parent Folder
int[] arFolderIDs = new int[] {parentFolderId};
// set language to be that of the default locale
// Retrieve the SearchLocaleVarPack to verify the language
IApplication application = ApplicationManager.GetInstance()
.GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
PTSearchLocaleVarPack vpPTSearchLocales = (PTSearchLocaleVarPack) application.GetVarPackManager()
.GetVariablePackage(PTSearchLocaleVarPack.VARPACK_ID);
// Retrieve the user's default language:
string strCardLanguageCode = (string) PTPersonalSettingsHelper.GetPersonalSettingValue(PersonalSettingNames.LANGUAGE,
space);
// default to english if invalid language
if (false == vpPTSearchLocales.IsValidLanguage(strCardLanguageCode)) {
strCardLanguageCode = DirModel.ENGLISH_LOCALE_CODE;
return SubmitCardWithPropertyBag(arFolderIDs, strCardLanguageCode, 0,
nDataSourceID, pbagCardProp, strCardName, strCardDescription, duServer, duId, approved, propertyList, session, space);
public static IPTCard SubmitCardWithPropertyBag(int[] arFolderIDs,
string strLanguage, int nDocTypeID, int nDataSourceID,
IXPPropertyBag pbagCardProp, string strCardName,
string strCardDescription, string duId, string duServer, bool approved,
SortedList propertyList, IPTSession session, AActivitySpace space) {
// create the card
IPTCard ptCard = session.GetCatalog().CreateCard();
ptCard.SetContentLanguage(strLanguage);
// Parent IDs can be a single value or an array of values
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS,
arFolderIDs);
// if the index server isn't up, don't try to index, create the card
// and inform the user later
IXPPropertyBag statusBag = session.GetCatalog().GetSearchServerStatus();
SearchServerStatusInfo statusInfo = new SearchServerStatusInfo(statusBag, "INDEXSTATUS");
if (XPStringUtility.EqualsIgnoreCase(statusInfo.connectStatus,"OK")) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 1);
} else {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 0);
// if the card is approved, we set this flag
if (approved) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INSERTAPPROVED, 1);
/* inherit parent folder ACLs */
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INHERITPARENTFOLDERPERMISSIONS, 1);
// Set the crawler tag to be "Manual"
ptCard.SetCrawlerTag(space.GetString(1635, "ptmsgs_portalbrowsingmsgs"));
if ((null != strCardName) && (strCardName.Length > 0)) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITENAME, 0);
ptCard.SetName(strCardName);
if ((null != strCardDescription) && (strCardDescription.Length > 0)) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITEDESCRIPTION, 0);
ptCard.SetDescription(strCardDescription);
ptCard.SetDocumentLocation(pbagCardProp);
ptCard.SetDataSourceID(nDataSourceID);
// Get the DocumentTypeMap
if (0 == nDocTypeID) {
// Determine Default
IPTDocumentTypeMap ptMap;
ptMap = (IPTDocumentTypeMap) session.OpenGlobalObject(PT_GLOBALOBJECTS.PT_GLOBAL_DOCUMENTTYPEMAP,
false);
ptMap.Initialize(session);
nDocTypeID = ptMap.LookupByPropBag(pbagCardProp);
// If no default DocType was found,
// determine what default DocType should be used based on the server config setting
if (0 == nDocTypeID) {
IApplication application = ApplicationManager.GetInstance()
.GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
PTDirPrefsVarPack vpPTDirPrefs = (PTDirPrefsVarPack) application.GetVarPackManager()
.GetVariablePackage(PTDirPrefsVarPack.VARPACK_ID);
nDocTypeID = vpPTDirPrefs.GetDefaultDocType();
IPTDataSource ptDS = (IPTDataSource) session.GetDataSources().Open(nDataSourceID, false);
string strCardPropBagXML = pbagCardProp.SaveToXML(0);
ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
// set file upload properties
/* get the card and it's property values */
IPTCardPropertyValues ptPropValues = ptCard.GetPropertyValues();
/* Document Upload ID */
IPTCardPropertyValue ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUID);
ptValue.SetOverrideValue(duId); /* make this an override value so it is not lost on a re-index */
/* Document Upload Server */
ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUSERVER);
ptValue.SetOverrideValue(duServer); /* make this an override value so it is not lost on a re-index */
/* Custom Property Settings */
if (propertyList.Count > 0) {
foreach (DictionaryEntry de in propertyList) {
try {
int propId = (int) de.Key;
ptValue = ptPropValues.GetItem(propId);
if (null == ptValue) { ptValue = ptPropValues.Add(propId); }
ptValue.SetOverrideValue(de.Value);
} catch (Exception) {
// ignore exceptions, maybe the wrong property or card
//store the card
ptCard.Store();
ptCard.UnlockObject();
// approve or unapprove the card
/* 2 for approve, 1 for unapprove */
//session.GetCatalog().SetApprovalStateByCard(ptCard.GetObjectID(), (approved ? 2 : 1), arFolderIDs );
return ptCard;
public static IXPPropertyBag CreateCardSubmitUploadPropertyBag(string path, string type, string _docID) {
IXPPropertyBag pbagCardProp;
pbagCardProp = PortalObjectsFactory.CreatePropertyBag();
pbagCardProp.Write("PTC_PBAGFORMAT", 2000);
pbagCardProp.Write("PTC_DTM_SECT", XPConvert.ToInteger(_type));
pbagCardProp.Write("PTC_UNIQUE", _path);
pbagCardProp.Write("PTC_DOC_ID", _docID);
return pbagCardProp;
} -
What is the best way to implement default values stored in a DB table?
[JHeadstart 10.1.3 build 78]
[JDeveloper 10.1.3 SU4]
We are struggling on how to best implement default values that are stored in a DB table. What we have is a database table with (CODE_TYPE, TABLE_NAME, COLUMN_NAME, DEFAULT_VALUE) as columns. This way the application administrator can administer default values himself/herself. Now we need to find the best way to set these table supplied default values in new rows. Globally we are aware of two ways:
- override create() method on VO
- probably create a View Object on top of the database table with default values (we are capable of transposing the table and return exactly one row with a column for each default value) and use JHeadstarts item property 'Default Value'.
We prefer the latter, since this is more declarative, however we struggle with the EL expression needed to indicate the default value.
If we have a VO named "DefaultValues" with a SELECT on a view on top of our database table (transposed) returning exactly one row, let us say:
SELECT orglanguage, orgtype, orgstatus [...]
FROM v_default_values
--> returning exactly one row
and we want an EL expression on an item that needs the value from orglanguage. What will the EL expression be? Something like:
#{data.DefaultValuesPageDef.currentrow.orglanguage.inputValue}? We tried several things but they do not work. A static default value works, but every EL expression so far does not. We know that using "data" can be dangerous, but thought JHeadstart takes care of preparing the other Page Definitions, so it might be possible when you use JHeadstart.
Or is overriding the create() method the preferred way? Or do we have to look at a Managed Bean for our default values that we refer to from EL (let us say MyAppDefaultValuesBean) and in that case: how do you associate a Managed Bean with a VO?
Any help would be appreciated. Apart from these default values, things are going rather well in this first J2EE/JHS project for us!
ToineSteven,
Thanks for the reply. Unfortunately whatever we try, we cannot get it to work. We started looking at the second option (since we do need default values also in table lay-out new rows). We created a DefaultValues ViewObject, added it to the Application Module, added an EL expressiona to the Default Display Value property (replacing your ending ")" with a "}" offcourse ;-)), ran the JAG so that a page definition was generated for DefaultValues and we managed to get it prepared when loading for example the Organisation's jspx page. However no default value appears in a new row (not in Form, not in Table layout).
I then created a quick application on top of the HR schema, added a DefaultValues ViewObject using one calculated attribute (set Salary fixed to 1000), added the EL expression to the Salary Default Display Value property in the Employees Group, made sure the DefaultValuesPageDef is prepared by adding it to the parameter section and I see it getting prepared. I also see a managed Bean is created in the Employees-bean.xml.
In the Embedded OC4J log we see:
16:01:01 DEBUG (JhsPageLifecycle) -executing onCreate
16:01:01 DEBUG (JhsPageLifecycle) -CreateEmployeesDefaultValues bean found, applying default values to new row
2006-08-02 16:01:01.825 WARNING [ADFc] Warning: No Method onCreateEmployees and no actionBinding CreateEmployees found.
Is it this warning we should be worried about? Since no default value is created.
The managed bean (Employees-beans.xml) looks like:
<?xml version="1.0" encoding="windows-1252"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
<managed-bean>
<managed-bean-name>CreateEmployeesDefaultValues</managed-bean-name>
<managed-bean-class>oracle.jheadstart.controller.jsf.bean.DefaultValuesBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>iteratorBinding</property-name>
<value>#{bindings.EmployeesIterator}</value>
</managed-property>
<managed-property>
<property-name>defaultValues</property-name>
<map-entries>
<map-entry>
<key>Salary</key>
<value>#{data.DefaultValuesPageDef.DefaultValuesIterator.currentRow.Salary}</value>
</map-entry>
</map-entries>
</managed-property>
<managed-property>
<property-name>actionResult</property-name>
<value>CreateEmployees</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>searchEmployees</managed-bean-name>
<managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsSearchBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<value>#{data.EmployeesPageDef}</value>
</managed-property>
<managed-property>
<property-name>searchBinding</property-name>
<value>#{data.EmployeesPageDef.advancedSearchEmployees}</value>
</managed-property>
<managed-property>
<property-name>searchAttribute</property-name>
<value>EmployeeId</value>
</managed-property>
<managed-property>
<property-name>dataCollection</property-name>
<value>EmployeesView1</value>
</managed-property>
<managed-property>
<property-name>autoquery</property-name>
<value>true</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>EmployeesCollectionModel</managed-bean-name>
<managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsCollectionModel</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>jhsPageLifecycle</property-name>
<value>#{jhsPageLifecycle}</value>
</managed-property>
<managed-property>
<property-name>bindings</property-name>
<value>#{bindings}</value>
</managed-property>
<managed-property>
<property-name>rangeBinding</property-name>
<value>#{bindings.EmployeesTable}</value>
</managed-property>
<managed-property>
<property-name>defaultValues</property-name>
<value>#{CreateEmployeesDefaultValues.defaultValues}</value>
</managed-property>
</managed-bean>
</faces-config>
This is the DefaultValues.xml:
<?xml version='1.0' encoding='windows-1252' ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<ViewObject
Name="DefaultValues"
BindingStyle="OracleName"
CustomQuery="true"
ComponentClass="hr.model.DefaultValuesImpl"
UseGlueCode="false" >
<DesignTime>
<Attr Name="_version" Value="10.1.3.36.73" />
<Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess" />
</DesignTime>
<ViewAttribute
Name="Salary"
IsUpdateable="false"
IsPersistent="false"
Precision="255"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SALARY"
Expression="1000"
SQLType="VARCHAR" >
</ViewAttribute>
</ViewObject>
The PageDef for Defaultvalues is like:
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="10.1.3.36.73" id="DefaultValuesPageDef"
Package="hr.view.pagedefs" EnableTokenValidation="false">
<parameters/>
<executables>
<iterator id="DefaultValuesIterator"
Binds="AppModuleDataControl.DefaultValues1"
DataControl="AppModuleDataControl" RangeSize="10"/>
</executables>
<bindings>
<attributeValues id="DefaultValuesSalary"
IterBinding="DefaultValuesIterator">
<AttrNames>
<Item Value="Salary"/>
</AttrNames>
</attributeValues>
<table id="DefaultValuesTable" IterBinding="DefaultValuesIterator">
<AttrNames>
<Item Value="Salary"/>
</AttrNames>
</table>
<action id="FirstDefaultValues" IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="12"/>
<action id="PreviousDefaultValues" IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="11"/>
<action id="NextDefaultValues" IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="10"/>
<action id="LastDefaultValues" IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="13"/>
<methodAction RequiresUpdateModel="true" Action="999"
id="advancedSearchDefaultValues"
IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl"
InstanceName="AppModuleDataControl.dataProvider"
MethodName="advancedSearch"
ReturnName="AppModuleDataControl.methodResults.AppModuleDataControl_dataProvider_advancedSearch_result"
IsViewObjectMethod="false">
<NamedData NDName="viewObjectUsage"
NDValue="#{searchDefaultValues.dataCollection}"
NDType="java.lang.String"/>
<NamedData NDName="arguments" NDValue="#{searchDefaultValues.arguments}"
NDType="java.util.ArrayList"/>
<NamedData NDName="allConditionsMet"
NDValue="#{searchDefaultValues.allConditionsMet}"
NDType="java.lang.Boolean"/>
</methodAction>
<action id="setCurrentRowWithKeyDefaultValues"
IterBinding="DefaultValuesIterator"
InstanceName="AppModuleDataControl.DefaultValues1"
DataControl="AppModuleDataControl" RequiresUpdateModel="false"
Action="96">
<NamedData NDName="rowKeyStr" NDValue="#{row.rowKeyStr}"
NDType="java.lang.String"/>
</action>
<action id="CreateDefaultValues" IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="40"/>
<action id="DeleteDefaultValues" IterBinding="DefaultValuesIterator"
DataControl="AppModuleDataControl" RequiresUpdateModel="false"
Action="30"/>
<action id="Commit" RequiresUpdateModel="true" Action="100"
DataControl="AppModuleDataControl"/>
<action id="Rollback" RequiresUpdateModel="false" Action="101"
DataControl="AppModuleDataControl"/>
</bindings>
</pageDefinition>
We do not understand what is wrong and why the default values do not get created in the new rows (and it is taking us far too much time). Any chance the EL expression is still wrong? It is a shame that any syntax errors in EL expressions are not visible in some logfile. It looks like when EL expressions are wrong, they are ignored instead of raising an error...
Toine -
Default mail client setting?
Since my desktop software was upgraded, everytime I open it...I get the message that "Either there is no defaul mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client."
Problem is...I opened up MS Outlook and it **is** set as the default mail client.....so what gives?
Solved!
Go to Solution.Uninstall Desktop Manager:
http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=KB02206&slic...
Obtain the latest DM software:
http://na.blackberry.com/eng/services/desktop/
Launch your default email client.
Reinstall DM from the latest download.
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Archivelink - Document Class * - All docs stored with text/x-docType mime
Hi,
I have configured an archivelink document type (OAC2) to use document class *, ie it can accept any file and not restricted to a particular type. Document is being stored on archive server with a mime type of text/x-docType and therefore when you try retrieve it, SAP GUI isnt able to determine the mime type and only offers the 'Save As' dialog box, ie doesnt open in the SAP Viewer.
I have previously used this * configuration on another clients system and it works correctly, the file is stored with the correct mime type and therefore is retrieved correctly.
Any ideas why using the * config is forcing the mime type to text/x-docType?
Thanks,
MarkHi Mark
Transaction SPRO - SAP Reference IMG - SAP Netweaver - Application Server - Basis Services - ArchiveLink - Basic Customizing - Edit Document Classes
The very first entry will be * and the MIME type is by default text/x-docType. -
Spry tabbed panles default hide
Hello,
Im with some problems with the spry content tab. What I need is to:
as default hide the content of the spry tabbed panels and also hide on mouse out
please advise if you needto check my codes and site
thanksI see that time has passed and you have not gotten a response to your question.
What exactly is to be hidden when the mouse is not hovering; what is to be showing when the mouse IS hovering?
It is possible that the solution will not be to use Spry Tabbed Panels, which would require a lot of adapting.
For a simple solution, if you don't mind the "contents" to be lined up next to each other, float divs next to each other. Set a height that encompasses your title but make the overflow: hidden. Add a css style that makes overflow: visible;
Here is some simple code for that:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.change {
float: left;
height: 2.5em;
width: 100px;
overflow: hidden;
.change:hover {
overflow: visible;
</style>
</head>
<body><div class="change"><h3>Title</h3>
<p>Here is a basic element</p></div>
<div class="change"><h3>Title</h3>
<p>Here is a basic element</p></div>
<div class="change"><h3>Title</h3>
<p>Here is a basic element</p></div>
<div class="change"><h3>Title</h3>
<p>Here is a basic element</p></div></body>
</html>
I fiddled around a bit with the tabbed panels, but couldn't find an easy way to make them appear and disappear on hover.
Your other possibility is to do disjoint rollovers using the Show-Hide behavior, but it seems difficult to have the "content" start out invisible.
I hope you have solved the problem by now, or that these suggestions give you some ideas.
Beth -
JAXP seems to be stripping off DOCTYPE tag
When I parse a document, the DOCTYPE tag is getting stripped off.
To parse, I read the document from file and it looks like :
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j">
After parsing, I dump it to the console and it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration debug="null" threshold="null" xmlns:log4j="http://jakarta.apache.org/log4j">
The mystery the output has two attributes set to defaults, the only the parser knows this is by reading the dtd. But why does not include the DOCTYPE tag?
The parsing code snippet is:
Document doc = null;
DocumentBuilderFactory dbFactory = null;
dbFactory = DocumentBuilderFactory.newInstance();
dbFactory.setNamespaceAware(true);
DocumentBuilder db = dbFactory.newDocumentBuilder();
db.setEntityResolver(new LogDTDResolver());
doc = db.parse(is); // is is an InputStreamAnyone have a clue? Is there a property I am missing. I have searched for the complete set of jaxp properties, but I can't find one.
Thanks for any help.So it looks like log4j is doing its own parsing and it requires the DTD. Don't know how (or why) it does that.
You call the setOutputProperty() method of the Transformer. This is designed to configure the Transformer with properties that are normally set in the <xsl:output> element of an XSL transformation. The properties you need are "doctype-system" and maybe "doctype-public".
You're quite right, it isn't obvious. That's what happens when systems are designed by architects who believe in abstraction too much. -
WebElements, Custom HTML and missing !DOCTYPE
In our Crystal Reports, we are using a combination of the WebElements library along with a custom HTML function library to display advanced HTML elements for parameter selection. Our custom HTML library contains some JQUERY UI components. We are using IE7. Our BO environment is R3 SP4.
The issue that I have encountered is that the JQUERY UI components require a valid <!DOCTYPE> specification to render correctly - such as <!DOCTYPE HTML> or <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> but from my research, the Crystal Report Viewer appears to not be adding a valid <!DOCTYPE> specification to its HTML stream (which most modern HTML always includes).
Without the presence of a valid <!DOCTYPE> specification, IE7 is rendering the HTML in a "BackCompat" mode instead of a "CSS1Compat" mode.
Any help in overcoming this issue - or getting SAP to add <!DOCTYPE> to the Crystal Report viewer - would be greatly
appreciated!Hello Jamie,
thank you alot for your suggestions. In detail i am facing the same problem described in this thread:
Setting the HTML DOCTYPE with WAD?
This thread and also my problem deals with DOCTYPE problems within BW 3.5 Web Application Designer using standard web templates. The websites are generated/rendered by a class called CL_RSR_WWW_ITEM_TEMPLATE which inserts javascript before the DOCTYPE tag.
One solution would be to change the standard class by:
1. Creating a new class inheriting from CL_RSR_WWW_ITEM_TEMPLATE
2. Overload the method RENDER, copy all code and concatenate at the end of the method the DOCTYPE element to the member n_sx_output-string
3. Adjust the setting of the default template within the table RSRRENDERERATR for the key REN_NAME=CL_RSR_WWW_ITEM_TEMPLATE, ATTR_NAME=NAME. Change the field VALUE from "CL_RSR_WWW_ITEM_TEMPLATE" to the new class.
This solution should work, but is kind of crappy and the risk for side effects on other renderings is too high.
I was not able to find the note mentioned in the posting of Joel Blackthorne. What does "customer note" mean?
I will also post this message within the other thread, because it is a little off topic here, i guess. Sorry for that.
Thanks again, Jamie,
Regards Felix -
Revision: 15920
Revision: 15920
Author: [email protected]
Date: 2010-05-06 02:11:21 -0700 (Thu, 06 May 2010)
Log Message:
Adding the use of Spark component into ModuleC to add the scenario where a Module must be able to get its default spark skin (currently this is failing due to a bug in the Module Lib)
Modified Paths:
cairngorm3/trunk/libraries/ModuleTest/src/example/moduleC/ModuleC.mxmlAs the server.xml is big enough, I took the minimum portion of it. Hope u can proceed with it.
<!-- Tomcat Root Context -->
<Context path="" docBase="ROOT" debug="0"/>
<!-- New contexts -->
<Context path="/xyz" docBase="pathTo_xyz" debug="0" crossContext="true"/>
<Context path="/pqr" docBase="pathTo_pqr" debug="0" crossContext="true"/>
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
You should also provide a WEB-INF folder under pqr or xyz folder.
You should also provide a web.xml file under each WEB-INF folder.
The minimal web.xml is
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
That's it. Try it out. Hope it is OK.
Hafizur Rahman
SCJP -
Certain doctypes, especially the more recent ones, inherit
alignment in a
cell from the ones they're nested in. For instance :
<table>
<tr>
<td align="right">
<table>
<tr>
<td>
Test
</td>
</tr>
</table>
</td>
</tr>
</table>
Table will be right-aligned, even though it's in a cell
that's set to
default (nothing). Old behavior was that this would
automatically
left-align. New behavior is that all nested tables will
inherit the
alignment of the outer table.
Isn't that terribly inefficient? The most common use is
left-alignment. The
new way (I forget which doctype it is) forces me to add align
tags to
left-justify everything. That can amount to a significant
amount of
unnecessary code.
What's the recommended thing to do in this case?<div style="width:200px;background-color:#CCC;">
<p style="margin:0 auto;">Title Goes Here</p>
<form id="form1" method="post" action=""
style="margin:0;padding:0;">
<div style="width:50%;float:left;">
<input type="checkbox" name="checkbox" value="checkbox"
id="checkbox"
style="float:left;clear:left;" />
<label for="checkbox"
style="float:left;margin-left:3px;width:60px;">Option
1</label>
<input type="checkbox" name="checkbox2" value="checkbox"
id="checkbox2" style="float:left;clear:left;" />
<label for="checkbox2"
style="float:left;margin-left:3px;width:60px;">Option
2</label>
</div>
<div style="width:50%;float:left;">
<input type="checkbox" name="checkbox3" value="checkbox"
id="checkbox3" style="float:left;clear:left;" />
<label for="checkbox3"
style="float:left;margin-left:3px;width:60px;">Option
3</label>
<input type="checkbox" name="checkbox4" value="checkbox"
id="checkbox4" style="float:left;clear:left;" />
<label for="checkbox4"
style="float:left;margin-left:3px;width:60px;">Option
4</label>
</div>
</form>
<hr
style="height:0;line-height:0.0;font-size:0;margin:0;padding:0;visibility:hidden;clear:bo th"
/>
</div>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"R. Jay" <[email protected]> wrote in message
news:[email protected]...
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>>
>> Stop using tables! 8)
>
> I've wanted to, believe me... but every time I
approached even the most
> basic table-like task, the same people who urged me to
go all-div/all-css
> just told me I couldn't do this, couldn't do that...
honestly, if it can't
> do what tables can do, why do people keep saying to drop
tables? ;)
>
> I'll give you an example :
>
> <table bgcolor="#CCCCCC">
> <tr>
> <td colspan="2">Title goes here </td>
> </tr>
> <tr>
> <td width="50%" valign="top"><table border="0"
cellspacing="0"
> cellpadding="0">
> <tr>
> <td><input type="checkbox" /></td>
> <td>Option 1 </td>
> </tr>
> <tr>
> <td><input type="checkbox" /></td>
> <td>Option 2 </td>
> </tr>
> </table></td>
> <td width="50%" valign="top"><table border="0"
cellspacing="0"
> cellpadding="0">
> <tr>
> <td><input type="checkbox" /></td>
> <td>Option 3 </td>
> </tr>
> <tr>
> <td><input type="checkbox" /></td>
> <td>Option 4 </td>
> </tr>
> </table></td>
> </tr>
> </table>
>
> Paste this in DW and look at what it is, and what it
does. The simplest of
> tables. A title cell, two columns, and two checkbox
options per column.
>
> Advantages :
> - valign=top ensures that if one column goes to 3 or
more options, the
> other remains top-justified.
> - width=50% ensures that no matter how big one of the
column gets, the
> other is just as big (symmetry).
> - The background color covers the entire thing, no
matter how tall or wide
> it is, but I can also color each individual option row
> - Using nested tables means that if the outer table is
in a confined area,
> and the option names are too long than the column will
allow, it will wrap
> to the right of the checkbox - not under it.
> - Everything is relative, not absolute... I can add
anything I want above
> or below this table, and nothing will need re-adjusting.
> - Fonts can go bigger or smaller and the table will
adjust.
> - etc.
>
> Could you send me code that will do all of the above and
be just as easy
> for me to edit in DW? If so, you may have a convert on
your hands. Using
> as few chrs as possible, send it to me the same way I
just sent you this
> one, and I will paste it in DW and study it closely.
It's by comparing the
> two models side by side that I will be able to finally
leave tables
> behind.
>
> But so far, everytime I've asked someone about whatever
obstacles I ran
> into using divs and layers, they had no idea how to
solve it. That turned
> me off to the idea of leaving tables behind. That's why
seeing a
> functional example -- instead of endless tutorials --
would get me to
> consider the idea seriously again... enough to get my
nose into those
> tutorials.
> -
How to parse XML document with default namespace with JDOM XPath
Hi All,
I am having difficulty parsing using Saxon and TagSoup parser on a namespace html document. The relevant content of this document are as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="container">
<div id="content">
<table class="sresults">
<tr>
<td>
<a href="http://www.abc.com/areas" title="Hollywood, CA">hollywood</a>
</td>
<td>
<a href="http://www.abc.com/areas" title="San Jose, CA">san jose</a>
</td>
<td>
<a href="http://www.abc.com/areas" title="San Francisco, CA">san francisco</a>
</td>
<td>
<a href="http://www.abc.com/areas" title="San Diego, CA">San diego</a>
</td>
</tr>
</body>
</html>
Below is the relevant code snippets illustrates how I have attempted to retrieve the contents (value of <a>):
import java.util.*;
import org.jdom.*;
import org.jdom.xpath.*;
import org.saxpath.*;
import org.ccil.cowan.tagsoup.Parser;
( 1 ) frInHtml = new FileReader("C:\\Tmp\\ABC.html");
( 2 ) brInHtml = new BufferedReader(frInHtml);
( 3 ) // SAXBuilder saxBuilder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
( 4 ) SAXBuilder saxBuilder = new SAXBuilder("org.ccil.cowan.tagsoup.Parser");
( 5 ) org.jdom.Document jdomDocument = saxbuilder.build(brInHtml);
( 6 ) XPath xpath = XPath.newInstance("/ns:html/ns:body/ns:div[@id='container']/ns:div[@id='content']/ns:table[@class='sresults']/ns:tr/ns:td/ns:a");
( 7 ) xpath.addNamespace("ns", "http://www.w3.org/1999/xhtml");
( 8 ) java.util.List list = (java.util.List) (xpath.selectNodes(jdomDocument));
( 9 ) Iterator iterator = list.iterator();
( 10 ) while (iterator.hasNext())
( 11 ) {
( 12 ) Object object = iterator.next();
( 13 ) // if (object instanceof Element)
( 14 ) // System.out.println(((Element)object).getTextNormalize());
( 15 ) if (object instanceof Content)
( 16 ) System.out.println(((Content)object).getValue());
.This program would work on the same document without the default namespace, hence, it would not be necessary to include ns prefix along in the XPath statements (line 6-7) either. Moreover, I was using org.apache.xerces.parsers.SAXParser to have successfully retrieve content of <a> from the same document without default namespace in the past.
I would like to achieve the following objectives if possible:
( i ) Exclude DTD and namespace in order to simplifying the parsing process. How this could be done?
( ii ) If this is not possible, how to include it in XPath statements (line 6-7) so that the value of <a> is picked up correctly?
( iii ) Would changing from org.apache.xerces.parsers.SAXParser to org.ccil.cowan.tagsoup.Parser make any difference as far as using XPath is concerned?
( iv ) Failing to exlude DTD, how to change the lookup of a PUBLIC DTD to a local SYSTEM one and include a local DTD for reference?
I am running JDK 1.6.0_06, Netbeans 6.1, JDOM 1.1, Saxon6-5-5, Tagsoup 1.2 on Windows XP platform.
Any assistance would be appreciated.
Thanks in advance,
JackHere's an example of using a custom EntityResolver with the standard DocumentBuilder provided by the JDK. The code may or may not be similar for the parsers that you're using.
import java.io.IOException;
import java.io.StringReader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class ParseExamples
private final static String COMMON_XML
= "<music>"
+ "<artist name=\"Anderson, Laurie\">"
+ "<album>Big Science</album>"
+ "<album>Strange Angels</album>"
+ "</artist>"
+ "<artist name=\"Fine Young Cannibals\">"
+ "<album>The Raw & The Cooked</album>"
+ "</artist>"
+ "</music>";
private final static String COMMON_DTD
= "<!ELEMENT music (artist*)>"
+ "<!ELEMENT artist (album+)>"
+ "<!ELEMENT album (#PCDATA)>"
+ "<!ATTLIST artist name CDATA #REQUIRED>";
public static void main(String[] argv)
throws Exception
// this version uses just a SYSTEM identifier - note that it gets turned
// into a file: URL
String xml = "<!DOCTYPE music SYSTEM \"bar\">"
+ COMMON_XML;
// this version uses both PUBLIC and SYSTEM identifiers; the SYSTEM ID
// gets munged, the PUBLIC ID doesn't
// String xml = "<!DOCTYPE music PUBLIC \"foo\" \"bar\">"
// + COMMON_XML;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(true);
DocumentBuilder db = dbf.newDocumentBuilder();
db.setEntityResolver(new EntityResolver()
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException, IOException
System.out.println("publicId = " + publicId);
System.out.println("systemId = " + systemId);
return new InputSource(new StringReader(COMMON_DTD));
Document dom = db.parse(new InputSource(new StringReader(xml)));
System.out.println("root element name = " + dom.getDocumentElement().getNodeName());
}
Maybe you are looking for
-
IPod touch 4th Generation Battery Life Is Too Short!
Ok whats going on is that after 10 to ll hours the battery is at 20%. I dont even use my iPod that MUCH thats right not that often. Only time I use it is to sometimes play a game for like 10 to 20 minutes at most. Maybe watch a video or two maybe thr
-
Please help....ilife has crashed after downloading Lion
Hi all I have just finished downloading Lion to my desktop and on launching it I note a no entry sign is fixed over my icons for 'W' 'X' 'E' (ilife?) The error message when I attempt to open them says: "you can't open application Microsoft Excel beca
-
Viewing artwork in cover flow view...
I seem to be one of the few users of iTunes that is truly delighted with the latest release, albeit starting afresh with 7.0.1 on a new installation of OSX. That said, I find that in the cover flow view artwork downloaded from the iTunes store displa
-
Problem translating click/highlight boxes when copy and pasting slides from another project
I'm baffled by this problem as it doesn't seem to make sense. I opened up a new project to record a simulation in and when I was done, I copy and pasted all the slides into the appropriate section in my "Master Project" if you will. After the paste,
-
Hi, I am extracting the contents of a Report text file to report object and then zipping it. I have to unzip the textfile and then read it.But i find the contents of Report text file and the unzipped text file to be different... How does it happen??