voyent
Messages posted by: gsantama  XML
Profile for gsantama -> Messages posted by gsantama [9]
Author Message
you must include

<ui:define name="example">



</ui:define>
My form is

<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2004-2012 ICEsoft Technologies Canada Corp.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the
~ License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an "AS
~ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
~ express or implied. See the License for the specific language
~ governing permissions and limitations under the License.
-->

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="/resources/templates/content-template.xhtml">

<!--<ui:param name="title" value="#{msgs[dataTableScroll.title]}"/>
<ui:param name="description" value="#{msgs[dataTableScroll.description]}"/>
<ui:param name="resourceValue" value="#{dataTableScroll.exampleResource}"/>

<ui:param name="wikiResources" value="#{compatComponentsResources.wikiResources}"/>
<ui:param name="tldResources" value="#{compatComponentsResources.tldResources}"/>-->
<ui:define name="example">
<h:form>

<ice:panelGrid columns="2">
<h:outputLabel value="Número de Cédula:" id="label_cedula_visual"
for="cedula_visual"/>
<ice:inputText id="cedula_visual" value="#{historialManaged.estu_cedula}">
</ice:inputText>

</ice:panelGrid >

<ice:commandButton id="button1" value="Buscar" action="#{historialManaged.BuscaNombre}"/>


<ice:panelGrid columns="2">
<ice:outputLabel value="Estudiante:" id="label_nombre_visual"
for="nombre_visual"/>

<ice:inputText maxlength="30" size="33" id="nombre_visual"
value="#{historialManaged.nombre_completo}">

</ice:inputText>

</ice:panelGrid>

</h:form>
<h:form>
<icecore:singleSubmit/>
<h:panelGrid columns="3">
<h:outputLabel for="heightIn" value="Scrollable Height (50-400):"/>
<h:inputText id="heightIn" value="#{dataTableScroll.height}"
required="true" size="3" maxlength="3">
<f:validateLongRange minimum="50" maximum="400"/>
</h:inputText>
<h:message for="heightIn"/>
</h:panelGrid>
</h:form>

<h:form>
<ice:dataTable value="#{historialManaged.listaHistorial}"
var="mat"
rows="20"
scrollable="true"
scrollHeight="#{dataTableScroll.height}px"
columnWidths="30px,140px,110px,80px,50px,50px,80px"
width="100%" cellspacing="1" cellpadding="5">
<ice:column>
<f:facet name="header">Periodo</f:facet>
#{mat.cod_periodo}
</ice:column>
<ice:column>
<f:facet name="header">Materia</f:facet>
#{mat.cod_materia}
</ice:column>
<ice:column>
<f:facet name="header">Descripcion</f:facet>
#{mat.descrip_curso}
</ice:column>
<ice:column>
<f:facet name="header">Nota</f:facet>
#{mat.nota_materia}
</ice:column>
<ice:column>
<f:facet name="header">Creditos</f:facet>
#{mat.credito_materia}
</ice:column>
</ice:dataTable>
</h:form>
</ui:define>
</ui:composition>
I'm using ICEfaces 2.0 ERROR GIVES ME WHEN THE TABLE REFRESH OR CHARGE IT.
java.lang.IllegalArgumentException: -20
at javax.faces.component.UIData.setFirst(UIData.java:275)
at com.icesoft.faces.component.datapaginator.DataPaginator.broadcast(DataPaginator.java:160)

Esto sucede cuando recargo el portlet o refresco el portlet estoy utilizando el ICEFACES 2.0
I have problems with the <h: commandButton does not call the procedure and <ice: Datapaginator not make the scroll in liferay 6.1

who can help me
I have problems with the <h: commandButton does not call the procedure and <ice: Datapaginator not make the scroll in liferay 6.1

who can help me
the problem that the FacesServlet does not allow ur-pattern / * I think it comes from the
<portlet-class> org.portletfaces.bridge.GenericFacesPortlet </ portlet-class>
<init-param>
<name> javax.portlet.faces.defaultViewId.view </ name>
<value> / pagina2.xhtml "</ value>
</ init-param>
but do not know why? Anyone know anything about it
when I run ICEfaces Component Showcase portlets Compat I recive the following error: can not be cast to javax.faces.component.UIViewRoot org.portletfaces.bridge.component.PortletNamingContainerUIViewRoot

java.lang.ClassCastException: javax.faces.component.UIViewRoot cannot be cast to org.portletfaces.bridge.component.PortletNamingContainerUIViewRoot
at org.portletfaces.bridge.renderkit.html_basic.HeadRenderer.encodeBegin(HeadRenderer.java:62)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1611)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:679)
.
when I create a new portlet in liferay want to run this and sends me an error message:
Faces Servlet does not allow url-Patterm as / *.
This portlet is made with glassfish 3.X icefaces2 and Maven2 and Netbeans 7.0.1


glassfish 3.x don't work with liferay 6.0 and Icefaces2.0 and Maven 2 and Netbeans 7.0.1 in ICEfaces Compat Component Showcase Portlet(connection lost)
only works in Tomcat 6.0, Why?

My Web.xml is:

<?xml version="1.0"?>



<!--

~ Version: MPL 1.1

~

~ The contents of this file are subject to the Mozilla Public License

~ Version 1.1 (the "License"); you may not use this file except in

~ compliance with the License. You may obtain a copy of the License at

~ http://www.mozilla.org/MPL/

~

~ Software distributed under the License is distributed on an "AS IS"

~ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the

~ License for the specific language governing rights and limitations under

~ the License.

~

~ The Original Code is ICEfaces 1.5 open source software code, released

~ November 5, 2006. The Initial Developer of the Original Code is ICEsoft

~ Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)

~ 2004-2011 ICEsoft Technologies Canada, Corp. All Rights Reserved.

~

~ Contributor(s): _____________________.

-->



<web-app version="2.5"

xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">



<display-name>ICEfaces Component Showcase</display-name>



<description>

ICEfaces Component Showcase was designed to make developers aware

of the rich set of features available in the custom and extended

components.

</description>



<context-param>

<param-name>javax.faces.STATE_SAVING_METHOD</param-name>

<param-value>server</param-value>

</context-param>



<context-param>

<param-name>javax.faces.PROJECT_STAGE</param-name>

<param-value>Development</param-value>

</context-param>



<context-param>

<param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>

<param-value>false</param-value>

</context-param>



<context-param>

<param-name>com.icesoft.faces.gmapKey</param-name>

<param-value>ABQIAAAADlu0ZiSTam64EKaCQr9eTRTOTuQNzJNXRlYRLknj4cQ89tFfpxTEqxQnVWL4k55OPICgF5_SOZE06A

</param-value>

</context-param>



<context-param>

<param-name>org.icefaces.uniqueResourceURLs</param-name>

<param-value>false</param-value>

</context-param>



<context-param>

<param-name>com.icesoft.faces.uploadDirectory</param-name>

<param-value>upload</param-value>

</context-param>



<context-param>

<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>

<param-value>true</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>

<servlet-name>Resource Servlet</servlet-name>

<servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>



<servlet-mapping>

<servlet-name>Faces Servlet</servlet-name>

<url-pattern>*.jsf</url-pattern>

</servlet-mapping>



<servlet-mapping>

<servlet-name>Resource Servlet</servlet-name>

<url-pattern>/xmlhttp/*</url-pattern>

</servlet-mapping>



<session-config>

<session-timeout>30</session-timeout>

</session-config>



<welcome-file-list>

<welcome-file>index.jsp</welcome-file>

</welcome-file-list>



</web-app>
 
Profile for gsantama -> Messages posted by gsantama [9]
Go to:   
Powered by JForum 2.1.7ice © JForum Team