[JBoss Portal] - displaytag in my portal
by pedrosacosta
Can you give me a help about how to use displaytag in my portal?
I'm having a problem with the URL created by the displaytag when i use the option pagesize.
Here is the code:
| <c:set var="addRowURL">
| <portlet:actionURL portletMode="view">
| </portlet:actionURL>
| </c:set>
|
|
| <div id="hf-portlet-form-content">
| <form name="ActionListShort" method="post" action="${addRowURL}">
| <input type="hidden" name="<%= GeneralPortalConstants.PARAMETER__ACTION %>" value="" />
| <input type="hidden" name="<%= GeneralPortalConstants.PARAMETER__CORE_ACTION_ID %>" value="-1" />
|
| <c:set var="listaVal" value="<%= actionList %>"></c:set>
| <table with="100%" cellpadding="0" cellspacing="0" class="portlet-form-input-field">
| <tr>
| <td align="center">
| <display:table name="${listaVal}" id="item" sort="list" style="width:100%; text-align:center" cellpadding="0" cellspacing="0" class="bem-theme.css" pagesize="2">
| <display:column sortable="true" property="startDateTimeFormat" title="${n:i18n('label.event.action.start_date')}" headerClass="sortable" class="portlet-form-input-field"/>
|
| <display:setProperty name="paging.banner.one_item_found" value=""></display:setProperty>
| <display:setProperty name="paging.banner.some_items_found" value=""></display:setProperty>
| <display:setProperty name="paging.banner.all_items_found" value=""></display:setProperty>
|
| </display:table>
| </td>
| </tr>
| </table>
| </form>
| </div>
|
This produces me the URL: http://localhost:8080/bem/ActionList.jsp?d-49489-p=2
who isn't correct. The URL for this portlet is:
| http://localhost:8080/portal/auth/portal/sigo/Accoes
|
I've also tried with requestURI:
| <display:table name="${listaVal}" id="item" sort="list" style="width:100%; text-align:center" cellpadding="0" cellspacing="0" class="bem-theme.css" pagesize="2" requestURI="${addRowURL}">
|
but it doesn't work.
Any help?
Thanks,
Pedro
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959570#3959570
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959570
19 years, 9 months
[JBoss jBPM] - Re: FacesContext
by newbie007
Did you modify web.xml of the webapp?
Make sure you have following lines in the web.xml:
<!-- MyFaces JSF -->
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Another question is: In the beginning you said "Im using beans" and at the end you said "I am not using beans". What does that mean?
Are you using default webapp or you changed the implementation?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959568#3959568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959568
19 years, 9 months
[JBoss Seam] - Re: begin method invoked from a long running conversation, t
by MSchmidke
It seems I'm doing something completely wrong. I discovered that the stateful session conversation context bean is created several times during rendering of the single request.
Here the debug output:
This is the first attempt to access the Seam Component named "leistungsschein". It isn't there, it is created, everything is fine.
| 2006-07-20 15:14:32,177 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: leistungsschein
| 2006-07-20 15:14:32,177 DEBUG [org.jboss.seam.Component] instantiating Seam component: leistungsschein
| 2006-07-20 15:14:32,177 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-07-20 15:14:32,177 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
|
Afterwards, lots of successful lookups like this:
| 2006-07-20 15:14:33,224 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: leistungsschein
| 2006-07-20 15:14:33,224 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: leistungsschein
|
This all takes place during RENDER_RESPONSE and matches the EL calls to the Seam component in the page.
But then, suddenly:
| 2006-07-20 15:14:33,912 DEBUG [org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: leistungsschein
|
Seam intercepts that the container has decided to remove the bean. What follows is clear - Seam recreates the bean, runs into @Begin method and complains about the already begun conversation.
But why does the container decide to remove the stateful bean??
I fear that it's an absolute beginner's error. But, in fact, I am an absolute beginner. Hope it's allowed to make some.
Regards,
Marcus.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959563#3959563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959563
19 years, 9 months