JQuery Mobile with Trinidad/ADF Faces

Hi
Is it possible to use JQuery Mobile with Trinidad/ADF Faces? I tried using JQuery Mobile with Trinidad, but the trinidad components are not rendering on the page. Is there a way out?
Below is my code:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:trh="http://myfaces.apache.org/trinidad/html"
xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:dvtt="http://xmlns.oracle.com/dss/trinidad/faces">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<trh:html>
<trh:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css"/>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
</trh:head>
<trh:body>
<div data-role="page" data-theme="c" id="page">
<div data-role="header" data-theme="e" id="header">
<h1>Wireless &gt; Logon</h1>
<a href="../../ data-icon="home" data-iconpos="notext" data-direction="reverse"
class="ui-btn-right jqm-home">Home</a>
</div>
</div>
<tr:form>
<tr:commandButton id="cbt" text="command button"/>
</tr:form>
</trh:body>
</trh:html>
</f:view>
<!--oracle-jdev-comment:deviceCategory:pda-->
</jsp:root>
Regards
Navin

With out the JQuery mobile settings ie the css and js entries. The trinidad components are rendering. Below is my web.xml file.
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
<param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<filter-name>trinidad</filter-name>
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>trinidad</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/afr/*</url-pattern>
</servlet-mapping>
</web-app>

Similar Messages

  • Jquery mobile with phonegap

    Hello All,
    I am planning to create a new mobile app project developed by Jquery and html5 css3, and integrate it with the Phonegap. also planning to get my dynamic data from wordpress site by JSON.
    my question here is it possible that JSON data list to  be as a listview data role even if its with a large number of items like over 1000 items with no crash! if not possible, what is the best solution to make a large dynamic list!
    Thanks

    @pk4ut You need to select "jQuery Mobile with theme (local). That's the same as using (phonegap). Thanks for watching!
    Paul

  • Page from Sample - Mobile Starters - jQuery Mobile with theme not working on mobile

    I created a new webpage - New - Page from Sample - Mobile Starters - Jquery Mobile with Theme and did not modify it.
    That does not work on an iPhone or Android.
    What am I missing? Is there an update to make the jquery mobilesite work?
    This is how it looks in dreamweaver
    http://ricston.com/push/test/screenshot_dreamweaver.png
    This is how it looks on my phone:
    http://ricston.com/push/test/screenshot_galaxy.png
    The page for the template is here http://ricston.com/push/test/test.html - As you can see, nothing has been changed.

    Thank you.  I was having the exact same problem.  I even upoaded the unmodified starter page, just in case it was something I did.  Inserting the viewport line fixed it.  (Now I need to go back and insert that line into each of the pages I was working on.)
    The question remains, however, as to why the mobile starter pages don't include that line in the first place.
    [edit] FYI - On Dreamweaver CC, it's under the "common" group within "insert".  (I would have expected it under "JQuery Mobile", but it's not there.)

  • Can I use jQuery mobile with Apache Cordova in VS2013?

    Hi, 
    I'm developing my first mobile app.  I just need to build a very simple form with a few text fields and a date picker.  I was wondering can I use jQuery Mobile for this?  I saw an example of using jQuery Mobile with Ajax to call a web service
    when user clicks Submit button and wondering if I can use that in VS  2013 Apache Cordova project.  
    Also, is there a way for user to define data for a couple of fields, like their user id and password for the app?  How can that be done so users don't have to enter credential each time they use the app.
    Thank you
    Thank you

    No. You need an officially unlocked iPhone. Contract free DOES NOT equal officially unlocked. All contract free means is that you are not obligated to a contract, nothing more.
    In the US, only Apple sells officially unlocked iPhones.

  • Dreamweaver cc jquery mobile with theme

    Hi everyone
    I m trying to create my first mobile site using Dreamweaver jquery mobile with theme. First I up date the jquery mobile  and jquery files. But after I have done this the icons are no longer available. I have tried several things including: pulling the icons out of the jquery mobile folder titled 'icons-png' and place them in an image folder. But no luck.  
    Dreamweaver installs these files on the starter page
    <link href="jquery.mobile.theme-1.0.min.css" rel="stylesheet" type="text/css"/> 
    <link href="jquery.mobile.structure-1.0.min.css" rel="stylesheet" type="text/css"/>
    <script src="jquery-1.6.4.min.js" type="text/javascript"></script>
    <script src="jquery.mobile-1.0.min.js" type="text/javascript"></script>
    and I  replace them with these files
    <link href="jquery.mobile.theme-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <link href="jquery.mobile.structure-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <link href="jquery.mobile.inline-svg-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <link href="jquery.mobile.inline-png-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <link href="jquery.mobile.icons-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <link href="jquery.mobile.external-png-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <link href="jquery.mobile-1.4.4.min.css" rel="stylesheet" type="text/css"/>
    <script src="jquery-2.1.1.min.js" type="text/javascript"></script>
    <script src="jquery.mobile-1.4.4.min.js" type="text/javascript"></script>
    I know this is a pretty basic problem. I cant find any thing on the web to remedy the problem.
    In advance thank you for your advice
    Cheers
    Paul
    https://forum.jquery.com/html/blank.html

    Thank you.  I was having the exact same problem.  I even upoaded the unmodified starter page, just in case it was something I did.  Inserting the viewport line fixed it.  (Now I need to go back and insert that line into each of the pages I was working on.)
    The question remains, however, as to why the mobile starter pages don't include that line in the first place.
    [edit] FYI - On Dreamweaver CC, it's under the "common" group within "insert".  (I would have expected it under "JQuery Mobile", but it's not there.)

  • JQuery Mobile with Adobe Spry?

    Hi everyone,
    I'd like to use a Spry dataset in a jQuery Mobile page. At the moment it doesn't work, only displaying the field names instead of actual data. It seems like nothing Spry works on the page, I wondered if the two are compatible?
    I created a separate page with minimal code with a Spry dataset and it works OK, so I guess the code is OK? When it's copied to the jQuery Mobile page no data is displayed, just the field names.
    Can anyone help? I'd really like to have Spry functionality in the mobile application!
    Thanks

    I have this problem also, as posted in the jquery mobile forum:
    What would cause Spry Validation to allow my Form to be submitted when the "Required" fields are left blank? Here is what is happening:
    - I leave the fields blank and click my "Submit" button
    - I briefly see the fields go Red with message "A Value is required"
    - Then the Form submits anyway (tables update/no errors)
    Here is the full code listing: http://cerberus.clearwave.com/jerry/spry_example_ctt1b.pdf
    Notice:
    - I'm using jquery mobile 1.1.0 on my page
    - I'm inserting data into two tables at one time (Lines 8, 196, 203)
    - I have Spry text Validation on only a few fields for now (ex. Line 483)
    Here is a design view of my page:

  • JQuery Mobile with Dreamweaver CS6 - Blink

    I´ve created a JQuery Mobile page using Dreamweaver CS6  that works perfectly in Firefox, but in iPad it appears blink effect when there´s a transition.
    How to remove blink in transitions for JQuery Mobile ?

    Yes, you can update the included version of jQuery Mobile.
    Download the desired version from jquerymobile.com, and replace the files within Dreamweaver's Configuration folder. Greg Rewis wrote up a helpful blog post that details this process: http://blog.assortedgarbage.com/2011/05/updating-jquery-in-dreamweaver-cs5-5/
    I haven't run into any issues with the newer stable versions (i.e. jQm 1.1.0 and jQ 1.7.1/1.7.2).
    If you do, though, we'd like to hear about it: http://adobe.ly/DWBug

  • Search Page with TopLink + ADF Faces

    Hi,
    I develop a project with JDeveloper 10.1.3.1.0.3984 using Toplink and ADF Faces.
    I test with the embedded OC4J Server.
    I must search in a table with 100 000 rows.
    I follow the tutorial ADF Faces (Chapter 7) :
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
    The search page contains a search form with the table of results.
    I add a Refresh Condition ${adfFacesContext.postback} that keeps the form from executing the query until the user clicks the search button. (Page 7-10)
    It works, but when I launch the search with some parameters, I have a "out of memory" exception, and the good results are displayed in the table.
    I activate the Toplink log, make a new research, and I see 2 sql requests.
    The first one had the default parameters "%" :
    select ... from company where name="%" and cp = "%" and town="%"
    The second one had the good parameters written in the search form :
    select ... from company where name="Uno%" and cp = "65000" and town="%"
    How to avoid the first sql request ?
    Thanks a lot for your help.
    Greetings
    PM

    Hi Shay,
    Thank for your response. I have followed your advice :
    Re: Search Page - Toplink - Double queries
    After several tests, I simplify the problem. I think that the problem doesn't come from Toplink but ADF lifecycle.
    1 - With JDeveloper, I create a simple named query with two parameters (Toplink).
    2 - After, I generate my facade EJB Session Class, add some debug ouputs to see the parameters in the search method and deactivate the code which call the named query (It was not nessary), and create a JSP page using ADF components.
    3 - I drag and drop the search method from the data control panel to the jsp page and create a parameter form.
    4- I run the application. The search page appears with the parameter form. There is no debug output. When I complete the search form and click on the search button, I see the parameter values in the log console. It's normal.
    5- Now, I drag and drop the collection from data control panel to the jsp page and create a ADF Read-Only Table.
    6- I complete Refresh condition :
    <methodIterator id="searchComp2Iter"
    Binds="searchComp2.result"
    DataControl="SessionEJBLocal" RangeSize="10"
    BeanClass="test.model"
    RefreshCondition="${adfFacesContext.postback &amp;&amp; ( bindings.argum1 != null) &amp;&amp; (bindings.argum2 != null) }"
    Refresh="ifNeeded"/>
    7- When I launch the application, There is no debug output. The refresh condition works.
    8- I fill parameters and I click on the search button. I obtain the log :
    07/01/03 11:21:49 TEST 2
    07/01/03 11:21:49 argum1 :null
    07/01/03 11:21:49 argum2 :null
    07/01/03 11:21:49 TEST 2
    07/01/03 11:21:49 argum1 :a
    07/01/03 11:21:49 argum2 :b
    The EJB Session search method is called twice. It's the problem. Why the first call?
    9- When I click a second time on the search button, the EJB Session search method is called once.
    07/01/03 11:22:03 TEST 2
    07/01/03 11:22:03 argum1 :a
    07/01/03 11:22:03 argum2 :b
    How can I have only one call in paragraph 8 ?
    Thank you for your help.
    P.M. MARTIN

  • JQuery Mobile with Kaltura player

    I am able to use the Kaltura player quite well if on my menu page, which allows for navigation to the video-playing page, I use rel="external", but I give up all Ajax navigation buttons. If I don't use rel="external" the poster frame displays fine, but the video never buffers or loads. I'm guessing it's because Kaltura is waiting for a page loaded event that never fires within the Ajax call. Does someone have a solution for me re: how to get the video player to perform normally and still use the ajax navigation buttons?

    Hi,
    Please confirm that your web server is sending the correct headers for the video files -
    AddType video/ogg .ogv
    AddType video/mp4 .mp4
    AddType video/webm .webm
    Consider posting these questions on the library forum - http://www.kaltura.org/forums/html5-video/html5-video

  • ADF Faces (Trinidad?) & Facelets Support

    This is long, but help and advice is very much needed.
    My programming team is facing a migration from UIX to JSF (ADF Faces) for future applications and we have hit a road block in regards to a template structure that is easy to use and maintain. We had gone through official Oracle training with JSF, however the trainer's answer to templates was to "create a template and copy and paste for every new file". For our team this is unacceptable so I've been charged with figuring out how to simply templates for our team. Not only do we need to make this easy for our application developers but we need to keep it simple for web developers to create "simple" survey-like applications.
    From what I've come across the answers seems to be either Facelets or Regions.
    Working with Regions seem to be over-complicated, requiring too much replication (basically back to copy/pasting an entire template) or passing the panelPage's content as a java object (bad for our web developers). I presented the combinations to my team and supervisor and it was agreed that Regions are impractical for our development practices.
    So it seems the answer is with Facelets. The problems I have with this is that:
    1. JDeveloper doesn't appear to natively handle Facelets, or include the libraries.
    2. From what I've learned, the ADF Faces library that comes with JDeveloper doesn't have Facelets support either.
    3. Looking into Trinidad, Facelets support exists but there is a lack of the Oracle skin.
    Facelets support is really what my team needs, as it's the closest thing to the old UIX templates I've seen so far.
    I've followed instructions/examples on several posts here, but I've yet to come across an example that works. I've Googled countless pages and examples, but when it comes down to ADF Faces and Facelets, it seems I'm at a dead end.
    So, can anyone help me with this?
    Thanks in advance,
    Rick
    PS:
    Using JDeveloper 10.1.3.2.0.4066 with stock ADF Faces
    External libraries used:
    Facelets 1.1.11
    Trinidad 1.0.1-incubating

    It just so happens that not long after I posted, I catch the "adf-facelets.jar" on the facelets site.
    dvohra, I had seen the links you've pasted however none of them described the actual process to get it to work, it's all been segmented copy/paste instructions. This doesn't really help someone who is struggling.
    So... I'll paste what my solution was, hopefully this will help others:
    1. Download and install the Facelets 1.1.11 library
    https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3635&expandFolder=3635&folderID=0
    2. Download and install the ADF Facelets library
    https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3990&expandFolder=3990&folderID=0
    3. In web.xml add the following:
    <context-param>
    <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
    <param-value>com.sun.facelets.FaceletViewHandler</param-value>
    </context-param>
    4. Make sure your project's libraries have loaded your Facelets and ADF Facelets, as well as ADF Faces Runtime.
    5. Begin using UI Components as desired.
    Example: http://eugeneciurana.com/pastebin/pastebin.php?show=1308
    Extra notices:
    I had to comment out the following in my faces-config.xml as it conflicted with the web.xml setting:
    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
    This is what worked for me, I hope this helps others out there.
    Thanks,
    Rick

  • ADF Faces or Trinidad?

    This has probably been asked a million times but I did some searching on the forums and I couldn't find a solid answer.
    I'm starting a new large scale J2EE application now that is supposed to mimic a thick client. Not considering ADF RC yet, but potentially later. Would it better to start with the older ADF Faces jar files I have or to go forward with Trinidad?
    There is some confusion on the issue with the other developers I'm working with so I was hoping to get some clarification from someone more knowledgeable on the topic.
    Again, I apologize for asking something that has probably been answered time and time again, but without an official answer we're fighting amongst ourselves as to which to leverage.
    Thanks!

    You are correct the evolution path was UIX->ADF Faces 10.1.3->Trinidad->ADF Faces Rich Client 11g.
    So if you are starting a new project now and you can't use ADF Faces Rich Client I think I would go with JDeveloper 11g and the Trinidad components.
    Now that said, one thing to keep in mind is that there is no automated migration between Trinidad and ADF Faces Rich Client - simply because the type of UI that you can build with the two is completely different. So my actual recommendation for you would be to go directly with ADF Faces Rich Client now.

  • ADF Faces with NetBeans Visual Pack

    Hello all,
    I have NetBeans 5.5.1 installed with the Visual Pack and I am looking to try out other libraries with it, in particular ADF Faces from Oracle.
    Does anyone know how to import the components into the NetBeans Visual Pack? They download from oracle as[b] adf-faces-impl-10_1_3_0_4.jar and not as a complib extension, which NetBeans prefers.
    Please if anyones has any experience with getting this to work let me know. Or if you think it can't work let me know as well?
    Hoping to hear from someone soon. Thanks in advance.

    Hello again,
    Anyone out there using ADF faces with NetBeans Visual Pack who can give some feedback?
    I want to be able to use the drag and drop capabilities of the Visual Pack with the ADF faces components, but I don't see how to configure this as they do not come pre-configured as a complib extension.
    Any feedback would be appreciated.
    Thanks and Regards.

  • Problem with ADF Faces; Bean (session scope) keeps Data after Session ends

    Hi,
    I have a project, which was transferred from an myFaces-project to an ADF Faces-project. Since i´am working with the ADF Faces the data in my beans (which are all in session-scope) won´t vanish after a logout.
    1) I have a method in one bean, which clears the user data (name and passwd), for example, but after a logout (redirecting to the login-page) I just have to push the loginbutton to get in the app. as the last user logged in. The bean is cleared, but where does the data come from. When the app was working with myFaces, this did not happen, the inputText and the inputHidden were empty.
    2) I have a af:table, which displays max ten lines. If the last user watched the elements 21 to 30 in that table, the next user who watches the table gets the same elements shown and not the elements 1 to 10. That shouldn´t happen in a different session.
    3) I have some listboxes in one page, where a user can make some decisions. If i logout and in again, i can see the decisions last made in these listboxes.
    All that happens with beans in session scope!
    Thanks for the replies (i hope) and excuse my bad english,
    Santiago

    Hi
    If this is the case , you can explicitly make all ur session data objects null.

  • Aggregating table - how to solve this with ADF Faces

    Hello.
    I am trying to solve something that would typically be really simple. However, now i' using ADF faces which is new to me and i'm stuck.
    I want to show a table of rows with aggregated numbers (department in example below) and then "open up" any row by clicking on it to display the numbers that make up the aggregate (the guys in the helpdesk department in the example below).
    Something like this:
    DEPARTMENT SALARIES
    +Sales                  1.234.567
    +Warehouse         3.425.553
    -Helpdesk 655.000
    Joe 155.000
    Jill 300.001
    Burt 199.999
    +Personnel           546.225
    +Management     9.646.383
    And to make things more complicated, some of the aggregate rows in my real life example don't have any underlying rows. They just have the total. Can anyone give me hint about how to do this with an ADF Faces-control? I need to show management this can be solved quick and simple with ADF Faces, so i can convince them that it is the way we should be working in the future.
    Edited by: GoodCoffee on Jun 2, 2009 4:15 AM. Trying to indent the three rows under "Helpdesk"

    Hi,
    if you use ADF BC as the business Service then you can create a transient attribute (one that does not ave a database column ) and compute the total. Using JDeveloper 11g, you can use a Groovy expression. The below example calculates the Overall Salary paid by an department. The transient attribute is defined on the Department Entity Object
    XML View
    <Attribute
        Name="SumSalary"
        ColumnName="SUMSALARY"
        SQLType="NUMERIC"
        Type="java.lang.Long"
        ColumnType="NUMBER"
        IsQueriable="false"
        IsPersistent="false">
        <TransientExpression><![CDATA[Employees1.sum("Salary")]]></TransientExpression>
      </Attribute>The Employees1.sum("Salary") string is the Groovy expression that you need to add for the attribute. You select the created transient attribute in the EO editor and press the pencil icon. Then you select "Expression" as the value type and add the string.
    See: http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf
    Frank

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

Maybe you are looking for

  • How to get MM:SS format in to seconds?

    I need to get MM:SS-format in to secs? How?

  • Install file missing in tar archive - how to install?

    I want to update Flashplayer for Firefox on Linux. I downloaded the file install_flash_player_10_linux.tar.gz and unpacked it. The installation instructions on the website say that I should run now the install script. The tar file doesn't contain any

  • How to intercept the Adobe Flash plugin block by firefox checking for vulnerabilities?

    The trouble is the grey block, that asking to update Adobe Flash because the version is vulnerability. If the block of Flash object is smaller, then 100px height - there is an empty space, but not gray block with talking about version. I need to inte

  • How do I download my package?

    I am new to adobe and I'm not sure what I'm doing. I purchased adobe back in December but I waited to download it to my computer because I was getting a new one. Now I signed on to download my package and I cant find it anywhere. I have had 2 payment

  • JMS SBL-EAI-05010

    Hi expert, I'm trying to configure my Siebel JMS component. I've this error in wf log SO: Windows 2003 Siebel 8.1.1.1 I've just checked if these files exists: DLL = C:\Program Files\Java\jre\bin\client\jvm.dll CLASSPATH = "C:\siebel\sba81\siebsrvr\CL