I get 7 as expected. Also changing new { myParam2 = new MyClass(7)} to
new { myParam = new MyClass(7)} I get exception Cannot convert
'MyClass' to 'Int32' insted of getting the default registered
'MyClass' and the unmatching parameter ignored.
On Jan 13, 11:10 pm, hammett hamm...@gmail.com
Ouch that code hurts my eyes. =)
On Wed, Jan 14, 2009 at 8:48 AM, Colin Ramsay colinram...@gmail.com wrote:
%=
this.RenderPartial().UsingBlogPostComment().WithDefault(h3{0}/h3.ToFormat(Resources.Strings.NO_COMMENTS_HERE)).ForEachOf(Model.Post.Comments)
%
Jason, to what sample app are you referring to?
take a look at:
http://github.com/kenegozi/openuni/blob/ea86d2dcabf551866e31bef72b85ba0f17512f61/src/OpenUni.Web.UI/Views/People/Profiles/Professor.aspx
(it's part of a half baked university project so it's not a super-great
reference, but you can
This should work fine:
1) You load parent and all associated childs in non-flushing sessionscope.
2) More childs are added. No one calls save or something, so new
childs are still transient.
3) On Save-button pressed, call save on parent and cascade changes to child.
4) On Cancel-button presses,
The code samples I linked to are from the AltOxite sample which uses
fubumvc. The framework appears to be very new.
I'm downloading the openuni code now and will browse that. this looks
promising.
I've heard a lot about the danger of magic strings and looking at
the propertybag/flash and
What AspView is doing is to wrap the properties used by the view, with a
typed adapter, using the great Castle.Components.DictionaryAdapter
On Wed, Jan 14, 2009 at 4:37 PM, Jason Meckley jasonmeck...@gmail.comwrote:
The code samples I linked to are from the AltOxite sample which uses
But myParam matches to the ctor parameter for MyClass, but it can't
convert it to an int. Should this be ignored? I don't know...
Inline dependencies are for 'child' components too afaik.
What happens if you do
new { myParam = 7}
(and put the ${} back in the config)
On Jan 14, 10:11 am,
I do get 7. I wasn't aware it propagates.
The example is simple, the real issue is this bug? breaks a lot of
situations. I have an application which loads a tcp socket wrapper
from XML configuration. But also the same wrapper can be initialized
from runtime parameters. Unfortunately, I cannot
That library isn't part of Castle, it's a separate project which
Castle leverages. Try their homepage:
http://www.codeplex.com/Json
On Wed, Jan 14, 2009 at 4:36 PM, Wayne Douglas wa...@codingvista.com wrote:
Hey All
(just posted this in the forum - thought it might not get picked up there so
I never-ever use DataSets.
ever
I'd retrieve the data from the DB into an IEnumerableSomeDto, then feed it
to the Json formatter.
On Wed, Jan 14, 2009 at 6:54 PM, Wayne Douglas wa...@codingvista.comwrote:
OK - how does everyone manage executing a sproc to return the results as
json?
This
Normally I'd use LLBLGEN to grab the data into a more reasonable object and
then serialize that - I'm trying to use NHibernate here as much as I can but
a bit pressed for time to get a prototype out the door :s
Never actually thought of hand coding something - for my sins!!
w://
2009/1/14 Ken
Just do a loop and build it manually!
On Wed, Jan 14, 2009 at 4:54 PM, Wayne Douglas wa...@codingvista.com wrote:
OK - how does everyone manage executing a sproc to return the results as
json?
This must be a workflow used _everywhere_?
w://
2009/1/14 Colin Ramsay colinram...@gmail.com
Look for Projections
On Wed, Jan 14, 2009 at 8:00 PM, Wayne Douglas wa...@codingvista.comwrote:
Normally I'd use LLBLGEN to grab the data into a more reasonable object and
then serialize that - I'm trying to use NHibernate here as much as I can but
a bit pressed for time to get a prototype
yep.
simply create the Dto (a quick and dirty auto-property thingie),
use the proper ResultTransformer on the sql query
and you get an IListDto
On Wed, Jan 14, 2009 at 7:02 PM, Victor Kornov wee...@gmail.com wrote:
Look for Projections
On Wed, Jan 14, 2009 at 8:00 PM, Wayne Douglas
Cheers :)
This sounds like exactly what I need
w://
2009/1/14 Ken Egozi egoz...@gmail.com
yep.
simply create the Dto (a quick and dirty auto-property thingie),
use the proper ResultTransformer on the sql query
and you get an IListDto
On Wed, Jan 14, 2009 at 7:02 PM, Victor Kornov
in NH.
var items = session.CreateSqlQuery(THESQL)
.SetresultTransformer(I_dont_remember_I_think_its_AliasToBeanResultTransformer)
.ListTheDto();
RenderText( yourJsonFormatter(items) )
On Wed, Jan 14, 2009 at 7:09 PM, Wayne Douglas wa...@codingvista.comwrote:
projections in NHIbernate or
Wicked!!
You've just saved me so much headache!!
:D
w://
2009/1/14 Ken Egozi egoz...@gmail.com
in NH.
var items = session.CreateSqlQuery(THESQL)
.SetresultTransformer(I_dont_remember_I_think_its_AliasToBeanResultTransformer)
.ListTheDto();
RenderText( yourJsonFormatter(items) )
Hi,
When testing a MonoRail controller, how would I go about to mock the
ApplicationPath of the RailsContext?
BaseControllerTest.PrepareController has the ContextInitializer
delegate, but I'm not able to assign to the ApplicationPath in my
delegate, since the ApplicationPath is a getter only. Is
I got my example up and running with aspviews and dictionary adapter.
I love it!
follow up questions:
1. aspview configs:
what does the attribute saveFiles do? when true? when false?
what does the attribute autoRecompilation do? when true?
when false?
what
1 - saveFiles - save the generated C# code files. Useful to see
compilation errors origin, set false for production. autoRecompilation
- recompile on file change. Great for development. For production set
false and pre-build with VCompile. Otherwise file changes will re-
start IIS and bye-bye
slick. I'll look into vcompile later on.
I was able to block users from access the views with this
location path=Views
system.web
httpHandlers
add path=*.* verb=* type=System.Web.HttpNotFoundHandler/
/httpHandlers
/system.web
/location
I'm experimenting with
inbound and outbound dtos are not necessarily the same
but you can always do something like:
===dto===
class Cat
{
string Name ...
}
===controller===
public void Mew([DataBind(cat)]Cat cat) { ... }
==interface===
interface ICatView
{
Cat Cat {get;set;}
}
===view===
%page ...
Hi Morcs
I am sure you have already checked but are you sure your
IRepositoryFactory and IDynamicActionProviders are registered on the
container?
On Jan 14, 4:40 am, morcs ja...@bigjump.co.uk wrote:
Hi there,
I'm using the Castle trunk, and I understand that thanks to Mike
Nichols and his
never seen this.
though off the stack trace is appear to be an ASP.NET problem
maybe you were calling Response.Redirect, which caused the HttpContext to
loose data, then in the view you accessed the RawUrl directly.
a possible fix will be - get the current url into the propertybag within
the
24 matches
Mail list logo