Working with MXML Components
I have a list box defined in an mxml component file. Then in
the mxml application file I point to the component file by
specifying the directory as
xmlns:com="com.flexsolutions.chapter9.controls.*" within the
mx:application tag. I get an error message from flex stating "could
not resolve <com:TreeMenu> to a component", what am I doing
wrong here? Any help will be appreciated
Hi,
Can you please check out if the component file is in correct
location.
I tried creating the component file (TreeMenu.mxml) under
src\com\flexsolutions\chapter9\controls\TreeMenu.mxml and then
included in component in the main application file using
xmlns:controls="com.flexsolutions.chapter9.controls.*" as an
attribute for the Application tag and used the component like
<controls:TreeMenu/>
Hope this helps.
Similar Messages
-
Architecting an Application With MXML Components
I have an application that has gotten lengthy and I want to
simplify it by architecting the Main Application with custom MXML
Components. The application as it is currently architected works
perfectly.
Currently, the application consists of "Canvas" containers
along Top and Left Side holding Navigation Buttons. The main
(changing) sections of the application will consist of a
"ViewStack" container holding a number of "Canvas" containers
stacked on top of one another. The navigation buttons along the top
and left side, when clicked, display in turn the content of each of
the several stacked "Canvas" containers. Because of the number of
stacked "Canvas" containers within the "ViewStack" and the content
of each, the main Application source code has become very long and
unwieldy, thus the need to use custom components for each of the
"Canvas" containers in the "Stack" and referencing them in the main
Application page.
I have tried several times to get this to work and I need to
clarify a couple of things.
1) After setting up custom components for the several
"Canvas" containers that are now in the "ViewStack" container, do I
first need to set up a custom component for the "ViewStack"
container with its own name space?
2) If the answer to 1) above is Yes then do I then reference
each of the custom components for the "Canvas" container with their
own name space designation within the "ViewStack" reference within
the main Application?
In the event I am completely off base then I would appreciate
any suggestions. If you wish I would be happy to email you the
current application page.
Thanks,
Joe
joe kHere is some code for an app built with components. You can
see how the pieces talk to each other a bit.
------------------------- ViewStack1.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:comp="components.*"
layout="vertical" width="100%" height="100%" >
<comp:TopBar />
<mx:HBox width="100%" height="100%">
<comp:LeftBar />
<mx:VBox width="100%" height="100%">
<mx:ViewStack id="myViewStack" borderStyle="none"
width="100%" height="100%">
<mx:VBox id="home" width="100%">
<comp:MainIntroText />
<mx:HRule width="50%" height="3"
strokeColor="0xCC3333"/>
<comp:MainSecondaryText />
<mx:HRule width="50%" height="3"
strokeColor="0xCC3333"/>
<comp:MainFinalText />
</mx:VBox>
<mx:VBox id="about" width="100%">
<comp:About />
</mx:VBox>
<mx:VBox id="contact" width="100%">
<comp:Contact />
</mx:VBox>
</mx:ViewStack>
</mx:VBox>
</mx:HBox>
</mx:Application>
------------------------------- About.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:VBox width="65%">
<mx:Text fontSize="14" width="100%" text="This page tells
you about us." />
</mx:VBox>
</mx:HBox>
----------------------------------- Contact.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:VBox width="65%">
<mx:Text fontSize="14" width="100%" text="This page tells
you how to contact us." />
</mx:VBox>
</mx:HBox>
------------------- LeftBar.mxml -------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="200" height="100%">
<mx:LinkButton label="Adobe Labs - Flex"
click="navigateToURL(new URLRequest('
http://labs.adobe.com/technologies/flex'),
'_blank');"/>
<mx:Spacer height="20"/>
<mx:Label fontSize="16" text="Flex Blogs"/>
<mx:LinkBar direction="vertical" width="90%"
itemClick="navigateToURL(new URLRequest(event.item.data),
'_blank');">
<mx:Object label="Adobe Flex Team Blog" data="
http://weblogs.macromedia.com/flexteam/"/>
<mx:Object label="Flex Blog Aggregator" data="
http://www.allyourflexarebelongtous.com/"/>
<mx:Object label="Adobe Flex Blog Aggregator" data="
http://weblogs.macromedia.com/mxna/index.cfm?query=byCategory&categoryId=5&categor yName=Flex"/>
</mx:LinkBar>
<mx:Spacer height="20"/>
<mx:Label fontSize="16" text="Example Flex Apps"/>
<mx:LinkBar direction="vertical" id="addlRscList"
width="90%" itemClick="navigateToURL(new
URLRequest(event.item.data), '_blank');">
<mx:Object label="Adobe Flex Store" data="
http://www.adobe.com/devnet/flex/samples/flex_store_v2/"/>
<mx:Object label="Adobe Dashboard Example" data="
http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html"/>
<mx:Object label="Buzzword Word Processor" data="
http://preview.getbuzzword.com/?s=true"/>
<mx:Object label="Adobe Style Explorer" data="
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html"/>
<mx:Object label="Adobe Component Explorer" data="
http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html"/>
</mx:LinkBar>
</mx:VBox>
----------------------- MainFinalText.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:Text width="100%" fontSize="12"
text="Here is the final text I want to show you." />
</mx:VBox>
--------------------------- MainIntroText.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:Text width="100%" fontSize="12"
text="Here is the main text I want to show you." />
</mx:VBox>
----------------------- MainSecondaryText.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:Text width="100%" fontSize="12"
text="Here is the secondary text I want to show you." />
</mx:VBox>
--------------- TopBar.mxml --------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:Script>
<![CDATA[
private function goToViews(view:String):void {
if(view == "home"){
this.parentApplication.myViewStack.selectedChild=this.parentApplication.home;
if(view == "about"){
this.parentApplication.myViewStack.selectedChild=this.parentApplication.about;
if(view == "contact"){
this.parentApplication.myViewStack.selectedChild=this.parentApplication.contact;
]]>
</mx:Script>
<mx:LinkButton label="MySnazzyLogo" fontSize="20"
click="goToViews('home');" />
<mx:VBox width="100%">
<mx:HBox width="100%">
<mx:Spacer width="100%" />
<mx:LinkBar fontSize="14"
itemClick="goToViews(String(event.item.data));">
<mx:Array>
<mx:Object label="About Us" data="about"/>
<mx:Object label="Contact Us" data="contact"/>
</mx:Array>
</mx:LinkBar>
</mx:HBox>
<mx:HBox width="100%">
<mx:Spacer width="150" />
<mx:Label fontSize="25" text="Here is Some Additional
Text" />
</mx:HBox>
</mx:VBox>
</mx:HBox> -
Informix Drivers do not appear to work with some components
I am attempting to connect via JDBC to an informix 7.3 dynamic server. I downloaded the most current IBM/Informix drivers
Informix JDBC Driver 2.21.JC5
and created another server type (informix) with the appropriate driver class and url template:
I can successfuly test connect after adding the data source.
When opening up the data source in the server navigator I can see all the tables and even see a query table view in the main window.
I can build an application using the data table component and it will produce results.
When I attempt to use the dropdown list component, however, and then build the application - when the brower window comes up - nothing is ever displayed.
I can bring the same dropdown list component unto another application and link it to one of the local sample tables provides by jsc - and it works fine.
I have added the following jars to my informix server type:
ifxjdbc.jar
ifxjdbcx.jar
ifxlang.jar
ifxlsupp.jar
ifxsqlj.jar
ifxtools.jar
xerces.jar
as they appear to be all the non-debug jars that came with the informix jdbc install.Valerie
The non-debug versions of the informix driver jars are in C:\Sun\Creator\SunAppServer8\lib
The debug versions are not - I will copy them over to see if that makes a difference. So far, the normal jars and the debug jars produce the same result (nothing to the brower upon the build)
from the SunAppServer8 domains/creator/config domain.xml
- <resources>
<jdbc-resource enabled="true" jndi-name="jdbc/__TimerPool" object-type="system-all" pool-name="__TimerPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/PointBase" object-type="user" pool-name="PointBasePool" />
<jdbc-resource enabled="true" jndi-name="jdbc/Travel" object-type="user" pool-name="RaveGenerated_1089061500_TravelPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/CARS" object-type="user" pool-name="RaveGenerated_1089066379_CARSPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/CARS_RaveGenerated_1089076896" object-type="user" pool-name="RaveGenerated_1089076896_CARSPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/testnew" object-type="user" pool-name="RaveGenerated_1089673343_testnewPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/CARS Debug" object-type="user" pool-name="RaveGenerated_1089678667_CARS_DebugPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/Cars With Trace" object-type="user" pool-name="RaveGenerated_1089681413_Cars_With_TracePool" />
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.xa.xaDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="__TimerPool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8">
<property name="DatabaseName" value="jdbc:pointbase:embedded:ejbtimer,database.home=${com.sun.aas.instanceRoot}/lib/databases" />
<property name="User" value="pbPublic" />
<property name="Password" value="pbPublic" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.xa.xaDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="PointBasePool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8">
<property name="DatabaseName" value="jdbc:pointbase:server://localhost:9092/sun-appserv-samples" />
<property name="Password" value="pbPublic" />
<property name="User" value="pbPublic" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089061500_TravelPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="PERSON">
<property name="url" value="jdbc:pointbase:server://localhost:19092/sample" />
<property name="Password" value="travel" />
<property name="driverClassName" value="com.pointbase.jdbc.jdbcUniversalDriver" />
<property name="User" value="travel" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089066379_CARSPool" pool-resize-quantity="2" steady-pool-size="8">
<property name="url" value="jdbc:odbc:CARS" />
<property name="Password" value="******" />
<property name="driverClassName" value="sun.jdbc.odbc.JdbcOdbcDriver" />
<property name="User" value="******" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089076896_CARSPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.***.edu:****/cars:INFORMIXSERVER=****" />
<property name="Password" value="*****" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="*****" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089673343_testnewPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.****.edu:****/cars:INFORMIXSERVER=****" />
<property name="Password" value="root147" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="carsroot" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089678667_CARS_DebugPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.****.edu:****/cars:INFORMIXSERVER=****;PROTOCOLTRACE=2;PROTOCOLTRACEFILE=/temp/trace.out" />
<property name="Password" value="*****" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="*****" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089681413_Cars_With_TracePool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.***.edu/cars:INFORMIXSERVER=****;TRACE=3;TRACEFILE=/temp/trace.out" />
<property name="Password" value="******" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="******" />
</jdbc-connection-pool>
</resources>
sun-web.xml (from the application)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sun-web-app (View Source for full doctype...)>
- <sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
<context-root>/webapplication24</context-root>
- <resource-ref>
<res-ref-name>jdbc/CARS Debug</res-ref-name>
<jndi-name>jdbc/CARS Debug</jndi-name>
- <default-resource-principal>
<name>*****</name>
<password>*****</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="false" />
- <jsp-config>
- <property name="classdebuginfo" value="true">
<description>Enable debug info compilation in the generated servlet class</description>
</property>
- <property name="mappedfile" value="true">
<description>Maintain a one-to-one correspondence between static content and the generated servlet class' java code</description>
</property>
</jsp-config>
</sun-web-app>
web.xml (from the application)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app (View Source for full doctype...)>
- <!--
Copyright 2002, 2003 Sun Microsystems, Inc. All Rights Reserved.
-->
- <web-app>
- <context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
- <context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>
</context-param>
- <context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
- <context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
- <!--
Faces Servlet
-->
- <servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
- <!--
Error Handler Servlet
-->
- <servlet>
<servlet-name>ExceptionHandlerServlet</servlet-name>
<servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
</servlet>
- <!--
Faces Servlet Mapping
-->
- <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
- <!--
<url-pattern>*.faces</url-pattern>
-->
</servlet-mapping>
- <!--
Error Handler Servlet Mapping
-->
- <servlet-mapping>
<servlet-name>ExceptionHandlerServlet</servlet-name>
<url-pattern>/error/ExceptionHandler</url-pattern>
</servlet-mapping>
- <!--
Welcome File List
-->
- <welcome-file-list>
<welcome-file>faces/Page1.jsp</welcome-file>
</welcome-file-list>
- <!--
Catch ServletException
-->
- <error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/error/ExceptionHandler</location>
</error-page>
- <!--
Catch IOException
-->
- <error-page>
<exception-type>java.io.IOException</exception-type>
<location>/error/ExceptionHandler</location>
</error-page>
- <!--
Catch FacesException
-->
- <error-page>
<exception-type>javax.faces.FacesException</exception-type>
<location>/error/ExceptionHandler</location>
</error-page>
- <resource-ref>
<description>Rave generated DataSource Reference</description>
<res-ref-name>jdbc/CARS Debug</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app> -
Components Software working with
Hi! experts
Can any one tell me how can I see the number of Software Components on ECC 5.0, BW and Portal ??
I need to know both First and Second tier component. (Ej: AC-COB, AC-INT, ALL-AC, etc)
We need to know for example: componente of R3 Modules that working with, Portal componentes, BW components, and so on.
Thank you very much
XiomaraNo cross posting
Read the "Rules of Engagement"
regards
Juan -
Problems working with Oracle Lite
I have read that there are some limitations working with olite. What can I do to solve them, when I work with Buissness componentes?
I am having a similar problem, where I couldn't connect to Oracle 8i database (817). I am getting a error message when I tried to use Packaging Wizard -> Snapshot -> Import -> Username/password and jdbc:oracle:oci8:@connect string or jdbc:oracle:thin:@host:1521:Sid
The error message is 'No Suitable Driver. Make Sure the Proper JDBC drive for "jdbc:oracle:oci8i:@<connect string>" is in the classpath"
I would appricated if someone can send me any help on this.
My email address is [email protected]
Thanks
Joshua -
I try to download components for CS Cloud. Adobe Application Manager freezes. Working with Win XP. What can I do?
You need to provide a lot more info like what apps you are trying to download, what exactly seems to be going on, exact system specs, Internet connection info, whether AAM is up to date and so on....
Mylenium -
Does jsf components in wsad works with any application server ?
I 'm working with wsad 5.1.2 and using JSFcomponents and testing on the WAS test.
then i will deploy on jboss AS.
are the custum wsad componenets depoyable on any AS ?
thanx a loti used a jsf with data caching on which i put a data grid (a wsad component)
can you help me to solve the error ?
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.servlet.jsp.JspException: com/ibm/etools/wdo/datagraph/DataGraph
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.dataGrid_jsp._jspService(dataGrid_jsp.java:103)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
root cause
java.lang.NoClassDefFoundError: com/ibm/etools/wdo/datagraph/DataGraph
com.ibm.odcb.jrender.emitters.WDO4JSEmitter$Transformer.<init>(WDO4JSEmitter.java:116)
com.ibm.odcb.jrender.emitters.WDO4JSEmitter.Init(WDO4JSEmitter.java:214)
com.ibm.faces.bf.renderkit.ClientDataRenderer.encodeEnd(ClientDataRenderer.java:76)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:604)
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:527)
com.ibm.faces.bf.taglib.ClientDataTag.doEndTag(ClientDataTag.java:101)
org.apache.jsp.dataGrid_jsp._jspx_meth_odc_clientData_0(dataGrid_jsp.java:185)
org.apache.jsp.dataGrid_jsp._jspx_meth_hx_scriptCollector_0(dataGrid_jsp.java:157)
org.apache.jsp.dataGrid_jsp._jspx_meth_f_view_0(dataGrid_jsp.java:128)
org.apache.jsp.dataGrid_jsp._jspService(dataGrid_jsp.java:94)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) -
[svn] 3390: Fix for SDK-17067 - @exampleText does not work in mxml comments
Revision: 3390
Author: [email protected]
Date: 2008-09-26 15:08:34 -0700 (Fri, 26 Sep 2008)
Log Message:
Fix for SDK-17067 - @exampleText does not work in mxml comments
Fix for SDK-17076 - Mxml component with id but no mxml comment is not added to generated document
QA: Yes
Doc:
Reviewed By: Pete
Tests: checkintests
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17067
http://bugs.adobe.com/jira/browse/SDK-17076
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.javaWow, that's an interesting one - seems as though the sharedCursorPane has
some hard requirement that the base App be mx (this isn't terribly
surprising, considering it was built with the mx components, but it's still
a bug). Can you link against the source code (provided for player 10 now!),
and change that line in sharedCursorPane :
From :
Application(mx.core.Application.application).stage.removeEventListener(Mouse
Event.MOUSE_MOVE, onMouseMove);
To :
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
and see if that works for you? I can't honestly tell why we're using the
line that was there... It's possible this was a workaround for another
issue. Anyhow, if you wouldn't mind being the guinea pig for this one, we
can get to the bottom of it.
thanks!
nigel -
Using salesforce connector in multiple mxml components
I am using Flex 2.0.1 and Salesforce as Database. My question
is i am creating login method in each component and application. I
want to use/pass salesforce connection from main application to all
sub component, how can i achieve this to avoid login for each
application/ component.
example: In my project i created main.mxml application and 3
mxml components in each component i am logining into the salesforce
database to retrieve data from the database. i want to avoid
creating multiple logins for the components instead of writing
login for each mxml component i want login for the first time in
main.mxml application and want to use the same connection in mxml
components. Can anyone tell me how can i achieve this
If you feel this is not sufficient information to solve this
problem then let me know i will post another message with sample
code.
Thanks in advance.The solution I ended up using was just to reference the CSS file at the root MXML application. Then I could just use .styleName on the Menu component and voila, it worked.
-
I have a question about data between mxml components.
Product.mxml is the overview screen for the products and ProductDetail.mxml (it is a TitleWindow) the detail screen.
In the Product I define a value object ProductVo with all the data. When I click a record in the overview and click the button 'change' (changeProduct function) then a popup window appears with all the data in it.
Code in Product.mxml:
[Bindable]
public var myWin:ProductDatail;
private function changeProduct():void {
myWin = PopUpManager.createPopUp(this, ProductDetail, true) as ProductDetail;
myWin["btnSave"].addEventListener("click", save);
private function save(event:Event):void {
productVo.productId = myWin.ti_productnr.text;
productVo.name = myWin.ti_name.text;
productVo.ean = myWin.ti_ean.text;
...some code to save the data in the db...
Code in ProductDetail.mxml:
[Bindable]
public var productDetailVo:ProductVo;
<mx:Form>
<mx:FormItem label="Productnr" required="true">
<mx:TextInput id="ti_productnr" text="{productDetailVo.productId}" width="60"/>
</mx:FormItem>
<mx:FormItem label="Naam" required="true">
<mx:TextInput id="ti_name" text="{productDetailVo.name}" width="200"/>
</mx:FormItem>
<mx:FormItem label="Ean">
<mx:TextInput id="ti_ean" text="{productDetailVo.ean}" width="100"/>
</mx:FormItem>
<mx:FormItem direction="horizontal">
<mx:Button id="btnSave" label="Save"/>
</mx:FormItem>
</mx:Form>
So my question: the save function in Product.mxml, is it possible to do this in a easier way instead of linking all the data from the form into the value object? Something like productVo = myWin.productDetailVo, but that does not work.I just looked at the parsley framework and saw this code:
private function save():void
contact.firstName = firstName.text;
contact.lastName = lastName.text;
contact.email = email.text;
service.save(contact);
So, it is doing the same thing I'm doing.
I'm using Spring and hibernate on the server level, it is my own framework. -
Resource Module Help for localization in custom mxml components
HI again,
Ok I have my resource set up to load at run time, working
great.
But I have mxml components should they not use the same
loaded bundle, or should I make smaller component bundles and load
them as well.
Best Practice etc...
Thanks in advance.If you want the components to be decoupled and reusable with
ease, I vote for separate bundles. -
Revision: 10321
Author: [email protected]
Date: 2009-09-16 13:42:01 -0700 (Wed, 16 Sep 2009)
Log Message:
Fix SDK-23520 - Application background colors don't work with the Wireframe theme
QE notes: Wireframe tests need new baselines. There are subtle rendering differences on the edges/corners that are not visible, but are causing test failures. Joann has excluded the wireframe tests for now.
Doc notes: None
Bugs: SDK-23520
Reviewer: Chet
Tests run: checktests, mustella gumbo/components/wireframe
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-23520
http://bugs.adobe.com/jira/browse/SDK-23520
Modified Paths:
flex/sdk/branches/gumbo_beta2/frameworks/projects/wireframe/src/spark/skins/wireframe/App licationSkin.mxml -
Navigation no longer working with
I have been working with facelets now for a bit. I am on MyFaces 1.1 with the facelet libraries from the Exadel project wizard added.
Any time I have an action with from-outcome but no from-action specified, everything works as expected. I can route to whichever view. When I add the from-action tag to my configuration, it calls my action and action listeners fine, but the requesting page is always reloaded (I never go to a new view).
I have verified my "h:commandLink" components are within my "h:form" tag. Hierarchy:
jsp:root/jsp:text/ui:composition/ui:define/h:form/table/tr/td/h:commandLinkCommand link code:
<h:commandLink value="mylink" action="#{userBean.saveCurrentUser}"/>
<t:saveState id="adminUserBean" value="#{userBean}"/>
</h:form>
...(t = tomahawk namespace)
My template is nothing more than a bunch of div tags & HTML table elements, no JSF logic really.
Relevant tags in my faces-config.xml:
<managed-bean>
<managed-bean-name>userBean</managed-bean-name>
<managed-bean-class>mypackage.UserBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/administration/*</from-view-id>
<navigation-case>
<from-outcome>edit-user</from-outcome>
<to-view-id>/administration/users/edit.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{userBean.saveCurrentUser}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/administration/users/list.jsp</to-view-id>
</navigation-case>
...Code of saveCurrentUser:
public String saveCurrentUser()
try
return "success";
catch (Exception ex)
...(logging)...
return "failed";
...The action to edit the user that contains an action listener works. (navigate from /administration/users/list.jsp to /administration/users/edit.jsp).
The action to save the user successfully saves the user from what I can see (log is clear), but the page stays at /administration/users/edit.jsp instead of going back to the list.jsp.
I am using *.jsp instead of something like *.xhtml since Excadel doesn't support anything but *.jsp at this point in time.
I cannot figure out why the "from-action" is causing the navigation to fail.
No matter what I try, I get the same results. I attempted to update my facelets libraries, but I messed up along the way and was getting incompatible classes across the jar files, so I just rolled back.
Any assistance is appreciated. Even if you don't have a solution, if you know of a way to have the view or myfaces print out the navigation rule processing to the logs, that would be good as well. I am using log4j right now as my logger.
Thanks,
AndrewOkay, got logging turned way up on all "org.apache.*" and "com.sun.*".
Here is the problem (don't know how to fix it yet:
113121 DEBUG [http-8080-Processor4] org.apache.myfaces.application.NavigationHandlerImpl - handleNavigation fromAction=null outcome=success no matching navigation-case found, staying on current ViewRootWhy the action is being executed, but afterwards it says fromAction is null, I do not know yet.
I am hoping it is possible with the facelets + myfaces integration, as it would be a lot of work for me to go away from myfaces, and I need the facelet functionality. -
How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column
Hello JDevTeam & JDevelopers,
I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
The following are the steps taken thus far.
Step1: Create table named test in the 2005 MSSQL Server (see script below).
Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
Library Name = Ms2005Jdbc
Class Path = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
(note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
Step3:Create New Database Connection;
Connection Name = testconn1
Type = Third Party JDBC Driver
Authentication Username = sa, Password = password, Check Deploy Password
Connection
Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver
Library = Ms2005Jdbc
Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
Test Connection = Success!
Step5: Create a new application workspace using Web Application default template
Step6: In Model project, Create new Business Components Diagram.
Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
I am totally stuck! Can anyone provide a solution?
Thanks for you help,
BG...
Create table named test
use [testdb]
go
set ansi_nulls on
go
set quoted_identifier on
go
create table [test](
[testid] [int] identity(0,1) not null,
[testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
constraint [pk_test] primary key nonclustered
[testid] asc
)with (pad_index = off, ignore_dup_key = off) on [primary]
) on [primary]Figured it out!
When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
Set Refresh on insert/update = no.
Set Updateable = never.
Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
Simple enough but I have been away from this stuff for awhile.
BG... -
reinstalled my windows operating system and decided to put on windows 8. After loading all of my music back into a freshly installed itunes, my 4th gen ipod is not recognized by itunes. My 1st gen ipod nano works with no problem. I can eliminate any problems with the cable and connection.
I've stopped and started the service, and also have performed cold reboots.
Nothing seems to have helped the situation.
Help!See:
iOS: Device not recognized in iTunes for Windows
I would start with
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
iTunes for Windows: Device Sync Tests
Have you tried on another computer to help determine if you have a computer or iPod problem?
The iPod Classic uses different drivers than the Nano
Maybe you are looking for
-
I just bought a new PC with Windows 8. I have an old disk for Photoshop Elements 5.0 and would like to use that so that I don't have to spend more $,if possible. First of all, is it compatible? Second, how do I put it on my computer? I tried searchin
-
Hi, Oracle database version : 9.2.0.8 OS: Linux4 as per client requirement we need to enable Fine Grain Auditing. So please provide the process to enable FGA in 9.20.8 database and also provide procedure how to enable FGA on particular table or parti
-
Will I get the iLife suite free when I buy a regular 15inch MacBook Pro?
Will I get the iLife suite free when I buy a regular 15inch MacBook Pro?
-
How can i use time machine with a network drive
I have a Western Digital Net N900 wireless router with a 2TB internal H/D. How can I get Time Machine to reconize it?
-
What program(s) opens the airport utility download file
I am installing on PC and have nothing to open a dmg file - any suggestions