[JBoss JIRA] Commented: (RF-899) Check that all components output single "class" attribute
by Marine Wacheux (JIRA)
[ http://jira.jboss.com/jira/browse/RF-899?page=comments#action_12418725 ]
Marine Wacheux commented on RF-899:
-----------------------------------
Hi,
I have the problem with "a4j:commandButton" component in RichFaces 3.1.5 :
it renders sometimes two attributes "class". It's a blocking problem, as HTML isn't correctly formatted, and so can't be converted to PDF, for example :
org.xml.sax.SAXParseException: Attribute "class" was already specified for element "input".
Here is source code :
<a4j:commandButton id="btnAjouter" value=" "
title="#{msgG.Ajouter}"
disabled="#{suiviMedicalHospitForm.modifOuCreationEnCours}"
action="#{suiviMedicalHospitController.ajouter}"
ajaxSingle="true"
reRender="panelListeSuiviMedical,panelCreationOuModif"
styleClass="BTN_AJOUTER" style="float:left;"/>
And HTML generated :
<input class="BTN_AJOUTER" id="body:formSuiviMedical:tableSuiviMedical:btnAjouter" name="body:formSuiviMedical:tableSuiviMedical:btnAjouter" onclick="A4J.AJAX.Submit('_viewRoot','body:formSuiviMedical',event,{'parameters':{'body:formSuiviMedical:tableSuiviMedical:btnAjouter':'body:formSuiviMedical:tableSuiviMedical:btnAjouter'} ,'actionUrl':'/gcm-web-patients/faces/jsp/operatoire/SuiviMedicalHospit.jsp?javax.portlet.faces.DirectLink=true'} );return false;" value=" " class="BTN_AJOUTER" style="float:left;" title="Ajouter" type="button" />
Is there a workaround for this ?
Thanks
> Check that all components output single "class" attribute
> ---------------------------------------------------------
>
> Key: RF-899
> URL: http://jira.jboss.com/jira/browse/RF-899
> Project: RichFaces
> Issue Type: Task
> Affects Versions: 3.1.0
> Environment: Facelets
> Reporter: Nick Belaevski
> Assigned To: Tsikhon Kuprevich
> Fix For: 3.2.0
>
>
> We have been reported about multiple cases when styleClass component attribute is written to HTML page as "class" attribute twice, thus brokening markup. We should test all components for the case
--
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
17 years, 9 months
[JBoss JIRA] Created: (RF-3781) tree: problem with getRowData() in rich:tree component. It's difficult to output selected treeNode.
by Mikhail Vitenkov (JIRA)
tree: problem with getRowData() in rich:tree component. It's difficult to output selected treeNode.
---------------------------------------------------------------------------------------------------
Key: RF-3781
URL: http://jira.jboss.com/jira/browse/RF-3781
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: IE,FF,Safari,Opera
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
Step 1. Implement method, that save name of selected node in rich:tree component like this:
public void processLSelection(NodeSelectedEvent event) {
UITree tree = (UITree) event.getComponent();
leftSelectedNodeTitle = (String) tree.getRowData();
}
Step 2. Implement getter & setter for leftSelectedNodeTitle.
Step 3. On the page add nodeSelectListener inside rich:tree tag, like this:
nodeSelectListener="#{treeDndBean.processLSelection}"
Step 4.Output selected node's title:
<h:outputText escape="false"
value="Selected Node: <b>#{treeDndBean.leftSelectedNodeTitle}</b>"
id="selectedNodeL" />
Step 5. Navigate on the page, contained tree component.
Step 6. Select any node of tree & verify output value of h:outputText defined in Step 4.
Actual behavior:
Value is empty;
Expected behavior:
Selected node's title should be shown
--
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
17 years, 9 months
[JBoss JIRA] Created: (RF-3576) NullPointerException in AjaxStateManager if using datatable within a form
by Bjoern Eickvonder (JIRA)
NullPointerException in AjaxStateManager if using datatable within a form
-------------------------------------------------------------------------
Key: RF-3576
URL: http://jira.jboss.com/jira/browse/RF-3576
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JSF 1.2 (Sun RI), Facelets, Firefox 2, IBM WSA 6.1, Richfaces 3.2.1 CR8
Reporter: Bjoern Eickvonder
Since at least 3.2.1 CR8 (it did not occur in CR4 or prior) a NullPointerException occurs if using a simple rich:dataTable within a form as follows
<h:form>
<rich:dataTable value="#{test.list}" var="item">
<rich:column>
<h:outputText value="#{item}" />
</rich:column>
</rich:dataTable>
</h:form>
whereby "test" is a request scoped managed bean and "list" a simple list of a few strings. The following exception occurs on accessing that page.
28.05.08 17:01:44:437 CEST] 00000021 viewhandler E Error Rendering View[/test.xhtml]
java.lang.NullPointerException
at org.ajax4jsf.application.AjaxStateManager.getAdditionalState(AjaxStateManager.java:319)
at org.ajax4jsf.application.AjaxStateManager.getComponentStateToSave(AjaxStateManager.java:155)
at org.ajax4jsf.application.AjaxStateManager.buildSerializedView(AjaxStateManager.java:274)
at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:257)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at de.bw.TimeFilter.doFilter(TimeFilter.java:23)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
--
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
17 years, 9 months