[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1319) s:selectDate does not work on rich:modalPanel
by Chris Sweeney (JIRA)
s:selectDate does not work on rich:modalPanel
---------------------------------------------
Key: JBSEAM-1319
URL: http://jira.jboss.com/jira/browse/JBSEAM-1319
Project: JBoss Seam
Issue Type: Bug
Environment: OS: Mac OS X, Windows 2000 Pro
Browser: Firefox, IE
Reporter: Chris Sweeney
Fix For: 1.2.1.GA
If s:selectDate is used on a rich:modalPanel, it does not appear when the icon is clicked. This is because the z-index for the calendar div is not set. I have a patch (included below) to /org/jboss/seam/ui/resource/date/calendar.js (contained within jboss-seam-ui.jar). The patch is not as elegant as I would have liked - I would have preferred to navigate up the DOM tree from the target element and set the z-index based on where the target element lived. Unfortunately, my efforts at doing so have been unsuccessful.
Tested on:
Mac OS X 10.4.9, Firefox version Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Windows 2000 Pro, IE 6.0.2800.1106, SP1, Q823353
Windows 2000 Pro, Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Note: rich:modalPanel doesn't work on Safari (yet), so no way to test...
__Calendar.prototype.popup = function (locX, locY)
{
var selectedDate = __calendarFactory.parseDateValue(getObject(this.name).value);
if (selectedDate)
{
this.selectedMonth = selectedDate.getMonth() + 1;
this.selectedYear = selectedDate.getFullYear();
}
this.isPopup = true;
__calendarFactory.documentmousedown = document.onmousedown;
var popupDiv = getObject(POPUP_DIV);
if (!popupDiv)
{
popupDiv = document.createElement('div');
popupDiv.id = POPUP_DIV;
popupDiv.style.position = "absolute";
window.document.body.appendChild(popupDiv)
}
popupDiv.className = this.styleClass;
getStyleObject(POPUP_DIV).left = locX + "px";
getStyleObject(POPUP_DIV).top = locY + "px";
/*BEGIN PATCH - set zIndex... C. Sweeney, May 10, 2007 */
var all_divs = document.getElementsByTagName("div");
var maxZIndex = 0;
for(i = 0; i < all_divs.length; i++){
if(all_divs[i].id && all_divs[i].id != ""){
var divStyle = getStyleObject(all_divs[i].id);
if(divStyle && divStyle.zIndex && divStyle.zIndex > maxZIndex){
maxZIndex = divStyle.zIndex;
}
}
}
getStyleObject(POPUP_DIV).zIndex = maxZIndex + 1;
/* END PATCH */
popupDiv.innerHTML = this.getHTML();
changeObjectVisibility(POPUP_DIV, "visible");
document.onmousedown = this.documentmousedown;
popupDiv.onmousedown = this.mousedown;
popupDiv.onmouseup = this.mouseup;
};
--
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, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1443) allow SeamTest to test navigation rules with "from-action"
by Matt Drees (JIRA)
allow SeamTest to test navigation rules with "from-action"
----------------------------------------------------------
Key: JBSEAM-1443
URL: http://jira.jboss.com/jira/browse/JBSEAM-1443
Project: JBoss Seam
Issue Type: Feature Request
Components: Test Harness
Affects Versions: 1.3.0.ALPHA
Environment: Seam cvs - june 12 2007
Reporter: Matt Drees
Priority: Minor
Currently integration tests run most navigation rules in pages.xml, which is awesome. However, ones like
<navigation from-action="#{familyOverviewManager.done}">
<rule if="#{not registrationManager.isManaged}">
<render view-id="/persistRegistration"/>
</rule>
</navigation>
are not run, because of the 'from-action' attribute. Currently SeamTest has something like
String outcome = getInvokeApplicationOutcome();
facesContext.getApplication().getNavigationHandler().handleNavigation(
facesContext, null, outcome);
Could this be changed to something like
String outcome = getInvokeApplicationOutcome();
String fromAction = getInvokeApplicationFromAction();
facesContext.getApplication().getNavigationHandler().handleNavigation(
facesContext, fromAction, outcome);
?
--
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, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-798) MDB + JBPM - problem with transaction
by Bradley Smith (JIRA)
MDB + JBPM - problem with transaction
-------------------------------------
Key: JBSEAM-798
URL: http://jira.jboss.com/jira/browse/JBSEAM-798
Project: JBoss Seam
Issue Type: Bug
Components: BPM, Core, EJB3
Affects Versions: 1.1.6.GA
Reporter: Bradley Smith
I have an MDB that invokes a SLSB method - the method does some persistence work and signals a jBPM ProcessInstance. I am consistently getting an exception related to transactions from jBPM.
09:23:10,158 ERROR [StdServerSession] failed to commit/rollback
org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, Glob
alId=DEIBKST-6KZFT61/14, BranchQual=, localId=14] status=STATUS_NO_TRANSACTION; - nested throwable:
(java.lang.NullPointerException)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:351)
at progress.message.jimpl.Session.dU_(Unknown Source)
at progress.message.jimpl.Session.run(Unknown Source)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:196)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.jboss.seam.core.ManagedJbpmContext.beforeCompletion(ManagedJbpmContext.java:94)
at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
... 7 more
all the details can be found in the supplied JBoss Forum Reference
--
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, 6 months