[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to read/write data to XML files using Hibernate

2008-10-13 Thread terryb
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 m

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Exporting/Importing date from/to XML

2008-10-07 Thread terryb
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)? JBos

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem cloning entity with ClassMetadata

2008-07-19 Thread terryb
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 me

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - UserType ignored

2008-04-13 Thread terryb
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 -- |

[jboss-user] [JBoss Seam] - Browser refresh executes last action performed by form submi

2008-02-15 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: PDF table doesn't show in RTF format

2008-02-15 Thread terryb
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] [JBoss Seam] - Re: PDF table doesn't show in RTF format

2008-02-14 Thread terryb
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] [JBoss Seam] - Re: PDF table doesn't show in RTF format

2008-02-14 Thread terryb
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

[jboss-user] [JBoss Seam] - Seam doesn't go to clicked page after login

2008-02-14 Thread terryb
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

[jboss-user] [JBoss Seam] - PDF table doesn't show in RTF format

2008-02-13 Thread terryb
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} | | ... | | | | | | | |

[jboss-user] [JBoss Seam] - PDF template, space not showing

2008-02-11 Thread terryb
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: | | ... | | Tert

[jboss-user] [JBoss Seam] - Re: How to save seam pdf to a file

2008-02-10 Thread terryb
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-user] [JBoss Seam] - How to write CSV contents to browser

2008-02-08 Thread terryb
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.c

[jboss-user] [JBoss Seam] - Re: Specifying filename for Seam PDF attachement

2008-02-07 Thread terryb
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&o

[jboss-user] [JBoss Seam] - Specifying filename for Seam PDF attachement

2008-02-07 Thread terryb
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.j

[jboss-user] [JBoss Seam] - Re: How to save seam pdf to a file

2008-02-04 Thread terryb
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] [JBoss Seam] - How to save seam pdf to a file

2008-02-04 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: How to bookmark in Seam PDF?

2008-02-04 Thread terryb
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 ___ jb

[jboss-user] [JBoss Seam] - How to bookmark in Seam PDF?

2008-02-03 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: anyway to generate Seam PDF table in parent/childern for

2008-02-02 Thread terryb
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 th

[jboss-user] [JBoss Seam] - anyway to generate Seam PDF table in parent/childern format?

2008-02-01 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: Error during PDF generation - IllegalStateException: No

2008-02-01 Thread terryb
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] [Persistence, JBoss/CMP, Hibernate, Database] - union query with HQL

2008-01-31 Thread terryb
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-use

[jboss-user] [JBoss Seam] - Re: How to remove PDF table cell border?

2008-01-30 Thread terryb
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

[jboss-user] [JBoss Seam] - How to remove PDF table cell border?

2008-01-29 Thread terryb
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] [JBoss Seam] - Re: authenticator.authenticate called several times

2008-01-24 Thread terryb
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?m

[jboss-user] [JBoss Seam] - Re: Faces messages not displaying on redirected page

2008-01-24 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times

2008-01-23 Thread terryb
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-user] [JBoss Seam] - Faces messages not displaying on redirected page

2008-01-23 Thread terryb
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 | - | | ... | | | |

[jboss-user] [JBoss Seam] - Re: Event with @Observer not being fired

2008-01-22 Thread terryb
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 "o

[jboss-user] [JBoss Seam] - Event with @Observer not being fired

2008-01-22 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times

2008-01-22 Thread terryb
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 variab

[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times

2008-01-22 Thread terryb
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 event

[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times

2008-01-21 Thread terryb
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

[jboss-user] [JBoss Seam] - authenticator.authenticate called several times

2008-01-21 Thread terryb
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 | | | | | |

[jboss-user] [JBoss Seam] - Re: Seam Theme and Printable View?

2008-01-11 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: Seam Theme and Printable View?

2008-01-11 Thread terryb
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=41189

[jboss-user] [JBoss Seam] - Re: Seam Mail in HTML format doesn't work in Outlook

2008-01-10 Thread terryb
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

[jboss-user] [JBoss Seam] - Seam Mail in HTML format doesn't work in Outlook

2008-01-10 Thread terryb
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 tr

[jboss-user] [JBoss Seam] - Re: Event for each mail during multiple message session

2008-01-08 Thread terryb
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#4

[jboss-user] [JBoss Seam] - Re: Event for each mail during multiple message session

2008-01-08 Thread terryb
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=p

[jboss-user] [JBoss Seam] - Re: Event for each mail during multiple message session

2008-01-08 Thread terryb
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"; |

[jboss-user] [JBoss Seam] - Event for each mail during multiple message session

2008-01-08 Thread terryb
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#

[jboss-user] [JBoss Seam] - Re: Evaluating EL #{xxx} stored in database

2008-01-07 Thread terryb
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

[jboss-user] [JBoss Seam] - Evaluating EL #{xxx} stored in database

2008-01-07 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: how to stop seam auto updating database

2008-01-03 Thread terryb
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 :

[jboss-user] [JBoss Seam] - how to stop seam auto updating database

2008-01-03 Thread terryb
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 tha

[jboss-user] [JBoss Seam] - Re: Seam PDF with content-disposition=attachment - is it pos

2007-12-28 Thread terryb
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] [JBoss Seam] - Error during PDF generation - IllegalStateException: No acti

2007-12-28 Thread terryb
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,2

[jboss-user] [JBoss Seam] - Re: debug.seam and iText-PDF without redirects?

2007-12-28 Thread terryb
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:

[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -

2007-12-27 Thread terryb
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 mai

[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -

2007-12-26 Thread terryb
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: settlementDa

[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -

2007-12-26 Thread terryb
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.j

[jboss-user] [JBoss Seam] - Catch-22 with Seam2 and converterId in page parameter - bug?

2007-12-25 Thread terryb
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: ar

[jboss-user] [JBoss Seam] - argument type mismatch exception after Seam 2 upgrade - help

2007-12-24 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: s:button loosing param value with s:convertDateTime?

2007-12-20 Thread terryb
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

[jboss-user] [JBoss Seam] - How to uses DateTimeConverter in .page.xml parameter?

2007-12-19 Thread terryb
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 pro

[jboss-user] [JBoss Seam] - s:button loosing param value with s:convertDateTime?

2007-12-17 Thread terryb
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 | | ... | |

[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window

2007-12-11 Thread terryb
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 maili

[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window

2007-12-11 Thread terryb
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

[jboss-user] [JBoss Seam] - Submit form and open results in new window

2007-12-10 Thread terryb
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 t

[jboss-user] [Installation, Configuration & DEPLOYMENT] - help setting up virtual host

2007-12-04 Thread terryb
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.

[jboss-user] [JBoss Seam] - Converter error after seam login

2007-12-02 Thread terryb
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

[jboss-user] [JBoss Seam] - Seam Theme and Printable View?

2007-11-29 Thread terryb
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 s

[jboss-user] [JBoss Seam] - Re: how to stop seam keep adding url parameters?

2007-11-28 Thread terryb
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#41

[jboss-user] [JBoss Seam] - Re: How to access h:datatable row data during its iteration

2007-11-28 Thread terryb
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] [JBoss Seam] - How to access h:datatable row data during its iteration

2007-11-27 Thread terryb
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 b

[jboss-user] [JBoss Seam] - Re: how to stop seam keep adding url parameters?

2007-11-27 Thread terryb
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

[jboss-user] [JBoss Seam] - how to stop seam keep adding url parameters?

2007-11-27 Thread terryb
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 l

[jboss-user] [JBoss Seam] - Re: EntityQuery Bug with Group by and Restriction?

2007-11-26 Thread terryb
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 ___ j

[jboss-user] [JBoss Seam] - EntityQuery Bug with Group by and Restriction?

2007-11-26 Thread terryb
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,

[jboss-user] [JBoss Seam] - Re: Why does EntityQuery auto save updates?

2007-11-21 Thread terryb
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 modifie

[jboss-user] [JBoss Seam] - Re: Why does EntityQuery auto save updates?

2007-11-20 Thread terryb
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 commit

[jboss-user] [JBoss Seam] - Why does EntityQuery auto save updates?

2007-11-20 Thread terryb
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 t

[jboss-user] [JBoss Seam] - Re: Logging successful user login activity using seam securi

2007-11-15 Thread terryb
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@list

[jboss-user] [JBoss Seam] - Logging successful user login activity using seam security

2007-11-14 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: Paging and Listing

2007-11-14 Thread terryb
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@li

[jboss-user] [JBoss Seam] - Re: Reading HTML from database

2007-11-14 Thread terryb
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@list

[jboss-user] [JBoss Seam] - Reading HTML from database

2007-11-13 Thread terryb
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=vi

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-13 Thread terryb
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] [JBoss Seam] - Paging and Listing

2007-11-13 Thread terryb
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 t

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-06 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-06 Thread terryb
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.f

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-06 Thread terryb
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.f

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-06 Thread terryb
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.f

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-05 Thread terryb
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] [JBoss Seam] - Re: Custom Converter

2007-11-05 Thread terryb
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 Memb

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-05 Thread terryb
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.memberSourc

[jboss-user] [JBoss Seam] - Re: Custom Converter

2007-11-05 Thread terryb
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] [JBoss Seam] - Custom Converter

2007-11-05 Thread terryb
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 (conver

[jboss-user] [JBoss Seam] - Re: help with EntityList

2007-10-31 Thread terryb
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 origina

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Help with entity Associations and Query Restrictions

2007-10-31 Thread terryb
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&mo

[jboss-user] [JBoss Seam] - Re: help with EntityList

2007-10-31 Thread terryb
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

[jboss-user] [JBoss Seam] - Re: help with EntityList

2007-10-30 Thread terryb
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; |

[jboss-user] [JBoss Seam] - help with EntityList

2007-10-30 Thread terryb
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 err

[jboss-user] [JBoss Seam] - Re: getter method called hundereds of times

2007-10-29 Thread terryb
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] [JBoss Seam] - Re: Destroying Context Variable

2007-10-29 Thread terryb
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=b

[jboss-user] [JBoss Seam] - Re: seam log.debug and log.trace

2007-10-28 Thread terryb
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#4

[jboss-user] [JBoss Seam] - Catching Runtime Exceptions

2007-10-28 Thread terryb
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.entit

[jboss-user] [JBoss Seam] - Catching Runtime Exceptions

2007-10-28 Thread terryb
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.entit

  1   2   >