Using Flex with JSPDynPage
Hi,
Can we develop a JSPDynPage component, using Adobe Flex as the UI instead of using HTMLB? (by embedding flex components in the jsp file). Is it possible to call methods in other java files from a flex application?
Did anyone try to develop a JSPDynPage component this way?
Regards,
Sudhir
Hi,
Pls check out these links below for this info -
Adobe Flex with RFC -
Binding Data through function module in adobe to display charts
How to connect to SAP Database from a Adobe flex application?
Adobe flex and Sap
Adobe Flex within SAP NetWeaver Developer
Regards
Lekha
Similar Messages
-
Please help me, I need to use Flex with CF
Hi everyone,
I am starting to retract my brain from an intense 2 days to
figure out how to use Flex with Coldfusion. I am using Coldfusion 8
Beta (this part is good, don't need help for CF itself). I am also
using Flex Builder 2 (with chart but this not the topic). I
installed FDS 2.5 before to install ColdFusion 8 but I think CF8
have is own FDS or something like that... anyway, it might help to
mention it!
Well, I tried HTTPService, RemoteObject, WebSer vice -
NOTHING WORKS!!! Argh! Did I mention I spent 2 days? ;-)))
Well, I start with the basic: a login form with an email (as
a username) and a password to be validated. I have a CFC to do the
validation and return a simple message (string): "OK' when it is
valid and a custom message when it is not valid; depending if it is
the password and/or the email which is not valid.
I always got an error. Since the error is different depending
of the method I use, I will explain the latest method I used in
this message and try to concentrate on that method specifically!
The method is WebService and here is the error:
faultCode:Server.Error.Request
faultString:'HTTP request error'
faultDetail: 'Error: [IOErrorEvent type="ioError"
bubbles:false cancelable=false eventPhase=2
text="Error #2032: Stream Error .
URL=http://localhost:8501/iDashboard/login.cfc"].
URL: http://localhost:8501/iDashboard/login.cfc'
Any help will be very useful!!!
Thank'sCyber,
This may be what you are looking for. It worked well for me.
Flex is sweet, but with the number of people confused about setup
with CF they sure aren't making any friends.
Flex/ColdFusion
setup -
Using Flex with Microsoft Project
I am absolutely brand new to FLEX. What I saw on the Adobe
site was a data chart that could be drilled down to expose
additional layers of "contriburory detail" for the master graph.
What I am wondering is if it is possible to do something
similar using Micrsoft Project Data as the basis. MS Project will
allow users to save the file as XML. So, all the data should be
available in a form understandable to FLEX.
Here's the tricky part (and I can add more detail if needed).
Project will create a summary line (at some level of indentue) and
show you a calculated %Complete such as 47%. So, level of indenture
1 I have the major summary tasks of the project at various status
of %Complete. I believe FLEX can make some type of bar or pie chart
out of that for me. What I want to do is click on a "Level1"
indenture and have it expose the Level2 indure that contributes to
that 47%. Then drill on one of the Level2's to Level3 .... to Level
"n".
This needs to be accomplished in "stand alone" fashion so the
ultimate user can launch a desktop application and tell the
application the name of the Microsoft Project XML file. We will not
be able to use Client/Server ... client side only with the file
located either locally or at least on a network drive.
Can this be done? Has anyone looked at a MS Project XML
schema to see if there is sufficeint information available?
OK, now the blunt truth. It ain't %Complete that I care
about. What I care about is BCWS, BCWP, ACWP, %Complete, and a few
other parameters. These are the "Earned Value Fields". If you do
not know what they are, don't worry about it just now .... it is
really all just time phased data.
Can anyone give me some advice or an opinion? TIA.
JimHi,
Pls check out these links below for this info -
Adobe Flex with RFC -
Binding Data through function module in adobe to display charts
How to connect to SAP Database from a Adobe flex application?
Adobe flex and Sap
Adobe Flex within SAP NetWeaver Developer
Regards
Lekha -
Anyone use Flex with php for file upload? PHP Notice: Undefined index: Filedata
My code works. It uploads the file and inputs the file name into a database, but I can't shake this php notice. I think php is looking for multipart/form-data from the HTML form tag.
<form action="upload.php" enctype="multipart/form-data"/>
But I am using flex. The multipart/form-data info is sent as the second default argument of the upload() function. Does anyone have experience with this? Thanks.
PHP Notice: Undefined index: Filedata
$filename = $_FILES['Filedata']['name'];
public function selectHandler(event:Event):void {
request = new URLRequest(UPLOAD_DIR);
try {
fileRef.upload(request);
textarea1.text = "Uploading " + fileRef.name + "...";
catch (error:Error) {
trace("Unable to upload file.");
textarea1.text += "\nUnable to upload file.";Hi, Thanks for your reply !
Im not getting any errors Flex side, as i say i get a alert message saying the file has been uploaded so . .
I am using a Wamp server on a windows machine, how do i check the file permissions on both the folder and the php file ?
Also how do i debug a php file ?
ANy help would be thankful ! -
Can I use Flex with Adobe Media Encoder to automate encoding?
I am thinking about learning Flex assuming I can do the following.
Can I use Flex to automate the process of converting/encoding videos from many formats to FLV format?
If so, what encoder do I use for this process? Flash media encoder?
Can Flash Media Encoder interface with Flex (PHP/XML/ActionScript) to automatically with presets configuered convert/encode videos that have been uploaded and placed into a folder into FLV format?
Thanks.Guys,
I have developed a simple script ( batch file *.bat)) that will check if encoding is still being done ( every 60+ secs ) and if the process is over, it will shutdown the PC. I tried to keep the code very very simple so that others can improve it.
For now , i have tested this on Windows 7 SP1 - 64 bits and it wokrs well.
Here is the code, copy and paste it into notepad - i named it AutoPowerOff-AdobeMediaEnCoder.bat
..........copy code below ..........
@echo off
echo.
date /t
time /t
echo.
:StartMonitoring
echo.
echo.
echo.
color 0f
echo Start monitoring Adobe Media Encoding Process
echo Check every 60 secs via KeepMonitoring
ping 127.0.0.1 -n 60 > nul
Goto Check
:KeepMonitoring
echo.
echo.
echo.
color 0f
echo Continue Monitoring Adobe Media Encoding Process - every 60s
ping 127.0.0.1 -n 60 > nul
Goto Check
:Check
echo.
echo.
echo.
color 0e
echo Checking If Encoding Process Over ?
echo.
echo.
color 0a
tasklist | find /i "PProHeadless.exe"
IF ERRORLEVEL 1 GOTO AutoPowerOFF
IF ERRORLEVEL 0 echo. && echo Encoding Still In Progress && GOTO KeepMonitoring
:AutoPowerOFF
echo.
echo.
echo.
color 0c
echo Process PProHeadless.exe does not exist anymore
echo Assume Encoding DONE
echo PC Poweroff Initiated
echo.
echo.
echo ShutDown PC After 60 sec
shutdown /s /t 60
:END
....... end of code ..............
If some of you can check it out on other platforms and report back, i can maintain this thread.
Regards,
Marco. -
How to use Flex with EJB3?
Anybody know how to integrate Flex with Java?
I have a EJB3 project with JPA etc...
Have to use Eclipse with Flex plugin or can i use Flex Builder and Eclipse only for java classes? (preferring the second option)
I'm getting crazy, because need this for my college work, too fast as possible.
Please any explanation or sample.
Thanks everyone.Matt you say, i do not need to write servlet, create wsdl...
But if i dont do this, my Java Business Rules will be visible to client ?
If yes...
1- I need to write Servlet to use HTTP protocol to connect with Flex, then create wsdl of my EJB3.
2- This wsdl will create client side of my application, then i create my Flex interface normally using HTTP Blaze DS ? -
Error 99 using Flex with FileInfo SDK
Hello
I am creating a new XMP panel for CS4 using Flex 3.0.1 and the FileInfo SDK 4.4.2. When I create a new Wizard project (using XMP Custom Panel project), at the end the Design tab shows the message (I have not edited anything from the generated files):
There is an error at line 99 of your MXML document.
The "Sample" tag has invalid syntax.
The line 99 contains the following generated code:
Anyone tried to use Flex and the FileInfo XMP Wizard and know how to solve this issue? The Project compiles and executes well but this message is quite strange.
Thank You
MassimoHi Massimo,
you try to watch the *wrapper code* in the design mode. Problem is
that the design mode of Flex still has some bugs when it comes to the display of own components.
But what you can do is: open the actual panel class "Sample" and switch
to the design mode -- that works and that should be the thing that you actually wanted to see.
Hope this helps.
-- Stefan -
My pass of information for the people looking to use Flex with BlazeDS
I when approaching Flex Data Services (BlazeDS and Live Cycle
Data services ).. I noticed there was a huge gap of understanding.
So here are a few things I noticed which may help:
BlazeDS is a java based meaning it needs a Java program such
as Tomcat or JBoss to run..
By standard blazeDS comes with tomcat that will run on your
computer… And LCDS (live cycle data service) comes with JRun
(for local development use only)…
Remoting needs you to create a Java classes in order to pass
data, for example from a database… Now this side of things is
quite JAVA and therefore you’re probably going to need to do
a lot of Java programming.
However the messaging side of BlazeDS works well with
flex… If this is what you’re looking into, you should
concentrate on the produceer and consumer mxml objects:
<producer/>
<consumer/>
At first glance, these two seem stupidly simple and
un-powerful, but as you start to understand how to use them between
multiple applications, you will see how powerful they are.
And the config files...!
To get you pointed in the correct directions, review this
blog and focus on the tutorial section:
http://www.flexlive.net/?cat=6
Also remember that before live cycle, it was Flex Data
Services, try searching for some tutorials or learning materials on
that.
And also if your new to all this start with BlazeDS as it
seems more user friendly. Its just like using a restricted version
of LCDS. But works very much the same.!
Hope this helps, JCThanks prasoon.
I only had a few mins to write it, was in work lol.. What
helped you from that blurb, if you don't mind me asking?
JC -
How to use JNDI with JSPDYNPAGE?
Hi Experts,
Im having trouble looking up my deployed java proxy that is on WAS. When I try to lookup it through my JSPDYNPAGE portal component, it throws this error:
#1.5 #00E0ED0BA5EF00710000002600000F92000453A6B0EEF782#1217875304970#System.err#sap.com/irj#System.err#TESTUSER#6717##n/a##2c379d00625411dda84d00e0ed0ba5ef#SAPEngine_Application_Thread[impl:3]_16##0#0#Error##Plain###befor 111#
#1.5 #00E0ED0BA5EF00710000002700000F92000453A6B0EF1840#1217875304978#System.err#sap.com/irj#System.err#TESTUSER#6717##n/a##2c379d00625411dda84d00e0ed0ba5ef#SAPEngine_Application_Thread[impl:3]_16##0#0#Error##Plain###com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ECCWS.
at com.sap.engine.services.jndi.implserver.ServerContextImpl.getLastContainer(ServerContextImpl.java:261)
at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:624)
at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:254)
at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.xyz.ECEWenService$ECEWenServiceDynPage.callWebServicePrxy(ECEWenService.java:79)
at com.xyz.ECEWenService$ECEWenServiceDynPage.doInitialization(ECEWenService.java:57)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:105)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.doPreview(AbstractPortalComponent.java:240)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:168)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
#1.5 #00E0ED0BA5EF00710000002800000F92000453A6B0EF1AAB#1217875304979#System.err#sap.com/irj#System.err#TESTUSER#6717##n/a##2c379d00625411dda84d00e0ed0ba5ef#SAPEngine_Application_Thread[impl:3]_16##0#0#Error##Plain###Naming Exception Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ECCWS.#
Here is how I am trying to use it:
protected void callWebServicePrxy(){
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
env.put(Context.PROVIDER_URL, "localhost:50004");
try{
InitialContext ctx = new InitialContext();
Service obj = (Service) ctx.lookup("java:comp/env/ECCWS");
YCUST port = (YCUST)obj.getLogicalPort("YCUST");
BAPI_CUSTOMER_GETDETAIL parameter = new BAPI_CUSTOMER_GETDETAIL();
parameter.setCUSTOMERNO("0000009702");
parameter.setPI_SALESORG("0001");
BAPI_CUSTOMER_GETDETAILResponse result = new BAPI_CUSTOMER_GETDETAILResponse();
result = port.BAPI_CUSTOMER_GETDETAIL(parameter);
String NamePrint= result.getPE_ADDRESS().getNAME();
System.err.println("Printing voila - " + NamePrint);
}catch(ServiceException se){
se.printStackTrace();
System.err.print("Service Exception " + se.toString());
}catch(RemoteException re){
re.printStackTrace();
System.err.print("Remote Exception " + re.toString());
}catch(NamingException ne) {
ne.printStackTrace();
System.err.println("Naming Exception " + ne.getMessage());
}catch(Exception e) {
e.printStackTrace();
System.err.println("Exception " + e.getMessage());
Do I need to put anything in my portal app.xml? Also, Is there any configuration required on Visual Admin.
PLease help.
Thanks
SBHi Stefan,
Thanks, I was also looking at this help information. What Im doing in my portalapp.xml is below:
<property name="PrivateSharingReference" value="SAPJ2EE::interface::ECCWS"/>
But it is still giving the same error.
One more question- Is it only 1 ( after interface in [SAPJ2EE::interface::] or is it TWO ( like this below
SAPJ2EE::interface:
Do you think im missing anything else?
Thanks,
SB -
Hi,
I'm new to both flex and adf technologies. It would be helpful if anyone brief the possibility of using flex with ADF.
And also it'll be helpful if someone helps out with any links of tutorials or documentation regarding to use flex with ADF.
Thanks in advance,
Parameswari
Edited by: user12952392 on May 24, 2010 6:13 AMHi Shay,
Thanks for the reply.
In our case we will be getting pre-designed Flex UI pages with separate components. We have to logic in Business Layer to do the CRUD operations with displaying of Graphs.
Just read Edwin Biemond [http://biemond.blogspot.com/2008/07/crud-operations-in-flex-with-adf-bc.html] posts on the same. (integration using Adobe livecycle or blazeDS).
But still not sure how to manage and maintain this whole stack for an application having 50+ pages.
So bit curious how to start the same.
I have posted the same in [http://forums.adobe.com/thread/646720?tstart=0] Flex forum also. Hope to get the reply soon
Thanks. -
hi all.
can anyone tell me ..if we can use Flex with WebDynPro.....?
can we develop flex in NWDS....?
Regards,
SudheerWell you can use Flex inside plain HTML pages. It isn't really much different when using them inside JSP. I'm really just talking about embedding and hosting the flash player. If you want greater interactivity between the Flex portions and the JSP I suggest that you search on the internet for FABridge (Flex Ajax Bridge). This allows you to use JavaScript to interactive with the flex component. I've used this technology within BSP quite a bit:
[/people/thomas.jung/blog/2007/11/14/an-introduction-to-flob-flex-on-bsp|/people/thomas.jung/blog/2007/11/14/an-introduction-to-flob-flex-on-bsp]
Since BSP and JSP are so similar, the same concepts could easily be applied in JSP.
As to the Web Dynpro Islands - the development of the first version is complete and will start to ship in a controlled rollout with Web Dynpro ABAP in NetWeaver Enhancement Package 1 (Q3 2008). I believe that at first we plan to only have SAP delivered components, but will eventually open it up so that anyone can create components that run within the Islands. -
can anyone tell me if flex can be integrated with jsp and if yes, can i get a small example of it... plz help.. its uugent
http://flex3.info/using-flex-with-javaserver-pages/
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
http://www.coderanch.com/t/478820/Flex/Application-Frameworks/Flex-recive-data-JSP-submitt ed
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com -
Problem in creating client side PDF with image using flex and AlivePD
I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
Thanks in advance
AtishayI am having a similar and more serious problem. It takes a
long time to execute, but even attaching a small image balloons the
pdf to 6MB plus. After a few images it gets up to 20MB. These are
100k jpeg files being attached. The resulting PDF is too large to
email or process effectively. Does anyone know how to reduce
size/processing? -
We are planning to Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed. I have tried using the AIR appliaction and it worked, But our requirement is NO INSTALL to the user machine for the silent printing. It is just from web page and silent printing to the default printer to the desktop/Laptop. Can anyone share your thoughts and experience with us. It will be very helpful..
For AIR : I tried the thread Re: AIR and PDF showing/silent printingHey CodeMonkey & Ross,
Did you either of you ever find a solution? I'm stuck too, it seems I can get remote printing on all these PDFs to work but it just prints a blank page since I've been using Javascript in the browser, not Adobe's (they are Engineering drawings that I do not have permission to edit so I can't just insert code into them but I need to make work instructions). I've been scouring the internet for hours now, it seems that this thread is the only relevant/useful one at this point. No one else was trying to achieve this for similar reasons to mine.
Thanks guys,
Lox -
Error while using jsp scriptlet or expression with JSPDynpage default jsp
Hi everyone,
I am getting the following error while trying to use any kind of jsp scriptlet or expression within the default jsp page that is created with JSPDynpage application:
Portal Runtime Error
An exception occurred while processing a request for :
iView : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
Component Name : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
Error occurs during the rendering of jsp component.
Exception id: 08:50_05/10/06_0032_17543050
See the details for the exception ID in the log file
For example if I try to use even simple syntax like:
<% if(true) { %>
display htmlb tableviewcomponent
<% } %>
or
<hbj:tableView
id="myTableView"
model="flightCustomer.model"
design="ALTERNATING"
headerVisible="true"
footerVisible="true"
fillUpEmptyRows="true"
navigationMode="BYLINE"
selectionMode="SINGLESELECT"
headerText="Flight Customer List"
onNavigate="Navigate"
visibleFirstRow="<%=flightCustomer.getVisibleFirstRow()%>"
visibleRowCount="5"
rowCount="16"
width="500 px"
/>
here also the <%=flightCustomer.getVisibleFirstRow()%> line gives the above mentioned error. If I remove such scriptlets or expression then it works fine.
What could be the problem. Are jsp scriptlets or expressions incompatible with portal applications?hi Navroz,
check this
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9
Re: Defining HTMLB tags in jsp file of JspDynPage component
Re: JSPDynPage does not work in EP6.0
bit more
JspDynPage with Client Side Eventing and Database
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d802d264f0
let me know u need any further info
bvr
Maybe you are looking for
-
Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?
-
Hi, Can anyone help me with the following issue: When I try logging into the login page using the URL_*(http://hostname.domainname)*_ the page is re-directed to the same URL but with https:_ in front of the URL but the login page is not displayed/sho
-
Advanced Selection for Source File + SourceFileSize = invalid file size?
Hi ! I have a File Adapter using FTP protocol. I've turn on all Adapter-Specific Message Attributes, including SourceFileSize. I've activated the Advanced Selection for Source File, and entered several patterns. When I see my payload via the monitor,
-
RELIABLE data backup software recommendation for MacBook Pro WANTED!
I own Retrospect 6.x and I must say that on the intel platform it is less than stellar. On my 15" Powerbook I would get about 90MB/minute and on my new 17" MacBook Pro I am getting about 30MB/minute, which is taking FOREVER. Can someone PLEASE recomm
-
i have a brought cd that is in the itunes store but when i go to add to to my list is says not on net data base. my own copy i brought! how do i solve it i do not want to type over 50 songs in to computer.