Resizing Flexbook Component at Runtime
I downloaded the Flexbook component online and have been
messing around with it for a few days but still can't find out how
to get this thing to resize during runtime. I did get it set up to
size when Initializing the component by using the following code
attached to this message. This is using embeded assets for the
book. You can see my method I have been trying by looking at the
resizeBook function. The resize does work but after a few resizes
then things get slow or errors appear. So if someone that has done
this can give me a few pointers on where I need to look or if
anyone has any suggestions I would love to here it.
quote:
Originally posted by:
JeffHouser
Without drilling down to your code; this is conceptually how
I'd approach it:
1) Create a new component that extends Flexbook
2) Overwrite the height and width properties to trigger an
invalidatePropertes / invalidateSize invalidateDispayList . Also
add variables (usually private) named "_heightChanged" or
"_WidthChanged"
3) in the commitProperties / measure / updateDisplayList
check the "changed" variables and perform actions to do the
resizing. You'll have to do some digging in the FlexBook code to
figure it out what needs changing.
The digging in the Flexbook code to see what needs to be
changed is the issue I am having. I have been working on a new
resize function which seems to be getting closer but still has
weird results where the book appears to have shrunk when you
rollover certain areas but there is residual images of the larger
version showing.
Similar Messages
-
Add Component during runtime in swing
I want to create applet which add any component at runtime.
I have done this but there is one bug.
When i add the components, they are not display in applet window.
But as soon as i change the size of the or minimize or maximize the applet window
it will display the components.
Reply as soon as possible.
ThanksALWAYS execute the following if you add or remove components from an already visible container:
container.revalidate();
container.repaint(); -
Km component portal runtime error
hi
i am creating a simple km application to create a folder using km api when i run the application it is displaying runtime error in the portal
any help on this here is the trace .
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : kmportalappproject.kmportalcomp
at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:283)
at com.sap.portal.prt.component.PortalComponentContextFactory.createPortalComponentContext(PortalComponentContextFactory.java:196)
at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:82)
at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:55)
at com.sap.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:382)
at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:446)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:395)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:420)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:511)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:179)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:414)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:543)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:203)
at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:212)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:77)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:37)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
Caused by: com.sap.portal.prt.broker.PortalComponentNotFoundException: getPortalComponent failed
at com.sap.portal.prt.broker.PortalAppBroker.getPortalComponent(PortalAppBroker.java:365)
at com.sap.portal.prt.component.PortalComponentContext.getPortalComponentApp(PortalComponentContext.java:115)
at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:268)
... 84 morehi
i am creating a simple km application to create a folder using km api when i run the application it is displaying runtime error in the portal
any help on this here is the trace .
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component : kmportalappproject.kmportalcomp
at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:283)
at com.sap.portal.prt.component.PortalComponentContextFactory.createPortalComponentContext(PortalComponentContextFactory.java:196)
at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:82)
at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:55)
at com.sap.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:382)
at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:446)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:395)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:420)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:511)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:179)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:414)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:543)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:203)
at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:212)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:77)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:37)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
Caused by: com.sap.portal.prt.broker.PortalComponentNotFoundException: getPortalComponent failed
at com.sap.portal.prt.broker.PortalAppBroker.getPortalComponent(PortalAppBroker.java:365)
at com.sap.portal.prt.component.PortalComponentContext.getPortalComponentApp(PortalComponentContext.java:115)
at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:268)
... 84 more -
Error in Component Monitoring(Runtime Workbench)
Hi,
I am getting an error in component monitoring section of runtime workbench. I got a note(851711), where it says 'CompilingException' error can be corrected by applying SP14. But I am still getting same error after applying SP14 and redeploying XI ADAPTER FRAMEWORK CORE 3.0 (SAPXIAFC.sca), XI TOOLS 3.0 (SAPXITOOL.sca) and XI ADAPTER FRAMEWORK 3.0 (SAPXIAF.sca). Please advice how to correct this error.
Error Message:
com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:27: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) import com.sapportals.htmlb.enum.TableCellStyle; ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:947: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) compTable.setColumnType(com.sapportals.htmlb.enum.TableColumnType.IMAGELINK, 1); ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:948: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) compTable.getColumn(1).setCellHAlignment(-1, com.sapportals.htmlb.enum.CellHAlign.CENTER); ^ 3 errors .
Thanks,
Ask.Hi,
it can be for some system configured on http destination or the sld system configured for this server.
take a look at tx sxmb_adm for the http destination to discover witch destination is been used. then, on sm59, find the server that is been called for this http destination and check on that server if this user is ok there.
to check sld, go to tx sld_apicust discover witch is the sld system configured for this server. After log on to sld system and check the user.
Maybe the user is ok on the destination system, so, check the password on sm59 (if the problem is with an http dest) or sld_apicust (if the problem is the connection to sld).
regards.
roberti -
Using Resize effect to resize the component to 100percent
Hi all,
I am using resize component to show the opening of a datagrid which contains itemrenderers.The number of itemrenderers is not fixed hence i want to use the resize effect to resize the grid from height=0 to height=100%. I m not getting any clue as to how to do percent resize with effects.
Please share ur ideas.Thanks for your answer!
I tried setting the font size to Auto, but the problem is that the text starts off really small, at about 12pt font. I really need it to start with large text, eg to start off as one word at say 60pt size, and be able to go down to two words on the top line and two words on the bottom line, at around 20 pt size. So it starts large, but goes down in size with the more text that is put in.
I am making editable Avery Labels for teachers - 10 to a page - to put kids names in, or subjects and names.
Also... is it possible to cenre the text vertically with in the text box?
Thanks very much for your advice! -
Changing the MXML of a component at runTime
Hi there,
I need, depending on runTime conditions, to update the surface of a Flex window with a combination of controls.
For example I may need to layout this line
THIS IS STATIC TEXT #COMBOBOX# THIS IS ANOTHER STATIC TEXT #CHEKBOX#
Or this line :
#EDITBOX# STATIC TEXT HERE
A priori I can't tell the set of combination I may encounter, so I need to be able to dynamically construct the UI.
If changing the MXML of a component is possible, then I can ofcourse solve this pbm since the solution will only have to deal with string operation.
Please help.
Thanks in advance.Hi,
Check View States.
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html -
Add ADF UI component at runtime
Hi ,
I have created Ui components in my page at runtime based on the input.
I have a panel at design time. To that I am adding decoration boxes at run time, also, i am adding InputTextBoxes to the Decoration Box at runtime.
for(int i=0;i<noOfDecorationBox;i++)
RichDecorativeBox db = new RichDecorativeBox();
for(int j=0;j<no.OfInputText;j++)
RichInputText nameText = new RichInputText();
nameText.setLabel("Name");
nameText.setId("nameText" + j);
nameText.setValue("Value"+j);
db.getChildren().add(nameText);
panel1.getChildren().add(db); //Panel1 is the object for my panel which will be available in the design time itself.
AdfFacesContext.getCurrentInstance().addPartialTarget(nameText);
AdfFacesContext.getCurrentInstance().addPartialTarget(valueText);
AdfFacesContext.getCurrentInstance().addPartialTarget(db);
The above method I have written inside button_click event. Also , I have set the button as PartialTrigger to my 'Panel'. So I am able to see the Decoration Boxes at runtime. But not the InputText component those are added to my DecorationBox.
Thanks,
Sabarisri. N
Edited by: Sri N on Dec 17, 2011 12:31 PMchange your code like following and it will work for you :
for(int i=0;i<noOfDecorationBox;i++)
RichDecorativeBox db = new RichDecorativeBox();
panel1.getChildren().add(db);
for(int j=0;j<no.OfInputText;j++)
RichInputText nameText = new RichInputText();
nameText.setLabel("Name");
nameText.setId("nameText" + j);
nameText.setValue("Value"+j);
panel1.getChildren().get(i).getChildren().add(nameText);
AdfFacesContext.getCurrentInstance().addPartialTarget(nameText);
AdfFacesContext.getCurrentInstance().addPartialTarget(valueText);
AdfFacesContext.getCurrentInstance().addPartialTarget(db);
Edited by: amir on Dec 17, 2011 2:02 AM -
Space problems in component monitoring runtime workbench SAP PI
Hi
If I want do save or delete a new test message in the component monitoring of the runtime workbench in SAP PI but I get the following error:
com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error in executing the compilation process: [Cannot error=12, Not enough space].
How can I solve this?
It looks like that the problem only occurs in the component monitoring but I'm not confident with that. The amount of test messages is not that large so I guess there will be more serious problems with the space in the java stack.
Can anyone help
Kind regards
Maarten van IJzendoornHello Maarten
Check the note #1404134 Compilation fails with memory issue in Web service component. This contains a solution to a very similar error to that you are reporting. Does this match your issue?
Regards
Mark -
How to correctly resize a component after loading using SWFLoader
In an app, I load SWFs into an AIR app, which manages them.
The AIR app loads the SWF, then creates a 'master' component, which
manages the loaded SWF. 'manages' means resize, move or provide
persisted preference values.
My own test Flex SWFs work OK, while another SWF does not.
Here's a screenhot:
http://www.flexolero.com/demos/Portal/shot.png
Note, that only some part of the loaded Clock resized
correctly.
The actual resize is done like this:
quote:
public function resize( newW:int, newH:int ):void {
var loadedSM:SystemManager = SystemManager( ( _inner as
SWFLoader ).content );
if ( ( null != _inner )
&& ( null != loadedSM )
&& ( null != loadedSM.application )
// BindingUtils.bindProperty( lblFromRemote, "text",
loadedSM.application, '_outChannel' );
// loadedSM.application[ 'inChannel' ] = 'New';
loadedSM.application[ 'width' ] = newW-20;
loadedSM.application[ 'height' ] = newH-20;
this.width = newW;
this.height = newH;
_inner.invalidateSize();
drawHandles();
If the Air app finishes loading the SWF, the master component
attaches a method to the managed SWF:
(_inner as UIComponent).addEventListener( Event.RENDER,
fixSizes );
Actually, Clock sample does not resize as expected at the
first time it appears.
Once the Clock is on stage, and I resize it using the mouse,
it resized as expected.
Could someone provide a hint?maybe you need to calculate scaleX, scaleY instead?
"justria" <[email protected]> wrote in
message
news:g8fbml$e7c$[email protected]..
> In an app, I load SWFs into an AIR app, which manages
them. The AIR app
> loads
> the SWF, then creates a 'master' component, which
manages the loaded SWF.
> 'manages' means resize, move or provide persisted
preference values.
>
> My own test Flex SWFs work OK, while another SWF does
not. Here's a
> screenhot:
>
>
http://www.flexolero.com/demos/Portal/shot.png
>
> Note, that only some part of the loaded Clock resized
correctly.
>
> The actual resize is done like this:
>
>
quote:
public function resize( newW:int, newH:int ):void {
>
> var loadedSM:SystemManager = SystemManager( ( _inner as
SWFLoader
> ).content );
>
> if ( ( null != _inner )
> && ( null != loadedSM )
> && ( null != loadedSM.application )
> ) {
> // BindingUtils.bindProperty( lblFromRemote, "text",
> loadedSM.application, '_outChannel' );
> // loadedSM.application[ 'inChannel' ] = 'New';
> loadedSM.application[ 'width' ] = newW-20;
> loadedSM.application[ 'height' ] = newH-20;
> this.width = newW;
> this.height = newH;
> _inner.invalidateSize();
>
> drawHandles();
> }
>
> }
>
>
> If the Air app finishes loading the SWF, the master
component attaches a
> method to the managed SWF:
>
> (_inner as UIComponent).addEventListener( Event.RENDER,
fixSizes );
>
> Actually, Clock sample does not resize as expected at
the first time it
> appears.
>
> Once the Clock is on stage, and I resize it using the
mouse, it resized as
> expected.
>
> Could someone provide a hint?
>
>
>
>
>
>
> -
I'd like users to be able to drag out a shape from the side
of the stage (say a square) and then resize it on the stage. I
think I've seen this Flash functionality somewhere on the web, but
I can't figure out what the code would be for this. Can anyone
help?
Thanks,
Michael;I think I've got the problem solved, but can I follow up on
one thing you mention below? It has to do with the parent/child
relationship and the startDrag action. I was under the impression
that if I put a movieclip inside of another movieclip and then
apply a drag action to the parent movieclip, then there was no way
to access the child movieclip. For example, I put a small textInput
component inside of a larger movieclip and then I put a drag action
on the movieclip. I wanted users to be able to type in some text
into the middle of the movieclip and then move the moviecip around
if they wanted to. However, as soon as I put the drag action on my
parent movieclip, the inputText component could no longer be used -
the "hand" appeared over whole movieclip so users could no longer
type anything into the inputText area. Is there any way to do what
I want to do here?
Appreciate your help!
Michael -
Resize block-frame at runtime?
Hello,
is it possible to resize and reposition a block´s frame at runtime? We want to implement a configurable form. Why is the frame not a "block-element" but a "canvas-element"? Is there any posibility to change boilerplates at runtime?
thanks in advance
AnnaYou can't change boilerplate elemenets at runtime. As such you can't change the block frame.
-
How can we delete adf component at runtime
Hii all,
i am developing an application in which i am generating the ui components at runtime, and displaying them it the pop up window,
the ui component is generated according to the list of objects.
The problem i that, this list changes every time as it is specific for a particular document, so when i open the pop up again the old component generated
are still there, i have a command button on which i am performing the following action to delete the previously generated components -
public void removeExtraFieldsAddedToUploadForm(UIComponent parentTableLyoutComponent,boolean isCommandButtonClick){
try{
if(parentTableLyoutComponent.getChildCount() > 6) {
List <UIComponent> addedComponents = parentTableLyoutComponent.getChildren();
for(UIComponent uicomponent:addedComponents){
String strCompID= uicomponent.getId();
if(strCompID.indexOf('x') == 0) {
uicomponent.setRendered(false);
if(isCommandButtonClick){
AdfFacesContext.getCurrentInstance().addPartialTarget(parentTableLyoutComponent);
this things works fine as it refresh the components according to the current list of objects, but when i fetch the values for the components form the pop up window, i am also getting the values for the earlier generated components.
Is there is any way through which i can delete the previously generated components..??
Thanks.
JDeveloper Version 11.1.1.6.0As you only set the rendered attribute to false the components are not rendered on the page up are still part of the component tree. So you still can access them (which you do if you iterate over the list of children).
As you get a {noformat}List<UIComponent>{noformat} from the panelFormLayout you should delete the components from the list
addedComponents.remove(uicomponent);Timo -
How to map nodes to an embedded Component during runtime?
Hi,
I embed a Component (<i>BasisComponent</i>) in a new created Component (<i>MyComponent</i>) to use some funcionality from it. Therefor, I have to map some ValueNodes from <i>MyComponent</i> to <i>BasisComponent</i> during designtime to transfer the data. I thought, I could use External-Context-Mapping for that. That means I've created a ValueNode in <i>BasisComponent</i>'s InterfaceController and declared it for ExternalContextMapping (let's call it <i>ExtNode</i>.
Because I want to use this basis functionality from different embedding Components (<i>MyComponent1, MyComponent2</i>, etc.), I can't declare the structure of <i>BasisComponents ExtNode</i> yet, it's just an empty ValueNode.
Now, I want to map from my using Components their different ValueNodes to <i>BasisComponents ExtNode</i>.
How to do that? Or is there another possibility to put different value-nodes from different components to the same Node in my <i>BasisComponent</i>? Can this be done during designtime? I believe it can be definitively done during runtime....
kr, achimAchim,
Let me use your example and explain what in fact will work when you are creating attributes/nodes only at design time.
Let us define context in BasicComponent as:
- MyRoot (0..n, selection 0..1, singleton)
|-MyInt (int)
|-MyString (string)
Say, ComponentA has the following context structure:
- rootNode (0..n, selection 0..1, singleton)
|-attA (int)
|-attB (string)
|-attX (string)
--attC
Then you can easly map rootNode of ComponentA to MyRoot of BasicComponent, attA -> MyInt, attB -> MyString, attX left is not used for mapping.
=============
Same is true for ComponentB with
- RootOfBNode (0..n, selection 0..1, singleton)
|-attIgnored (date)
|-attA_INT (int)
|-attB_STR (string)
|-attY (string)
--attZ
ComponentB.RootOfBNode -> CU of BasicComponent.MyRoot, attA_INT -> MyInt, attB_STR -> MyString, attY and attIgnored are not used for mapping.
=============
However, if context of ComponentA is defined as
- rootNode (<b>0..1</b>, selection 0..1, singleton)
|-attA (int)
|-attB (string)
|-attX (string)
--attC
...then you are out of luck -- wrong cardinality of node.
Moreover, this case also fails
- rootNode (0..n, selection 0..1, singleton)
|-attA (string)
|-attB (string)
|-attX (string)
--attC
Here all attributes are strings so mappings will be incomplete. To fix this you need at least fake attribute in rootNode.
And mostly important fact: if you can't map nodes in designer due to mismatch context structures the any dynamic (at run-time) mapping will fail as well in majority of cases.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net -
Resizing custom component with fixed aspect ratio in designer
Hello,
I have a custom component that can have a fixed aspect ratio depending on certain property settings and I would like to know if there is any way to make the component resize in the designer in the same manner that the XCelcius built-in spreadsheet table component does?
It is possible to workaround this somewhat by correcting the width or height of the component after resize, XCelsius sees the change and stores it correctly but sometimes the IDE "remembers" the old value. For example if the component changings its own height programmatically in response to a property and then, while keeping the current component selected, the user resizes the width XCelsius sometimes tries to put the old height back even through it has the correct height saved in the XLF and works fine when compiled.
Is there a way to properly notify XCelsius IDE of a programmatic width/height change in the component itself in response to a property change?
ThanksThe SDK does not support reszing a component using a fixed aspect ratio.
Do not set the width and height of your component directly. You can set the initial size when dropped onto the canvas using the measure function...
A better approach is to let the user size the component on the Xcelsius canvas.
And instead of rendering directly in your add-on, move that code into a child renderer. Then use your aspect ratio to calculate the max size the child renderer can be to fit in the component. Then center your child renderer in the component. That is what I did when I created AnyMap.
|--------------------------------|
| component on canvas |
|--------------------------------|
| |--------------------------| |
| | centered child renderer | |
| |--------------------------| |
| | | |
| | | |
| | | |
| |--------------------------| |
|--------------------------------|
Regards
Matt -
Resizing the oracle form runtime window
hello guys
i m making one login form in oracle 6i form builder
and i want as user run it it open as the rectangle box in the centre of user screen.
i have done for it but the problem that i m facing inthat is that i m unable to resize the size of oracle form runtime window according to the size og my login
form window.
pl tell me how to do this.
Thanks
With Regards
Vishal AgrawalHi
Since you are using Forms6I - just presss F1 - and search for Set_Windows_Property - example - this will take to a proper note
Maybe you are looking for
-
This morning, I had my fully charged 5th gen iPod touch. Have had lots of problems with it since updating to iOS8. After briefly using it (successfully may I add), I switched it off to standby. Came back only 10 minutes later, and it would not tur
-
Need Function to return CHAR(2) datatype -
I've created the following function. It needs to return a CHAR(2) datatype, but this code always returns VARCHAR2(4000). If I change it to numeric, I do get a number. Is there some obvious reason why I am not able to return a 2-byte character value f
-
Oracle 12c in- memory database option
I did not go to oow 2013, but watched Larry Ellison's video on Orcle 12c in memory option. Seems amazing tecnology, hard to beleive everything can be done behind the scene once one sets some parameters in init.ora. I alreday have 12.1 intsalled on O
-
Undocumented change of 'blf+sd' behavior between 7.5.3 and 7.5.4 fw
Imagine button with Extended Function defined like this: fnc=blf+sd;ext=*F1234@$PROXY;sub=*D7*1234@$PROXY;vid=1 according documentation, the button should subscribe to line *D7*1234 to show it's state ('blf' function) and dial the *F1234 when pressed
-
When Workspace goes down 6 Jan 2015, what happens to Buzzword?
The Buzzword & Presentations Internet collaboration tools are very good. When Workspaces shuts down in January 2015 will those tools surface as independent Adobe products, or will they be accessible through a different Adobe Internet portal? Macromed