[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2914) PDF: Image inside a cell cannot be aligned properly
by Richard Leherpeur (JIRA)
PDF: Image inside a cell cannot be aligned properly
---------------------------------------------------
Key: JBSEAM-2914
URL: http://jira.jboss.com/jira/browse/JBSEAM-2914
Project: Seam
Issue Type: Bug
Components: PDF
Affects Versions: 2.0.1.GA
Reporter: Richard Leherpeur
I noticed that this is not possible to properly align an image inside a cell. I investigated a little and found out that one case is missing the UICell.handleAdd method.
The actual method is implemented as:
public void handleAdd(Object o) {
if (o instanceof Phrase) {
cell.setPhrase((Phrase) o);
} else if (o instanceof Element) {
// calling addElement negates setPhrase, etc...
cell.addElement((Element) o);
} else {
throw new RuntimeException("Can't add " + o.getClass().getName() + " to cell");
}
}
The correct implementation should be:
public void handleAdd(Object o) {
if (o instanceof Phrase) {
cell.setPhrase((Phrase) o);
} else if (o instanceof Image) {
// Allow proper control over image alignment
cell.setImage((Image) o);
} else if (o instanceof Element) {
// calling addElement negates setPhrase, etc...
cell.addElement((Element) o);
} else {
throw new RuntimeException("Can't add " + o.getClass().getName() + " to cell");
}
}
--
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, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2926) CLONE -Locking issue for ConversationEntry when using Conversation.instance().leave()
by Tomas Cerny (JIRA)
CLONE -Locking issue for ConversationEntry when using Conversation.instance().leave()
-------------------------------------------------------------------------------------
Key: JBSEAM-2926
URL: http://jira.jboss.com/jira/browse/JBSEAM-2926
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.1.GA
Reporter: Tomas Cerny
Assigned To: Pete Muir
Priority: Minor
Fix For: 2.1.0.BETA1, 2.0.2.CR1
When using Conversation.instance().leave(), it seems that the ConversationEntry lock is not released. *Sometimes* it can be obtained when attempting to resume the conversation but other times it cannot. This results in the user being redirected to the no-conversation-view-id after the concurrent-request-timeout expires.
This can be observed by placing Conversation.instance.leave() in an action that redirects to another page. Then simply use the back-button and resume the conversation by clicking a link on the page. You may have to try this several times to get the result. I will see if I can create a reliable test case and attach it.
Manager.switchConversation() performs an unlock of the ConversationEntry prior to switching, which would also make sense in the case of leave (since it is really a switch to a temp conversation).
The workaround is simply executing the following:
Code:
Conversation conversation = Conversation.instance();
ConversationEntry entry =
ConversationEntries.instance().getConversationEntry(conversation.getId());
conversation.leave();
entry.unlock();
--
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, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2775) package-info.java should be optional:"convention over configuration"
by E. Jung (JIRA)
package-info.java should be optional:"convention over configuration"
--------------------------------------------------------------------
Key: JBSEAM-2775
URL: http://jira.jboss.com/jira/browse/JBSEAM-2775
Project: JBoss Seam
Issue Type: Feature Request
Reporter: E. Jung
Currently, package-info.java is required when referring to custom Seam components in components.xml. However, to further align Seam with the "convention over configuration" philosophy, this file can be optional by making some assumptions:
1. In the absence of package-info.java , the XML namespace in components.xml for custom components has a well-defined mapping to a Java package
2. This mapping can be defined as:
a. The XML namespace must be parsable by java.net.URL, otherwise automatic mapping is aborted
a. Protocol (scheme), the www/ subdomain, port, query parameters, anchors (references), and userInfo are ignored, if present.
b. The top-level domain becomes the root Java package
c. Subdomains become Java packages under the root package, applied in right-to-left order as specified in the URI.
d. The path, as returned by URL.getPath(), is mapped to further Java packages such that each path element becomes another Java package appended in left-to-right order
Examples:
http://www.company.com/department/product ==> com.company.department.product
https://company.com/department/product ==> com.company.department.product
ftp://www.company.org/department/product ==> org.company.department.product
abc://company.org/department/product ==> org.company.department.product
company.net/foo/bar/baz ==> net.company.foo.bar.baz
http://ericjung:password@www.company.com:8080/foo/bar/baz#anchor?param1=3... ==> com.company.foo.bar.baz
--
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, 11 months