Methodaology to use a commom JSF/JSP page for both PDA and PC Browser

hello,
I am planing to write an application that should work on both PDA(Windows CE 4.2 Client) and PC(Desktop).I choosed JSF as it supports Rendering.Is there any methodology so that i can use a common JSF/JSP for both the client.
As the PDA browser space constrint i can not use the same page for both.
One way as i know is Conditional Component display whre there are ceparate components for PDA & PC ..But i need a methadology where in i can use same component for both PDA & PC .
I came to know about the XML rendering capability of JSF can this be used?..
can anybody please hep me in this regard.
thanks & regards
ullas kumar

Firefox Mobile sends "Android" in its browser identification. If the site is checking for that, then you should get a mobile page. If the site requires more, e.g., Chrome, Webkit, or some other text, then that's a problem because Firefox doesn't use those terms. With server-based redirection, you cannot see what the site is checking for.
For testing, or to work around sites not knowing about Firefox Mobile, you could try the Phony extension: https://addons.mozilla.org/en-us/mobile/addon/phony/

Similar Messages

  • How to Design a Page for Both Insertion and Updation

    Hi,
    I have Page where I need to populate a table from Standard PO/AP table and once the save is clicked on the table,
    the data shoudl be inserted in custoim table.
    Ex: Ui table wil have 3 columns and say 5 rows
    - PO#
    - Line#
    - Amount for 'X' purpose
    where PO# and Invoice# is populated and Amount is empty
    User will enter value in Amount column in all 5 rows and click on Save button.
    Now these 5 rows with 3 columns should be inserted into the custom table (PO#, Line# and Amount)
    How Can I design Model Objects for such a requirement?
    Thanks,
    Kamath

    You should create an EO on your custom table and a VO on your EO. As you insert records in the VO, corresponding rows are created as EO rows and when you commit (getOADBTransaction().commit()) in the AM everything would get committed to the DB.
    As far as subject goes of having a common page, everytime you can execute the VO with the bind parameters and check whether a row exists. If it does exist then update the VO Row (I expect the master record to be unique row). Otherwise create a new Row for the master and then correspondingly for the details row.
    Do let me know in case you need additional information.
    Regards
    Sumit

  • Can I use my phone number in imessage for both iphone and ipad in the same chats?

    I want to use iMessage from my ipad with my phone number not with my e-mail because most of my friends have not my e-mail under my name in their phones.
    So what I want to is being able to talk in the same chat from my ipad and iphone with out showing my e-mail to the person who I'm talking with because that making the chat appears one to me but two to him.
    Thank you and sorry for bad English ;)

    On I pad it only work with E mails because the I Pad is not associated with your cell phone number.

  • Jsp page for mobile in drop down

    How to get the drop down list in the jsp page.for mobile applications
    and how to connect tha field in that drop down to backend
    we r using abstactpage to connect backend.

    answerd

  • Using the same client for both regfree and out-of-proc COM

    Hi,
    Here is the context:
    1. We have the same set of COM objects that can be deployed as in-proc COM servers (dlls) or out-of-proc COM servers (exe).  In-proc servers are called through regfree COM.
    2. We have test projects that use the in-proc COM servers through regfree COM.
    I would like to use the same test client projects for both regfree and out-of-proc COM servers (but not at the same time). For example, I would like to first run the client using regfree COM, then delete the in-proc dll and register the out-of-proc com server,
    and then run the client again without having to recompile.  But I have not found a way to do this.
    Instead, what I have to do is modify the project settings of the test client project, removing the regfree stuff (the manifest dependencies) before I can use the test client project with the out-of-proc server.
    Is there a way to do this without recompiling?
    FYI, I have tried regfree COM by changing the client project's Project->Properties->Linker->Manifest file->Additional Manifest Dependencies, or by changing the client project's Project->Properties->Manifest Tool->Input and Output->Additional
    Manifest Files.  Either way works with regfree COM.  And either way I have to remove those settings before making it work with out-of-proc COM (and hence recompiling, which is what I am trying to avoid).
    Thanks,
    Nick

    Try Manifest Tool > Input and Output > Embed Manifest = No, and change Linker > Manifest File > Manifest File to drop ".intermediate" in the middle (or just rename the file after the build).
    A manifest doesn't have to be embedded into the executable, it could be a standalone file named like ApplicationName.exe.manifest and sitting in the same directory next to the .EXE. Then you can simply delete or rename it back and forth to switch between
    registered and reg-free COM.
    Igor Tandetnik

  • Session in JSF JSP page

    Hi All,
    I am using JSF JSP pages. One such page is login.jsp I have backing object backing_login
    On successful login, listUser.jsp page is displayed. In this page, I have a HTML --- Commons Hyperlink component as follows.
      <tr>
                  <td height="17">
                    <a href="http://129.212.139.36:8991/GeminiLogin-ViewController-context-root/faces/listUsers.jsp">
                      Manage Users
                    </a>
                    <afh:script binding="#{backing_createModify.script1}"
                                id="script1"/>
                  </td>
                </tr>
    Now the question:---
    I do get to know the UserType in the backing_login object (either 'cma' or 'ea').
    Now, if it is cma I want the above link tobe dispalyed in listUser.jsp else DO NOT display the link.
    How can I do that ? I dont know, how to pass UserType information available in baking_login to the listUser.jsp and
    second, how can conditionally use that info to either hide or display that hyperlink ?
    Your help appreaciated.
    thanks in advance
    pp

    You can use an ADF Faces link component and condition the display attribute for it on the value of your backing bean
    There are some samples of conditional display in the posts from Grant here:
    http://groundside.com/blog/GrantRonald.php?m=200512

  • Using JavaBeans in a JSP Page

    I wan't to know the advantages and disadvantages of using JavaBeans in a JSP page.
    Like for example general traditional approach for a database connection
    is to create a connection and access the database from that and close the connection
    at the end of the page, instead of the If I use a common connection bean for making connections,
    is that suggestable and then when should i close the connection then.
    One good application of JavaBeans is using a Set and Get methods for form fields in
    a registration form to get back the values.
    So may i know how best can we use the JavaBeans other than this application.
    ThanX in advance,
    kiran
    [email protected]

    I believe putting processing and query code in the JavaBean was one of the reasons for putting JavaBeans support in JSP in the first place. The original idea was to use the setXXX methods to populate the bean's data from the posted form, then do the processing (or database query), then use the getXXX methods to display the bean's data.
    Efficiency-wise, it's exactly the same as putting all the code in-line in the JSP page (actually, it might be a bit slower, because of the reflection required to do it.) Code-wise though, it makes the JSP easier to read.
    Of course, we have EJBs now too, which tie very closely and can match database queries almost one-to-one, one way to incorporate these is inside the JavaBean you reference from the JSP, another way from a servlet you redirect the JSP to, etc...

  • Oepe-12.1.2.1-kepler how to use ADF Templates in JSP page

    Hi all,
        I use oepe 12.1.2.1 kepler 4.3 and creating JSP page but I can't see any ADF Rich Faces Page in JSP Templates Page of Preferences Dialog. How to use ADF Templates in JSP page?
    Thanks,
    Thomas

    Select the JSP Templates link. Is the ADF Rich Faces Page template listed? Refer Creating the Login Page/4.
    Introduction to the Oracle Enterprise Pack for Eclipse (OEPE) IDE

  • Using threads in a jsp page

    I would like to know wether any one had used threads in a jsp page
    like one thread gets the data from database while other shows some text saying "getting data from database"
    Thank you

    "getting data from database" is not a valid message
    to give. You might think it's interesting, but the
    people using your application don't give a damn about
    you fetching something from the database.
    The basic rule is: people are stupid, don't give them
    any reason to be confused.Funny stuff, Ill remember that :-)

  • Ive just learned that i can use loadjava to load jsp pages into the database.

    Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
    Any ideas?

    Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
    execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
    PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
    ORA-29540: class ZebraGetPrinterFromXML does not exist

  • Create jsf jsp page / page implementation / third option is not visible

    The third option (check box) for page implementation settings in the create jsf jsp page is not visible. The window is not resizable.

    I see the option radio button and text "Automatically Expose UI Components in an Existing Managed Bean" that is disabled but i see only partially the label what is a disabled input text field i suppose just below the radio button.
    I see also the Directory input field and Browse button a little bit truncated at the bottom (1-2 pixels missing).
    I see also the Render in Mobile Device check box and combo box ... cutted by the half when i expand the page implementation part.
    As said the window is not resizable.
    Let me know a location i can send you a hard copy of the screen.

  • 'session' is undefined - javascript error in my JSF/JSP page

    I have the following JSF/JSP page. In onLoad() I invoke a javascript function func(). In this method, I attempt to lookup an attribute from the Http Session. When I run my application, my page is loaded with but the icon on the lower left corner of the browser indicated that there was an error. When I viewed the error, it read : 'session' is undefined.
    The 'session' variable is available in a JSP page.
    So why does my code not work from within a JSF application.
    <?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="#{bean.page1}" id="page1">
                <ui:html binding="#{bean.html1}" id="html1">
                    <ui:head binding="#{bean.head1}" id="head1">
                        </ui:head>
                    <ui:body binding="#{bean.body1}" onLoad="func()" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{bean.form1}" id="form1">                       
                            <h:inputText binding="#{bean.inputText}" id="inputText"/>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
        <script type="text/javascript">
            function func(){                  
                    alert("in func()");
                    var y = session.getAttribute("test");
                    alert(y);
        </script>
    </jsp:root>thanks,
    tsc

    Because :
    Session.getAtrribute is java-code that can only run on the server
    and
    var y = session.getAttribute is javascript-code run on the client.

  • Adding my jsp page for administration

    can i attach my jsp page to manage users and groups by admin, instead of 9IAS portal page to manage users and groups. if i can use it , then how can i map the values entered in my jsp page with the 9IAS portal page for creating and managing users and groups.

    Then your question was wrong. You asked how to include package. The solution to that is that you don't need to add the import since it happens automatically.
    Your actual problem was that the package was not found. If you'd mentioned that earlier, someone could've suggested that you check to see if you'd added the API library to your classpath and you'd have got your answer faster.
    You should state your exact problem and post the relevant stack trace and exceptions and code if any.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to solve page flickering in a jsp page for chat

    Hi,
    I'm trying to build a very simple chat application. I'm using JSP as the frontend. The problem is that when I want to refresh the messages typed and list of users currently logged in, the page is refreshing using html refresh tag. The result is very bad to the eye since the page flicker. Is there a way to solve this without using Applet ?
    Thanks,
    Ron

    hidden frames for data loading and Javascript for DHTML manipulation, maybe

  • I used to have a web page in mobile me and now is closed.  How can I get my webpage data back?

    I used to have a web page in mobile me and now is closed.  How can I get my webpage data back?

    Your web pages on MobileMe have been deleted. If you were using iWeb you wouldn't have been able to open them anyway.
    As long as you have the iWeb 'Domain' file in your user Library, or whatever the program you are using stores the information in, on your Mac you can publish to another hosting service - there are plenty to choose from. More information here:
    http://rfwilmut.net/missing2

Maybe you are looking for