URL problems / TLD support
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
URL problems / TLD support  XML
Forum Index -> Components
Author Message
Admin

Joined: 27/05/2004 00:00:00
Messages: 206
Offline


Hi,

I'm currently exploring ICEface CE for a possible migration towards rich client interface.
Currently we use struts with a lot of TLD and javascript.

I successfully create some demo with the components of ICEface, I created a popup window in our struts environment in which I start a JSF/ICEface session. The popup contains a sortable table with mainly input fields (collecting numbers and make calculations with those as a kind of excel sheet with a fixed formula). But now I'm starting the migrate the demo in our struts environment and the challenges really start to occur...

I added parts of the code where I run in troubles:

So in one of the column components I have the one and only core-jsf outputLink component to support legacy code,

Including the taglib stuff gives already troubles ,

<h:outputLink value="<x:y atr1="z" ... />">test</h:outputLink>

Error Message:
Can't parse stream for /ice.jsp The element type "head" must be terminated by the matching end-tag "</head>".

Caused by: org.xml.sax.SAXParseException: The element type "head" must be terminated by the matching end-tag "</head>".
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1586)
at com.icesoft.faces.webapp.parser.Parser.parse(Unknown Source)

Replacing TAG lib for javascript call (which it is normally generating) is also not a success,

<h:outputLink value="javascript:openSearchTreePopup('locale=en&dataType=region&showExtraInfo=false&useNoValueOption=false&height=0');">Select</h:outputLink>

Caused by: org.xml.sax.SAXParseException: The reference to entity "dataType" must end with the ';' delimiter.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1586)
at com.icesoft.faces.webapp.parser.Parser.parse(Unknown Source)
... 24 more


Replacing the javascript call for the url, which actually should open in another window, is not successful.

The problems seems it could not handle aditional parameters in any URL

like:

<h:outputLink value="/SearchTree.do?locale=en&dataType=region&showExtraInfo=false&useNoValueOption=false&height=0">...

gives same exception as above.

What's wrong ? Do you support these kind of 'features'?

(setting the value to http://www.icesoft.com works )

Thanks
Bas
Admin

Joined: 27/05/2004 00:00:00
Messages: 206
Offline


one side of the problem is solved !

In the URL replaced the & for &

But what about the TAG lib includes, what's the best place to include them ?

Thanks again,
Bas
maarten

Joined: 03/05/2006 00:00:00
Messages: 39
Offline


Error Message:
Can't parse stream for /ice.jsp The element type "head" must be terminated by the matching end-tag "</head>".

This means you probably forget a closing tag in your head section. Make sure u terminte all tages the xml way.

eg:
<head>
<title>some text</text>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>


Note the /> at the end of meta and link. This is required for closing single tags.
Admin

Joined: 27/05/2004 00:00:00
Messages: 206
Offline


Thanks, probably in the old tag-lib code it's not all XML

I do have <head>...</head> in the main jsp page, so must be somewhere in the includes
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2701
Offline


Hi Bas,

I gave a suggestion in the other thread http://support.icesoft.com/jive/thread.jspa?threadID=1477&tstart=0

Thanks,
Philip

.
poppetmaster

Joined: 27/01/2007 00:00:00
Messages: 3
Offline


philip_b wrote:
Hi Bas,

I gave a suggestion in the other thread http://support.icesoft.com/jive/thread.jspa?threadID=1477&tstart=0

Thanks,
Philip 


Hello

I cannot see the URL, says the following :
You are not authorized to view this thread.

and it already registers to me.


Somebody can help me.


Tanks
ejay

Joined: 28/11/2006 00:00:00
Messages: 34
Offline


Hi,

I have a similar problem with the outputLink. When I specify any parameters in the request, e.g. test.url?param=3&test=0, I get an exception at parsing time:


javax.faces.FacesException: Can't parse stream for /secure/projectivity.jspx The reference to entity "test" must end with the ';' delimiter.
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:149)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:402)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

From this threah I couldn't understand the work around to this problem.

Could someone clarify it....

Thanks,
Emmanuel

Emmanuel
ejay

Joined: 28/11/2006 00:00:00
Messages: 34
Offline


Ok I found the solution.

Basically the request parameters cannot be specified directly in the url, they must be specified as <f:param> as follows:

Code:
<ice:outputLink value="tes.url">
     <f:param name="param1" value="0"/>
     <f:param name="param2" value="1"/>
     <ice:outputText value="test"/>
 </ice:outputLink>

Emmanuel
jacob.alvarez

Joined: 30/11/2006 00:00:00
Messages: 55
Offline


Your solution does not work for me. The parameters that are supposed to follow the ampersand are not rendered correctly for example a parameter that should apper as ".....&type=mytype..." is rendered as ".....type=mytype". The ampersand it not showed and the t of the type gets underlined. I think the ampersand is being merged with the character that follows it.

Does anybody knows whats happening.

Thank you,
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team