[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-862) Minor error in view.xhtml.ftl Seam Gen Template
by Damian Harvey (JIRA)
Minor error in view.xhtml.ftl Seam Gen Template
-----------------------------------------------
Key: JBSEAM-862
URL: http://jira.jboss.com/jira/browse/JBSEAM-862
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 1.1.6.GA
Reporter: Damian Harvey
Priority: Minor
If you have a ManyToOne association that goes more than one level deep eg. A PERSON associated with a COMPANY associated with a COUNTRY then the SeamGen view template has a small error on line 83 of the view.xhtml.ftl
It is currently:
Code:
${'#'}{${parentName}.${parentProperty.name}.${
parentPojo
.identifierProperty.name}}
but should be:
Code:
${'#'}{${parentName}.${parentProperty.name}.${
parentParentPojo
.identifierProperty.name}}
It results in an error in the generated View page as the property is set as such:
Code:
<h:column>
<f:facet name="header">countryCode countryId</f:facet>
#{company.countryCode.companyId} <!--is this the problem -->
</h:column>
--
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-713) Using FacesMessages results in stale component rendering
by Christian Bauer (JIRA)
Using FacesMessages results in stale component rendering
--------------------------------------------------------
Key: JBSEAM-713
URL: http://jira.jboss.com/jira/browse/JBSEAM-713
Project: JBoss Seam
Issue Type: Bug
Reporter: Christian Bauer
Priority: Minor
Tough one... before I isolate the problem to a standalone test, these are the symptoms:
A page has two <h:datatable> components, let's say tableA and tableB. There is a <h:form> around tableB with a <h:commandButton>. When this button is pressed, I execute an action method on a conversational component and update some data in the current conversation that is shown by tableA. The page is rendered again and tableA shows the updated data.
However, if in the action method I use
FacesMessages.instance().add("Updated object");
(or any other variation of FacesMessages), tableA is not re-rendered but shown with old state. If I click the commandButton again, tableA is rendered fine (!).
Now, if I replace the call to FacesMessages with this
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Updated Object"));
all works as expected and on every RenderResponse of the page, tableA is rerendered.
I verified that the tableA datacomponent is not rendered again. Interestingly, the backing bean data for tableA is called during RenderResponse every time, it just displays the same old component (which, I think, it remembers somehow from the RestoreView phase).
--
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-852) Internal Seam log messages are not producing line numbers or method name under Log4J.
by Mike Quilleash (JIRA)
Internal Seam log messages are not producing line numbers or method name under Log4J.
-------------------------------------------------------------------------------------
Key: JBSEAM-852
URL: http://jira.jboss.com/jira/browse/JBSEAM-852
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 1.1.6.GA
Environment: Any
Reporter: Mike Quilleash
Example of the Seam log during startup.
INFO [javax.servlet.ServletContextListener] [main] (?:?) - Welcome to Seam 1.1.6.GA
The ?:? indicate the logging could not determine the method and line number. I only believe this is a problem with Log4J.
This is because the core Seam code is using Logging.getLogProvider() rather than Logging.getLog() like the @Logging injection does and the FQCN passed to Log4J is LogImpl which the LogProvider path does not call.
Example
private static final LogProvider log = Logging.getLogProvider(ServletContextListener.class);
Doing a search/replace to replaces "Logging.getLogProvider(" with "Logging.getLog(" should fix the problem.
A minor optimisation would be to modify LogImpl.interpolate() to (add the length check) to avoid calling/creating the interpolate component needlessly.
private Object interpolate(Object object, Object... params)
{
if (object instanceof String && params.length > 0)
{
return Interpolator.instance().interpolate( (String) object, params );
}
else
{
return object;
}
}
--
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-850) License violation
by Petr Ferschmann (JIRA)
License violation
-----------------
Key: JBSEAM-850
URL: http://jira.jboss.com/jira/browse/JBSEAM-850
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 1.1.6.GA
Environment: any
Reporter: Petr Ferschmann
JBoss Seam has LGPL license.
JCaptcha (according to content of jcaptcha-all-1.0-RC3.jar) is GPL.
When running JBoss Seam without jcaptcha I get this NoClassDefFoundError:
java.lang.NoClassDefFoundError: com/octo/captcha/service/image/ImageCaptchaService
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.jboss.seam.Component.initMembers(Component.java:413)
at org.jboss.seam.Component.<init>(Component.java:253)
at org.jboss.seam.Component.<init>(Component.java:204)
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:742)
at org.jboss.seam.init.Initialization.addComponents(Initialization.java:674)
at org.jboss.seam.init.Initialization.init(Initialization.java:429)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
This mean I can't use Seam without GPL software.
Solution is to make JCaptcha optional.
--
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