CSS style on Magritte generated component

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CSS style on Magritte generated component

Kurt Thams
I have a seaside call like this:

result := self call: (SurveyResponse new asComponent addValidatedForm;
yourself).

I can't figure out how to get the css to be applied to this component.
(Having SurveryReponse implement #style doesn't do it, nor does having it
defined in the class making the call do it).



_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CSS style on Magritte generated component

Lukas Renggli-2
> I have a seaside call like this:
>
> result := self call: (SurveyResponse new asComponent addValidatedForm;
> yourself).
>
> I can't figure out how to get the css to be applied to this component.
> (Having SurveryReponse implement #style doesn't do it, nor does  
> having it
> defined in the class making the call do it).

I guess SurveyResponse is a model class, right?

#style has to be implemented in a subclass of WAComponent. Since you  
cannot modify the component you get from Magritte (of course you can,  
but that would probably be overkill in your case) it is the simples  
if you put #style into the WAComponent/WATask you call it from.

Another possibility would be to use WAFileLibrary. Check out the  
class comment.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki