Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

wmlprogramming · WML,XHTML,WURFL & Mobile-related stuff

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 31695 - 31724 of 34585   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#31695 From: Marc Guay <marc.guay@...>
Date: Tue Dec 1, 2009 4:02 pm
Subject: HTML Support in Email Programs on Mobile Phones
mguay11
Send Email Send Email
 
Hi everyone,

I hope this isn't out of the scope of the group.  I've been given the
task of creating a mobile friendly email campaign.  Is there any good
documentation on this?  My understanding of the situation is that the
built-in Blackberry email program cannot render HTML at all, thus
rendering useless anything beyond straight text (even a link to open
the browser and display something half-nice looking on a web page
wouldn't work?).  Does anyone with some experience in this department
have any advice on where to take this?  My original idea was to
implement a simple "Mobile version" link in the email that goes to a
web page with proper device detection.

Cheers,
Marc

#31696 From: "erikh2000" <erikh2000@...>
Date: Tue Dec 1, 2009 7:04 pm
Subject: Using WALL with JSP tag files.
erikh2000
Send Email Send Email
 
For my WALL-based project, there are many UI components that are reused across multiple pages.  I.e. certain markup is always output to show headers and footers.  To encapsulate this functionality, I would like to use JSP tag files.  So for example, I have this JSP file to output a page:
test.jsp
<%@ taglib prefix="mytags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
<mytags:page title="Test">
    <wall:block>This line causes an error.</wall:block>
</mytags:page>
The line in red shown above causes an error inside of WallFilter.doFilter() complaining that "tag must be inside 'document' tag".  I see how, at first glance, it appears the "block" tag is being rendered outside of a "document" tag, but the custom "page" tag outputs enclosing "wall:document" and "wall:body" tags.  If I remove the line in red above, the markup will render correctly as HTML (or WML if I set the user agent appropriately).  Is there a way that I can use custom tags that output WALL tags?  If all WALL tags must be in-line then I have a code maintenance problem to solve where small changes may need to be applied to hundreds of pages.

For reference, the code for the page.tag and the exception are shown below.
page.tag
<%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
<%@ attribute name="title" required="false" %>
<wall:document>
    <wall:xmlpidtd />
    <wall:head>
        <wall:title enforce_title="true">${title}</wall:title>
    </wall:head>
    <wall:body>
        <wall:block>Header Goes Here</wall:block>
        <jsp:doBody />
        <wall:block>Footer Goes Here</wall:block>
    </wall:body>
</wall:document>
Thrown exception (root cause):
java.lang.RuntimeException: tag must be inside 'document' tag
net.sourceforge.wurfl.wall.DocumentTag.checkPosition(DocumentTag.java:27)
net.sourceforge.wurfl.wall.BodyTag.checkPosition(BodyTag.java:23)
net.sourceforge.wurfl.wall.WallTag.doStartTag(WallTag.java:37)
org.apache.jsp.tag.web.common.block_tag._jspx_meth_wall_005fblock_005f0(block_tag.java:87)
org.apache.jsp.tag.web.common.block_tag.doTag(block_tag.java:62)
org.apache.jsp.home_jsp._jspx_meth_evc_005fblock_005f0(home_jsp.java:102)
org.apache.jsp.home_jsp.access$0(home_jsp.java:92)
org.apache.jsp.home_jsp$Helper.invoke0(home_jsp.java:123)
org.apache.jsp.home_jsp$Helper.invoke(home_jsp.java:147)
org.apache.jsp.tag.web.common.page_tag._jspx_meth_wall_005fbody_005f0(page_tag.java:266)
org.apache.jsp.tag.web.common.page_tag._jspx_meth_wall_005fdocument_005f0(page_tag.java:133)
org.apache.jsp.tag.web.common.page_tag.doTag(page_tag.java:90)
org.apache.jsp.home_jsp._jspx_meth_evc_005fpage_005f0(home_jsp.java:87)
org.apache.jsp.home_jsp._jspService(home_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
net.sourceforge.wurfl.wall.context.WALLFilter.doFilter(WALLFilter.java:67)


#31697 From: Filippo De Luca <filosganga80@...>
Date: Tue Dec 1, 2009 11:14 pm
Subject: Re: Using WALL with JSP tag files.
dl.filippo
Send Email Send Email
 
Hi,
wich version of wall are you using?

2009/12/1 erikh2000 <erikh2000@...>
 

For my WALL-based project, there are many UI components that are reused across multiple pages.  I.e. certain markup is always output to show headers and footers.  To encapsulate this functionality, I would like to use JSP tag files.  So for example, I have this JSP file to output a page:

test.jsp
<%@ taglib prefix="mytags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
<mytags:page title="Test">
    <wall:block>This line causes an error.</wall:block>
</mytags:page>
The line in red shown above causes an error inside of WallFilter.doFilter() complaining that "tag must be inside 'document' tag".  I see how, at first glance, it appears the "block" tag is being rendered outside of a "document" tag, but the custom "page" tag outputs enclosing "wall:document" and "wall:body" tags.  If I remove the line in red above, the markup will render correctly as HTML (or WML if I set the user agent appropriately).  Is there a way that I can use custom tags that output WALL tags?  If all WALL tags must be in-line then I have a code maintenance problem to solve where small changes may need to be applied to hundreds of pages.

For reference, the code for the page.tag and the exception are shown below.
page.tag
<%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
<%@ attribute name="title" required="false" %>
<wall:document>
    <wall:xmlpidtd />
    <wall:head>
        <wall:title enforce_title="true">${title}</wall:title>
    </wall:head>
    <wall:body>
        <wall:block>Header Goes Here</wall:block>
        <jsp:doBody />
        <wall:block>Footer Goes Here</wall:block>
    </wall:body>
</wall:document>
Thrown exception (root cause):
java.lang.RuntimeException: tag must be inside 'document' tag
net.sourceforge.wurfl.wall.DocumentTag.checkPosition(DocumentTag.java:27)
net.sourceforge.wurfl.wall.BodyTag.checkPosition(BodyTag.java:23)
net.sourceforge.wurfl.wall.WallTag.doStartTag(WallTag.java:37)
org.apache.jsp.tag.web.common.block_tag._jspx_meth_wall_005fblock_005f0(block_tag.java:87)
org.apache.jsp.tag.web.common.block_tag.doTag(block_tag.java:62)
org.apache.jsp.home_jsp._jspx_meth_evc_005fblock_005f0(home_jsp.java:102)
org.apache.jsp.home_jsp.access$0(home_jsp.java:92)
org.apache.jsp.home_jsp$Helper.invoke0(home_jsp.java:123)
org.apache.jsp.home_jsp$Helper.invoke(home_jsp.java:147)
org.apache.jsp.tag.web.common.page_tag._jspx_meth_wall_005fbody_005f0(page_tag.java:266)
org.apache.jsp.tag.web.common.page_tag._jspx_meth_wall_005fdocument_005f0(page_tag.java:133)
org.apache.jsp.tag.web.common.page_tag.doTag(page_tag.java:90)
org.apache.jsp.home_jsp._jspx_meth_evc_005fpage_005f0(home_jsp.java:87)
org.apache.jsp.home_jsp._jspService(home_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
net.sourceforge.wurfl.wall.context.WALLFilter.doFilter(WALLFilter.java:67)




--
Filippo De Luca
--------------------------
Email: dl.filippo@...
Web:   http://www.filosganga.it
LinkedIn: http://www.linkedin.com/in/filippodeluca
mobile: +393395822588

#31698 From: "erikh2000" <erikh2000@...>
Date: Tue Dec 1, 2009 11:52 pm
Subject: Re: Using WALL with JSP tag files.
erikh2000
Send Email Send Email
 
Luca, this is WALL 1.0.

I've narrowed the problem down a little more...

The class implementing the "block" tag (WallBlockTag) derives from a couple of
other classes (DocumentTag and BodyTag) that verify that the tag has parents of
"document" or "body".  Sensible, of course, but the code breaks in my case.

-Erik

--- In wmlprogramming@yahoogroups.com, Filippo De Luca <filosganga80@...> wrote:
>
> Hi,
> wich version of wall are you using?
>
> 2009/12/1 erikh2000 <erikh2000@...>
>
> >
> >
> > For my WALL-based project, there are many UI components that are reused
> > across multiple pages.  I.e. certain markup is always output to show headers
> > and footers.  To encapsulate this functionality, I would like to use JSP tag
> > files.  So for example, I have this JSP file to output a page:
> >
> > *test.jsp*
> > <%@ taglib prefix="mytags" tagdir="/WEB-INF/tags" %>
> > <%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
> > <mytags:page title="Test">
> >     <wall:block>This line causes an error.</wall:block>
> > </mytags:page>
> >
> > The line in red shown above causes an error inside of WallFilter.doFilter()
> > complaining that "tag must be inside 'document' tag".  I see how, at first
> > glance, it appears the "block" tag is being rendered outside of a "document"
> > tag, but the custom "page" tag outputs enclosing "wall:document" and
> > "wall:body" tags.  If I remove the line in red above, the markup will render
> > correctly as HTML (or WML if I set the user agent appropriately).  Is there
> > a way that I can use custom tags that output WALL tags?  If all WALL tags
> > must be in-line then I have a code maintenance problem to solve where small
> > changes may need to be applied to hundreds of pages.
> >
> > For reference, the code for the page.tag and the exception are shown below.
> >
> > *page.tag*
> > <%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
> > <%@ attribute name="title" required="false" %>
> > <wall:document>
> >     <wall:xmlpidtd />
> >     <wall:head>
> >         <wall:title enforce_title="true">${title}</wall:title>
> >     </wall:head>
> >     <wall:body>
> >         <wall:block>Header Goes Here</wall:block>
> >         <jsp:doBody />
> >         <wall:block>Footer Goes Here</wall:block>
> >     </wall:body>
> > </wall:document>
> >
> > *Thrown exception (root cause):*
> >
> > java.lang.RuntimeException: tag must be inside 'document' tag
> >  net.sourceforge.wurfl.wall.DocumentTag.checkPosition(DocumentTag.java:27)
> >  net.sourceforge.wurfl.wall.BodyTag.checkPosition(BodyTag.java:23)
> >  net.sourceforge.wurfl.wall.WallTag.doStartTag(WallTag.java:37)
> > 
org.apache.jsp.tag.web.common.block_tag._jspx_meth_wall_005fblock_005f0(block_ta\
g.java:87)
> >  org.apache.jsp.tag.web.common.block_tag.doTag(block_tag.java:62)
> >  org.apache.jsp.home_jsp._jspx_meth_evc_005fblock_005f0(home_jsp.java:102)
> >  org.apache.jsp.home_jsp.access$0(home_jsp.java:92)
> >  org.apache.jsp.home_jsp$Helper.invoke0(home_jsp.java:123)
> >  org.apache.jsp.home_jsp$Helper.invoke(home_jsp.java:147)
> > 
org.apache.jsp.tag.web.common.page_tag._jspx_meth_wall_005fbody_005f0(page_tag.j\
ava:266)
> > 
org.apache.jsp.tag.web.common.page_tag._jspx_meth_wall_005fdocument_005f0(page_t\
ag.java:133)
> >  org.apache.jsp.tag.web.common.page_tag.doTag(page_tag.java:90)
> >  org.apache.jsp.home_jsp._jspx_meth_evc_005fpage_005f0(home_jsp.java:87)
> >  org.apache.jsp.home_jsp._jspService(home_jsp.java:62)
> >  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> >  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> >  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > 
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
> >  org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
> >  org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
> >  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> >  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> >  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >  net.sourceforge.wurfl.wall.context.WALLFilter.doFilter(WALLFilter.java:67)
> >
> >
> >
> >
>
>
>
> --
> Filippo De Luca
> --------------------------
> Email: dl.filippo@...
> Web:   http://www.filosganga.it
> LinkedIn: http://www.linkedin.com/in/filippodeluca
> mobile: +393395822588
>

#31699 From: "erikh2000" <erikh2000@...>
Date: Wed Dec 2, 2009 3:39 am
Subject: Re: Using WALL with JSP tag files.
erikh2000
Send Email Send Email
 
I've discovered one workaround that is quite ugly.  If Luca or anyone else  knows of a better way, I would appreciate hearing it.

1. The top-level JSP only calls my custom tags--never WALL tags.
2. My custom tags retrieve the tag handler instance, and make direct calls to retrieve start and end output.

It's ugly because I'm introducing dependencies to non-API classes, specifically the TagHandler and tag classes.

Example code that fixes the problem shown below:
test.jsp
<%@ taglib prefix="mytags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
<mytags:page title="Test">
<mytags:block>This line used to be enclosed in wall "block" tags.</mytags:block>
</mytags:page>
block.tag
<%@ tag import="net.sourceforge.wurfl.wall.WallBlock" %>
<%@ tag import="net.sourceforge.wurfl.wall.WallConstants" %>
<%@ tag import="net.sourceforge.wurfl.wall.render.TagsHandler" %>
<%
        WallBlock wb = new WallBlock();   
        TagsHandler tagsHandler =     
                (TagsHandler)request.getSession().getAttribute(WallConstants.ATT_TAGS_HANDLER);
        if (tagsHandler == null)
            tagsHandler = (TagsHandler)request.getAttribute(WallConstants.ATT_TAGS_HANDLER);
        out.print(tagsHandler.generateBlockStartTag(wb));
%><jsp:doBody /<%
        out.print(tagsHandler.generateBlockEndTag(wb));
%>
page.tag
(same as previously described)

#31700 From: "roeea2" <roeea2@...>
Date: Wed Dec 2, 2009 7:38 pm
Subject: Problem with the new php API
roeea2
Send Email Send Email
 
Hi Guys.
I have this exception when trying to load the API for the first time:
Warning:
fopen(/home/virtual/roy/public_html/wurfl-php-1.r1/examples/demo/inc/../../resou\
rces/./cache/FILE_PERSISTENCE_PROVIDER/175c9179bdfce4783c37873d777f11c2)
[function.fopen]: failed to open stream: Disk quota exceeded in
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php on line 75

Fatal error: Uncaught exception 'WURFL_WURFLException' with message 'Could not
write to File' in
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php:77 Stack
trace: #0
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/PersistenceProvider/FileP\
ersistenceProvider.php(63): WURFL_FileManager::save('WURFL_FILE_PERS...',
Object(WURFL_Xml_ModelDevice), '/home/virtual/r...') #1
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(16\
4):
WURFL_Xml_PersistenceProvider_FilePersistenceProvider->save('samsung_a412_ve...'\
, Object(WURFL_Xml_ModelDevice)) #2
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(12\
0): WURFL_Xml_XMLResourceManager->updateAndSaveDataStuctures(Array) #3
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(74\
): WURFL_Xml_XMLResourceManager->init() #4
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/WURFLManagerProvider.php(85):
WURFL_Xml_XMLResourceManager->__construct(Object(WURFL_Xml_PersistenceProvider_F\
ilePersis in /home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php
on line 77

Regards,

Roee

#31701 From: "Cristiano" <cristiano@...>
Date: Wed Dec 2, 2009 10:22 pm
Subject: Re: Problem with the new php API
cristianods
Send Email Send Email
 
I might be wrong but I think that you do not have the cache for WURFL correctly
configured.

Does the folder:
/home/virtual/roy/public_html/wurfl-php-1.r1/examples/demo/inc/../../resou\
rces/./cache/

Has write persmissions ?

If not so, it will try to add a cache entry and give you the error and in the
same way it will not find the cache file to read.

Good Luck.

Regards

Cristiano

--- In wmlprogramming@yahoogroups.com, "roeea2" <roeea2@...> wrote:
>
> Hi Guys.
> I have this exception when trying to load the API for the first time:
> Warning:
fopen(/home/virtual/roy/public_html/wurfl-php-1.r1/examples/demo/inc/../../resou\
rces/./cache/FILE_PERSISTENCE_PROVIDER/175c9179bdfce4783c37873d777f11c2)
[function.fopen]: failed to open stream: Disk quota exceeded in
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php on line 75
>
> Fatal error: Uncaught exception 'WURFL_WURFLException' with message 'Could not
write to File' in
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php:77 Stack
trace: #0
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/PersistenceProvider/FileP\
ersistenceProvider.php(63): WURFL_FileManager::save('WURFL_FILE_PERS...',
Object(WURFL_Xml_ModelDevice), '/home/virtual/r...') #1
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(16\
4):
WURFL_Xml_PersistenceProvider_FilePersistenceProvider->save('samsung_a412_ve...'\
, Object(WURFL_Xml_ModelDevice)) #2
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(12\
0): WURFL_Xml_XMLResourceManager->updateAndSaveDataStuctures(Array) #3
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(74\
): WURFL_Xml_XMLResourceManager->init() #4
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/WURFLManagerProvider.php(85):
WURFL_Xml_XMLResourceManager->__construct(Object(WURFL_Xml_PersistenceProvider_F\
ilePersis in /home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php
on line 77
>
> Regards,
>
> Roee
>

#31702 From: Filippo De Luca <filosganga80@...>
Date: Thu Dec 3, 2009 10:25 am
Subject: Re: Re: Using WALL with JSP tag files.
dl.filippo
Send Email Send Email
 
Hi,
This is a know issue in the 1.0 version, try to use the 1.0.1-SNAPSHOT version from here: https://sourceforge.net/projects/wurfl/files/WALL/1.0.1-SNAPSHOT/

If you are using maven, configure your pom to use this snapshots repository: http://dev.wurflpro.com/nexus/content/repositories/public-snapshot/

2009/12/2 erikh2000 <erikh2000@...>
 

I've discovered one workaround that is quite ugly.  If Luca or anyone else  knows of a better way, I would appreciate hearing it.

1. The top-level JSP only calls my custom tags--never WALL tags.
2. My custom tags retrieve the tag handler instance, and make direct calls to retrieve start and end output.

It's ugly because I'm introducing dependencies to non-API classes, specifically the TagHandler and tag classes.

Example code that fixes the problem shown below:

test.jsp
<%@ taglib prefix="mytags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="wall" uri="http://wurfl.sourceforge.net/wall" %>
<mytags:page title="Test">
<mytags:block>This line used to be enclosed in wall "block" tags.</mytags:block>
</mytags:page>
block.tag
<%@ tag import="net.sourceforge.wurfl.wall.WallBlock" %>
<%@ tag import="net.sourceforge.wurfl.wall.WallConstants" %>
<%@ tag import="net.sourceforge.wurfl.wall.render.TagsHandler" %>
<%
        WallBlock wb = new WallBlock();   
        TagsHandler tagsHandler =     
                (TagsHandler)request.getSession().getAttribute(WallConstants.ATT_TAGS_HANDLER);
        if (tagsHandler == null)
            tagsHandler = (TagsHandler)request.getAttribute(WallConstants.ATT_TAGS_HANDLER);
        out.print(tagsHandler.generateBlockStartTag(wb));
%><jsp:doBody /<%
        out.print(tagsHandler.generateBlockEndTag(wb));
%>
page.tag
(same as previously described)



--
Filippo De Luca
--------------------------
Email: dl.filippo@...
Web:   http://www.filosganga.it
LinkedIn: http://www.linkedin.com/in/filippodeluca
mobile: +393395822588

#31703 From: "roeea2" <roeea2@...>
Date: Thu Dec 3, 2009 11:14 am
Subject: Re: Problem with the new php API
roeea2
Send Email Send Email
 
Hi and thank.

I am using the examples/resources/cache folder for my needs
And i think it was an out of space problem.

I have another issue but this is on another post.
BTW is it ok to work under the examples/resources folder??

Regards,

Roee

--- In wmlprogramming@yahoogroups.com, "Cristiano" <cristiano@...> wrote:
>
> I might be wrong but I think that you do not have the cache for WURFL
correctly configured.
>
> Does the folder:
/home/virtual/roy/public_html/wurfl-php-1.r1/examples/demo/inc/../../resou\
> rces/./cache/
>
> Has write persmissions ?
>
> If not so, it will try to add a cache entry and give you the error and in the
same way it will not find the cache file to read.
>
> Good Luck.
>
> Regards
>
> Cristiano
>
> --- In wmlprogramming@yahoogroups.com, "roeea2" <roeea2@> wrote:
> >
> > Hi Guys.
> > I have this exception when trying to load the API for the first time:
> > Warning:
fopen(/home/virtual/roy/public_html/wurfl-php-1.r1/examples/demo/inc/../../resou\
rces/./cache/FILE_PERSISTENCE_PROVIDER/175c9179bdfce4783c37873d777f11c2)
[function.fopen]: failed to open stream: Disk quota exceeded in
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php on line 75
> >
> > Fatal error: Uncaught exception 'WURFL_WURFLException' with message 'Could
not write to File' in
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php:77 Stack
trace: #0
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/PersistenceProvider/FileP\
ersistenceProvider.php(63): WURFL_FileManager::save('WURFL_FILE_PERS...',
Object(WURFL_Xml_ModelDevice), '/home/virtual/r...') #1
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(16\
4):
WURFL_Xml_PersistenceProvider_FilePersistenceProvider->save('samsung_a412_ve...'\
, Object(WURFL_Xml_ModelDevice)) #2
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(12\
0): WURFL_Xml_XMLResourceManager->updateAndSaveDataStuctures(Array) #3
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/Xml/XMLResourceManager.php(74\
): WURFL_Xml_XMLResourceManager->init() #4
/home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/WURFLManagerProvider.php(85):
WURFL_Xml_XMLResourceManager->__construct(Object(WURFL_Xml_PersistenceProvider_F\
ilePersis in /home/virtual/roy/public_html/wurfl-php-1.r1/WURFL/FileManager.php
on line 77
> >
> > Regards,
> >
> > Roee
> >
>

#31704 From: Filippo De Luca <filosganga80@...>
Date: Fri Dec 4, 2009 10:28 am
Subject: Re: Problem with wurfl 1.0.1-rc3 configured using web.xml
dl.filippo
Send Email Send Email
 
Hi I opened an issue on trac http://dev.wurflpro.com/projects/wurfl-api/ticket/51 about this bug.
Who has this bug please append a comment to the issue with his environment details.

We will fix this issue very soon.

2009/11/24 roberto_druetto <roberto.druetto@...>
 

Hi all,
I have a problem with wurfl 1.0.1-rc3 using the web.xml configuration. When tomcat is starting I got this exception in the log file:

2009-11-24 08:27:24.0545 ERROR Thread-1 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ypmobile] - Exception sending context initialized event to listener instance of class net.sourceforge.wurfl.core.web.WURFLServletContextListener
net.sourceforge.wurfl.core.resource.WURFLResourceException: WURFL unexpected exception
at net.sourceforge.wurfl.core.resource.XMLResource.readData(XMLResource.java:303)
at net.sourceforge.wurfl.core.resource.XMLResource.getData(XMLResource.java:139)
at net.sourceforge.wurfl.core.resource.DefaultWURFLModel.<init>(DefaultWURFLModel.java:80)
at net.sourceforge.wurfl.core.CustomWURFLHolder.init(CustomWURFLHolder.java:115)
at net.sourceforge.wurfl.core.CustomWURFLHolder.<init>(CustomWURFLHolder.java:52)
at net.sourceforge.wurfl.core.web.ServletContextWURFLHolder.createDelegate(ServletContextWURFLHolder.java:83)
at net.sourceforge.wurfl.core.web.ServletContextWURFLHolder.<init>(ServletContextWURFLHolder.java:55)
at net.sourceforge.wurfl.core.web.WURFLServletContextListener.contextInitialized(WURFLServletContextListener.java:93)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at net.sourceforge.wurfl.core.resource.XMLResource.readData(XMLResource.java:301)
... 22 more

Looks like there's a problem reading the wurfl.xml file. I tried to download the wurfl.zip file again thinking it was corrupted, but the problem is still there (and using the spring version everyhting seems to be working fine).

Do you have any idea? Is that a bug or I do have a problem somewhere?

Thanks very much!
Best regards,
Roberto Druetto




--
Filippo De Luca
--------------------------
Email: dl.filippo@...
Web:   http://www.filosganga.it
LinkedIn: http://www.linkedin.com/in/filippodeluca
mobile: +393395822588

#31705 From: "PD" <praveen.das@...>
Date: Fri Dec 4, 2009 5:39 am
Subject: Latest wurfl detects Mozilla/5.0 as Nokia N900
praveen_das_pd
Send Email Send Email
 
Hi all,

I downloaded the latest wurfl and web_browsers_patch.xml and when i run my
application using Mozilla, it gives the device details as

Device : Nokia N900

and the user agent is detected as,

User agent : Mozilla/5.0 (X11; U; Linux armv7l; en-GB; rv:1.9.2a1pre)
Gecko/20090928 Firefox/3.5 Maemo Browser 1.4.1.21 RX-51 N900

Best regards,
  Praveen das

#31706 From: "shine_vkm" <shinephilip@...>
Date: Fri Dec 4, 2009 11:28 am
Subject: Document Size
shine_vkm
Send Email Send Email
 
Hi all

Is there any way to get the maximum document size supported by a device.
max_deck_size only gives the maximum markup or text supported. max_data_rate
gives 0 for most of the browsers.I want to know is it possible to detect the
maximum amount of data supported by a device for each web page.


Thanks
Shine Philip

#31707 From: "manos.moschous" <manos.moschous@...>
Date: Fri Dec 4, 2009 9:32 pm
Subject: wurfl.xml and WURFL DB are not consistent
manos.moschous
Send Email Send Email
 
Hi list,

the capablity j2me_midp_2_0 on the URL below is listed as true.
http://www.wurflpro.com/device/show/21207?group_name=j2me

BUT, the same capability is not listed at all inside the wurfl.xml
(http://wurfl.sourceforge.net/wurfl.zip)


any advice?


manos

#31708 From: "roeea2" <roeea2@...>
Date: Sat Dec 5, 2009 1:26 am
Subject: New WURFL with arrays
roeea2
Send Email Send Email
 
Hey Guys.

After downloading the new WURFL i saw that "array" comes back a lot of time when
mostly talking about a non wireless device.
Can you explain me what is that "array" that comes back and also why is it not
supporting with backward compatibility?

Thanks,

Roee

#31709 From: Luca Passani <passani@...>
Date: Sun Dec 6, 2009 3:53 pm
Subject: Re: Document Size
luca_passani
Send Email Send Email
 
I am in the process of digging up info in this area and improve the
"max_deck_size" capability.

Keep in mind that some devices have a variable limitation, meaning that
they will be able to suck up pages as large as the available memory
allows, so the actual max size depends on the number and size of other
apps running. For those device, I will probably indicate a limit of 100kb

We do not have a capability that indicates combined markup-CSS-image.
Does someone things such a capability would be necessary?

Luca

shine_vkm wrote:
> Hi all
>
> Is there any way to get the maximum document size supported by a device.
> max_deck_size only gives the maximum markup or text supported. max_data_rate
gives 0 for most of the browsers.I want to know is it possible to detect the
maximum amount of data supported by a device for each web page.
>
>
> Thanks
> Shine Philip
>
>
>
> ------------------------------------
>
> As of July 14 2005, it's much easier to be banned from WMLProgramming!
> Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before
you post.Yahoo! Groups Links
>
>
>
>
>

#31710 From: "Gail Rahn Frederick" <gail@...>
Date: Sun Dec 6, 2009 8:12 pm
Subject: RE: New WURFL with arrays
screaming_geek
Send Email Send Email
 

I’m seeing this too, using the PHP API. When a device is not wireless, many property values are returned as arrays with 2 values.

 

From: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
Sent: Friday, December 04, 2009 5:26 PM
To: wmlprogramming@yahoogroups.com
Subject: [wmlprogramming] New WURFL with arrays

 

 

Hey Guys.

After downloading the new WURFL i saw that "array" comes back a lot of time when mostly talking about a non wireless device.
Can you explain me what is that "array" that comes back and also why is it not supporting with backward compatibility?

Thanks,

Roee


#31711 From: "roeea2" <roeea2@...>
Date: Sun Dec 6, 2009 10:09 pm
Subject: Re: New WURFL with arrays
roeea2
Send Email Send Email
 
Luca... Someone... Help.
:)

--- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@...> wrote:
>
> I'm seeing this too, using the PHP API. When a device is not wireless,
> many property values are returned as arrays with 2 values.
>
>
>
> From: wmlprogramming@yahoogroups.com
> [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
> Sent: Friday, December 04, 2009 5:26 PM
> To: wmlprogramming@yahoogroups.com
> Subject: [wmlprogramming] New WURFL with arrays
>
>
>
>
>
> Hey Guys.
>
> After downloading the new WURFL i saw that "array" comes back a lot of
> time when mostly talking about a non wireless device.
> Can you explain me what is that "array" that comes back and also why is
> it not supporting with backward compatibility?
>
> Thanks,
>
> Roee
>

#31712 From: Luca Passani <passani@...>
Date: Sun Dec 6, 2009 10:20 pm
Subject: Re: Re: New WURFL with arrays
luca_passani
Send Email Send Email
 
Guys, it's still the weekend. While I may occasionally work on weekends,
this does not mean that other WURFL-Proers will do the same. :)

Luca

roeea2 wrote:
> Luca... Someone... Help.
> :)
>
> --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@...> wrote:
>
>> I'm seeing this too, using the PHP API. When a device is not wireless,
>> many property values are returned as arrays with 2 values.
>>
>>
>>
>> From: wmlprogramming@yahoogroups.com
>> [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
>> Sent: Friday, December 04, 2009 5:26 PM
>> To: wmlprogramming@yahoogroups.com
>> Subject: [wmlprogramming] New WURFL with arrays
>>
>>
>>
>>
>>
>> Hey Guys.
>>
>> After downloading the new WURFL i saw that "array" comes back a lot of
>> time when mostly talking about a non wireless device.
>> Can you explain me what is that "array" that comes back and also why is
>> it not supporting with backward compatibility?
>>
>> Thanks,
>>
>> Roee
>>
>>
>
>
>
>
> ------------------------------------
>
> As of July 14 2005, it's much easier to be banned from WMLProgramming!
> Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before
you post.Yahoo! Groups Links
>
>
>
>
>

#31713 From: "roeea2" <roeea2@...>
Date: Sun Dec 6, 2009 10:27 pm
Subject: Re: New WURFL with arrays
roeea2
Send Email Send Email
 
Hey Luca.

We all know you work on weekends :)
Here is a copy of what we are seeing: (just so it will be clear enough)
Thanks and enjoy the end of the weekend.

Requesting Browser User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.33 Safari/532.0
  • ID: google_chrome_0
  • Brand Name: chrome
  • Model Name: 0
  • Xhtml Preferred Markup: Array
  • Resolution Width: Array
  • Resolution Height: Array
  • Wireless Device: Array
  • Web Support: true
  • Pointing: Array
  • Querty: true
  • Mobile Browser:
  • ajax_support_javascript: Array
  • ajax_support _getelementbyid: true
  • ajax_xhr_type: standard
  • ajax_support_inner_html: true
  • ajax_manipulate_dom: true
  • ajax_manipulate_css: true
  • ajax_support_events: true
  • ajax_support_event _listener: true




--- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
>
> Guys, it's still the weekend. While I may occasionally work on weekends,
> this does not mean that other WURFL-Proers will do the same. :)
>
> Luca
>
> roeea2 wrote:
> > Luca... Someone... Help.
> > :)
> >
> > --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" gail@ wrote:
> >
> >> I'm seeing this too, using the PHP API. When a device is not wireless,
> >> many property values are returned as arrays with 2 values.
> >>
> >>
> >>
> >> From: wmlprogramming@yahoogroups.com
> >> [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
> >> Sent: Friday, December 04, 2009 5:26 PM
> >> To: wmlprogramming@yahoogroups.com
> >> Subject: [wmlprogramming] New WURFL with arrays
> >>
> >>
> >>
> >>
> >>
> >> Hey Guys.
> >>
> >> After downloading the new WURFL i saw that "array" comes back a lot of
> >> time when mostly talking about a non wireless device.
> >> Can you explain me what is that "array" that comes back and also why is
> >> it not supporting with backward compatibility?
> >>
> >> Thanks,
> >>
> >> Roee
> >>
> >>
> >
> >
> >
> >
> > ------------------------------------
> >
> > As of July 14 2005, it's much easier to be banned from WMLProgramming!
> > Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before you post.Yahoo! Groups Links
> >
> >
> >
> >
> >
>

#31714 From: "shamrog12" <shamrog12@...>
Date: Sun Dec 6, 2009 11:28 pm
Subject: Re: New WURFL with arrays
shamrog12
Send Email Send Email
 
I posted a message about this a while ago to see what the reasoning was but got
no response.  In PHP there is an easy way around this: When you retrieve the
value associated with the capability use is_array() to detect whether the
response is in fact an Array rather than the desired String.  If it's an array
the quickest thing you can do is verify that the array is not empty with empty()
and assuming that's the case just take the 0 index of that array.

I did a very small amount of checking but it seems that the capabilities that
return arrays typically return the same value for both indexes.

The technical reason that there is an array returned is because the Device
object itself has that capability listed twice and when you check on a specific
capability, if the capability is listed twice it just combines the two results
in the form of an array.

I can explain more if needed - I'm just running out the door and wanted to give
you guys an answer that might help you get past where you're stuck.

--- In wmlprogramming@yahoogroups.com, "roeea2" <roeea2@...> wrote:
>
> Luca... Someone... Help.
> :)
>
> --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@> wrote:
> >
> > I'm seeing this too, using the PHP API. When a device is not wireless,
> > many property values are returned as arrays with 2 values.
> >
> >
> >
> > From: wmlprogramming@yahoogroups.com
> > [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
> > Sent: Friday, December 04, 2009 5:26 PM
> > To: wmlprogramming@yahoogroups.com
> > Subject: [wmlprogramming] New WURFL with arrays
> >
> >
> >
> >
> >
> > Hey Guys.
> >
> > After downloading the new WURFL i saw that "array" comes back a lot of
> > time when mostly talking about a non wireless device.
> > Can you explain me what is that "array" that comes back and also why is
> > it not supporting with backward compatibility?
> >
> > Thanks,
> >
> > Roee
> >
>

#31715 From: Luca Passani <passani@...>
Date: Sun Dec 6, 2009 11:35 pm
Subject: Re: Re: New WURFL with arrays
luca_passani
Send Email Send Email
 
People, I'll ask the engineer who created the PHP API to address these
question as soon as he walks into the office tomorrow!

Luca

shamrog12 wrote:
> I posted a message about this a while ago to see what the reasoning was but
got no response.  In PHP there is an easy way around this: When you retrieve the
value associated with the capability use is_array() to detect whether the
response is in fact an Array rather than the desired String.  If it's an array
the quickest thing you can do is verify that the array is not empty with empty()
and assuming that's the case just take the 0 index of that array.
>
> I did a very small amount of checking but it seems that the capabilities that
return arrays typically return the same value for both indexes.
>
> The technical reason that there is an array returned is because the Device
object itself has that capability listed twice and when you check on a specific
capability, if the capability is listed twice it just combines the two results
in the form of an array.
>
> I can explain more if needed - I'm just running out the door and wanted to
give you guys an answer that might help you get past where you're stuck.
>
> --- In wmlprogramming@yahoogroups.com, "roeea2" <roeea2@...> wrote:
>
>> Luca... Someone... Help.
>> :)
>>
>> --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@> wrote:
>>
>>> I'm seeing this too, using the PHP API. When a device is not wireless,
>>> many property values are returned as arrays with 2 values.
>>>
>>>
>>>
>>> From: wmlprogramming@yahoogroups.com
>>> [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
>>> Sent: Friday, December 04, 2009 5:26 PM
>>> To: wmlprogramming@yahoogroups.com
>>> Subject: [wmlprogramming] New WURFL with arrays
>>>
>>>
>>>
>>>
>>>
>>> Hey Guys.
>>>
>>> After downloading the new WURFL i saw that "array" comes back a lot of
>>> time when mostly talking about a non wireless device.
>>> Can you explain me what is that "array" that comes back and also why is
>>> it not supporting with backward compatibility?
>>>
>>> Thanks,
>>>
>>> Roee
>>>
>>>
>
>
>

#31716 From: "Gail Rahn Frederick" <gail@...>
Date: Mon Dec 7, 2009 1:40 am
Subject: RE: Re: New WURFL with arrays
screaming_geek
Send Email Send Email
 

That’s why my demo PHP code did, as well – if it unexpectedly encountered an Array, it used the item an 0 index in the array as the device capability.  Because the workaround is so simple, I don’t consider this bug in the Wurfl PHP API to be especially high-priority, so long as it is documented in Trac or on sourceforge.net as a release note.

 

From: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] On Behalf Of shamrog12
Sent: Sunday, December 06, 2009 3:29 PM
To: wmlprogramming@yahoogroups.com
Subject: [wmlprogramming] Re: New WURFL with arrays

 

 

I posted a message about this a while ago to see what the reasoning was but got no response. In PHP there is an easy way around this: When you retrieve the value associated with the capability use is_array() to detect whether the response is in fact an Array rather than the desired String. If it's an array the quickest thing you can do is verify that the array is not empty with empty() and assuming that's the case just take the 0 index of that array.

I did a very small amount of checking but it seems that the capabilities that return arrays typically return the same value for both indexes.

The technical reason that there is an array returned is because the Device object itself has that capability listed twice and when you check on a specific capability, if the capability is listed twice it just combines the two results in the form of an array.

I can explain more if needed - I'm just running out the door and wanted to give you guys an answer that might help you get past where you're stuck.

--- In wmlprogramming@yahoogroups.com, "roeea2" <roeea2@...> wrote:
>
> Luca... Someone... Help.
> :)
>
> --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@> wrote:
> >
> > I'm seeing this too, using the PHP API. When a device is not wireless,
> > many property values are returned as arrays with 2 values.
> >
> >
> >
> > From: wmlprogramming@yahoogroups.com
> > [mailto:wmlprogramming@yahoogroups.com] On Behalf Of roeea2
> > Sent: Friday, December 04, 2009 5:26 PM
> > To: wmlprogramming@yahoogroups.com
> > Subject: [wmlprogramming] New WURFL with arrays
> >
> >
> >
> >
> >
> > Hey Guys.
> >
> > After downloading the new WURFL i saw that "array" comes back a lot of
> > time when mostly talking about a non wireless device.
> > Can you explain me what is that "array" that comes back and also why is
> > it not supporting with backward compatibility?
> >
> > Thanks,
> >
> > Roee
> >
>


#31717 From: "Melvin" <mdprotacio@...>
Date: Mon Dec 7, 2009 2:26 am
Subject: Re: New WURFL with arrays
mdprotacio...
Send Email Send Email
 
Hi,

I also encountered this problem with my development using PHP API and the as
observed there are some capabilities that are in array form. I believe this has
something to do with the patch. When I used web browser patch, the API seems to
consider the capability on the patch as another capability and does not override
the value of the capability. There are some inconsistencies like, there are
capabilities that has an array of (0, false) which is not the same when you
evaluate to check for unique values. What I did is to edit the Device.php
function getCapability to be like this:

	 public function getCapability($capabilityName) {
		 if (!isset($capabilityName)) {
			 throw new Exception("capability name must not be null");
		 }

		 $retval = $this->_capabilitiesHolder->getCapability($capabilityName);
		 if(is_array($retval)){
		   $retval = array_unique($retval);
		   return $retval[0];
		 }
		 return $retval;
	 }

Hope that helps.

--- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@...> wrote:
>
> That's why my demo PHP code did, as well - if it unexpectedly
> encountered an Array, it used the item an 0 index in the array as the
> device capability.  Because the workaround is so simple, I don't
> consider this bug in the Wurfl PHP API to be especially high-priority,
> so long as it is documented in Trac or on sourceforge.net as a release
> note.
>
>
>
> From: wmlprogramming@yahoogroups.com
> [mailto:wmlprogramming@yahoogroups.com] On Behalf Of shamrog12
> Sent: Sunday, December 06, 2009 3:29 PM
> To: wmlprogramming@yahoogroups.com
> Subject: [wmlprogramming] Re: New WURFL with arrays
>
>
>
>
>
> I posted a message about this a while ago to see what the reasoning was
> but got no response. In PHP there is an easy way around this: When you
> retrieve the value associated with the capability use is_array() to
> detect whether the response is in fact an Array rather than the desired
> String. If it's an array the quickest thing you can do is verify that
> the array is not empty with empty() and assuming that's the case just
> take the 0 index of that array.
>
> I did a very small amount of checking but it seems that the capabilities
> that return arrays typically return the same value for both indexes.
>
> The technical reason that there is an array returned is because the
> Device object itself has that capability listed twice and when you check
> on a specific capability, if the capability is listed twice it just
> combines the two results in the form of an array.
>
> I can explain more if needed - I'm just running out the door and wanted
> to give you guys an answer that might help you get past where you're
> stuck.
>
> --- In wmlprogramming@yahoogroups.com
> <mailto:wmlprogramming%40yahoogroups.com> , "roeea2" <roeea2@> wrote:
> >
> > Luca... Someone... Help.
> > :)
> >
> > --- In wmlprogramming@yahoogroups.com
> <mailto:wmlprogramming%40yahoogroups.com> , "Gail Rahn Frederick"
> <gail@> wrote:
> > >
> > > I'm seeing this too, using the PHP API. When a device is not
> wireless,
> > > many property values are returned as arrays with 2 values.
> > >
> > >
> > >
> > > From: wmlprogramming@yahoogroups.com
> <mailto:wmlprogramming%40yahoogroups.com>
> > > [mailto:wmlprogramming@yahoogroups.com
> <mailto:wmlprogramming%40yahoogroups.com> ] On Behalf Of roeea2
> > > Sent: Friday, December 04, 2009 5:26 PM
> > > To: wmlprogramming@yahoogroups.com
> <mailto:wmlprogramming%40yahoogroups.com>
> > > Subject: [wmlprogramming] New WURFL with arrays
> > >
> > >
> > >
> > >
> > >
> > > Hey Guys.
> > >
> > > After downloading the new WURFL i saw that "array" comes back a lot
> of
> > > time when mostly talking about a non wireless device.
> > > Can you explain me what is that "array" that comes back and also why
> is
> > > it not supporting with backward compatibility?
> > >
> > > Thanks,
> > >
> > > Roee
> > >
> >
>

#31718 From: "roeea2" <roeea2@...>
Date: Mon Dec 7, 2009 1:42 pm
Subject: Re: New WURFL with arrays
roeea2
Send Email Send Email
 
Hi Luca.
Can you create a new version of the API with all relevant chafes
the new one ( I think it is the wurfl) does not backward compatible with my code
due to this array issue
Thanks a lot
roee



--- In wmlprogramming@yahoogroups.com, "Melvin" <mdprotacio@...> wrote:
>
> Hi,
>
> I also encountered this problem with my development using PHP API and the as
observed there are some capabilities that are in array form. I believe this has
something to do with the patch. When I used web browser patch, the API seems to
consider the capability on the patch as another capability and does not override
the value of the capability. There are some inconsistencies like, there are
capabilities that has an array of (0, false) which is not the same when you
evaluate to check for unique values. What I did is to edit the Device.php
function getCapability to be like this:
>
>  public function getCapability($capabilityName) {
> 	 if (!isset($capabilityName)) {
> 		 throw new Exception("capability name must not be null");
> 	 }
>
> 	 $retval = $this->_capabilitiesHolder->getCapability($capabilityName);
> 	 if(is_array($retval)){
> 		  $retval = array_unique($retval);
> 		  return $retval[0];
> 	 }
> 	 return $retval;
>  }
>
> Hope that helps.
>
> --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@> wrote:
> >
> > That's why my demo PHP code did, as well - if it unexpectedly
> > encountered an Array, it used the item an 0 index in the array as the
> > device capability.  Because the workaround is so simple, I don't
> > consider this bug in the Wurfl PHP API to be especially high-priority,
> > so long as it is documented in Trac or on sourceforge.net as a release
> > note.
> >
> >
> >
> > From: wmlprogramming@yahoogroups.com
> > [mailto:wmlprogramming@yahoogroups.com] On Behalf Of shamrog12
> > Sent: Sunday, December 06, 2009 3:29 PM
> > To: wmlprogramming@yahoogroups.com
> > Subject: [wmlprogramming] Re: New WURFL with arrays
> >
> >
> >
> >
> >
> > I posted a message about this a while ago to see what the reasoning was
> > but got no response. In PHP there is an easy way around this: When you
> > retrieve the value associated with the capability use is_array() to
> > detect whether the response is in fact an Array rather than the desired
> > String. If it's an array the quickest thing you can do is verify that
> > the array is not empty with empty() and assuming that's the case just
> > take the 0 index of that array.
> >
> > I did a very small amount of checking but it seems that the capabilities
> > that return arrays typically return the same value for both indexes.
> >
> > The technical reason that there is an array returned is because the
> > Device object itself has that capability listed twice and when you check
> > on a specific capability, if the capability is listed twice it just
> > combines the two results in the form of an array.
> >
> > I can explain more if needed - I'm just running out the door and wanted
> > to give you guys an answer that might help you get past where you're
> > stuck.
> >
> > --- In wmlprogramming@yahoogroups.com
> > <mailto:wmlprogramming%40yahoogroups.com> , "roeea2" <roeea2@> wrote:
> > >
> > > Luca... Someone... Help.
> > > :)
> > >
> > > --- In wmlprogramming@yahoogroups.com
> > <mailto:wmlprogramming%40yahoogroups.com> , "Gail Rahn Frederick"
> > <gail@> wrote:
> > > >
> > > > I'm seeing this too, using the PHP API. When a device is not
> > wireless,
> > > > many property values are returned as arrays with 2 values.
> > > >
> > > >
> > > >
> > > > From: wmlprogramming@yahoogroups.com
> > <mailto:wmlprogramming%40yahoogroups.com>
> > > > [mailto:wmlprogramming@yahoogroups.com
> > <mailto:wmlprogramming%40yahoogroups.com> ] On Behalf Of roeea2
> > > > Sent: Friday, December 04, 2009 5:26 PM
> > > > To: wmlprogramming@yahoogroups.com
> > <mailto:wmlprogramming%40yahoogroups.com>
> > > > Subject: [wmlprogramming] New WURFL with arrays
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hey Guys.
> > > >
> > > > After downloading the new WURFL i saw that "array" comes back a lot
> > of
> > > > time when mostly talking about a non wireless device.
> > > > Can you explain me what is that "array" that comes back and also why
> > is
> > > > it not supporting with backward compatibility?
> > > >
> > > > Thanks,
> > > >
> > > > Roee
> > > >
> > >
> >
>

#31719 From: "Jose" <jose@...>
Date: Mon Dec 7, 2009 3:19 pm
Subject: HTC-Magic
j_a_fernandez
Send Email Send Email
 
Luca,

The HTC Magic appears on WURFL as being able to accept WAP-Pushes, but at least
here in the UK this is not the case.

The capability is specifically set for this device. Is this because some
subversion supports WAP-Pushes? Or a mistake that need to be corrected? I just
want to confirm before changing the data.

I am looking at the following entry:

WURFL ID:   htc_magic_ver1
User-agent:  Mozilla/5.0 (Linux; U; Android 1.5; en-us; sapphire; HTC_Magic)
AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1

As far as I know Android phones do not support WAP-Pushes.

Thanks in advance,

Jose Alberto

#31720 From: Luca Passani <passani@...>
Date: Mon Dec 7, 2009 3:26 pm
Subject: Re: HTC-Magic
luca_passani
Send Email Send Email
 
Interesting. It would be good to know whether this is an HTC Magic thing
or it is common to all Androids...

Luca

Jose wrote:
> Luca,
>
> The HTC Magic appears on WURFL as being able to accept WAP-Pushes, but at
least here in the UK this is not the case.
>
> The capability is specifically set for this device. Is this because some
subversion supports WAP-Pushes? Or a mistake that need to be corrected? I just
want to confirm before changing the data.
>
> I am looking at the following entry:
>
> WURFL ID:   htc_magic_ver1
> User-agent:  Mozilla/5.0 (Linux; U; Android 1.5; en-us; sapphire; HTC_Magic)
AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
>
> As far as I know Android phones do not support WAP-Pushes.
>
> Thanks in advance,
>
> Jose Alberto
>
>
>
>
> ------------------------------------
>
> As of July 14 2005, it's much easier to be banned from WMLProgramming!
> Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before
you post.Yahoo! Groups Links
>
>
>
>
>

#31721 From: "Jose" <jose@...>
Date: Mon Dec 7, 2009 3:39 pm
Subject: WiFi only devices vs. Mobile phones (was: Re: Mobile vs mobile-phones)
j_a_fernandez
Send Email Send Email
 
Luca,

I sent the message below to the list some time back but got no answer. Is there
a way to distinguish whether the device in an actual mobile phone (in particular
whether can send/receive SMSs) or whether it is a WiFi only device like an iPod
Touch (or Nintendo DSi).

With the proliferation of WiFi devices, there is a need to be able to
distinguish between them.

Jose Alberto

--- In wmlprogramming@yahoogroups.com, "j_a_fernandez" <jose@...> wrote:
>
> Hi gang,
>
> Is there a capability or (group of conditions) to determine whether a device
in WURFL is actually a mobile-phone (i.e. one with a phone-number where to send
txt messages to)?
>
> I am thinking the difference between iPhone & iPod Touch. I do not seem to
find the properties defining the difference on this regard between the 2.
>
> TIA,
>
> Jose
>

#31722 From: "Jose" <jose@...>
Date: Mon Dec 7, 2009 3:43 pm
Subject: Re: HTC-Magic
j_a_fernandez
Send Email Send Email
 
Luca,

A colleague here tells me that you can get an Android app to get Wap-pushes, but
that the device as it comes out of the box, does not support wap-pushes.

BTW, generic_android has wap-pushes turned off.

Jose Alberto

--- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
>
> Interesting. It would be good to know whether this is an HTC Magic thing
> or it is common to all Androids...
>
> Luca
>
> Jose wrote:
> > Luca,
> >
> > The HTC Magic appears on WURFL as being able to accept WAP-Pushes, but at
least here in the UK this is not the case.
> >
> > The capability is specifically set for this device. Is this because some
subversion supports WAP-Pushes? Or a mistake that need to be corrected? I just
want to confirm before changing the data.
> >
> > I am looking at the following entry:
> >
> > WURFL ID:   htc_magic_ver1
> > User-agent:  Mozilla/5.0 (Linux; U; Android 1.5; en-us; sapphire; HTC_Magic)
AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1
> >
> > As far as I know Android phones do not support WAP-Pushes.
> >
> > Thanks in advance,
> >
> > Jose Alberto
> >
> >
> >
> >
> > ------------------------------------
> >
> > As of July 14 2005, it's much easier to be banned from WMLProgramming!
> > Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/
before you post.Yahoo! Groups Links
> >
> >
> >
> >
> >
>

#31723 From: Luca Passani <passani@...>
Date: Mon Dec 7, 2009 4:16 pm
Subject: Re: Re: New WURFL with arrays
luca_passani
Send Email Send Email
 
We will work on this. If all goes smooth we will issue an update soon.

Luca

roeea2 wrote:
> Hi Luca.
> Can you create a new version of the API with all relevant chafes
> the new one ( I think it is the wurfl) does not backward compatible with my
code due to this array issue
> Thanks a lot
> roee
>
>
>
> --- In wmlprogramming@yahoogroups.com, "Melvin" <mdprotacio@...> wrote:
>
>> Hi,
>>
>> I also encountered this problem with my development using PHP API and the as
observed there are some capabilities that are in array form. I believe this has
something to do with the patch. When I used web browser patch, the API seems to
consider the capability on the patch as another capability and does not override
the value of the capability. There are some inconsistencies like, there are
capabilities that has an array of (0, false) which is not the same when you
evaluate to check for unique values. What I did is to edit the Device.php
function getCapability to be like this:
>>
>>  public function getCapability($capabilityName) {
>> 	 if (!isset($capabilityName)) {
>> 		 throw new Exception("capability name must not be null");
>> 	 }
>>
>> 	 $retval = $this->_capabilitiesHolder->getCapability($capabilityName);
>> 	 if(is_array($retval)){
>> 		  $retval = array_unique($retval);
>> 		  return $retval[0];
>> 	 }
>> 	 return $retval;
>>  }
>>
>> Hope that helps.
>>
>> --- In wmlprogramming@yahoogroups.com, "Gail Rahn Frederick" <gail@> wrote:
>>
>>> That's why my demo PHP code did, as well - if it unexpectedly
>>> encountered an Array, it used the item an 0 index in the array as the
>>> device capability.  Because the workaround is so simple, I don't
>>> consider this bug in the Wurfl PHP API to be especially high-priority,
>>> so long as it is documented in Trac or on sourceforge.net as a release
>>> note.
>>>
>>>
>>>
>>> From: wmlprogramming@yahoogroups.com
>>> [mailto:wmlprogramming@yahoogroups.com] On Behalf Of shamrog12
>>> Sent: Sunday, December 06, 2009 3:29 PM
>>> To: wmlprogramming@yahoogroups.com
>>> Subject: [wmlprogramming] Re: New WURFL with arrays
>>>
>>>
>>>
>>>
>>>
>>> I posted a message about this a while ago to see what the reasoning was
>>> but got no response. In PHP there is an easy way around this: When you
>>> retrieve the value associated with the capability use is_array() to
>>> detect whether the response is in fact an Array rather than the desired
>>> String. If it's an array the quickest thing you can do is verify that
>>> the array is not empty with empty() and assuming that's the case just
>>> take the 0 index of that array.
>>>
>>> I did a very small amount of checking but it seems that the capabilities
>>> that return arrays typically return the same value for both indexes.
>>>
>>> The technical reason that there is an array returned is because the
>>> Device object itself has that capability listed twice and when you check
>>> on a specific capability, if the capability is listed twice it just
>>> combines the two results in the form of an array.
>>>
>>> I can explain more if needed - I'm just running out the door and wanted
>>> to give you guys an answer that might help you get past where you're
>>> stuck.
>>>
>>> --- In wmlprogramming@yahoogroups.com
>>> <mailto:wmlprogramming%40yahoogroups.com> , "roeea2" <roeea2@> wrote:
>>>
>>>> Luca... Someone... Help.
>>>> :)
>>>>
>>>> --- In wmlprogramming@yahoogroups.com
>>>>
>>> <mailto:wmlprogramming%40yahoogroups.com> , "Gail Rahn Frederick"
>>> <gail@> wrote:
>>>
>>>>> I'm seeing this too, using the PHP API. When a device is not
>>>>>
>>> wireless,
>>>
>>>>> many property values are returned as arrays with 2 values.
>>>>>
>>>>>
>>>>>
>>>>> From: wmlprogramming@yahoogroups.com
>>>>>
>>> <mailto:wmlprogramming%40yahoogroups.com>
>>>
>>>>> [mailto:wmlprogramming@yahoogroups.com
>>>>>
>>> <mailto:wmlprogramming%40yahoogroups.com> ] On Behalf Of roeea2
>>>
>>>>> Sent: Friday, December 04, 2009 5:26 PM
>>>>> To: wmlprogramming@yahoogroups.com
>>>>>
>>> <mailto:wmlprogramming%40yahoogroups.com>
>>>
>>>>> Subject: [wmlprogramming] New WURFL with arrays
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Hey Guys.
>>>>>
>>>>> After downloading the new WURFL i saw that "array" comes back a lot
>>>>>
>>> of
>>>
>>>>> time when mostly talking about a non wireless device.
>>>>> Can you explain me what is that "array" that comes back and also why
>>>>>
>>> is
>>>
>>>>> it not supporting with backward compatibility?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Roee
>>>>>
>>>>>
>
>
>
>
> ------------------------------------
>
> As of July 14 2005, it's much easier to be banned from WMLProgramming!
> Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before
you post.Yahoo! Groups Links
>
>
>
>
>

#31724 From: Luca Passani <passani@...>
Date: Mon Dec 7, 2009 4:18 pm
Subject: Re: WiFi only devices vs. Mobile phones
luca_passani
Send Email Send Email
 
I am a bit perplexed about this, because I am afraid that we will soon
see devices which may run WiFi and be used with or without a SIM card.
What would the value of "has_sim_card" be in that case?

Anyway, I would love to hear what others have to say

Luca

Jose wrote:
> Luca,
>
> I sent the message below to the list some time back but got no answer. Is
there a way to distinguish whether the device in an actual mobile phone (in
particular whether can send/receive SMSs) or whether it is a WiFi only device
like an iPod Touch (or Nintendo DSi).
>
> With the proliferation of WiFi devices, there is a need to be able to
distinguish between them.
>
> Jose Alberto
>
> --- In wmlprogramming@yahoogroups.com, "j_a_fernandez" <jose@...> wrote:
>
>> Hi gang,
>>
>> Is there a capability or (group of conditions) to determine whether a device
in WURFL is actually a mobile-phone (i.e. one with a phone-number where to send
txt messages to)?
>>
>> I am thinking the difference between iPhone & iPod Touch. I do not seem to
find the properties defining the difference on this regard between the 2.
>>
>> TIA,
>>
>> Jose
>>
>>
>
>
>
>
> ------------------------------------
>
> As of July 14 2005, it's much easier to be banned from WMLProgramming!
> Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before
you post.Yahoo! Groups Links
>
>
>
>
>

Messages 31695 - 31724 of 34585   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help