JSF for WAP/WML?

I am currently developing a service that must be available through HTML/HTTP but also WML/HTTP. One of the reasons I have chosen JSF is that, in principle, it is independent from the markup language.
I would be very interested to hear from anyone who used JSF to render another markup than HTML, in particular WML.
Thanks,
Bruno Collet
http://www.practicalsoftwarearchitect.com

Hi Bill,
renderkit is independent on the concrete JSF implementation. But in the Sun reference implementation I�ve found a problem with duplication IDs in view(http://forum.java.sun.com/thread.jspa?forumID=427&threadID=524925). I must resolve it.
Now I'll finish with testing then I must register a domain and create a web presentation for JSF. I will give an announce when it's ready.
Thanks for support
Jijik

Similar Messages

  • 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

  • Java and XML for WAP

    Book Title: XML How to Program (Deitel) by Laxxsuss
    Chap 16: Server- side Java Programming
    Case Study: A Wireless Online Bookstore
    i have to tried but error, and the message is HTTP ERROR 404
    i am following the step to setup
    To setup your computer to build the wireless online bookstore
    application, follow these steps:
    1. Register the databases cart.mdb and catalog.mdb as ODBC data sources.The username is anonymous and the password is guest for both databases.
    2. Download and install Java™ 2 SDK, Standard Edition Version 1.3.0 from www.java.sun.com.
    3. Download Jakarta Tomcat from jakarta.apache.org/downloads/binindex.html and follow the installation instructions in the user’s guide. In this example, we assume Jakarta Tomcat is installed in C:\jakarta-tomcat.
    4. Place the XSL files in the directory jakarta-tomcat\webapps\chapter16\ and the Java class files in the directory jakarta-tomcat\webapps\chapter16\WEB-INF\classes\cartXML\.
    5. Download the Xalan XSLT processor from xml.apache.org/xalan/index.html.
    Place xalan.jar and xerces.jar in jakarta-tomcat\webapps\chapter16\WEB-INF\lib\.
    6. Download and install the UP.SDK from www.phone.com/products/upsdk.html.
    This includes UP.Simulator, which simulates a wireless phone. We will use this to test the wireless online bookstore.
    7. Add the following XML tag in the ContextManager element in \jakartatomcat\conf\server.xml:
    <Context path = "/chapter16" docBase = "webapps/chapter16"
    debug = "0" reloadable = "true"></Context>
    8. Add the following XML in the web-app element in jakarta-tomcat\conf\web.xml:
    <mime-mapping>
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    9. Run Jakarta Tomcat by executing \jakarta-tomcat\bin\startup.bat.
    please help me, if any knows about this problem....
    Thanx. GBU

    1st, ) Raw Data e.g, journey time, journey distance
    2nd, ) I would want the system to recognise the 'raw data' mentioned before and transform this into graphical image(s).
    3rd ) a complete visualisation would look like,
    modes of transport represented by pics or logos, showing the time to get to from A to B.
    Showing various routes, eg, walking, and/or bus and/or tube

  • Please help me: XHTML-pages for WAP 2.0-Mobiles :-((

    Hello,
    Is anyone here, who could help me, please... :-(
    I want to create a short XHTML-Homepage for WAP 2.0 Mobiles.
    I've created the following test-page and I don't know, if this simple page will be displayed correctly on every XHTML-Mobile?
    I'm using Tomcat 5.x . Do I have to change some settings in order to provide XHTML-pages for such Mobiles?
    My next problem is, I don't have a XHTML-Mobile.
    For WAP 1.0 I'm using http://wapsilon.com in order to preview the WAP-page.
    For XHTML-pages, I also need such an application showing the preview.
    Does anyone know such a freeware tool?
    This is the content of my XHTML-page (filename: testpage.jsp):
    <%@ page contentType="text/vnd.wap.xhtml+xml" %>
    <?xml version="1.0" encoding="iso-8859-15"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="iso-8859-1" doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.0//EN" doctype-system="http://www.wapforum.org/DTD/xhtml-mobile10.dtd"/>
    <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Test-Page</title>
    </head>
    <body>
    <img src="img/logo.gif"/>
    <xsl:apply-templates/>
    This page should be displayed for XHTML (WAP 2.0) Mobiles!
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Pleas help me...
    bye
    Chris

    Many (most?) phone makers or phone browser makers provide free simulators that you can run on the PC to test with. OpenWave makes them for their browsers, Nokia has simulators for their phones.
    You just enter the URL for the page like you would in a regular web browser.

  • Documentation/Example Code for WAPI

    Can anybody point me to a place from where i can get Documentation or Example Code for WAPI calls. Especially
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_WRITE_CONTAINER.

    Can anybody point me to a place from where i can get Documentation or Example Code for WAPI calls. Especially
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_WRITE_CONTAINER.

  • Is there any component in JSF for   file browsing

    Hi Friends,
    i have to place a file browser in my page,i am using JSF Framework. so i need file browser component in JSF , but i am not able to find the JSF Component for file browser.( in normal html there is this tag {<input type="file" /> } for file browsing ), is there tag for file browsing in JSF.

    Edukondalu_Avula wrote:
    can you tell me what is the jar file i have to add for this taglib
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
    Read reply #3. I have posted a link.

  • WAP-WML IDE

    Hi all,
    I dont know whether its a right palce to post this question or not. Sorry,if its not
    I m developing a site which can be viewed on any mobile so.
    I need it to develop it using WML with JSP..
    As netbeans doesnt provide WML simulator i need a good ide fulfills all the requirements.
    Does Sun One Studio supports it?
    Or plz suggest me a good ide

    I think the problem maybe thatmy old phone is with another telco which is providing the WAP Gateway to compile the WML to WMLC and the dual browser phone company (Vodafone) is not passing the connection request through the gateway.
    I will visit a Vodafone support centre today and see what comes of it.

  • Error with JSF for Single Page in MY Project But rmaining pages are working

    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    javax.servlet.jsp.JspException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application
    at tags.templates.InsertTag.doEndTag(InsertTag.java:26)
    at org.apache.jsp.updatetpl_jsp._jspx_meth_template_insert_0(updatetpl_jsp.java:123)
    at org.apache.jsp.updatetpl_jsp._jspService(updatetpl_jsp.java:65)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    update.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <h:form id="customerform">
    <h:dataTable id="updatecustomers" value="#{data.updateModel}" var="updat">
    <h:column>
    <f:facet name="header">
    <h:outputText value="CustomerNumber"/>
    </f:facet>
    <h:inputText value="#{updat.customerNumber}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="FirstName"/>
    </f:facet>
    <h:inputText value="#{updat.firstName}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="LastName"/>
    </f:facet>
    <h:inputText value="#{updat.lastName}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="StreetAddress"/>
    </f:facet>
    <h:inputText value="#{updat.streetAddress}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="City"/>
    </f:facet>
    <h:selectOneMenu id="chooseCity" value="#{updat.city}"required="true">
    <f:selectItem itemValue="TVM" itemLabel="TVM"/>
    <f:selectItem itemValue="Cochin" itemLabel="Cochin"/>
    <f:selectItem itemValue="Bglr" itemLabel="Bglr"/>
    <f:selectItem itemValue="Mysore" itemLabel="Mysore"/>
    <f:selectItem itemValue="Calicut" itemLabel="Calicut"/>
    </h:selectOneMenu>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="State"/>
    </f:facet>
    <h:selectOneMenu id="chooseState" value="#{updat.state}"required="true">
    <f:selectItem itemValue="KL" itemLabel="Kerala"/>
    <f:selectItem itemValue="KA" itemLabel="Karanataka"/>
    </h:selectOneMenu>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Zip"/>
    </f:facet>
    <h:inputText value="#{updat.zip}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Save"/>
    </f:facet>
    <h:commandButton id="savesubmit" value="Save" action="#{data.saveData}">
    </h:commandButton>
    </h:column>
    </h:dataTable>
    </h:form>
    </f:view>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <!-- JSF Config Listener -->
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <session-config><session-timeout>
    30
    </session-timeout></session-config>
    <welcome-file-list><welcome-file>
    index.jsp
    </welcome-file></welcome-file-list>
    <taglib>
         <taglib-uri>/WEB-INF/tlds/template.tld</taglib-uri>
         <taglib-location>/WEB-INF/tlds/template.tld</taglib-location>
    </taglib>
    </web-app>
    please help me i am working with net beaans............i have added all required .jar files with that.

    The question mark icon on the dlls indicates that LabVIEW is unsure of
    the location of the DLL, or is unable to locate the DLL on your
    system.  This can happen if the DLLs do not exist, or if the "Call
    Library Function Node" just specifies the name of the dll, and not the
    entire path to the dll.  IVI and Instrument driver VIs will
    typically not supply the entire path to the DLL, whch would cause the
    question mark icon to appear.
    If your application is working properly, then you should ignore the
    question mark in the dependencies list.  If your application is
    broken because the DLLs cannot be found, they are installed with the
    following drivers:
    ivi.dll is installed with the IVI compliance package, which is available at the following link:
    Drivers and Updates: IVI Compliance Package
    You should also install the latest version of NI-VISA, which is required by the IVI Compliance Package:
    Drivers and Updates: NI-VISA
    ag3325b_32.dll is installed with the your instrument's IVI driver, which can be found below:
    Agilent 3325b Instrument Driver
    Jason S.
    Applications Engineer
    National Instruments

  • Content too large for WAP devices

    Hello,
    We made a service which gets a certain amount of content from a website. The exact amount is different each time. Sometimes a WAP device cannot display all the content (content too large), because of the small memory it has. How can we solve this problem. Can we make adjustments to WML transformer to solve the problem? Any help would be appreciated. Thanks in advance!
    Arjan Hummel
    null

    The content on a DVD is mpg-2 compressed in standard definition size. This means that no matter what fancy compression scheme or how small you make the images in pixel size, the final DVD size will be the same (but the quality won't).
    Using iDVD you can fit up to about 2 hrs playing time on a single layer disc - that's it!
    Roxio's Toast Titanium will give you a compress to fit option, so if you must put 2:30 of content on a single-layer DVD you will have to use Roxio's Toast.

  • JSF for big traffic sites? Any experiences

    I am wondering if JSF is a good choice for websites with a lot of traffic, e.g. all these mega-hyped Web 2.0 community sites? As far as I know mostly all of them use PHP. Does anyone at all use Java for something like that? Why not?
    Is there any reason that a serious Java stack with JSF on top would be the wrong choice for it? Is the memory footprint per user too big? Are there not enough ready-to-use opensource modules (forums, chat, picsupload...) written in Java?
    I have found one single Web 2.0 site using Java (Wicket to be exact). What are the others using? Facebook, MySpace, LinkedIn and so are all PHP (I think).
    Please comment. I still think JSF is the future of web development and I am wondering why it is used mainly only for relatively small(in user count) and closed intranet applications.

    Is there really noone out there that has tried this?

  • WML help for  Struts-wml tag lib

    I tried using the tag lib of struts but I didn't find wml:card tag..........

    thank you Shay Shmeltzer
    i added the tld to my jdev.
    but now the property inspector of any component of this tag lib is empty.
    i can see all components in the component palette.
    another thing can you help me to use struts-layout libraries?
    i see in the code
    <layout:form action="/login" styleClass="FORM" key="form1.title" reqCode="login" focus="login">
    i can't find were are styleClass (css)?
    i looked for in all the project and in libraries?
    thank you very much..
    Talel...;

  • Looking for open source project in JSF for learning

    Hi,
    I am quite a beginner to JSF, I think it will be good to read some existing source code, could anyone recommend some projects that I can turn to? I am particual interested in an online text editor.
    I think currently I could understand how the jsf works, its relationship with jsp, html, css,and how It could cooperate with AJAX. and I have written a small amount of web pages , which were aimed at providing a blog-publish like service. That's why I am interested in online text editor. But any other capable project would be also helpful for me.
    Thanks.

    You can find (simple) samples here:
    [https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=4036&expandFolder=4036&folderID=0]
    [http://www.coreservlets.com/JSF-Tutorial/]
    You can find a HTML/rich text editor as JSF component in the Mojarra Scales component library: [https://scales.dev.java.net/htmlEditor.html].

  • Reliable User Identification for WAP Sites

    Hi,
    We have a wap site serving java games for customers. We get the user information from the WAP gateway x-msisdn http header. But we cannot get any user information for another Operator who not set x-msisdn header. This is not the real problem but it will be nice to overcome it.
    The real problem is that if we use a phone emulator (ex.openwave phone simulator) we can set whatever http header we want and connect to the site as if we are connecting from a mobile phone with whatever msisdn we want.
    And the question is, how we can identify users securely? Is there a method for this? Can we diffrentiate the requests by coming from a real mobile device or coming from a simulator?
    An idea, if we check the request comes from the gateway will it be reliable? What if users use "internet apn" wouldnt they be eliminated by this method? Is there any phone model setting x-msisdn by itself without the need of wap gateway?
    Asked many questions but i think they all related to solve this issue. I will be grateful for any ideas. Thanks in advance...

    The IP is always stored in the log file on a server if you visit a website. It is the same on forums if you post a message. An Administrator can always access such a log file, but that data isn't part of the crash report AFAIK.

  • SMTP authentication for wap baesd email

    Hi...
    I m trying my hands on WAP based email system... I m working with javamail and servlets for the same..
    The application developed so far works well except while sending mails, SMTP authentication is requred..
    can some one elaborate how to handle this thru java as in while creating SMTP session smtpsession, how do we use the authentication feature....
    Thnkcx
    v!
    More details.. this is my send mail function.
    public void send(HttpServletRequest request,HttpServletResponse response, UserSessionData userSessionData)
    throws ServletException, IOException, MessagingException {
    try {
    String from = userSessionData.getEmailAddress();
    String to = request.getParameter("to");
    String cc = request.getParameter("cc");
    String subject = request.getParameter("subject");
    String text = request.getParameter("text");
    //Define message
    MimeMessage message = new MimeMessage(userSessionData.getSmtpSession());
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    try {
    message.addRecipient(Message.RecipientType.CC, new InternetAddress(cc));
    } catch (AddressException ae) {
    //Bad cc address
    message.setSubject(subject);
    message.setText(text);
    //send message
    Transport.send(message);
    this.mainMenu(request, response, userSessionData);
    }catch (Exception e) {
    e.printStackTrace();
    Any suggestions guys ?

    I hope this help you
    //Define message
    Session session = userSessionData.getSmtpSession();
    MimeMessage message = new MimeMessage(session);
    // Send message
    Transport transport = session.getTransport("smtp");
    transport.connect(HOST, MAIL_USER, MAIL_PWD);transport.sendMessage(message);

  • Using JSF for NWDS 7.0

    Hi, I'm pretty new to NWDS and I was wondering if someone could point me to a step-by-step guide on what I should do to be able to use JavaServer Faces in developing a Web App?  Like how should I add the JSF libraries and is there a plugin for this? I looked everywhere and I can't seem to find a guide.  This is my first time using NWDS 7.0 and I was using NetBeans for developing JSF applications.
    Thanks.

    Hi,
    I think this is a good tutorial :
    http://help.sap.com/saphelp_nw70/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Best Regards,
    Ervin

Maybe you are looking for