[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-09 Thread damianharvey
As the input fields in the input form are based on the objectHome (EntityHome) 
they will be populated when the page reloads when you click on the edit link in 
the dataTable. This is done via the 2way param from the page.xml.

So if you input form has inputs like:

  | h:inputText id=name value=#{objectHome.instance.name}/
  | 
Then it will be populated by the objectHome.find() method using the objectId.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044173#4044173

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-09 Thread carlos.abreu
Damian, this looks interesting Can you send me an example of that to my 
e-mail ([EMAIL PROTECTED]) ?

I would like to know if there is a way to do that without using the 
pages.xml I wanna to avoid the use of xml configuration files...

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044329#4044329

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044329
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-09 Thread damianharvey
I'm not sure how you'd do this without xml configuration. It's really quite 
minimal configuration.

Maybe you should look at some of the suggestion's made by Delphi earlier? I 
haven't tried any of them aside from the way that I've outlined.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044336#4044336

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044336
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-09 Thread carlos.abreu
Well i looked the examples that Delphi told me, but i don´t see how the 
examples can help me with my CRUD page.

I think that what you tell me is the best choice, can you send to me a simple 
example of your CRUD page ?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044388#4044388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044388

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-09 Thread damianharvey
Tried to send you some examples but Yahoo thinks that you don't exist. Re-post 
your email address  and I'll resend it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044395#4044395

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044395
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-09 Thread carlos.abreu
Humm... that is strange, try send to [EMAIL PROTECTED] or [EMAIL PROTECTED]

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044399#4044399

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044399
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-08 Thread Delphi's Ghost
If you are talking about CRUD using the Seam Framework (EntityHome and all 
that) then I believe the contact list example uses that particular method of 
crud. 

If you are talking about writing your own set of CRUD pages, then there are a 
number of ways to do it. 

In the Issues example - inject the issueFinder bean into the issueEdit bean and 
get the selected item from the issueFinder. (seems messy to me)

- or - 

Use bijection to outject the selected item, and inject it into the edit bean

- or -

Use request parameters to pass the ID of the object to be edited to the editor 
page (best option for RESTful URLs) . The Seam blog uses this method.

- or - 

Use EL Enhancements to pass the object from the list page to the edit bean from 
within the datatable : i.e.


  |s:link value=Edit action=#{personEditBean.editPerson(person)/
  | 

where person is the var value in your datatable. You can see this type of 
example in the hotel booking app with the selectHotel(hot) function in the 
hotel listing page.  It starts the booking conversation and passes the hotel in 
using the hot variable from the datatable.






View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043983#4043983

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043983
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-08 Thread carlos.abreu
Hy Delphi, i take a look on the issues tracker application... It´s basically 
what i need, but  the example seems to be buged

Call you tell me, how can i do for set the form on the screen with the data 
that i select ? Do i need a hidden field to hold the ID of my register ?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044040#4044040

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044040

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-08 Thread [EMAIL PROTECTED]
I think what you should do is neither of the above, but generate a new 
application skeleton with seam-gen. It's very well documented. Then generate a 
single entity, which will also produce a CRUD screen. This is the smallest and 
most consistent example of CRUD functionality with Seam you will find.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044085#4044085

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-08 Thread damianharvey
If you mean an all-on-one-page CRUD, I'm doing this using a Seam Gen'd 
application and using the EntityHome objects. 

On the left of the screen is my input form. No real difference to the ones 
created by Seam Gen but the page.xml returns the view to itself. On the right 
is the DataTable. This has a column with links for Edit and Delete as per below:

  | rich:column
  | f:facet name=headerAction/f:facet
  | s:link action=#{objectHome.find}
  | title=Click here to edit this record
  | f:param name=objectId value=#{tableVar.objectId}/
  | h:graphicImage url=/img/edit.png border=0/
  | /s:link
  | s:link action=#{objectHome.remove}
  | onclick=return confirm('Are you sure you want to delete this 
row?');
  | title=Click here to delete this record
  | f:param name=objectId value=#{tableVar.objectId}/
  | h:graphicImage url=/img/cross.png border=0/
  | /s:link
  | /rich:column
  | 

The page.xml has the param like this:

  | param name=objectId value=#{objectHome.objectId}/
  | 

And in the objectHome after an Update or Persist I remove it from the all 
contexts:

  | Contexts.removeFromAllContexts(objectHome);
  | 

This is working quite well for me at the moment, but the downside is that it 
exposes the IDs. Would welcome any improvements.

Cheers,

Damian.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044091#4044091

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044091
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-08 Thread carlos.abreu
Hy Christian, i tried to do what u tell me... But i don't see a CRUD page 
generated by seam-gen...

Perhaps i looked the wrong 
page(http://docs.jboss.com/seam/1.1BETA2/reference/en/html/gettingstarted.html) 
of seam-gem ??

thanks,

Carlos

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044143#4044143

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CRUD screen

2007-05-08 Thread carlos.abreu
Hy everyone,

Damian, defined very well what i want to do on the CRUD page 
all-on-one-page

My principal objective, is to have my Actions Session Beans in a pattern. 
Because almost 90% of the screens of my application, will have the same 
behaviors... 

With the Help of Christian an Delphi i created the structure of my application 
in a very elegant way...

Therefore, the only behavior that is missing for my Actions is the edition of 
the entities data.

So my question is in the html form in the CRUD page... Can u tell me, how can i 
set the fields in the form with the data that i select in the data table ?

I don't know if i am expressing clearly, please let me know

I can sent the source code by e-mail if anyone interested...

thanks,

Carlos

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044148#4044148

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044148
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user