Ok, I have a very simple app created in Grails.
I have a generated domain class (Person) and its generated controller, using the automatic Grails scaffold:
package contacts
class PersonController {
def scaffold = Person
}
Now I'd like to get a JSON representation of a Person object.
Do I have to change the view or the controller? And how?
Thank you.
Hello,
I'm trying to figure out how to group items like the grouped mail boxes in the mail app. I need it to be like selecting a mail box, when you tap it it loads new data, your inbox outbox and all of the other boxes for that mail account. Then you can tap back and return to all of your accounts. If anyone has a little sample code they could show or explain how one might go about doing this any help is appreciated. (Note: Im using the split view template)
Thanks
Under the structure tab, when EXPORTing a database using phpmyadmin there is a check box labeled:
Add DROP TABLE / VIEW / PROCEDURE / FUNCTION
What does this do?
Is there a way to copy View output column headers along with the data? There is a setting in Options to include column headers with query results, but that only works with "New Query" and Stored Procedure output.
Looks like SSMS 2008 has this functionality built in to the contextual menu when you right click on results, but I only have 2005.
Am I out of luck?
Thanks for any help.
I am using list view using "ArrayAdapter" to display number of items while user is looking at results when user click on load button i want results to load and prepends(add in the beginning)
I am using CodeProject's well known Open Session in View to handle NHibernate Sessions. Does it works well with Level 2 Cache? Anyone has succeeded doing it? Should I use NH.Burrow instead? Any advice on l2 cache in asp.net best practices is appreciated.
Edit: link to CodeProject's article: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx
Hi Gurus,
We are using 2.x spring security right now. I am asked to build an admin tool so that the ROLE_ADMIN can change to any user in the site and view the site as that person (each person on the site may see different stuff depending on the role which is dynamically granted base on the database) and of course the admin should be able to switch back to admin without logging in.
Is there a build in function, if not how should I do this?
Thanks in advance!
I'm trying to figure out the origin of the view handler design pattern in software engineering. Many of the design patterns in software engineering were inspired by things which pre-date computers, and I was wondering if anybody had any insights on the origin of this particular pattern.
I can't find a way to obtain a reference the Window containing an arbitrary View v. I found fromgetWindowToken, but I can't figure out how to use it? Does anyone know how?
Also, does anyone know why it returns an IBinder rather than a Window?
I know that F7/Shift F7 will switch between Code behind and ASPX pages, but
what's the shortcut to switch between source and design view in Visual studio for asp.net Pages?
I use view to show node and i set filters to taxonomy:vocabulary (select 3 taxonomy).
I want set limit by vocabulary (1 vocabulary show 3 node).
Anyone know how to do this?
Please help me. Thanks
I am trying to get the value of a cell in a table view but it won't let me. If someone could help that would be great.
int numberOfChecks = -1;
numberOfChecks = numberOfChecks +1;
if ([objectsForTable count]-1 >= numberOfChecks) {
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:numberOfChecks];
NSString *cellTitle = cell.textLabel.text;
}
hye all,
i have built a SQLite database and wanna to add into iphone app. already i have add it resource-add-x.sqlite and also add libsqlite3.0.dylib.framework but i don't know what is the showing code. I wanna to show the data in the db when user pressed button.
Can anyone help me to give an example on how the db can be view when button is press??
I have a silly use case for eclipse:
At work, they use 2 spaces for a tab character. Indentation looks really squashed and I'm finding it obstructs readability.
Now, I can't set Eclipse to use 4 spaces for a tab as it'll edit any files I change, and obviously don't want to violate the coding standards.
So, can I have a custom view onto my document, with saving maintaining the original spacing?
Cheers
I've been struggling with trying to get this to work. Does anybody know of a easy to follow tutorial that shows the Master/Detail grid view?
Thanks. I'm a very novice programmer.
I'm using Visual Studio 2008 with c#.
for some reason the RDL file
RDL file - Reporting Services showing HTML in design view
in Visual studio
any clues as to why
only thing i can think of it is that it makes use of Dundas Charts and i dont have that installed. Will i need that????
I have been using the macro solution, as it is outlined here. However, there is a mention on how to view them without macros.
Can anyone illustrate how?
Thanks
the best way to explain is with example so:
this is the model
public class Person
{
public int age;
public string name;
}
this is the view model
public class PersonVM
{
}
my question is:
should the vm expose the person to the datga template or encapsulate the model properties with his own properties?
Hi all, i would like to know what is the correct way to create a fullscreen view of a tabpage control. This page has other controls, and that controls has various events that are subscribed. I was trying creating a new fullscreen form and copy all controls of the tabs to that form, but with this approach i need to resubscribe every control to the corresponding handler. If i only add the references the subscription remains but when the fullscreen form is close also the referenced copied controls are lost.
I am working on a solution that used DDD for architecture. I have a property in my ViewModel which points to a ValueObject, the view model also implements INotifyPropertyChanged interface. The value of the ValueObject will change as a user enters data on the front end. The problem I am running into is the value object is suppose to be immutable. How can I work around this issue? Thank you in advance.
I have a Data View Web Part in Sharepoint that is being fed from an RSS Feed. I have the Data Source configured properly to read the RSS Feed and I have added serveral runtime parameters. My question is, how do I supply these values at runtime? For example, one of the parameters is startDate and this should be populated with the current date.
Hello,
I am using some xib without tab bar and some with tab bar.
In starting i load the xib without tab bar-navigation bar then flow are working.But if i load a xib with tab bar-navigation bar then our all view slide bellow and half tab bar are not showing.Please anybody help me as soon as possible.
Pleaseeee!!!!!!
I would like apply a 3D rotation on a view (in particular to a UILabel) in iPhone. What's the simplest way to do this?
A code example will be much appreciated.