[JBoss JIRA] Created: (RF-923) SuggestionBox: nested support missing var
by Nick Belaevski (JIRA)
SuggestionBox: nested support missing var
-----------------------------------------
Key: RF-923
URL: http://jira.jboss.com/jira/browse/RF-923
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Nick Belaevski
Assigned To: Andrey Izobov
Fix For: 3.2.0
Hi.
I'm trying to set a backingbean property from a property's POJO when the user selects an item from the suggestionBox..
I tryed to use a4j:support binded to "onselect" event... and the f:setPropertyActionListener, inside do a4j:suport, was executed.
But, the property of the POJO always came null to backingbean.
Is it normal?
follow the code:
<h:inputText value="#{bean.letter}" styleClass="txt" style="width:190px;" id="grupoNome" />
<rich:suggestionbox id="grupos" for="grupoNome" var="grupo" suggestionAction="#{bean.grupos}" requestDelay="500" >
<h:column>
<h:outputText value="#{grupo.nome}" />
</h:column>
<a4j:support event="onselect" reRender="grupoNome">
<f:setPropertyActionListener target="#{bean.idGrupo}" value="#{grupo.id}"/>
</a4j:support>
</rich:suggestionbox>
--------------------------
--------------------------
--------------------------
the action <f:setPropertyActionListener target="#{bean.idGrupo}" value="#{grupo.id}"/> execute. But I think the component don't mantain the state to "var" (grupo, in this case), because it always came null to #{bean.idGrupo} in the target..
Tks
[ Show » ]
Daniel Badawi [27/Aug/07 05:04 PM] Hi. I'm trying to set a backingbean property from a property's POJO when the user selects an item from the suggestionBox.. I tryed to use a4j:support binded to "onselect" event... and the f:setPropertyActionListener, inside do a4j:suport, was executed. But, the property of the POJO always came null to backingbean. Is it normal? follow the code: <h:inputText value="#{bean.letter}" styleClass="txt" style="width:190px;" id="grupoNome" /> <rich:suggestionbox id="grupos" for="grupoNome" var="grupo" suggestionAction="#{bean.grupos}" requestDelay="500" > <h:column> <h:outputText value="#{grupo.nome}" /> </h:column> <a4j:support event="onselect" reRender="grupoNome"> <f:setPropertyActionListener target="#{bean.idGrupo}" value="#{grupo.id}"/> </a4j:support> </rich:suggestionbox> -------------------------- -------------------------- -------------------------- the action <f:setPropertyActionListener target="#{bean.idGrupo}" value="#{grupo.id}"/> execute. But I think the component don't mantain the state to "var" (grupo, in this case), because it always came null to #{bean.idGrupo} in the target.. Tks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (RF-937) samples/skin project doesn't fit well with myfaces 1.2.1-SNAPSHOT
by kdjlkdaf klfjdlskajfd (JIRA)
samples/skin project doesn't fit well with myfaces 1.2.1-SNAPSHOT
-----------------------------------------------------------------
Key: RF-937
URL: http://jira.jboss.com/jira/browse/RF-937
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Tomcat 6, Myfaces 1.2.1-SNAPSHOT
Reporter: kdjlkdaf klfjdlskajfd
Priority: Optional
Fix For: 3.1.0
I have found something strange on samples/skin project
You have the following code on SkinBean:
public class SkinBean {
/* ................... */
private UISelectOne createComponent() {
UISelectOne selectOne = new UISelectOne();
/* ................... */
Using myfaces-1.2.1-SNAPSHOT Throws IllegalArgumentException because
UISelectOne is not of type HtmlSelectOneRadio class
In many of the example pages I can found the following:
<h:form>
<h:selectOneRadio binding="#{skinBean.component}" />
<h:commandLink action="#{skinBean.change}" value="set skin" />
</h:form>
jsf-impl doesn't check it (but it should check it !!!!!), so myfaces has the correct behaviour.
The solution is simple. Do this instead
UISelectOne selectOne = new new HtmlSelectOneRadio();
But I don't know what other examples do.
And I have noted that when I execute
mvn install -P myfaces
setting myfaces property on the pom of samples project to 1.2.1-SNAPSHOT adds jsf 1.1 libraries to the war files.
Thanks for your attention.
Att: Leonardo Uribe
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (RF-1030) Calendar resizes on month change
by Viktor Volkov (JIRA)
Calendar resizes on month change
--------------------------------
Key: RF-1030
URL: http://jira.jboss.com/jira/browse/RF-1030
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Environment: 3.1.1 CR1
any browser
Tomcat 5.5 and JDK 1.5
Reporter: Viktor Volkov
Assigned To: Maksim Kaszynski
Fix For: 3.1.2
1. Open Calendar component
2. Invoke Calendar
--->>> See calendar1.png
3. Click next month button
--->>> See calendar2.png
4. Click next month button
--->>> See calendar3.png
5. Click previous month button
--->>> See calendar2.png
6. Click previous month button
--->>> See calendar1.png
7. Click previous month button
--->>> See calendar3.png
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (RF-1001) Can't switch table through rich:datascroller
by Ilya Shaikovsky (JIRA)
Can't switch table through rich:datascroller
--------------------------------------------
Key: RF-1001
URL: http://jira.jboss.com/jira/browse/RF-1001
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Reporter: Ilya Shaikovsky
Assigned To: Maksim Kaszynski
Fix For: 3.1.1, 3.2.0
<h:form>
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5">
<a4j:support event="onRowClick" actionListener="#{capitalsBean.actionListener}"/>
<rich:column>
<a4j:outputPanel id="row1">
<h:inputText value="#{cap.name}" rendered="#{cap.checked}"></h:inputText>
<h:outputText value="#{cap.name}" rendered="#{not cap.checked}"></h:outputText>
</a4j:outputPanel>
</rich:column>
<rich:column>
<a4j:outputPanel id="row2">
<h:inputText value="#{cap.state}" rendered="#{cap.checked}"></h:inputText>
<h:outputText value="#{cap.state}" rendered="#{not cap.checked}"></h:outputText>
</a4j:outputPanel>
</rich:column>
<rich:column>
<h:selectBooleanCheckbox value="#{cap.checked}">
<a4j:support event="onclick" reRender="row1,row2">
<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"></a4j:ajaxListener>
</a4j:support>
</h:selectBooleanCheckbox>
</rich:column>
<f:facet name="footer">
<rich:datascroller ajaxSingle="false"></rich:datascroller>
</f:facet>
</rich:dataTable>
<a4j:log popup="false"></a4j:log>
<rich:messages/>
</h:form>
Check the box. Filed makes editable. Type something to field. Try to change the page.
No messages in context. phasetracker show all phases executed normally.
If you remove the
<a4j:support event="onRowClick" actionListener="#{capitalsBean.actionListener}"/>
Line -- switches works fine
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (RF-1003) The calendar cannot be switched from client in ajax
by Aleksej Yanul (JIRA)
The calendar cannot be switched from client in ajax
---------------------------------------------------
Key: RF-1003
URL: http://jira.jboss.com/jira/browse/RF-1003
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Environment: https://svn.jboss.org/repos/richfaces/trunk/test-applications/facelets
jsf 1.1
tomcat 5.5.17
Reporter: Aleksej Yanul
Assigned To: Alexej Kushunin
Fix For: 3.1.2
<rich:calendar id="calendarID"
...
weekDayLabels="#{calendarBean.weekDayLabels}"
weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
...
mode="#{calendarBean.mode}"
...
/>
<h:outputText value="Mode:" />
<h:selectOneRadio value="#{calendarBean.scrollMode}" onchange="submit();">
<f:selectItem itemLabel="client" itemValue="client"/>
<f:selectItem itemLabel="ajax" itemValue="ajax"/>
</h:selectOneRadio>
///////////////////////////////////////////////////////////////////
SEVERE: Error Rendering View[/pages/Rich/Rich.xhtml]
java.lang.NullPointerException
at org.richfaces.component.UICalendar.getPreloadDateRange(UICalendar.java:388)
at org.richfaces.component.UICalendar.getPreload(UICalendar.java:365)
at org.richfaces.renderkit.CalendarRendererBase.writePreloadBody(CalendarRendererBase.java:162)
at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:282)
at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:427)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
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(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (RF-1029) Menu Item doen't work correctly
by Alexander Belov (JIRA)
Menu Item doen't work correctly
-------------------------------
Key: RF-1029
URL: http://jira.jboss.com/jira/browse/RF-1029
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: Windows XP SP2, Mozilla FF
Reporter: Alexander Belov
This code works good:
<rich:menuItem value="#{app.addMediateActorMenuItem}" id="addElementItem" submitMode="none">
<a4j:support action="#{graphBean.addMediateActor}" event="onclick" id="addMediateActorSupport"
oncomplete="Richfaces.showModalPanel('#{graphBean.addElementModalPanelComponentClientId}');"
reRender="#{graphBean.addElementUpdate}" limitToList="true"/>
</rich:menuItem>
This code doen't change page content, response contants nothing:
<rich:menuItem value="#{app.addMediateActorMenuItem}" id="addElementItem" submitMode="ajax" action="#{graphBean.addMediateActor}" oncomplete="Richfaces.showModalPanel('#{graphBean.addElementModalPanelComponentClientId}');"
reRender="#{graphBean.addElementUpdate}" limitToList="true"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months