|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
add entitys in a createPageHi, I'm newbie with Trails, I'm evaluating to use in our next project.
I've a few questions. Is it possible to create new entitys when you are creating or editing another? , for example, suppose I've a Object A with a Collection of Objects B, so while I creating a A Entity and choosing from the B combo I figure that I must create a new B Object. I'know that this feature is not present out of the box, but it is possible to implement it ?, I don't know if we will have problems with sessions because while editing A we must create another transaction for create B objetc, how Trails handle it ? Another question, maybe more basic, I read in Chris Nelson's Java.net advanced article the use of ant to make new custom pages to edit/list,etc, but this is still true ? I mean, now you are using Maven, How I create new custom pages ? Really thanks, and sorry for my English. |
|
|
Re: add entitys in a createPageHola Pablo,
You can put a NewLink to class B, from AEdit.html, but when you click on the NewLink you will lose the changes you have made to object A. The other option is to persist the changes made in A before going to B (this is how the button bellow the Palette component works) , for that you will need to implement your own link. You don't have to worry about sessions or transactions. Trails will (hopefully) take care of them for you. As for customizing pages, check this link: http://www.trailsframework.org/Customizing+pages#Customizingpages-CustomizedTrailspages Saludos. Alejandro. On 10/8/07, Pablo Francavilla <pfrancav@...> wrote: > Hi, I'm newbie with Trails, I'm evaluating to use in our next project. > > I've a few questions. > > Is it possible to create new entitys when you are creating or editing > another? , for example, suppose I've a Object A with a Collection of Objects > B, so while I creating a A Entity and choosing from the B combo I figure > that I must create a new B Object. > I'know that this feature is not present out of the box, but it is possible > to implement it ?, I don't know if we will have problems with sessions > because while editing A we must create another transaction for create B > objetc, how Trails handle it ? > > Another question, maybe more basic, I read in Chris Nelson's Java.net > advanced article the use of ant to make new custom pages to edit/list,etc, > but this is still true ? I mean, now you are using Maven, How I create new > custom pages ? > > Really thanks, and sorry for my English. > > > > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: add entitys in a createPageComo va Alejandro?
The problem with this solution is that generally you don't want to save the A object before you create the B object, for example, if the B object it's mandatory you can't save the A object until the B is selected. Do you think that it's the only way to do this ? Another question, How do you arrive the url you give me ?, seems to be a wiki, may I navigate this ? Thanks
On 10/8/07, Alejandro Scandroli <alejandroscandroli@...> wrote: Hola Pablo, |
|
|
Re: add entitys in a createPageThe problem with this solution is that generally you don't want to save the A object before you create the B object, for example, if the B object it's mandatory you can't save the A object until the B is selected. You could store the object A in the (servlet) session while editing B. Another question, How do you arrive the url you give me ?, seems to be a wiki, may I navigate this ? From http://www.trailsframework.org/User%27s+Guide . Yes, it's a wiki, decorated with a custom layout. You can access the Confluence wiki directly at http://docs.codehaus.org/display/TRAILS/ (but for users, there should generally be no need to). Kalle
|
| Free embeddable forum powered by Nabble | Forum Help |