[JBoss JIRA] Created: (RF-2280) a4j command: immediate and ajax single true works wrong.
by Ilya Shaikovsky (JIRA)
a4j command: immediate and ajax single true works wrong.
--------------------------------------------------------
Key: RF-2280
URL: http://jira.jboss.com/jira/browse/RF-2280
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
Fix For: 3.2.0
<h:form id="form">
<a4j:jsFunction name="ajaxCall" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
<a4j:commandButton value="a4j button and ajaxCall" immediate="true" action="#{bean.action}" ajaxSingle="true" oncomplete="ajaxCall();"/>
<a4j:commandButton value="a4j button" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
<a4j:commandLink value="a4j link" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
<h:commandButton value="h button" immediate="true" action="#{bean.action}"/>
<h:inputText>
<a4j:support event="onclick" immediate="true" action="#{bean.action}" ajaxSingle="true"/>
</h:inputText>
</h:form>
Only h:control works fine. Any a4j control with both immediate and ajax Single setted to true works with next log:
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RESTORE_VIEW 1
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW 1
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE APPLY_REQUEST_VALUES 2
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER APPLY_REQUEST_VALUES 2
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE PROCESS_VALIDATIONS 3
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER PROCESS_VALIDATIONS 3
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE UPDATE_MODEL_VALUES 4
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER UPDATE_MODEL_VALUES 4
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE INVOKE_APPLICATION 5
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER INVOKE_APPLICATION 5
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RENDER_RESPONSE 6
18.02.2008 14:53:31 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE 6
So at first - request not immediate and action isn't called.
--
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, 10 months
[JBoss JIRA] Created: (RF-2265) Indicating rich:messages 'level' still creates empty boxes
by Juan Ignacio S?nchez Lara (JIRA)
Indicating rich:messages 'level' still creates empty boxes
----------------------------------------------------------
Key: RF-2265
URL: http://jira.jboss.com/jira/browse/RF-2265
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: MyFaces 1.1.5, SJSAS 8.2
Reporter: Juan Ignacio S?nchez Lara
If I put several rich:messages with different levels and I add one message, the other box is still rendered.
For example:
<style>
.info { border: 1px blue solid; background: green; }
.error { border: 1px red solid; background: orange; }
</style>
...
<rich:messages level="info" styleClass="info" />
<rich:messages level="error" styleClass="error" />
Adding an error message renders an orange box with it, plus a green empty one.
I attatch a war. The rendered page has links which adds messages of different levels.
--
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, 10 months
[JBoss JIRA] Created: (RF-2701) ListShuttleDemo: missing attribute exception
by Nick Belaevski (JIRA)
ListShuttleDemo: missing attribute exception
--------------------------------------------
Key: RF-2701
URL: http://jira.jboss.com/jira/browse/RF-2701
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Nick Belaevski
Assigned To: Vladimir Molotkov
Fix For: 3.2.0
org.apache.jasper.JasperException: /pages/index.jsp(107,4) PWC6131: Attribute moveControlsVerticalAlign invalid for tag listShuttle according to TLD
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:62)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:185)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1198)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:834)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
at or
--
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, 10 months
[JBoss JIRA] Created: (RF-1341) Problems with Ajax requests within a a4j:repeat loop
by Peter Mahoney (JIRA)
Problems with Ajax requests within a a4j:repeat loop
----------------------------------------------------
Key: RF-1341
URL: http://jira.jboss.com/jira/browse/RF-1341
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Environment: MyFaces, Richfaces 3.1.3 snapshot
Reporter: Peter Mahoney
I have come across two problems following a change to put some fields in an a4j:repeat loop. The backing beans have not changed. This is the code:
<a4j:repeat id="termClauses" value="#{collectionSearchHandler.termClauses}" var="clause">
<a4j:region id="vocabularyFilterRegion">
<h:selectOneMenu id="vocabularyFilter" value="#{clause.vocabulary}">
<a4j:support id="vocabularyAjaxSupport" event="onchange" reRender="termFilterPanel" ajaxSingle="true" />
<f:selectItem itemValue="#{collectionSearchHandler.blankVocabulary}" itemLabel="#{msgs.quizFirstVocabularySelectItemDescription}" />
<f:selectItems value="#{collectionSearchHandler.vocabularyFilterItems}" />
</h:selectOneMenu>
<a4j:status startText="#{msgs.quizTermSearchInProgressMessage}" />
</a4j:region>
<a4j:region id="termFilterRegion">
<a4j:outputPanel id="termFilterPanel">
<h:panelGroup rendered="#{clause.hasVocabulary}">
<ul style="list-style-type:none; margin:0px;">
<a4j:repeat id="termFilters" value="#{clause.termFilters}" var="termFilter" rowKeyVar="idx">
<li>
<h:selectOneMenu id="termFilter" value="#{termFilter.term}" converter="com.dbplc.quiz.Term" style="width:100%">
<a4j:support id="termAjaxSupport" event="onchange" reRender="termFilterPanel,qbankSearchResultsPanel" ajaxSingle="true" actionListener="#{collectionSearchHandler.searchPerformed}" />
<f:selectItem itemValue="#{collectionSearchHandler.blankTerm}" itemLabel="#{msgs.quizFirstTermSelectItemDescription}" />
<f:selectItems value="#{clause.termFilterItemMap[idx]}" />
</h:selectOneMenu>
<h:commandButton actionListener="#{collectionSearchHandler.searchPerformed}" />
</li>
</a4j:repeat>
</ul>
</h:panelGroup>
</a4j:outputPanel>
<rich:messages />
</a4j:region>
</a4j:repeat>
Firstly I get the following error when the form is submitted by changing the "VocabularyFilter" value:
/questionsearch.xhtml @25,77 value="#{clause.vocabulary}": Target Unreachable, identifier 'clause' resolved to null
If I add an onchange="this.form.submit()" to the field, to bypass the Ajax, it works fine.
So, with the above workaround, I then get the problem that the collectionSearchHandler.searchPerformed() method (referenced by the a4j:support tag) is only called every second form submit. This worked without problems before adding the outer a4j:repeat. Using the commandButton to submit the form works every time.
--
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, 10 months