Creator 2 and Ajax4jsf

I'm new to JSF and Creator. I was trying to put AJAX functionality with Ajax4JSF to a simple JSF page I made with Java Studio Creator 2 (update 1). I did as they instructed in their tutorials. But it didn't work.
Can anyone please tell if there is any issue with Ajax4JSF and Creator 2.
Ok, all I wanna say that the procedure to add AJAX functionality (as instructed in 'Ajax4jsf Developer Guide') to a JSF page works only with the <h:...> tags, not with the <ui:...> tags.
Here's the JSP code that works for me:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:a4j="https://ajax4jsf.dev.java.net/ajax" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{Page1.page1}" id="page1">
            <ui:html binding="#{Page1.html1}" id="html1">
                <ui:head binding="#{Page1.head1}" id="head1">
                    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{Page1.form1}" id="form1">
                        <h:inputText binding="#{Page1.textField1}" id="textField1" style="left: 120px; top: 48px; position: absolute; width: 192px" value="#{bean.text}">
                            <a4j:support event="onkeyup" reRender="rep"/>
                        </h:inputText>   
                        <h:outputText binding="#{Page1.rep}" id="rep" style="height: 24px; left: 120px; top: 96px; position: absolute; width: 192px" value="#{bean.text}"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>But when I put the <ui:...> tags as follows it doesn't work.
<ui:textField binding="#{Page1.textField1}" id="textField1" style="left: 120px; top: 48px; position: absolute; width: 192px" text="#{bean.text}">
     <a4j:support event="onkeyup" reRender="rep"/>
</ui:textField>   
<ui:staticText binding="#{Page1.rep}" id="rep" style="height: 24px; left: 120px; top: 96px; position: absolute; width: 192px" text="#{bean.text}"/>
......Please let me know if its possible to use <ui> tags with Ajax4jsf.
Thank you.

!

Similar Messages

  • SRM7 classic scenario - backend PO creator and item requisitioner

    Hi all,
    In our current SRM4 with backend ECC 6.0 EhP4, the backend system was defined as ERP_2.0.  After shopping cart get approval and PO generated at backend, both the PO creator and item requisitioner are equal to shopping cart creator.
    We are upgrading to SRM7 and exploring the service procurement scenario (transfer service hierarchy) between SRM7 and backend ECC 6.0 EhP4.  After we defined backend system as ERP_4.0 (LOG_MM_P2PSE_1 activated EhP 4) and setup PI, the PO was successfully created at backend via XML message. However, we noticed that the PO creator and item requisitioner were WF-BATCH but not the shopping cart creator.   Is there any setup that can resume both the PO creator and item requisitioner equal to shopping cart creator?
    We also tested in SRM7 to define backend system as R/3_4.6C (does not require PI), then the backend PO creator and item requisitioner are equal to shopping cart creator.
    Regards,
    Donald

    Hi Donald
    988490
    - CHECK CODE CORRECTION
    IF NOT ls_partner-requestor IS INITIAL.
          mc_assign_x ls_be_item preq_name ls_partner-requestor.
        ELSE.
          mc_assign_x ls_be_item preq_name sy-uname.
        ENDIF.
    Note 761630 - WF-Batch in change documents
    Reason and Prerequisites
    There are processes in which changes to the document are implemented in the background task in the background (for example, by the workflow). In this case, the system user WF-BATCH is displayed in the document as the last 'Changed by'.
    Solution
    This is not a general error because the change history correctly displays changes made by the workfow, for example.
    In some cases, it would make sense, from a business point of view, that the change history does not display the WF Batch but the user who triggered the workflow/background process (example: approval of a shopping cart by a manager). Due to the complexity of this development, which involves adjustments of all workflows and background processes, no solution can be provided in Releases SRM 4.0 and SRM 5.0. An advance correction is only possible for the special case when shopping carts are released (see Note 761293).
    by the way what are your rfc user names?
    Check with SAP.
    mUTHU

  • Table which stores both creator and requestor names

    Hi Experts,
    We are using SRM 7.0 with extended classic scenario.We got a requirement that when Shopping cart rejected  then rejection email should go to both creator and requestor in case of Shop on behalf.
    But as per standard SRM rejection email going only to requestor.As we are trying to figure out how to trigger the mail to creator aswell,
    Can some one help with the table name if any which stores both creator and requestor names so that we try to build some logic.
    Thanks in advance.
    Regards,
    Kalyani

    Hi Sankara,
    Thanks for your response.
    Yes i checked the FM bbp_pd_sc_getdetails it didn't solved the purpose.
    Thanks.
    Regards,
    Kalyani

  • Java Studio Creator and JDK

    I'm trying to create a game application using java and i've downloaded both java studio creator and JDK. However i'm having problems of writing the program. Should i use notepad and compile it using JDK? Or can i simply use the java studio creator and type in my java codings? And i cant seem to type in any codings in the java studio creator.
    Can someone help me please? Thank you.
    Message was edited by:
    burpyjac

    Hello, Burpyjac!
    I don't understand what you want to do exactly. If you would like to write an applet for a website maybe Java Studio Creator is not what you want, it's an IDE for developing web applications running in an application server like Glassfisch, SJSAS, Tomcat and the like.
    If your game need animation, drawings in a panel and the like you would need another IDE like Netbeans for example to develop an applet. Of course you can just use Notepad, but a IDE like Netbeans is much more comfortable (syntax highlighting, project managment, debugging).
    Java Studio Creator is an IDE for web applications and it is based on Netbeans (if you saw both you will notice). If your game can live without graphics maybe you can use it - but be aware that this applications do not run alone, you need an application server.
    Cheers,
    Jan

  • Sun Creator and using the JNI

    Does any developer or Sun person have a direction for me to go in the use of the JNI within Java Sun Creator?
    It seems last weekend I was talking to a person from SUN in regards to tis issue and they have not got back to me. Has any one that uses searches looks through this user forum used the JNI within Sun Creator and to what extenet if you have.
    Thank you for your help...

    dupey00_ca , Sun support is trying to contact you.
    Please see the response to your posting from ELI-NB on Jan 4
    http://forum.java.sun.com/thread.jspa?threadID=5113212&messageID=9389707#9389707
    John
    from the Creator team

  • CATS Timesheet creator and approver

    All,
    We have two main roles we are dealing with in CATS. We have a Time Sheet creator and than a Time Sheet Approver. Right now it is setup mainly through the P_ORGIN auth. obj. I won't allow the approvers to approve their own time sheets but itlll allow them to approve everyone elses. so Infotype 0328 is setup with ' ' subtype and activity D, and P_PERNR activty M,R with infotypes 0000-0002 0007 0315 0315 2001-2003 2010 with subtype ' ' and it will allow the approvers to approve anyones timesheets but their own like we would like.. In the Time Sheet creators it is setup with infotype 0001 and ' ' subtype. with activity M in P_ORGIN and activty R for infotype 0007 & 0316 with subtype ' '. which allows the users to create timesheets for only themselves
    The issue is when those two roles are put together to the approver can't create a timesheet. We need the approver to be able to create timesheet for themselves only and approve timesheets for everyone but them selves. I understand the logic of how it is setup (well atleast I think I do) and I know by adding a * to the approver subtype it will allow them to create timesheets for themselves. Is there anyway around this or another way of assigning authorizations to get this to work properly.
    Thanks,
    -Daniel

    Hello,
    I have exaclty the same issue.
    have you found something please ?
    Do you use Pd profile or P_ORGINCON authorisation ?
    Regards
    Edited by: Cédric LEFRANCOIS on Dec 1, 2009 12:53 PM

  • Trigger Email to SC Requestor when SC Creator and Requestor are different

    Hi SRM Gurus,
    I need to trigger an email to SC Requestor when the SC Creator and Requestor are different.
    I searched in the forum but i couldn't get any details related to this.
    Please throw some light on this.
    Thank You.
    With Regards,
    P.Arunkumar

    Hi,
    A couple of approaches are possible:
    1) Incorporate the check into the approval-workflows. The information you need (both creator and requestor) are in the business-object (bus2121). This will require someone with knowledge of workflow, but it's not really all that difficult. Note that you use a notification-task and not a workitem to inform the requestor (you want them to get an email with info, not a workitem like an approver gets).
    Check out the workflow WS10400051 which is used at the end of all SC-workflows. It already contains checks on "sending mail" to approvers, reviewers etc. and a sub-workflow to generate mails to these agents. This would be an "easy" place to add your check and your mail-sending.
    2) Create a Z-copy of the BUS2121 and adapt the setreleased-function to handle sending the mail (less work but more invasive).
    If you have further questions, please report. I will check this thread in the coming time.
    If this helps you, please awards points.

  • Creator and  futureproof AJAX framework ?

    Hi,
    I am glad there are a couple of AJAX enabled Creator JSF components. No doubt over the next year or so there will be more, and richer AJAX JSF components from SUN.
    What should one use now to make the best of Creator and AJAX ?
    I see current options as ICEFaces, jMaki, or Dojo, etc. I would prefer to stay with JSF components rather than a 'lower level' AJAX framework. I would hate to lose the ability to use the Java Row Sets and Data Providers from Creator that make so easy to get data from databases. Design time drag and drop of components is nice, but I could live without it for a while if need be.
    I am hoping for JSF features such as communicating with other components (click one button and a table does an AJAX refresh), drag and drop, pop-ups, etc.
    Any suggestions on how to achieve AJAX now while making the most of Creator and not digging into a hole for the future ?
    Thanks,
    JC

    You might want to consider the jMaki framework. See http://blogs.sun.com/divas/entry/using_the_dojo_combobox_in

  • Way to set Node's creator and create date explicitly?

    Hi,
    I'm creating content to Content Repository programmatically using bea.content.NodeOps and it works fine - except the fact that I haven't come up with a way to set e.g. creator and creation date explicitly. Instead, they are populated automatically to current timestamp and '<anonymous>', respectively. That's not what I want.
    bea.content.Node class provides a constructor with the parameters mentioned above. However, once I have instantiated Node object using this constructor, there seems to be no way to persist it to the repository (the constructor creates only in-memory object), since none of the overloaded NodeOps.createContentNode() methods takes Node as parameter.
    Any ideas?
    BR,
    Jarkko

    These devices are shared, and anyone in the Family could be taking the photos?  You can create Albums in the Photo App and at the very least have each person name their Albums with their Name.

  • HT1933 Can you help.  I have been playing Modern War for some time, but for the first time i purchased a money item for the game. Unfortunately the item was never received.  I have contacted funzio the games creators and they have told me i need to contac

    Can you help.  I have been playing Modern War for some time, but for the first time i purchased a money item for the game. Unfortunately the item was never received.  I have contacted funzio the games creators and they have told me i need to contact Itunes direct.  Is that correct

    You can contact iTunes support via this page and see if they can help (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Problem with Java Studio Creator and Tomcat Server

    Hi Gays ,
    I have problem:
    here is the error from tomcat 5
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: statement handle not executed: getMetaData
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    if i develop application on my pc ( java studio creator with sun apps bundlled) is working perfectly,
    but i migrated application to Tomcat Server ( Database the same - Oracle 10 g)
    i can't show value ( as text) from datasoruce ( is in SessionBean1)
    (Category-.>Subcat->Items->details( url from items table[items.jsp])
    this is a working url "/faces/testpage.jsp?auk_id=31 "
    ( working with sun apps server , but not on Tomcat 5)
    below prerender method in details.java and fragment of details.jsp
    public void prerender() {
    try {
    String idauk = (getExternalContext().getRequestParameterMap().get("auk_id").toString());
    System.out.println("wartosc auk_id " + idauk);
    if (idauk != null) {
    getSessionBean1().getDetailsRowSet().setObject(1,idauk);
    getSessionBean1().getDetailsDataProvider().refresh();
    details.jsp
    xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{testpage.page1}" id="page1">
    <ui:html binding="#{testpage.html1}" id="html1">
    <ui:head binding="#{testpage.head1}" id="head1">
    <ui:link binding="#{testpage.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{testpage.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{testpage.form1}" id="form1">
    <ui:staticText binding="#{testpage.staticText1}" id="staticText1" style="position: absolute; left: 120px; top: 96px" text="#{SessionBean1.testDataProvider.value['Name']}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    Help People ! Any Ideas I'm stuck, why is working with Sun Servet but not with Tomcat and only just thing ?
    Thanks in advance for helping me to resolve the night problem :)

    Hi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
    But i think it is not a elegant solution in page source i habe noused-code.
    Have Any another Ideas. HELP PEOPLE !!!!
    Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
    I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
    greetings

  • Help needed with Sun Java Studio Creator and EJB in a Portlet Project

    Hi
    I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
    But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
    Then i started going ahead step by step:
    1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
    2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
    3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
    I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
    Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.

    Hi,
    There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
    https://feedbackprograms.sun.com/login.html
    In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
    # Deploying Portlets
    # Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
    # Problem with Pluto when trying to deploy a portlet
    # Request: JSR-168 Portlet Project without JSF
    We kindly request you to post your further queries related to EA in the above mentioned forum.
    Cheers
    Giri

  • OS X and classic creator and type codes

    Is there anyway, within the native os to change type and creator codes?
    Why would I want to? Here's an example:
    I get a .zip from a customer. Because I have Stuffit installed it takes ownership of the archive. That would be fine except I've noticed different results using stuffit vs. BomaArchive helper. As in they don't unzip with the same amount of files.
    I used to use Super Get info to change them, but that's not a possiblity now. And if Apple didn't hide Boma so deep in the OS I might be able to just make an alias and drop them on it. Won't find on a search for "Boma", both visible and invisible.
    Thanks for any help. I'm just trying to find another way to make my OS do what I want it to, not what some app develper or OS creator deems should happen.
    Remember... think different?

    You can easily change any document's default application by selecting the document icon, press COMMAND-I to open the Get Info window. In the section labeled Open With select the desired default app from the drop down menu. If you want all similar documents opened by the default app, then click on the Change All button.
    Alternatively download the freeware preference pane RCDefaultApp from www.versiontracker.com.
    BTW, not pointing a finger at you, but keep in mind that even morons "think different."
    Thanks for your ideas, and more, thanks for the jab at the slogan Apple used to use to differentiate itself, and it's consumers from other, less user friendly OS's.
    But your solution doesn't help me. I'm well aware of changing the assigned app through the get info window, and that there are other utilities as, if not more adept at this function. My problem is that, if I have to solve my problem this way, instead of gaining knowledge about what effect type and creator codes have in OS X and how to change and deal with them, I find it hard to impossible to track down the location of the app BomaArchiveHelper. It never appears in the "Open with" pop up, and therefore I need to know the location in order to navigate to it to tell OS X to use it. And being that I see different results when unzipping depending on which app was used to create the zip, I don't want to set it as default.
    So, my questions stand.
    How do you view and alter type and creator codes in OS X, and where exactly is BomaArchiveHelper located.
    G4 MDD Dual 1.25 Mac OS X (10.3.9)

  • JSF, Creator and WML

    Hi,
    I would like to know how to render a JSF page with WML rendering. is it possible to produce such thing with Creator ? Is it necessary to use a specific tld ?
    Best regards
    R�gis

    Right now, there is no support for WML in Creator but it is in our wish list. In the mean time,JSF specification is quite extensible and you can implement a WML Renderkit for your favorite components. Its tedious and won't be as easy as using a tool but thats option if you need them immediately.
    -Jayashri

  • PO Creator And chager are different.

    While generating PO if anyone is changing the PO other than Creator I.e If change Perosn and Creator Peroson of that Po is differnet than a mail should go to Creator with PO number and Change Perosn Name.
    I want steps to do this.
    Hemanshu.
    9920262006.

    Hi,
    First you have to create a subtype of the standard BO BUS2012. To know the process please refer to the following link provided by SAP online help.
    http://help.sap.com/saphelp_nw04/helpdata/EN/25/c429606ce311d2ad3f080009b0fb56/content.htm
    Once you create a subtype, create a new database attribute for the ERNAM. Take care of the release statuses of the component created and the subtype too.
    Hope this will help.
    Regards,
    Samson

Maybe you are looking for