[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-04 Thread griffitm
Upgrading to 2.0.0.CR1 fixed the problem. Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091715#4091715

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091715
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread [EMAIL PROTECTED]
Check also the migration guide.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091289#4091289

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091289
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread griffitm
Pete, 

Thanks for the reply. I am using 2.0.0.BETA1 w/JBoss 4.2.1.GA. I'll download 
the latest. I assume I can just overwrite my project/lib directory with the 
libs in the latest distro.  Do I need to do anything else (other than a clean 
build?)

Cheers!
MG

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091286#4091286

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091286
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread [EMAIL PROTECTED]
Which Seam version? There were some deproxying problems at some point I think 
(fixed in 2.0.0.CR1).  My advice is to grab the latest CR, give it a go and 
come back if you are still having problems.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091277#4091277

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091277
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread griffitm
Pete, 

Thanks for the reply. Something really strange is going on.  The best way to 
describe what is happening is I have several of these drop down lists, one for 
status, one for priority, etc. I can go in and make an unrelated change to the 
xhtml fragment, compile and deploy it and the error below fires on one of the 
list boxes.  I go back to the xhtml, re-edit the selectOneMenu with the exact 
same information, deploy it and the problem moves to the next list box. Its 
like I have the wrong version of a serialized object or something.  I 
stop/start JBoss, but the problem remains.

Any ideas?

Cheers!
MG

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091267#4091267

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091267
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-03 Thread [EMAIL PROTECTED]
I just tested putting (with CVS) the s:convertEntity before the s:selectItems 
(this is the change you show, not before/after h:selectOneMenu) and it works 
correctly.  But yes, s:convertEntity certainly needs to be inside 
h:selectOneMenu.

Ignore the wiki page - it's out of date.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090980#4090980

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090980
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-02 Thread griffitm
Ok, I got the problem sorted. 

The problem was that I had the convertEntity tag before selectOneMenu. The 
solution was to move it AFTER the selectOneMenu, thusly:

  |  
  | status
  |
  |
  |
  |
  | 
  | 

I spent the better part of a day trying to figure this out. The solution is not 
immediately obvious, and the error message was completely unhelpful to try and 
diagnose the problem. 

IMHO, this type of example should be part of the seam 101 examples. In every 
web app there is always a controlled vocabulary list where the user needs to 
pick a value from a list. 

Thanks for reading and replying to my post.  I hope this reply helps someone in 
the future.

Cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090667#4090667

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-02 Thread griffitm
Damian, 

Thanks for the reply. I thought I was on the right track from looking at this 
related link: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter

Here is my deliverableHome class:

  | package gov.hhs.fda.ocio.fdaaa.entity;
  | 
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.framework.EntityHome;
  | 
  | @Name("deliverableHome")
  | public class DeliverableHome extends EntityHome {
  | 
  | @In(create = true)
  | StatusHome statusHome;
  | 
  | public void setDeliverableId(Integer id) {
  | setId(id);
  | }
  | 
  | public Integer getDeliverableId() {
  | return (Integer) getId();
  | }
  | 
  | @Override
  | protected Deliverable createInstance() {
  | Deliverable deliverable = new Deliverable();
  | return deliverable;
  | }
  | 
  | public void wire() {
  | Status status = statusHome.getDefinedInstance();
  | if (status != null) {
  | getInstance().setStatus(status);
  | }
  | }
  | 
  | public boolean isWired() {
  | if (getInstance().getType() == null)
  | return false;
  | if (getInstance().getStatus() == null)
  | return false;
  | if (getInstance().getConsequence() == null)
  | return false;
  | return true;
  | }
  | 
  | public Deliverable getDefinedInstance() {
  | return isIdDefined() ? getInstance() : null;
  | }
  | 
  | }
  | 

As for the right package, I believe so. It was all generated by seamgen. Does 
the entity-query need to specify the entire package? I tend to think this is a 
problem with mapping to the deliverableHome.status property.  I have 2 records 
in the status table which looks like this:

  | ID   Description
  | 1 In-Progress
  | 2 On-Hold
  | 

I set the status_id to 2, and when I bring up the record to edit it, the status 
selected in the select box is 1, In-Progress.  In the struts world, this would 
tell me that the HTML fragment generated doesn't match the struts bean mapped 
to the action.

Any thoughts?

Thanks in advance!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090650#4090650

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090650
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simple selectOneMenu Example/seamgen

2007-10-02 Thread damianharvey
Your approach is certainly correct. Show your code for deliverableHome. Does it 
use the same 'Status' class as the entityQuery?

Is gov.hhs.fda.ocio.fdaaa.entity.Status the correct package?

Cheers,

Damian

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090524#4090524

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user