[JBoss JIRA] Created: (RF-8242) <a4j:commandLink /> not "fully" disabled (<a> should be <span>)
by Jochen H (JIRA)
<a4j:commandLink /> not "fully" disabled (<a> should be <span>)
---------------------------------------------------------------
Key: RF-8242
URL: https://jira.jboss.org/jira/browse/RF-8242
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.2.GA
Environment: Ubuntu Karmic
Firefox 3.5.6
Seam 2.2.0
JSF 1.0
Reporter: Jochen H
Priority: Minor
Hi,
When you use this code:
{code}
<h:commandLink value="#{msg['mailbox.label.deselect']}" action="#{mailboxManagementBean.deselectAllMessageRecipients}" style="margin-left:15px" disabled="#{empty (mailboxManagementBean.selectedMessageRecipients)}"/>
{code}
... and "#{empty (mailboxManagementBean.selectedMessageRecipients)}" returns "true", the following output is generated:
{code}
<span style="margin-left: 15px;">Alles deselecteren</span>
{code}
When you use this code:
{code}
<a4j:commandLink id="deleteAllLink" onclick="#{rich:component('deleteMessageRecipientsPanel')}.show()" disabled="#{empty (mailboxManagementBean.selectedMessageRecipients)}" style="margin-left:15px">delete all</a4j:commandLink>
{code}
... and "#{empty (mailboxManagementBean.selectedMessageRecipients)}" returns "true", the following output is generated:
{code}
<a id="deleteAllLink" onclick="return false;" name="deleteAllLink" href="#">delete all</a>
{code}
This should also be a "span" element. Ok, disabled works because no HTTP request will be made, but the link is still clickable. I want the same behaviour as a "h:commandLink".
Can this be confirmed as a bug?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Resolved: (RF-7603) a4j:form data="#{}" does not populate javascript data variable (data is undefined)
by Andrey Markhel (JIRA)
[ https://jira.jboss.org/jira/browse/RF-7603?page=com.atlassian.jira.plugin... ]
Andrey Markhel resolved RF-7603.
--------------------------------
Resolution: Done
Applied
> a4j:form data="#{}" does not populate javascript data variable (data is undefined)
> ----------------------------------------------------------------------------------
>
> Key: RF-7603
> URL: https://jira.jboss.org/jira/browse/RF-7603
> Project: RichFaces
> Issue Type: Patch
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 3.3.2.CR1
> Environment: Gentoo Linux 2.6.24
> Sun Java 1.6.0.0.7
> RichFaces 3.2.1_GA
> Facelets 1.1.14
> Apache Tomcat 6.0 AppServer
> JSF 1.2 RI
> Reporter: Lincoln Baxter III
> Assignee: Andrey Markhel
> Fix For: 3.3.3.CR1
>
> Attachments: UIAjaxForm.java
>
> Time Spent: 3 hours
> Remaining Estimate: 0 minutes
>
> When using the a4j:form component, the data="#{managedBean.property}" attribute is not correctly causing the javascript data variable to be populated.
> See example below. data is always undefined, even if the managed bean property is set to a valid value, the alert box shows undefined.
> I verified that when using a4j:commandButton, the data variable is correctly populated, and the alert box displays the value.
> <a4j:form id="themouth" data="#{indexBean.ajaxInputOk}"
> reRender="whispers,earInput,earErrors"
> oncomplete="alert(data)" ajaxSubmit="true">
> <div class="centered paddingLarge"><h:outputText
> id="whispers" styleClass="smallText" value="#{indexBean.whispers}" /></div>
> <div class="centered" id="earWhisper"><a4j:outputPanel id="earErrors">
> <h:message showSummary="true" showDetail="false" for="earInput"
> style="color: red;" />
> </a4j:outputPanel><br />
> <h:inputText id="earInput" autocomplete="off"
> value="#{indexBean.input}"
> validator="#{indexBean.validateWhisper}" required="true">
> </h:inputText> <h:commandButton id="whisperButton"
> action="#{indexBean.doWhisper}" value="whisper" /></div>
> </a4j:form>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (RF-8177) rf-demo ftest - patch Wait.until() method to test conditions on the start of the loop
by Lukas Fryc (JIRA)
rf-demo ftest - patch Wait.until() method to test conditions on the start of the loop
-------------------------------------------------------------------------------------
Key: RF-8177
URL: https://jira.jboss.org/jira/browse/RF-8177
Project: RichFaces
Issue Type: Task
Security Level: Public (Everyone can see)
Components: functional-tests, QA-environment
Reporter: Lukas Fryc
Assignee: Lukas Fryc
Use following patch after solving related issues - some tests needs to be modifies (mainly widely used abstractTestSource()):
Index: src/main/java/org/jboss/test/selenium/waiting/Wait.java
===================================================================
--- src/main/java/org/jboss/test/selenium/waiting/Wait.java (revision 16033)
+++ src/main/java/org/jboss/test/selenium/waiting/Wait.java (revision 16037)
@@ -373,8 +373,28 @@
}
/**
- * Stars loop waiting to satisfy condition.
+ * <p>Stars loop waiting to satisfy condition.</p>
*
+ * <p>The condition will be tested</p>
+ *
+ * <ul>
+ * <li>on the start,</li>
+ * <li>every time interval after last try</li>
+ * <li>and also once after timeout when finishes interval since last try before timeout.</li>
+ * </ul>
+ *
+ * <p>Scheme:</p>
+ *
+ * <p><pre>S ..int.. T ..int.. T ..int1..timeout..int2.. L</pre></p>
+ *
+ * <p>
+ * <div>S - starting try</div>
+ * <div>T - try within intervals</div>
+ * <div>L - last try after timeout</div>
+ * <div>int - one interval</div>
+ * <div>int = int1 + int2</div>
+ * </p>
+ *
* @param condition
* what wait for to be satisfied
*/
@@ -382,13 +402,17 @@
long start = System.currentTimeMillis();
long end = start + timeout;
while (System.currentTimeMillis() < end) {
+ if (condition.isTrue())
+ return;
try {
Thread.sleep(interval);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
- if (condition.isTrue())
- return;
+ if (System.currentTimeMillis() >= end) {
+ if (condition.isTrue())
+ return;
+ }
}
fail();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months