Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Current »

[08:58:04 CDT(-0500)] <rickard> How do I in a portlet check if the current user is part of a particular group?
[09:01:29 CDT(-0500)] <rickard> Something similar to upGroup:isUserDeepMemberOfGroupName() but from a portlet.
[09:41:37 CDT(-0500)] <rickard> athena: Do you know if that's possible?
[09:52:14 CDT(-0500)] <rickard> Nevermind. I found request.isUserInRole()
[17:54:24 CDT(-0500)] <EricDalquist> style question for folks
[17:54:28 CDT(-0500)] <EricDalquist> in an XML document
[17:54:46 CDT(-0500)] <EricDalquist> what are peoples preferences on wrapping a repeating tag with an outer tag
[17:55:14 CDT(-0500)] <DrewWills> er... depends?
[17:55:18 CDT(-0500)] <EricDalquist> like: <foo><things><thing id="1"/><thing id="2"/><thing id="3"/></things></foo>
[17:55:34 CDT(-0500)] <DrewWills> i wouldn't ssay it's necessary in all cases
[17:55:34 CDT(-0500)] <EricDalquist> versus: <foo><thing id="1"/><thing id="2"/><thing id="3"/></foo>
[17:56:00 CDT(-0500)] <EricDalquist> I tend to lean toward option 2
[17:56:09 CDT(-0500)] <DrewWills> any chance you'd want attributes on the outer tag?
[17:56:12 CDT(-0500)] <EricDalquist> but I didn't know if people had other views
[17:56:17 CDT(-0500)] <EricDalquist> not in these cases
[17:56:23 CDT(-0500)] <EricDalquist> its simply acting as a wrapper
[17:56:44 CDT(-0500)] <DrewWills> yeah i think just doing #1 as a knee-jerk response is merely noise
[17:57:26 CDT(-0500)] <EricDalquist> yeah I'm with you there
[17:57:31 CDT(-0500)] <DrewWills> but i do like how, in trunk, the portletApp/portletName were recently grouped w/in a wrapper element
[17:57:31 CDT(-0500)] <EricDalquist> plusthis is for some JAXB stuff
[17:57:36 CDT(-0500)] <EricDalquist> yeah
[17:57:40 CDT(-0500)] <EricDalquist> I'm writing XSDs for that stuff
[17:58:03 CDT(-0500)] <EricDalquist> and when XJC generates the java code #1 results in an extra essentially useless wrapper class
[17:58:22 CDT(-0500)] <EricDalquist> you get foo.getThings().getThing() to get your List<Thing>
[17:58:38 CDT(-0500)] <EricDalquist> and this useless Things object which just has a single List field in it
[18:13:51 CDT(-0500)] <DrewWills> EricDalquist any quick thoughts on that portlet i posted to the dev list?
[18:31:34 CDT(-0500)] <EricDalquist> sounds neat
[18:31:42 CDT(-0500)] <EricDalquist> I think both use cases have merit
[18:32:17 CDT(-0500)] <EricDalquist> off to grab dinner
[18:34:19 CDT(-0500)] <DrewWills> have fun

  • No labels