PDA

View Full Version : YUI-EXT + JBoss Seam Remoting questions



alfiewong
20 Feb 2007, 7:45 AM
Hello,

Long time reader and first time poster and I hope this isn't my last. I've been reading and watching the community for a bit now and I'm really impressed with the work done by Jack. It's amazing and I hope the project grows.

I'm fairly new to the whole AJAX thing and been trying to learn as much as I can by going through Jack's examples and things like that and it's coming along but I'm having issues trying to figure out how I can, or even integrate, yui-ext with JBoss Seam.

My overall goal is to create an RSVP application for my wedding website so I can cut down on some of that postage + invitation costs. :D Anyways, I'm planning to use the grid table and what I'm trying to figure out is how does the updating mechanism work on the grid table. That is, does it send back XML, JSON objects, or does it modify the Record object on the front end and send back the datastructure back anyway I want. You guys are probably thinking its way overkill for a RSVP application but I'm just using it as a simple learning application on developing my first SEAM and YUI-EXT app.

Any help with this would be great or just sending me links/docs on this type of informaiton.

Thanks,
Alfred

BernardChhun
23 Feb 2007, 7:53 PM
Hello,

Long time reader and first time poster and I hope this isn't my last. I've been reading and watching the community for a bit now and I'm really impressed with the work done by Jack. It's amazing and I hope the project grows.

I'm fairly new to the whole AJAX thing and been trying to learn as much as I can by going through Jack's examples and things like that and it's coming along but I'm having issues trying to figure out how I can, or even integrate, yui-ext with JBoss Seam.

My overall goal is to create an RSVP application for my wedding website so I can cut down on some of that postage + invitation costs. :D Anyways, I'm planning to use the grid table and what I'm trying to figure out is how does the updating mechanism work on the grid table. That is, does it send back XML, JSON objects, or does it modify the Record object on the front end and send back the datastructure back anyway I want. You guys are probably thinking its way overkill for a RSVP application but I'm just using it as a simple learning application on developing my first SEAM and YUI-EXT app.

Any help with this would be great or just sending me links/docs on this type of informaiton.

Thanks,
Alfred

In my short coding experience, I've always coded by hand the updating mechanism for the grid.
I always thought the grid was there as an interface for the data.
So when I insert or update rows I manage them independently of the grid meaning I build the proper function and suscribe it to the proper event. Once the update or the insert has been made via a XHR call, I reload the current page that the grid is showing.

Maybe I'm leading you the wrong way here but that's how I do it. Anyone has a better suggestion?

Animal
23 Feb 2007, 11:32 PM
I think the point of the new Ext 1.0 data API using data Records with named fields is leading on to an Ext persistence API.

Don't go too far down any homespun route for persisting Grid data.... I've learned from experience not to invent what Jack is in the process of inventing.... my code always ended up looking silly in comparison! :lol:

BernardChhun
24 Feb 2007, 4:47 AM
I think the point of the new Ext 1.0 data API using data Records with named fields is leading on to an Ext persistence API.

Don't go too far down any homespun route for persisting Grid data.... I've learned from experience not to invent what Jack is in the process of inventing.... my code always ended up looking silly in comparison! :lol:

:oops: that is so f**cking true.