[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to read/write data to XML files using Hibernate
I have seam/hibernate system with pojo entities. I now have the requirement to also read/write data from/to xml files. I understand I can achieve that with xml based hibernate mappings. Wondering if it is also possible with pojo entities? or if there is any alternative to avoid generating xml mappings just for this purpose? Hibernate 3.2.4.sp1.cp04 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181760#4181760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Exporting/Importing date from/to XML
I have Hibernate/Seam application with POJO entities. Is it possible to use POJO entities with hibernate XML features to import/export data to XML format? >From what I read in one post, it can only be done with XML based entity >mappings? Is there a way to do it using POJOs (annotations)? JBoss AS 4.3.CP02 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180844#4180844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem cloning entity with ClassMetadata
I am attempting to write a utility method to clone an entity using Hibernate ClassMetadata. my entities extend a EntityBase class which holds few common properties and methods. The problem is that the classMetadata.getPropertyValues(...) method throws exception when it tries to access getter method for property defined in the superclass. Any way to resolve this Exception | Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of au.edu.tisc.entity.EntityBase.insertDate | | Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of au.edu.tisc.entity.EntityBase.insertDate | | at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171) | at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValues(AbstractEntityTuplizer.java:256) | at org.hibernate.tuple.entity.PojoEntityTuplizer.getPropertyValues(PojoEntityTuplizer.java:209) | at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValues(AbstractEntityPersister.java:3576) | at au.edu.tisc.session.CloneEntity.clone(EntityCloner.java:48) | | | | Snippet from my EntitCloner utility class | | ... | ClassMetadata classMetadata = sessionFactory.getClassMetadata(course.getClass()); | | String[] propertyNames = classMetadata.getPropertyNames(); | /* this works ok and lists all the properties, including those in the EntityBase(mappedSuperclass), as below: */ | [insertDate,lastUpdateDate,code...] | | | Object[] propertyValues = classMetadata.getPropertyValues(this.sourceEntityClass, EntityMode.POJO); | /* this throws exception ?? as it tries to find/access/trace/? getter method for insertDate property */ | ... | | | @Entity | @Table(name = "Course") | public class Course extends EntityBase implements java.io.Serializable { | | private String code; | private CourseStatus courseStatus; | private Set preferences = new HashSet(0); | ... | | public Course() {} | | public Course(String id, String code, CourseStatus courseStatus, Date lastUpdateDate, Date insertDate, Set preferences ...) { | | super(id, lastUpdateDate, insertDate); | this.courseStatus = courseStatus; | this.code = code; | this.preferences = preferences; | ... | } | | @Column(name = "Code", nullable = false, length = 20) | @NotNull | @Length(min = 5, max = 5) | public String getCode() { | return this.code; | } | | public void setCode(String code) { | this.code = code; | } | | @ManyToOne(fetch = FetchType.LAZY) | @JoinColumn(name = "CourseStatusID") | public CourseStatus getCourseStatus() { | return this.courseStatus; | } | | public void setCourseStatus(CourseStatus courseStatus) { | this.courseStatus = courseStatus; | } | | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "course") | public Set getPreferences() { | return this.preferences; | } | | public void setPreferences(Set preferences) { | this.preferences = preferences; | } | ... | } | | | @MappedSuperclass | public abstract class EntityBase { | private String id; | private Date lastUpdateDate; | private Date insertDate; | | public EntityBase () { | super(); | } | | public EntityBase (String id) { | super(); | this.id = id; | } | | public EntityBase(String id, Date lastUpdateDate, Date insertDate) { | super(); | this.id = id; | this.lastUpdateDate = lastUpdateDate; | this.insertDate = insertDate; | } | | @Id | @GenericGenerator(strategy="au.edu.tisc.session.OnlineKeyGenerator", name="onlineKeyGen") | @GeneratedValue(generator="onlineKeyGen") | @Column(name = "ID", unique = true, nullable = false, length = 20) | public String getId() { | return id; | } | | public void setId(String id) { | this.id = id; | } | | @Column(name = "LastUpdateDate", length = 23) | public Date getLastUpdateDate() { | return lastUpdateDate; | } | | public void setLastUpdateDate(Date lastUpdateDate) { | this.lastUpdateDate = lastUpdateDate; | } | | @Column(name = "InsertDate", length = 23) | public Date getInsertDate() { | return insertDate; | } | | public void setInsertDate(Date insertDate) { | this.insertDate = insertDate; | } | ... | } |
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - UserType ignored
Hi, I am trying to implement a usertype for spaced trimmed String. I have done as below but during execution Hibernate just ignores my usertype. Is there something else needed for my StringTrimmed usertype to be used instead of the default String? | - UserType -- | package au.edu.tisc.usertype; | | import java.io.Serializable; | import java.sql.PreparedStatement; | import java.sql.ResultSet; | import java.sql.SQLException; | | import org.hibernate.Hibernate; | import org.hibernate.HibernateException; | import org.hibernate.usertype.UserType; | | /** | * String user type with left and right spaces trimmed. | */ | public class StringTrimmed implements UserType { | | public int[] sqlTypes() { | return new int[] { Hibernate.STRING.sqlType() }; | } | | public Class returnedClass() { | return String.class; | } | | public boolean isMutable() { | return false; | } | | public Object deepCopy(Object value) { | | String stringValue = (String) value; | String copy = new String(stringValue); | return copy; | } | | public Serializable disassemble(Object value) { | return (Serializable) value; | } | | public Object assemble(Serializable cached, Object owner) { | return cached; | } | | public Object replace(Object original, Object target, Object owner) { | | String stringValue = (String) original; | String copy = new String(stringValue); | return copy; | } | | public boolean equals(Object x, Object y) { | | if (x == y) { | return true; | } | | if (x == null || y == null) { | return false; | } | | return x.equals(y); | } | | public int hashCode(Object x) { | return x.hashCode(); | } | | public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws SQLException { | | String stringValue = resultSet.getString(names[0]); | if (resultSet.wasNull()) { | return null; | } | | return stringValue; | } | | public void nullSafeSet(PreparedStatement statement, Object value, int index) throws HibernateException, SQLException { | | if (value == null) { | statement.setNull(index, Hibernate.STRING.sqlType()); | } else { | String untrimmedValue = (String) value; | statement.setString(index, untrimmedValue.trim()); | } | } | } | --- | | - Entity class using usertype - | | @Entity | @Table(name = "Client") | @TypeDef(name="StringTrimmed", typeClass=au.edu.tisc.usertype.StringTrimmed.class) | public class Client implements java.io.Serializable { | | private String id; | ... | | @Type(type = "StringTrimmed") | private String notes; | | ... | | @Column(name = "Notes", length = 250) | @Length(max = 250) | public String getNotes() { | return this.notes; | } | | public void setNotes(String notes) { | this.notes = notes; | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143763#4143763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Browser refresh executes last action performed by form submi
I got JSF form with some buttons which submit form. buttons are attached to different action methods. when form is submitted via one of these buttons, same page is redisplaed with jsf message (eg action performed...). if now I refresh browser window, it automatically executes same action method even though button is not clicked. I think this problem only occurs if same page is redisplayed after action is completed; not if going to different page in response to action. is there any easy way to stop it executing last action on browers refreshs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129571#4129571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PDF table doesn't show in RTF format
Alexander yes please attach it, would be useful to see how you do it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129570#4129570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PDF table doesn't show in RTF format
JIRA filed: http://jira.jboss.com/jira/browse/JBSEAM-2620 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129535#4129535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PDF table doesn't show in RTF format
Alexander thanks, it will be a nice feature to have in Seam. I will log jira pleaes vote if you may use built-in feature for your future development. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129532#4129532 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam doesn't go to clicked page after login
With security enabled. when session expires with browser still open; clicking on some link asks to relogin; after loging in rather than going to clicked page it goes back to the page which was last open when session expired. This used to work with pre 2 releases. current version in use Seam 2.0.1GA. | components.xml | | ... | | | | | | | ... | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129411#4129411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - PDF table doesn't show in RTF format
In following PDF templat, everything shows fine in PDF format; but in RTF format table doesn't display - all other text displays. Seam 2.0.1GA | ... | #{applicationStatByCourse.universityList[0].longName} | | ... | | | | | | | | | Campus/Course | Applicant Total | 1st Pref | 2nd Pref | 3rd Pref | 4th Pref | 5th Pref | 6th Pref | | | #{campus.shortDescription} | | | #{course[0]} - #{course[1]} | | | | | | ... | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129294#4129294 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129294 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - PDF template, space not showing
Certain places in template ignore spaces, I haven't been able to find a workaround for this. Expecting "Data as at: 01-01-2007" but get "Data as at:01-01-2007", when using p:text Same problem with p:pageNumber; expecting "Page - 4" but get "Page -4" | Data as at: | | ... | | Tertiary Institutions Service Centre (inc) - [page - ] | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128543#4128543 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128543 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to save seam pdf to a file
Norman I have logged JIRA. It would be a good feature to have in already impressive Seam PDF generation. Whichever way its done, obviously it would allow to specify serverside path/filename. I have logged JIRA: http://jira.jboss.com/jira/browse/JBSEAM-2613 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128218#4128218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to write CSV contents to browser
I have a process (initiated by the user via browser), which generates contents in CSV format. Does seam provide any facility to write that data out to browser?, ie writing to servlet output stream. response.setContentType("application/vnd.ms-excel"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127841#4127841 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127841 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Specifying filename for Seam PDF attachement
jira done. I thought better confirm first, just in case there was a way to do it. :). http://jira.jboss.com/jira/browse/JBSEAM-2605 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127651#4127651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Specifying filename for Seam PDF attachement
It would be very useful if Seam PDF allows to specify filename with disposition=attachment. currently it gives the name of the view with documentType extension. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127394#4127394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127394 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to save seam pdf to a file
Thanks Norman, I will report back when make some progress on it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126395#4126395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126395 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to save seam pdf to a file
looking for some clues about how to save pdf, generated by seam template, to a file rather than displaying it. I guess need to get hold of output stream somehow and write that to a file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126229#4126229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to bookmark in Seam PDF?
Done. http://jira.jboss.org/jira/browse/JBSEAM-2578 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126227#4126227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to bookmark in Seam PDF?
Is there a way to create bookmarks in Seam tempalte based pdf? Ie. index to reference when clicked will jump to certain location in pdf. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125986#4125986 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: anyway to generate Seam PDF table in parent/childern for
Norman I was trying to achieve several levels deep record listing in parent child hirarchy. eg: university1 ---campus1 -course1 applicant1 applicant2 -course2 applicant1 ---campus2 ... ... university2 ... I wasn't aware if rendered attributes existed for any of the Seam's iText tags since I didn't see any reference to it in Seam (2.0.1CR2) doc or in JBDev. I eventually figered out facelet fragment tag supports rendered attribute; which I used to achieve the behavious I was after. Thanks, its good knowing Seam's iText tag support rendered attribute. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125747#4125747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - anyway to generate Seam PDF table in parent/childern format?
Is there a way to use seam pdf template and print data in parent/childern records in pdf table? I couldn't see how ui:repeat could be used to generate parent/child record listing.. anyone knows of any other way of example? also Seam p:tags... don't have rendered attribute, is there anyother way to conditionally render pdf tags, eg p:cell tag? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125534#4125534 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error during PDF generation - IllegalStateException: No
Hi, thank you. you are right, that's what I did to resolve it. cheers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125526#4125526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - union query with HQL
Is there a way to write union query with HQL? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125198#4125198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to remove PDF table cell border?
Thank you, it works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124834#4124834 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124834 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to remove PDF table cell border?
Seam 2.0.0.CR1 Is there a way to remove table cell borders for PDF tables generated with Seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124668#4124668 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times
Pete, I have resolved this issue now by implementing Identity based approach. For some reason, two posts have gone missing from this thread... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122945#4122945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Faces messages not displaying on redirected page
This seems to happen on for @Observer(Identity.EVENT_LOGIN_SUCCESSFUL) event. messages from other identity events display ok on redirected page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122941#4122941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122941 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times
I have removed some code for clarity. also this will change further as I use other Identity events. | MyAuthenticator.java | | | package au.edu.tisc.session; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Observer; | import org.jboss.seam.log.Log; | import org.jboss.seam.security.Identity; | | import au.edu.tisc.exception.ActivityLoggerException; | | @Name("authenticator") | public class Authenticator { | @Logger | Log log; | | @In | Identity identity; | | @In(value = "orgUserAuthenticate", required = false, create = true) | private OrgUserAuthenticate orgUserAuthenticate; | | @In(value = "orgUserAuthenticated", required = false) | private OrgUserAuthenticated orgUserAuthenticated; | | @In(value = "activityLogger", required = false, create = true) | private ActivityLogger activityLog; | | public boolean authenticate() { | | log.info("INFO: authenticating #0", identity.getUsername()); | return orgUserAuthenticate.authenticate(); | } | | @Observer(Identity.EVENT_LOGGED_OUT) | public void logout() { | try { | activityLog.logOrgUser(orgUserAuthenticated.getUser(), ActivityLogger.Code.LOGOUT, null); | } catch (ActivityLoggerException e) { | //do nothing | } | } | } | | | | package au.edu.tisc.session; | | import java.util.Calendar; | import java.util.List; | | import javax.faces.application.FacesMessage; | | import org.jboss.seam.Component; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Observer; | import org.jboss.seam.annotations.Out; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.log.Log; | import org.jboss.seam.security.Identity; | | import au.edu.tisc.entity.OrganisationUser; | import au.edu.tisc.exception.ActivityLoggerException; | import au.edu.tisc.home.OrganisationUserHome; | import au.edu.tisc.util.JCrypt; | import au.edu.tisc.util.Strings; | | @Name("orgUserAuthenticate") | public class OrgUserAuthenticate { | | //TODO auto unlock check, change to configuration parameter | boolean autoUnlock = true; | | @Logger | Log log; | | @In | Identity identity; | | @In(value = "activityLogger", required = false, create = true) | private ActivityLogger activityLog; | | @In(value="orgUserService", required=false, create=true) | private OrgUserService orgUserService; | | @In(value = "orgUserAuthenticated", required = false, create = true) | @Out(value = "orgUserAuthenticated", required = false, scope = ScopeType.SESSION) | private OrgUserAuthenticated orgUserAuthenticated; | | OrganisationUser organisationUser = null; | | private boolean isAutoLocked = false; | private boolean isAccountLocked = false; | private boolean isAccountSuspended = false; | private boolean isSystemError = false; | | public boolean authenticate() { | | boolean isAuthenticated = false; | try { | isAuthenticated = _authenticate(); | } catch (ActivityLoggerException e) { | | this.isSystemError = true; | FacesMessages.instance().getCurrentMessages().clear(); | FacesMessages.instance().addFromResourceBundle(FacesMessage.SEVERITY_ERROR, "au.edu.tisc.SystemErrorWhileLoggingIn", e.getMessage()); | } finally { | ... | } | | return isAuthenticated; | } | | private boolean _authenticate() { | | if (Strings.isNull(identity.getUsername()) || Strings.isNull(identity.getPassword())) { | | FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR, "Please enter username and password."); | return false; | } | | //validate username | if (organisationUser == null) { | | activityLog.logOrgUser(organisationUser, ActivityLogger.Code.LOGIN_FAILED, String.format( | ActivityLogger.Code.Desc.INVALID_USERNAME, identity.getUsername())); | | Fa
[jboss-user] [JBoss Seam] - Faces messages not displaying on redirected page
faces messages added in observer method for Identity events do not display on redirected (error) page??? but display fine on page which initiated the request (login page in this case). Seam 2.0.1.CR1 | login.page.xml | - | | ... | | | | <--- messages not display on this redirected page. | | | ... | | | - | @Name("orgUserAuthenticate") | public class OrgUserAuthenticate { | | | | @Observer(Identity.EVENT_LOGIN_SUCCESSFUL) | public void loginSuccessful() { | | //if (orgUserService.setLoginSuccessParams(organisationUser, this)) { | if (orgUserService.setLoginSuccessParams(organisationUser)) { | | orgUserAuthenticated.setUser(organisationUser); | | try { | activityLog.logOrgUser(organisationUser, ActivityLogger.Code.LOGIN_SUCCESSFUL); | } catch (ActivityLoggerException e) { | | identity.logout(); | this.isSystemError = true; | FacesMessages.instance().getCurrentMessages().clear(); | FacesMessages.instance().addFromResourceBundle(FacesMessage.SEVERITY_ERROR, "au.edu.tisc.SystemErrorWhileLoggingIn", e.getMessage()); | } | | } else { | identity.logout(); | this.isSystemError = true; | FacesMessages.instance().addFromResourceBundle(FacesMessage.SEVERITY_ERROR, "au.edu.tisc.SystemErrorWhileLoggingIn", "Unable to set user login success parameters."); | } | } | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122658#4122658 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Event with @Observer not being fired
it is now resolved. thank you very much for the help, and my apologies I was asking for problem that didnt' exist. the problem occurred, due to JBDev not updating classes; becase after updating seam some dependency jar was missing. though something useful that came out of this: Events like "org.jboss.seam.loggedOut" will be replaced with to "org.jboss.seam.security.loggedOut" from next major release. 2.0.0CR1 currently supports both types. Now you could also use events like @Observer(Identity.EVENT_LOGGED_OUT). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122487#4122487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Event with @Observer not being fired
Seam 2.0.1CR1 Method with @Observer("org.jboss.seam.security.loggedOut") is not being recognised as event to fire. I also tried org.jboss.seam.loggedOut and @Observer(Identity.EVENT_LOGGED_OUT) but same thing. Using debugger shows Seam's Identity.logout() attempts to raise event but there is no event to be raised as Event.raiseEvent() method shows List variable 'observers' being null. Any clues please? | Seam Events.java | |public void raiseEvent(String type, Object... parameters) |{ | ... | List observers = Init.instance().getObserverMethods(type); | List observers = Init.instance().getObserverMethods(type); | if (observers!=null) | { | ... | | } | } | | | | My Authenticator.java | | @Observer("org.jboss.seam.security.loggedOut") | public void logout() { | activityLog.logOrgUser(orgUserAuthenticated.getUser(), ActivityLogger.Code.LOGOUT, null); | } | | More details on this post: | http://jboss.com/index.html?module=bb&op=viewtopic&t=128184 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122425#4122425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times
I tried org.jboss.seam.loggedOut and org.jboss.seam.security.loggedOut and also @Observer(Identity.EVENT_LOGGED_OUT) but no success. Pete, I used debugger and found that Identity.logout() does attempt to raise event but there is no event to be raise. Event.raiseEvent() method shows List variable 'observers' being null. Seems for some reason my @Observer(Identity.EVENT_LOGGED_OUT) is being ignored? | Seam Events.java |public void raiseEvent(String type, Object... parameters) |{ | ... | List observers = Init.instance().getObserverMethods(type); | List observers = Init.instance().getObserverMethods(type); | if (observers!=null) | { | ... | | } | } | | | My Authenticator.java | @Observer(Identity.EVENT_LOGGED_OUT) | public void logout() { | activityLog.logOrgUser(orgUserAuthenticated.getUser(), ActivityLogger.Code.LOGOUT, null); | } | | | note that in my case RuleBasedIdentity.logout() is invoked first then Identity.logout(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122234#4122234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times
Thanks you, I have upgraded seam 2.0.1CR1 and implementing security event approach to handle login pre/post processes. However, it appears that in my case identity.logout is not raising loggedOut event? I don't think I am supposed to do anything other than the code below to raise/capture events. | X.xhtml | ... | | ... | | | Authenticator.java | | .. | import org.jboss.seam.annotations.Observer; | ... | ... | | @Observer("org.jboss.seam.security.loggedOut") | public void logout() { | activityLog.logOrgUser(orgUserAuthenticated.getUser(), ActivityLogger.Code.LOGOUT, null); | } | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122106#4122106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times
in my case, when authenticate fails it is invoked 3 times; and when authenticate is successful it is invokved 2 times. it seems like a bug, hopefully we get some reply on this soon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122047#4122047 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122047 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - authenticator.authenticate called several times
Since upgrading to seam 2.0.0GA, my authenticator.authenticate is invoked several times rather than just once. There are no error. wondering if anyone else had similar problem or got any clues? | login.xhtml | | | | | | | Username* | | | Password* | | | Remember me | | | | | | | | | | | | | | login.page.xml | http://jboss.com/products/seam/pages-2.0.dtd";> | | | | | | | | | | | | | | | | | | | | | | | | | | Authenticator.java | @Name("authenticator") | public class Authenticator { | @Logger | Log log; | | @In | Identity identity; | | @In(value = "orgUserAuthenticate", required = false, create = true) | private OrgUserAuthenticate orgUserAuthenticate; | | @In(value = "orgUserAuthenticated", required = false) | private OrgUserAuthenticated orgUserAuthenticated; | | @In(value = "activityLogger", required = false, create = true) | private ActivityLogger activityLog; | | public boolean authenticate() { | | log.info("INFO: authenticating #0", identity.getUsername()); | return orgUserAuthenticate.authenticate(); | } | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122033#4122033 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122033 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Theme and Printable View?
Seam allows you to use EL everywhere. in your xhtml where you hardcode template, use EL there to change between normal or print template. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119073#4119073 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Theme and Printable View?
I ended up having seperate template for print-friendly page. and change between templates when required. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118951#4118951 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118951 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Mail in HTML format doesn't work in Outlook
JIRAs Filed: http://jira.jboss.org/jira/browse/JBSEAM-2479 http://jira.jboss.org/jira/browse/JBSEAM-2480 It would really helpful if above and one below can be part of next GA release. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127156 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118684#4118684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Mail in HTML format doesn't work in Outlook
Links in HTML mail sent via Seam mail don't work in Microsoft Outlook. Email is rendered in Outlook with link, but when link is clicked Outlook opens Windows File Open dialog box asking for executable to run the link. Links work in hotmail. Probably due to missin META Tags in HTML Header? I tried putting META tag in HTML header, but META tags get removed... see below. | mail-message.xhtml | -- | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:m="http://jboss.com/products/seam/mail"; | importance="normal"> | | | | #{abc.abc} | Subject | | | | | Mail body text. | Click here to continue... | Mail body text. | | | | | | Sorry, your mail reader doesn't support HTML... | | | | | | | | | HTML Source of email from Outlook email | --- | | | Mail body text. | Click here to continue... | Mail body text. | | | | | I tried putting following in mail-message.xhtml in body tag, but somehow tag gets removed during rendering phase... | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118534#4118534 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Event for each mail during multiple message session
my application will be sending thousands of emails, I thought ui:repeat would be faster than calling a renderer.render(mailTemplate) for each email. if this is true, then I guess having an event is good. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117918#4117918 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117918 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Event for each mail during multiple message session
yes please, event for sure. if some email details can be accessed that would be good too though it is not required for this task. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117903#4117903 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117903 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Event for each mail during multiple message session
I prepare a list of recipients and use template below. then in bean use renderer.render(mailTemplate); | mail-message.xhtml | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:m="http://jboss.com/products/seam/mail"; | importance="normal"> | | | | | #{recipient[1]} | #{subscription.subscriptionConfig.massMailSubject} | | | | | | | | | Sorry, your mail reader doesn't support HTML... | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117877#4117877 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117877 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Event for each mail during multiple message session
when sending multiple emails; is it possible to capture event after each endividual mail is sent? I send emails subscribers, and require to update database record of each subscribers after email is sent. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117829#4117829 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Evaluating EL #{xxx} stored in database
thanks Pete, exactly what i needed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117607#4117607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Evaluating EL #{xxx} stored in database
I am using template driven Seam mail facility. I have mailMessage stored in database; which includes EL like Dear #{myBean.mailingList.firstname}... in the mail template I include mail message from database as #{myBean.mailMessage}. when mail is rendered EL expressions in mailMessage appear as is #{...}. how can one tell seam to evaluate EL included in database text ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117480#4117480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to stop seam auto updating database
is that the case too when there is no long running coversation and seam managed transactions? Docs have info about manual trans with BEGIN END annotations only. haven't been able to figure out manual trans in absence of BEGIN END... | components.xml | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116929#4116929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to stop seam auto updating database
I have xhtml form linked to entity which I load with a single record. One of the button on the form is 'Set to Default', which changes value of one of the fields to default and reload the xhtml form to show default value. At this stage seam save values to database too; is it possible to stop that? I would like user to see the default value but only save to database when Save button is clicked on the xhtml form. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116745#4116745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam PDF with content-disposition=attachment - is it pos
Norman is release 2.0.1GA far away yet? I could really use those enhancements to pdf module. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115875#4115875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115875 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error during PDF generation - IllegalStateException: No acti
I am getting following error since upgrading to Seam 2.0.0GA. Error only happens when use-extensions="true". I open PDF in new window with h:commandLink. The new windows is blank with IE error ...cannot download xxx.pdf?docId=1... and Server logs shows following error. | Error | 18:40:14,262 ERROR [[Document Store Servlet]] Servlet.service() for servlet Document Store Servlet threw exception | java.lang.IllegalStateException: No active event context | at org.jboss.seam.core.Manager.instance(Manager.java:248) | at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:55) | at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:619) | | | | | .xhtml | | | | | | | component.xml | | | | | | web.xml | | http://java.sun.com/xml/ns/javaee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; | version="2.5"> | | | | org.richfaces.SKIN | blueSky | | | | | org.jboss.seam.servlet.SeamListener | | | Seam Filter | org.jboss.seam.servlet.SeamFilter | | | Seam Filter | /* | | |Seam Resource Servlet | org.jboss.seam.servlet.SeamResourceServlet | | |Seam Resource Servlet |/seam/resource/* | | | | | | Seam Servlet Filter | org.jboss.seam.servlet.
[jboss-user] [JBoss Seam] - Re: debug.seam and iText-PDF without redirects?
how about allow to specify Content-Disposition as an attachement rather than hardcoded inline? DocumentStoreServlet.java ... response.setHeader("Content-Disposition", "inline; filename=\"" + documentData.getFileName() + "\""); ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115868#4115868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -
Pete thanks for that, and it worked too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115736#4115736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115736 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -
I guess you meant, in .page.xml. yes I tried that and get similar error. | | | | Error: | 10:51:51,939 FATAL [application] JSF1006: Cannot instantiate converter of type javax.faces.convert.DateTimeConverter | 10:51:51,939 WARN [Param] could not create converter for: settlementDateFrom | javax.faces.FacesException: Expression Error: Named Object: javax.faces.convert.DateTimeConverter not found. | at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726) | at org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112) | at org.jboss.seam.navigation.Param.getConverter(Param.java:52) | at org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:142) | at org.jboss.seam.navigation.Pages.updateStringValuesInPageContextUsingModel(Pages.java:820) | at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:61) | at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:317) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615) | at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) | at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tom
[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -
Pete, yes it is EAR structure. I have filed JIRA. Is there any workaround while it is being fixed? most of my pages have similar problem, causing my user testing to be all but halted. http://jira.jboss.org/jira/browse/JBSEAM-2429 Support Issue: 00020044 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115486#4115486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Catch-22 with Seam2 and converterId in page parameter - bug?
Im having a kind of catch-22 problem since upgrading to Seam 2. I have date/time fields on xhtml form, and corresponding Seam page parameter in .page.xml file. If I don't assign converterId to date/time page param then it throws error (javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch) and Seam Debug page.. However, if I give page parameter a convertId then xhtml page works but I get error in log (...Cannot instantiate converter of type org.jboss.seam.ui.converter.DateTimeConverter...). I have jboss-seam-ui.jar in my .war\WEB-INF\lib folder. jboss-seam-ui.jar contains class org.jboss.seam.ui.converter.DateTimeConverter. I think solution to my problem is to have a converterId - can anyone tell how to get rid of error (JSF1006: Cannot instantiate converter of type...)? Seam2+JSF RI+Facelets+Richfaces, JBoss EAP 4.2. | without converterId in page param of .page.xml | http://jboss.com/products/seam/pages-2.0.dtd";> | | | | | | ... | ERROR [SeamPhaseListener] uncaught exception | javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116) | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68) | at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93) | at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73) | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84) | at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249) | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117) | at org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:779) | ... | | | | with converterId in page param | | | (Similar error is thrown is I use converterId="javax.faces.convert.DateTimeConverter"). | | FATAL [application] JSF1006: Cannot instantiate converter of type org.jboss.seam.ui.converter.DateTimeConverter | WARN [Param] could not create converter for: settlementDateFrom | javax.faces.FacesException: Expression Error: Named Object: org.jboss.seam.ui.converter.DateTimeConverter not found. | at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726) | at org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112) | at org.jboss.seam.navigation.Param.getConverter(Param.java:52) | at org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:142) | at org.jboss.seam.navigation.Pages.updateStringValuesInPageContextUsingModel(Pages.java:820) | at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:61) | at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:317) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615) | at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) | at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) |
[jboss-user] [JBoss Seam] - argument type mismatch exception after Seam 2 upgrade - help
Having upgraded seam 1.2.1GA project to Seam 2 and JBoss EAP 4.2; my project is now unusable. I can't seen to find out why I get the following error and where it comes from. On some pages it occurs when html form is submitted, and on some just when page is being displayed? Seam 2.0GA + Facelets + Sun RI. I followed Seam2Migration instructions. | 0:28:58,516 ERROR [SeamPhaseListener] uncaught exception | javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116) | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68) | at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93) | at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73) | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84) | at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249) | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117) | at org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:779) | at org.jboss.seam.navigation.Pages.postRestore(Pages.java:402) | at org.jboss.seam.jsf.SeamPhaseListener.postRestorePage(SeamPhaseListener.java:528) | at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:374) | at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:211) | at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280) | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Process
[jboss-user] [JBoss Seam] - Re: s:button loosing param value with s:convertDateTime?
Ops didn't see what i was cutting/pasting. I have since upgraded to Seam 2 but page parameter conversion errors are getting worse. I have tried following ways but get class not found exception for both. | ... | | | OR | | | ... | I have an other post with more details on this here: http://jboss.com/index.html?module=bb&op=viewtopic&p=4114495#4114495 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114630#4114630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to uses DateTimeConverter in .page.xml parameter?
I am in a process of upgrading to Seam 2GA; and getting this error I wasn't getting with Seam 1.2.1GA. I have date/time fields on xhtml form; for which I set default values in page action. I am getting attached errors which appears to be related to date value conversion when writing to bean props. I am not sure how to add converter to page paramter??? convertjavax.faces.convert.DateTimeConverter | .page.xml | ... | | | ... | | | Error: If without converter in page parameter | ... | ERROR [SeamPhaseListener] uncaught exception | javax.el.ELException: java.lang.IllegalArgumentException: argument type mismatch | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116) | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68) | at com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93) | at org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73) | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84) | at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249) | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117) | at org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:779) | ... | | | when adding converter, the error below occurs | | ... | | | ... | | | FATAL [application] JSF1006: Cannot instantiate converter of type javax.faces.convert.DateTimeConverter | 11:51:56,045 WARN [Param] could not create converter for: settlementDateTo | javax.faces.FacesException: Expression Error: Named Object: javax.faces.convert.DateTimeConverter not found. | at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726) | at org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112) | at org.jboss.seam.navigation.Param.getConverter(Param.java:52) | | OR | ... | | | ... | | FATAL [application] JSF1006: Cannot instantiate converter of type org.jboss.seam.ui.converter.DateTimeConverter | 11:58:57,301 WARN [Param] could not create converter for: settlementDateFrom | javax.faces.FacesException: Expression Error: Named Object: org.jboss.seam.ui.converter.DateTimeConverter not found. | at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726) | at org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112) | at org.jboss.seam.navigation.Param.getConverter(Param.java:52) | at org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:142) | at org.jboss.seam.navigation.Pages.updateStringValuesInPageContextUsingModel(Pages.java:820) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114495#4114495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:button loosing param value with s:convertDateTime?
Having s:convertDateTime for param in .page.xml seems to cause s:button to loose value for that param. If I remove s:convertDateTime from param, then clicking s:button, below' maintains the value for that param. Seam 1.2.1GA | .xhtml | | | | .page.xml | | ... | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113402#4113402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window
Jason thanks, browser menus of course. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112124#4112124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window
I may have misunderstood something but I think in my case I couldn't use s:link view="/whatever.xhtml" target="_blank" since it does not submit form. I wanted a single link to submit changes made to form fields and open second page in new window with query results based on submitted form. I got it working with ...h:commandLink action="sb.action" target="_blank" and redirected to second page in .page.xml. Peter, if you use facelets you could have 2 templates; with and without menu; and on the page in new window use the the one with no menus. That's how I do it. | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:a4j="http://richfaces.org/a4j"; | xmlns:rich="http://richfaces.org/rich"; | template="#{something ? '/layout/template' : '/layout/template-nomenu'}"> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112123#4112123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Submit form and open results in new window
guys I have a paid subscription but I don't seem to be getting any response to my seam questions there - hopefully someone can respond me here for this one. I have two pages (jsf/facelet); report-criteria.xhtml and report-pdf.xhtml. on report-criteria form I fill up few form fiends, and submit the form; then I would like report.pdf page to open up in a new window with query results utilising values on submitted page. I am not sure, how I can submit the form and open next page in new window utilising the values entered. I am not sure what to use, h:commandButton, h:commandLink, s:link, s:button or what? and do I must have a long running conversation here or, can it be done without it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111616#4111616 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - help setting up virtual host
JBoss AS 4.2.2GA. Deploying in EAR. I am having problem getting virtual host to work. I would like web application to work as 'http://admin.tisc.edu.au:8090'. DNS entry for admin.tisc.edu.au is already set up for IP 192.168.164.20 However I get a blank page in browser for http://admin.tisc.edu.au:8090 | META-INF\application.xml | ... | | | tisconline-admin.war | / | | | ... | | tisconline-admin.war\WEB-INF\jboss-web.xml | ... | | | | | / | admin.tisc.edu.au | | ... | | server\default\deploy\jboss-web.deployer\server.xml | ... | | | ... | | | | | | | | | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110241#4110241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110241 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Converter error after seam login
I have a jsf/facelts page with 2 date fields, which I initalise to some default values (in bean) from Page Action. It all works fine except: when JBoss AS is freshly restarted and I click on the link to bring up the JSF page. In which case Seam forward to Login page, and after successful login attached error (javax.faces.convert.ConverterException: Value must be a date) is thrown. Error does not appear if I do not initalise date fields to default values. Not sure how to avoid this error. | @Name("paymentReconciliation") | public class PaymentReconciliation { | | | private Date settlementDateFrom = null; | private Date settlementDateTo = null; | | //called from page action to set dates values to some default | public String pageAction() { | if (settlementDateFrom == null) { | | setSettlementDateFrom(DateTime.getMonthBegin(DateTime.offsetMonth(DateTime.clearTime(new Date()), -1))); | } | | if (settlementDateTo == null) {setSettlementDateTo(DateTime.getMonthEnd(DateTime.offsetMonth(DateTime.clearTime(new Date()), -1))); | } | return ""; | } | | ... | } | XHTML | ... | Settlement date from | | | | (dd-mm-) | | | Settlement date to | | | | (dd-mm-) | | | | Error | 11:19:40,059 ERROR [DebugPageHandler] redirecting to debug page | javax.faces.convert.ConverterException: Value must be a date. | at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:390) | at org.jboss.seam.pages.Param.getValueFromRequest(Param.java:144) | at org.jboss.seam.core.Pages.applyRequestParameterValues(Pages.java:633) | at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRestoreView(AbstractSeamPhaseListener.java:73) | at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:95) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280) | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.ser
[jboss-user] [JBoss Seam] - Seam Theme and Printable View?
wondering if it is a good idea to use theme based solution when I only two themes are required, default and printable view? In my case I want print view only when user click on say 'Print Preview' button - so I can open printable page in a new window. When user click on Print Preview button I set theme to 'printable'. However, since theme is Session level contaxt, it affact other pages too should should stay to default theme. Where should I set theme back to default, once printable page has been displayed? Or is there any other solution for printable issue? Seam 1.2.1GA + Facelets. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109130#4109130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to stop seam keep adding url parameters?
Jira filed: http://jira.jboss.org/jira/browse/JBSEAM-2310 Pete for now how should the menu links be assigned? use s:link or h:outputLink or anything else? I wonder what other people in this situation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108469#4108469 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to access h:datatable row data during its iteration
Damian, yes that's exactly how I eventually got it done. Cheers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108352#4108352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108352 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to access h:datatable row data during its iteration
I want to access row data to do certain computation on some columns as the datatable iterates to populate itself. That computed value then will be displayed in table's footer. I also want to just access row index to list on the table. I tried datatable binding to to UIData in the backing bean but I get EntityManager is Null error? I think I can't use @DataModel for this purpose, since from what I read it works when user selects a row on table manually. | | @Name("paymentReconciliation") | public class PaymentReconciliation extends EntityQuery { | | ... | | private UIData tableData = null; | | public UIData getTableData() { | getTableData"); | return this.tableData; | } | | public void setTableData(UIData uiData) { | this.tableData = uiData; | } | | ... | | } | | XHTML[\b] | | ... | | | ... | | Exception | 11:51:55,077 ERROR [ExceptionFilter] exception root cause | java.lang.IllegalStateException: entityManager is null | at org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:31) | at sun.reflect.GeneratedMethodAccessor542.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57) | at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32) | at org.jboss.seam.util.Work.workInTransaction(Work.java:37) | at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151) | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87) | at au.edu.tisc.session.admin.PaymentReconciliation_$$_javassist_97.validate(PaymentReconciliation_$$_javassist_9 | 7.java) | ... | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108284#4108284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to stop seam keep adding url parameters?
It seems when page is loaded; for every link on the page, seam instantiates seam components referenceds in context var on the page and initialise parameters specified in the .page.xml file. I have like 40 links on my menu, if it is happening for each of those everytime page is refreshed then it becomes an issue. Is that how it supposed to be? I thought I nothing should happen unless I specifically click on the page link to load it. Obviously I am doing something the wrong way, but wonder anybody can provide a clue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108282#4108282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to stop seam keep adding url parameters?
On my site, I have menu which links to pages (.xhtml) on the site. Once any of the pages is viewed and submitted with url parameters (eg search form), the menu link for that page also automatically gets url parameters appened to it. this happens whether I use s:link or h:outputLink on the menu links. not only that BUT my seam components accessed in those .xhtml pages also get loaded in memory I think - since i seem log pritned out from some getter methods... I hope above makes sence, I hope someone can comment on this and how to resolve it. Seam 1.2.1GA + Facelets. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108087#4108087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityQuery Bug with Group by and Restriction?
Done. http://jira.jboss.org/jira/browse/JBSEAM-2302. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107913#4107913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107913 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityQuery Bug with Group by and Restriction?
I am not sure if, im doing it the wrong way or it's a bug. I'm attempting aggregate query in using EntityQuery and Restrictions following Seam-Gen example. When query is executed, the 'restrictions's parameters get appended to Group By clause rather than Where clause. Please see attached query, and code. Is there any other way of doing this? | ... | | @Name("paymentReconciliation") | public class PaymentReconciliation extends EntityQuery { | | private static final String[] RESTRICTIONS = { | | "commweb.settleDate >= #{paymentReconciliation.settlementDateFrom}", | "commweb.settleDate <= #{paymentReconciliation.settlementDateTo}", | }; | | private Date settlementDateFrom = null; | private Date settlementDateTo = null; | | private boolean executeSearch = false; | | @Override | public String getEjbql() { | | return "select commweb.settleDate, " + | "sum(CASE WHEN client.qtiscApplicantType=2 THEN 1 ELSE 0 END) as TotalAppsTee, " + | "sum(CASE WHEN client.qtiscApplicantType=3 THEN 1 ELSE 0 END) as TotalAppsNonTee, " + | "sum(CASE WHEN client.qtiscApplicantType=2 THEN commweb.amount ELSE 0 END) as TotalAmountTee, " + | "sum(CASE WHEN client.qtiscApplicantType=3 THEN commweb.amount ELSE 0 END) as TotalAmountNonTee, " + | "count(application.id) as TotalApps, " + | "sum(commweb.amount) as TotalAmount " + | "from Client client " + | "join client.applications application " + | "join application.ttransactions ttransaction " + | "join ttransaction.commweb commweb " + | "where ttransaction.paymentMethod='" + Constant.Application.PaymentMethod.ONLINE_CREDIT_CARD + "' " + | "and commweb.status = 'approved' " + | "group by commweb.settleDate " ; | | } | | ... | Error | Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: and near | line 1, column 751 | | ... | | Query Produced by Seam | select commweb.settleDate, | sum(CASE WHEN client.qtiscApplicantType=2 THEN 1 ELSE 0 END) as TotalApp | sTee, | sum(CASE WHEN client.qtiscApplicantType=3 THEN 1 ELSE 0 END) as TotalAppsNonTee, | sum(CASE WHEN client.qtiscApplicantType=2 THEN commweb.amount ELSE 0 END) as TotalAmountTee, | sum(CASE WHEN client.qtiscApplicantType=3 THEN commweb.amount ELSE 0 END) as TotalAmountNonTee, | count(application.id) as TotalApps, | sum(commweb.amount) as TotalAmount | | from au.edu.tisc.entity.Client client | join client.applications application | join application.ttransactions ttransaction | join ttransaction.commweb commweb | | where ttransaction.paymentMethod='online-credit-card' | and commweb.status = 'approved' | | group by commweb.settleDate | | and commweb.settleDate >= :el1 and commweb.settleDate <= :el2 | | order by settleDate asc] | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107796#4107796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why does EntityQuery auto save updates?
thanks Pete, yeah I figured that out. in my case I have a single jsf page. to get my code working, now I specified its scople to conversation; and save the current entity record in page action method, and then use it in update action method to compare if required data columns have been modified by the user. I am not sure if that is the right way, when wanting to compare user changes with record data in database? but it now works for me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106759#4106759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why does EntityQuery auto save updates?
I guess it is related to how SEAM handles transactios. I'm using Seam POJOs. The EntityQuery's getResultSet() method is marked @transactional. Call to getResultSet() commits changes made to Client entity on the jsf form get committed to the database. Anyone knows why getResultSet() first committed changes to queried Entity. and how I can avoid it in my case? I guess it's a common issue, I can't find solution since this is my first attempt on such scenarion. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106585#4106585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Why does EntityQuery auto save updates?
Seems there is a link between EntityHome.instance() and EntityQuery or both refer to same instance of Entity? My changes get updated to database when I 'execute a query' to get current data in database. I have a jsf form based on EntityHome which updates few fields. Before committing changes to database I would like to compare values in database with values changed by the user. Therefore, I execute query -attached-. But I noticed, running query first committs my changes to database and then query it back. Is it possible to stop this behaviour? so what else can I do? Seam 1.2.1GA. | Query that auto updates Client | EntityQuery query = new EntityQuery(); | query.setEjbql("select client from Client client where lower(id)=lower('"+ id + "')"); | List client = query.getResultList(); | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106438#4106438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logging successful user login activity using seam securi
ok, thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105286#4105286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Logging successful user login activity using seam security
I would like to keep track of successful user logins. wondering what is the best place to log it? when using seam authentication the authenticate method (say Authenticator.authenticate) has to return true if username credentials are validated. Is it sufficent to log successful login activity before returning true from the Authenticator.authenticate method; or should it be somewhere else making sure Seam processed the returned true value in successful login? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104833#4104833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Paging and Listing
jira issue filed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104827#4104827 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104827 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Reading HTML from database
Thanks arussel! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104823#4104823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Reading HTML from database
I got some text in database with contains simple html tags eg for bold or italic etc. when it is output to the webpage the html tags get convereted to their html code < etc Not sure it is Seam or JSF or Facelets doing it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104201#4104201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Custom Converter
Pete, do you think I should upgrade to Seam 2 to resolve this issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104195#4104195 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104195 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Paging and Listing
Seam 1.2.1GA. With seam-gen generated application using List jsf page. If we are on say the page 5 of the results, and then enter furter search criteria expecting say only 1 page of results. It comes back with no records found - because firstResult parameter is still set to number higher than the total results. Shouldn't that be auto handled by Seam? ie change firstResult to 0. Or there is othey way around? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104191#4104191 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104191 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Custom Converter
Pete, thanks for taking interest. no luck yet though. still going to seam debug page when exception is thrown. new code below as you suggested. this time I have attached all exception messages. For info, I'm using seam 1.2.1GA RHDS beta2 setup. | package au.edu.tisc.converter; | | import javax.faces.application.FacesMessage; | import javax.faces.component.UIComponent; | import javax.faces.context.FacesContext; | import javax.faces.convert.Converter; | import javax.faces.convert.ConverterException; | | import org.jboss.seam.InterceptionType; | import org.jboss.seam.annotations.Intercept; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.core.FacesMessages; | | import au.edu.tisc.session.Constant; | | @org.jboss.seam.annotations.jsf.Converter | @Intercept(InterceptionType.NEVER) | @Name("memberSourceConverter") | public class MemberSourceConverter implements Converter { | |@Override |public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) throws ConverterException { | return value; |} | |@Override |public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) throws ConverterException { | |String convertedValue = ""; |if (Constant.Member.Source.ONLINE.equalsIgnoreCase((String)value)) { | convertedValue = "Online"; |} else if (Constant.Member.Source.QTISC.equalsIgnoreCase((String)value)) { | convertedValue = "QTISC"; |} else if (Constant.Member.Source.CURRICULUM_COUNCIL_RESULT.equalsIgnoreCase((String)value)) { | convertedValue = "CC Year11"; |} else { | FacesMessage facesMsg = new FacesMessage("Converstion error.", String.format("Invalid member status %s.", ((String) value))); | facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR); | FacesMessages.instance().add(facesMsg); | throw new ConverterException(facesMsg); |} |return convertedValue; | } | } | | xhtml | Source | | | | | exception | 22:22:45,421 ERROR [STDERR] 6/11/2007 22:22:45 com.sun.facelets.FaceletViewHandler handleRenderException | SEVERE: Error Rendering View[/client.xhtml] | javax.faces.convert.ConverterException: Converstion error. | at au.edu.tisc.converter.MemberSourceConverter.getAsString(MemberSourceConverter.java:40) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:322) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200) | at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:279) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276) | at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571) | at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) | at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFi
[jboss-user] [JBoss Seam] - Re: Custom Converter
please let me know if need further info. my xhtml file is pretty big so I have only pasted relevent sections. Converts class package au.edu.tisc.session; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.ConverterException; import org.jboss.seam.InterceptionType; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Create; import org.jboss.seam.annotations.Intercept; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; import org.jboss.seam.core.FacesMessages; @Name("onlineConverters") @Scope(ScopeType.APPLICATION) public class Converters { private Converter memberSource; @Create public void init() { this.memberSource = new MemberSource(); } public Converter getMemberSource() { return this.memberSource; } public void setMemberSource(Converter memberSource) { this.memberSource = memberSource; } @org.jboss.seam.annotations.jsf.Converter @Intercept(InterceptionType.NEVER) public class MemberSource implements Converter { @Override public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) throws ConverterException { return value; } @Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) throws ConverterException { String convertedValue = ""; if (Constant.Member.Source.ONLINE.equalsIgnoreCase((String)value)) { convertedValue = "Online"; } else if (Constant.Member.Source.QTISC.equalsIgnoreCase((String)value)) { convertedValue = "QTISC"; } else if (Constant.Member.Source.CURRICULUM_COUNCIL_RESULT.equalsIgnoreCase((String)value)) { convertedValue = "CC Year11"; } else { FacesMessage facesMsg = new FacesMessage("Converstion error.", String.format("Invalid member status %s.", ((String) value))); facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR); FacesMessages.instance().add(facesMsg); throw new ConverterException(facesMsg); <-- exception thrown here... } return convertedValue; } } } XHTML bits ... ... Source ... Exception 21:02:36,578 ERROR [STDERR] 6/11/2007 21:02:36 com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/client.xhtml] javax.faces.convert.ConverterException: Converstion error. at au.edu.tisc.session.Converters$MemberSource.getAsString(Converters.java:64) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:322) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:279) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache
[jboss-user] [JBoss Seam] - Re: Custom Converter
please let me know if need further info. my xhtml file is pretty big so I have only pasted relevent sections. Converts class package au.edu.tisc.session; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.ConverterException; import org.jboss.seam.InterceptionType; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Create; import org.jboss.seam.annotations.Intercept; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; import org.jboss.seam.core.FacesMessages; @Name("onlineConverters") @Scope(ScopeType.APPLICATION) public class Converters { private Converter memberSource; @Create public void init() { this.memberSource = new MemberSource(); } public Converter getMemberSource() { return this.memberSource; } public void setMemberSource(Converter memberSource) { this.memberSource = memberSource; } @org.jboss.seam.annotations.jsf.Converter @Intercept(InterceptionType.NEVER) public class MemberSource implements Converter { @Override public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) throws ConverterException { return value; } @Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) throws ConverterException { String convertedValue = ""; if (Constant.Member.Source.ONLINE.equalsIgnoreCase((String)value)) { convertedValue = "Online"; } else if (Constant.Member.Source.QTISC.equalsIgnoreCase((String)value)) { convertedValue = "QTISC"; } else if (Constant.Member.Source.CURRICULUM_COUNCIL_RESULT.equalsIgnoreCase((String)value)) { convertedValue = "CC Year11"; } else { FacesMessage facesMsg = new FacesMessage("Converstion error.", String.format("Invalid member status %s.", ((String) value))); facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR); FacesMessages.instance().add(facesMsg); throw new ConverterException(facesMsg); <-- exception thrown here... } return convertedValue; } } } XHTML bits ... ... Source ... Exception 21:02:36,578 ERROR [STDERR] 6/11/2007 21:02:36 com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/client.xhtml] javax.faces.convert.ConverterException: Converstion error. at au.edu.tisc.session.Converters$MemberSource.getAsString(Converters.java:64) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:322) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:279) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache
[jboss-user] [JBoss Seam] - Re: Custom Converter
please let me know if need further info. my xhtml file is pretty big so I have only pasted relevent sections. Converts class package au.edu.tisc.session; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.ConverterException; import org.jboss.seam.InterceptionType; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Create; import org.jboss.seam.annotations.Intercept; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; import org.jboss.seam.core.FacesMessages; @Name("onlineConverters") @Scope(ScopeType.APPLICATION) public class Converters { private Converter memberSource; @Create public void init() { this.memberSource = new MemberSource(); } public Converter getMemberSource() { return this.memberSource; } public void setMemberSource(Converter memberSource) { this.memberSource = memberSource; } @org.jboss.seam.annotations.jsf.Converter @Intercept(InterceptionType.NEVER) public class MemberSource implements Converter { @Override public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) throws ConverterException { return value; } @Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) throws ConverterException { String convertedValue = ""; if (Constant.Member.Source.ONLINE.equalsIgnoreCase((String)value)) { convertedValue = "Online"; } else if (Constant.Member.Source.QTISC.equalsIgnoreCase((String)value)) { convertedValue = "QTISC"; } else if (Constant.Member.Source.CURRICULUM_COUNCIL_RESULT.equalsIgnoreCase((String)value)) { convertedValue = "CC Year11"; } else { FacesMessage facesMsg = new FacesMessage("Converstion error.", String.format("Invalid member status %s.", ((String) value))); facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR); FacesMessages.instance().add(facesMsg); throw new ConverterException(facesMsg); <-- exception thrown here... } return convertedValue; } } } XHTML bits ... ... Source ... Exception 21:02:36,578 ERROR [STDERR] 6/11/2007 21:02:36 com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/client.xhtml] javax.faces.convert.ConverterException: Converstion error. at au.edu.tisc.session.Converters$MemberSource.getAsString(Converters.java:64) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:322) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:279) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:276) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache
[jboss-user] [JBoss Seam] - Re: Custom Converter
correction in last post "...I have now added @org.jboss.seam.annotations.jsf.Converter...' View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102084#4102084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Custom Converter
In addition to my last post, I have not added as below but still it goes to debug page. Can it be because my converter class is actually a subclass? (please code in previous post). | | @org.jboss.seam.annotations.jsf.Converter | @Intercept(InterceptionType.NEVER) | public class MemberSource implements Converter { | ... | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102083#4102083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Custom Converter
No luck for me yet, its still going to seam debug page. please see my code below... | @Name("onlineConverters") | @Scope(ScopeType.APPLICATION) | public class Converters { | | private Converter memberSource; | | @Create | public void init() { | this.memberSource = new MemberSource(); | } | | public Converter getMemberSource() { | return this.memberSource; | } | | @Intercept(InterceptionType.NEVER) | public class MemberSource implements Converter { | | | ... | if (conversionFailed) { | FacesMessage facesMsg = new FacesMessage("Conversion error.", String.format("Invalid member status %s.", ((String) value))); | facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR); | FacesMessages.instance().add(facesMsg); | | throw new ConverterException(facesMsg); | } | ... | } | ... | } | | | Seam Debug Page | - Exception | Exception during request processing: javax.servlet.ServletException: Conversion error. | javax.faces.webapp.FacesServlet.service(FacesServlet.java:249) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | ... | ... | 13:36:39,887 ERROR [DebugPageHandler] redirecting to debug page | javax.faces.convert.ConverterException: Conversion error. | at au.edu.tisc.session.Converters$MemberSource.getAsString(Converters.java:61) | at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469) | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102063#4102063 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Custom Converter
Pete does it exist in seam 1.2.1GA? Seems it can't find it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102045#4102045 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Custom Converter
I have simple jsf converter, which works fine and throws ConverterException(facesMsg) exception when conversion failes. However, when exception is thrown Seam debug page comes up rather than faces message being show on jsf page using h:messages tag ? | MyConverter.java | ... | if (conversionFailed) { | FacesMessage facesMsg = new FacesMessage("Conversion error.", String.format("Invalid member status %s.", ((String) value))); | facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR); | FacesMessages.instance().add(facesMsg); | | throw new ConverterException(facesMsg); | } | | | JSF Page | ... | | ... | ... | | | | ... | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102042#4102042 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102042 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: help with EntityList
Pete, ejbql formulation is part of it. I am seeking help on how to use a Set of entities (returned in select clause) with seam-gen generated MyEntityList restrictions mechanism; and to use then in h:databTable jsf tag. though I will ask it hibernate forum too, for ebjql help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100635#4100635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Help with entity Associations and Query Restrictions
Anyone willing to help with following post? http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100542#4100542 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100545#4100545 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: help with EntityList
Hi Joshua, all entities have Id field - I removed extra code to make it less verbose. sorry it caused confusion. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100542#4100542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: help with EntityList
cut down version of entities involved. I guess I am not sure how to build ejb for my case and how to use it in restrictions and eventually how to access it in jsf | @Entity | @Table(name = "Client") | public class Client implements java.io.Serializable { | | private String id; | private String username; | private Set contacts = new HashSet(0); | private Set applicants = new HashSet(0); | | public Client() { | } | | . | | @Id | @Column(name = "ID", unique = true, nullable = false, length = 20) | @NotNull | @Length(max = 20) | public String getId() { | return this.id; | } | | public void setId(String id) { | this.id = id; | } | | @Column(name = "Username", length = 20) | @Length(max = 20) | public String getUsername() { | return this.username; | } | | public void setUsername(String username) { | this.username = username; | } | | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "client") | public Set getContacts() { | return this.contacts; | } | | public void setContacts(Set contacts) { | this.contacts = contacts; | } | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "client") | public Set getApplicants() { | return this.applicants; | } | | public void setApplicants(Set applicants) { | this.applicants = applicants; | } | | } | | @Entity | @Table(name = "Contact") | public class Contact implements java.io.Serializable { | | private String id; | private Client client; | private String surname; | private Set addresses = new HashSet(0); | | @ManyToOne(fetch = FetchType.LAZY) | @JoinColumn(name = "ClientID") | public Client getClient() { | return this.client; | } | | public void setClient(Client client) { | this.client = client; | } | | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "contact") | public Set getAddresses() { | return this.addresses; | } | | public void setAddresses(Set addresses) { | this.addresses = addresses; | } | } | | @Entity | @Table(name = "Address") | public class Address implements java.io.Serializable { | | private String id; | private Contact contact; | | @ManyToOne(fetch = FetchType.LAZY) | @JoinColumn(name = "ContactID") | public Contact getContact() { | return this.contact; | } | | public void setContact(Contact contact) { | this.contact = contact; | } | | | } | | | JSF | ... | | | | #{client} | | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100502#4100502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - help with EntityList
With application based on seam-gen, the MyEntityList feature is based on single table. I guess it is possible to make it work with multiple tables. wondering anyone can help me out? Table Associations Client--->Contacts--->Addresses Clients--->Applications ---> represents one-to-many I get errors like, even though all my search columns are text: 11:39:16,776 ERROR [DebugPageHandler] redirecting to debug page java.lang.NumberFormatException: For input string: "username" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) Say would like to search by: client.username, contact.surname, address.postcode, application.status | @Name("clientList") | public class ClientList extends EntityQuery { | | private static final String[] RESTRICTIONS = { | "lower(client.username) like concat('%',lower(#{clientList.client.username}),'%')", | "lower(contact.surname) like concat('%',lower(#{clientList.contact.surname}),'%')", | "lower(address.postcode) like concat('%',lower(#{clientList.address.postcode}),'%')", | "lower(application.status) like concat('%',lower(#{clientList.application.status}),'%')", | }; | | private Client client = new Client(); | private Contact contact = new Contact(); | private Address address = new Address(); | pircate Application application = new Application(); | | @Override | public String getEjbql() { | | return "select client.username, contact.surname, address.postcode, application.status " + | "from Client client inner join client.contacts contact"; | } | | public Client getClient() { | return client; | } | | public Contact getContact() { | return contact; | } | | public Address getAddress() { | return address; | } | | public Application getApplication() { | return application; | } | | ... | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100486#4100486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getter method called hundereds of times
seems that's how jsf works. would be interested to know what you find out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100047#4100047 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100047 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
I personally never tried rich:menuItem. but passing empty record ID as james is attempting worked for me from s:link. I think Pete has already suggested in this thread that seam 2 has some built in function to clear the instance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099800#4099800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam log.debug and log.trace
thanks. I was using log.debug in try catch block to expecting it print exception stack trace. I guess I will need to specifically print stack trace in catch block when needed and keep AS logging to info. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099730#4099730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Catching Runtime Exceptions
Runtime exceptions are caught in pages.xml file. Is it possible to append own message specified in pages.xml to the exception message? Say for exception thrown: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): au.edu.tisc.entity.ApplicationMessage | pages.xml | ... | | | | Database operation failed, please retry... | | | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099638#4099638 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Catching Runtime Exceptions
Runtime exceptions are caught in pages.xml file. Is it possible to append own message specified in pages.xml to the exception message? Say for exception thrown: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): au.edu.tisc.entity.ApplicationMessage | pages.xml | ... | | | | Database operation failed, please retry... | | | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099639#4099639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user